Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 123908

Summary: Can't create buttom up web service when "Run modules directly from workspace" is unchecked
Product: [WebTools] WTP ServerTools Reporter: Thomas Raddatz <thomas.raddatz>
Component: jst.serverAssignee: Tim deBoer <deboer>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Thomas Raddatz CLA 2006-01-15 14:59:20 EST
Hi,

Today I tried to follow your web service tutorial at 

"http://www.eclipse.org/webtools/community/tutorials/BottomUpWebService/BottomUpWebService.html". It works fine unless I uncheck "Run modules directly from workspace" of the Tomcat configuration file.

Here is what I did in details:

1. Installed wtp-all-in-one-sdk-1.0-win32.zip
2. Installed jakarta-tomcat-5.0.28.zip (core edition)
3. Changed Eclipse Preferences:
     Java - Build Path: selected "Folder" radio button
     Java - JRE's     : added j2sdk1.4.2_08
4. Opened the server view and added Tomcat 5.0.28
5. Changed Tomcat server configuration file
     unchecked: Run modules directly from workspace
6. Created dynamic web project "ConverterProj"
6.1 Agreed to cache "web-app_2_4.xsd"
6.2 Agreed to open J2EE perspective
7. Changed project properties:
     Selected Tomcat 5.0.28 server as the default server
8. Created package "wtp"
9. Added class "Converter" to "wtp" package
10. Attempted to create the web service
10.1 Selected "Converter.java"
10.2 Opened File -> New -> Other... -> Web Services -> Web Service
10.3 Checked:
     Generate a proxy
     Test the web service
     Monitor the web service
     Overwrite files without warning
10.4 Clicked "Next" to go to Object Selection Page
10.5 Clicked "Next" to go to Service Deployment Configuration
10.6 Clicked "Finish" on the Service Deployment Configuration screen
11. Received error message:

Publishing failed
  Error copying file to C:\Programme\Tomcat 5.0.28\webapps\ConverterProj\WEB-INF\lib\saaj.jar: Error deleting C:\Programme\Tomcat 

5.0.28\webapps\ConverterProj\WEB-INF\lib\saaj.jar
      java.lang.Exception: Error deleting C:\Programme\Tomcat 5.0.28\webapps\ConverterProj\WEB-INF\lib\saaj.jar
      at org.eclipse.jst.server.core.PublishUtil.copyFile(PublishUtil.java:123)
      at org.eclipse.jst.server.core.PublishUtil.copyFile(PublishUtil.java:154)
      at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:260)
      at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:266)
      at org.eclipse.jst.server.core.PublishUtil.smartCopy(PublishUtil.java:266)
      at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishDir(TomcatServerBehaviour.java:282)
      at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishModule(TomcatServerBehaviour.java:247)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:658)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:738)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:596)
      at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:799)
      at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
      at org.eclipse.jst.ws.internal.consumption.ui.command.StartServerCommand$1.run(StartServerCommand.java:185)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

12. Output to console was:

15.01.2006 20:41:16 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
15.01.2006 20:41:16 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1187 ms
15.01.2006 20:41:16 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
15.01.2006 20:41:16 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
15.01.2006 20:41:16 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
15.01.2006 20:41:17 org.apache.axis.configuration.EngineConfigurationFactoryServlet getServerEngineConfig
SCHWERWIEGEND: Unable to find config file.  Creating new servlet engine config file: /WEB-INF/server-config.wsdd
15.01.2006 20:41:17 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNUNG: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is 

disabled.
15.01.2006 20:41:18 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
15.01.2006 20:41:18 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Tomcat 5.0.28\conf\Catalina\localhost\admin.xml
15.01.2006 20:41:18 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
15.01.2006 20:41:18 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
15.01.2006 20:41:19 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
15.01.2006 20:41:20 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Tomcat 5.0.28\conf\Catalina\localhost\balancer.xml
15.01.2006 20:41:20 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Tomcat 5.0.28\conf\Catalina\localhost\manager.xml
15.01.2006 20:41:21 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:C:\Programme\Tomcat 5.0.28\webapps\jsp-examples
15.01.2006 20:41:21 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:C:\Programme\Tomcat 5.0.28\webapps\ROOT
15.01.2006 20:41:21 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:C:\Programme\Tomcat 5.0.28\webapps\servlets-examples
15.01.2006 20:41:21 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\Programme\Tomcat 5.0.28\webapps\tomcat-docs
15.01.2006 20:41:21 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\Programme\Tomcat 5.0.28\webapps\webdav
15.01.2006 20:41:22 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
15.01.2006 20:41:22 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
15.01.2006 20:41:22 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=15/78  config=C:\Programme\Tomcat 5.0.28\conf\jk2.properties
15.01.2006 20:41:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5891 ms
15.01.2006 20:41:22 org.apache.axis.configuration.EngineConfigurationFactoryServlet getServerEngineConfig
SCHWERWIEGEND: Unable to find config file.  Creating new servlet engine config file: /WEB-INF/server-config.wsdd
15.01.2006 20:41:41 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /ConverterProjClient from URL file:C:\Programme\Tomcat 5.0.28\webapps\ConverterProjClient


About Eclipse SDK Features:
Version of Eclipse  - 3.1.1
Build ID of Eclipse - M20050929-0840
Version of WTP      - 1.0.0
Build ID of WTP     - 200512210855


Regards,

Thomas Raddatz
Comment 1 Kathy Chan CLA 2006-02-09 22:59:57 EST
Hi Tim,

I can reproduce the problem easily if I create the Tomcat server first and change the server config to unchecked "Run modules directly from workspace" before running a bottom-up Web service scenario.  The problem occurs during publish.

I wonder if this is similar to bug 120709 which is a similar publish fail error with copying.  However, that problem was intermitten but this one I could reproduce everytime by first making sure that the server is stopped and the Web project had not been added to the server before running the Web service scenario with "generate proxy" and "test".
Comment 2 Tim deBoer CLA 2006-07-11 14:34:16 EDT

*** This bug has been marked as a duplicate of 120709 ***
Comment 3 Tim deBoer CLA 2006-11-21 14:45:51 EST
Closing old bugs.