同ibm工程師的郵件--有關wasce的

 Product: WebSphere Application Server Community Edition V1.0.1.2
Customer's environment:
Amount of memory: 512MB
Size of hard disk: up40G
On a network? : yes

Description:
Recreatable? : yes
How often does the failure occur? : all the time

Problem description:

I have a web project , I develop it on eclipse+tomcat.
Now, I move it to eclipse+wasce1.1.

I run wasce1.1 in eclipse, when I update some source code, I press "run on server" or "debug on server' or "publish", it will remove all the old war project, and deploy a new war project.

But it's not what I want, it cost more time.
I want it update the change only, and can be avalible at once, because When it republish the project, I lost all the sessions and server connections.

I try the wasce1.0, it's the same situation.
Is there any wrong I config it?

eclipse+tomcat or myeclipse+tomcat can work well.
------------------------Customer Fri Dec 22 00:36:09 GMT 2006

########################
Greetings,

You may want to refer the section on "Using hot deployment" described in the WASCE 1.1 Product documentation:
http://publib.boulder.ibm.com/wasce/V1.1.0/en/Tasks/Deploy/Deploying.html

Thanks for using IBM products
WASCE Support Team
____________ IBM Response Fri Dec 22 15:05:41 GMT 2006

############################

well, I have made it work well on linux platform by creating a link of the web-root folder under "deploy" folder.

But it can't work well on windows platform,.
It can auto-deploy the link folder under "deploy" folder, but promted "deploy failed".
------------------------Customer Tue Dec 26 04:22:12 GMT 2006

#########################
Greetings,

We tried the below tests on Windows with WASCE 1.1 :

1. Created a web application "Test"
2. Exported the same to Test.war
3. Copied the war to deploy folder
4. WASCE picked up the web application and deployed with the below log:
Starting server...
Server Build: V1.1.0.0-200609061600
JVM in use: IBM Corporation Java 1.5.0
Server started
Deployed default/Test/1.0/car @ http://<hostname>:8080/Test

5. Modified the web application (edited some html in a jsp)
6. Exported the new Test.war
7. Copied Test.war in deploy folder
8. WASCE picked up the modified web application and wrote log as below:
Undeployed default/Test/1.0/car
Deployed default/Test/1.0/car @ http://<hostname>:8080/Test
Redeployed default/Test/1.0/car

9. Verified and confirmed the changes to jsp after launching web application

Checked server.log and found no messages as "deploy failed"

Could you please describe your problem a further more. Providing the server.log with the error message would also be helpful.

Thanks for using IBM products
WASCE Support Team

____________ IBM Response Tue Dec 26 05:59:35 GMT 2006

#######################################

Thanks for your reply.

I know the way you described , and it can work well.

I mean, I don't want to export the war every time I change the source code, it cost more times.

My step is following:
1.create a new web project
2.my web-root folder named "dl', I make a link of "dl" under "deploy" folder, has the same name "dl'
3.I edit some source code in eclipse
4.wasce auto-deploy the "dl" under "deploy"

When I do this on Linux platform, it can work well.
But on Windows platform, promted deploy wrong,
the log like this"08:49:18,375 ERROR [Deployer] Deployment failed: plan=null, module=C:/IBM/WebSphere/AppServerCommunityEdition/deploy/dl
org.apache.geronimo.common.DeploymentException: Problem deploying war
at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:251)
at java.lang.Thread.run(Thread.java:799)
Caused by:
java.io.FileNotFoundException: C:/IBM/WebSphere/AppServerCommunityEdition/deploy/dl/WEB-INF/user/jsp/userright/FlowPostList.jsp (can't find the file&#12290;)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:135)
at org.apache.geronimo.deployment.util.UnpackedJarFile.getInputStream(UnpackedJarFile.java:122)
at org.apache.geronimo.deployment.CopyResourceContext.addFile(CopyResourceContext.java:161)
at org.apache.geronimo.deployment.CopyResourceContext.addFile(CopyResourceContext.java:132)
at org.apache.geronimo.deployment.DeploymentContext.addFile(DeploymentContext.java:308)
at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:230)
... 40 more
08:49:18,484 ERROR [Hot Deployer] Unable to deploy: Problem deploying war"

I just make a link of the folder, not copy the whole folder.
that's my way.
Because the character limit, that's not all the log detail.
------------------------Customer Tue Dec 26 09:17:01 GMT 2006

########################################
Greetings,

Thank you for mentioning the problem.
We are aware of two methods of hot deploy on WASCE/Windows - one is the war file in the deploy folder, other is the web application directory in the deploy folder.

We tried out the latter and modified some jsp file inside the web application directory in deploy folder, after saving the changes to the file (jsp), server picked refreshes the deployed application with only the changed file, instead of reinstalling the entire application.

Regarding directory linking, this option is usually used in Unix operating environments. We are not aware of directory linking under Windows. "org.apache.geronimo.common.DeploymentException" is thrown usually when the directory under the deploy folder is not a valid one for WASCE deployment. Looks like the linking did not happen at all and thereby server could not pick the web application resources or the deployment plans.

Could you retry deployment by copying the original web application directory under deploy folder and see if this issue persists.

If you could provide us the steps to recreate the issue inclusind the linking we can investigate further.

Thanks for using IBM products
WASCE Support Team

#########################


Hi,
I have tried the below tests on Windows.
1. run wasce1.1
2. copy all the web application directory(named "dl") into "deploy"
3. promoted " [Hot Deployer] Deploying dl"
4. I change one jsp file, save this file.
5. promoted
"[Hot Deployer] Redeploying dl"
"[DirectoryMonitor] Hot deployer notified that an artifact was removed: DLProject/enrol/1.0/war"
"Redeployed DLProject/enrol/1.0/war"

Then I access the jsp file I changed, I see the change.

But that's not what I really want, because I lost all the sessions and connections to the server, I must re-login the web appliction.
I want to see the changes on the current session and connection, is there any way to resolve it?

BTW, on Windows platform, I make a shortcut of the web application directory in "deploy", that's what I mean "link".
On Linux platform, I type the command "ln -s" to make a link.

Thanks a lot!
------------------------Customer Wed Dec 27 03:00:54 GMT 2006

################################################
Hi,

Hot deploy will re-deploy the application. Redeploying will invalidate all connections and http sessions. So, you need to login again. The web-context root of the application will be name of the folder placed in "Deploy" directory.
The links will not work on windows...!!

Currently, the hot-deploy has been designed work like as said above. I will put forward this idea to Dev team let you know the comments...!

Thanks for your comments...!

#########################

結束語,通信結束了,wasce並沒有我想要的那樣的功能,不知道他們以後會不會添加。

發佈了75 篇原創文章 · 獲贊 3 · 訪問量 29萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章