I created a Maven web application which name is "aa3" on Netbeans. I choose Tomcat server which Netbeans installed. And then I added a web service class. A warning appeared, it says:
I choose Yes.
Then I run my project but it did not work.
Outputs are:
aa3
cd /home/ekcdr/NetBeansProjects/aa3; JAVA_HOME=/usr/lib/jvm/java-7-oracle /home/ekcdr/netbeans-7.3/java/maven/bin/mvn -Dnetbeans.deploy=true -Dnetbeans.deploy.clientUrlPart=/NewWebService package
Scanning for projects...
------------------------------------------------------------------------
Building aa3 1.0-SNAPSHOT
------------------------------------------------------------------------
[dependency:copy]
[resources:resources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/ekcdr/NetBeansProjects/aa3/src/main/resources
[compiler:compile]
Compiling 1 source file to /home/ekcdr/NetBeansProjects/aa3/target/classes
[resources:testResources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/ekcdr/NetBeansProjects/aa3/src/test/resources
[compiler:testCompile]
No sources to compile
[surefire:test]
No tests to run.
Surefire report directory: /home/ekcdr/NetBeansProjects/aa3/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[war:war]
Packaging webapp
Assembling webapp [aa3] in [/home/ekcdr/NetBeansProjects/aa3/target/aa3-1.0-SNAPSHOT]
Processing war project
Copying webapp resources [/home/ekcdr/NetBeansProjects/aa3/src/main/webapp]
Webapp assembled in [79 msecs]
Building war: /home/ekcdr/NetBeansProjects/aa3/target/aa3-1.0-SNAPSHOT.war
WEB-INF/web.xml already added, skipping
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 8.208s
Finished at: Fri May 24 19:06:43 EEST 2013
Final Memory: 16M/132M
------------------------------------------------------------------------
NetBeans: Deploying on Apache Tomcat 7.0.34.0
profile mode: false
debug mode: false
force redeploy: true
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
Undeploying ...
OK - Undeployed application at context path /aa3
In-place deployment at /home/ekcdr/NetBeansProjects/aa3/target/aa3-1.0-SNAPSHOT
Deployment is in progress...
deploy?config=file%3A%2Ftmp%2Fcontext6381208068383234000.xml&path=/aa3
FAIL - Deployed application at context path /aa3 but context failed to start
The module has not been deployed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:178)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:130)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:212)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Apache Tomcat 7.0.34.0 Log
May 24, 2013 4:50:15 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445)
at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 4:50:15 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
May 24, 2013 4:50:47 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:376)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 4:50:47 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Apache Tomcat 7.0.34.0
May 24, 2013 7:06:47 PM org.apache.catalina.core.AprLifecycleListener init
Using CATALINA_BASE: /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base
Using CATALINA_HOME: /home/ekcdr/apache-tomcat-7.0.34
Using CATALINA_TMPDIR: /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/temp
Using JRE_HOME: /usr/lib/jvm/java-7-oracle
Using CLASSPATH: /home/ekcdr/apache-tomcat-7.0.34/bin/bootstrap.jar:/home/ekcdr/apache-tomcat-7.0.34/bin/tomcat-juli.jar
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-7-oracle/jre/lib/amd64:/usr/lib/jvm/java-7-oracle/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 24, 2013 7:06:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8084"]
May 24, 2013 7:06:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 24, 2013 7:06:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2289 ms
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
May 24, 2013 7:06:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/d1.xml
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/d1/target/d1-1.0-SNAPSHOT does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
May 24, 2013 7:06:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/d1] startup failed due to previous errors
May 24, 2013 7:06:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/aa2.xml
May 24, 2013 7:06:58 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener parseAdaptersAndCreateDelegate
SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoClassDefFoundError: org/glassfish/ha/store/api/BackingStoreException
java.lang.NoClassDefFoundError: org/glassfish/ha/store/api/BackingStoreException
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.<init>(ServletAdapter.java:95)
at com.sun.xml.ws.transport.http.servlet.ServletAdapterList.createHttpAdapter(ServletAdapterList.java:77)
at com.sun.xml.ws.transport.http.servlet.ServletAdapterList.createHttpAdapter(ServletAdapterList.java:53)
at com.sun.xml.ws.transport.http.HttpAdapterList.createAdapter(HttpAdapterList.java:77)
at com.sun.xml.ws.transport.http.HttpAdapterList.createAdapter(HttpAdapterList.java:71)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:266)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:152)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)
at com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer.onStartup(WSServletContainerInitializer.java:65)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5274)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.glassfish.ha.store.api.BackingStoreException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 22 more
May 24, 2013 7:06:58 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/aa2] startup failed due to previous errors
May 24, 2013 7:06:58 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/d6_tc_yes.xml
May 24, 2013 7:06:58 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/d6_tc_yes/target/d6_tc_yes-1.0-SNAPSHOT does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 7:06:58 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 24, 2013 7:06:58 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
May 24, 2013 7:06:58 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/d6_tc_yes] startup failed due to previous errors
May 24, 2013 7:06:58 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/aa1.xml
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/aa1] startup failed due to previous errors
May 24, 2013 7:07:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/deneme1.xml
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/deneme1/target/deneme1-1.0-SNAPSHOT does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/deneme1] startup failed due to previous errors
May 24, 2013 7:07:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/ROOT.xml
May 24, 2013 7:07:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/a1.xml
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/a1/build/web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
May 24, 2013 7:07:01 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/a1] startup failed due to previous errors
May 24, 2013 7:07:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/manager.xml
May 24, 2013 7:07:02 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/aa3.xml
May 24, 2013 7:07:02 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/aa3] startup failed due to previous errors
May 24, 2013 7:07:02 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/deneme2.xml
May 24, 2013 7:07:02 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/ekcdr/NetBeansProjects/deneme2/build/web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
May 24, 2013 7:07:02 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
May 24, 2013 7:07:02 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
May 24, 2013 7:07:02 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/deneme2] startup failed due to previous errors
May 24, 2013 7:07:02 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8084"]
May 24, 2013 7:07:02 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 24, 2013 7:07:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13561 ms
May 24, 2013 7:07:03 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/aa3]] after stop() had already been called. The second call will be ignored.
May 24, 2013 7:07:03 PM org.apache.catalina.startup.HostConfig deleteRedeployResources
INFO: Undeploying context [/aa3]
May 24, 2013 7:07:03 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /home/ekcdr/.netbeans/7.3/apache-tomcat-7.0.34.0_base/conf/Catalina/localhost/aa3.xml
May 24, 2013 7:07:04 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/aa3] startup failed due to previous errors
What is the problem in my project?
You need to copy ha-api.jar to your Tomcat/lib regardless if your project is bundled with jaxb-api or not (Mine is).
Related
Colleagues, could anybody help me with deploying application on tomcat server...
The situation is:
1. I have deployed app on tomcat. But there is no Undeploy button in admin panel.
2. I run mvn clean package tomcat7:redeploy and the result is:
[INFO] Deploying war to http://localhost:8080/app-ws Uploading:
http://localhost:8080/manager/text/deploy?path=%2Fapp-ws&update=true
Uploaded:
http://localhost:8080/manager/text/deploy?path=%2Fapp-ws&update=true
(11702 KB at 17334.8 KB/sec)
[INFO] tomcatManager status code:200, ReasonPhrase:OK [INFO] OK -
Deployed application at context path /app-ws [INFO]
------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO]
------------------------------------------------------------------------ [INFO] Total time: 01:08 min [INFO] Finished at:
2015-07-28T11:46:44+03:00 [INFO] Final Memory: 29M/260M [INFO] ---
Looks fine, but:
when i run http://localhost:8080/app-ws i receive HTTP Status 404
in C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps i have app-ws.war with actual creation date
in the same folder I have C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\app-ws folder, but with not actual date
In C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml i have next attribute
. May be the problem is here?
Have you any idea how to correctly deploy and run the application(web service) in described case?
Thank you for any comments and advices.
UPDATE
I undeploy my app.
No app-ws folder and war in C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps
Run mvn clean package tomcat7:deploy and receive
[INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package # app-ws <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) # app-ws ---
[INFO] Deploying war to http://localhost:8080/app-ws
Uploading: http://localhost:8080/manager/text/deploy?path=%2Fapp-ws
Uploaded: http://localhost:8080/manager/text/deploy?path=%2Fapp-ws (11647 KB at 16085.6 KB/sec)
[INFO] tomcatManager status code:200, ReasonPhrase:OK
[INFO] FAIL - Deployed application at context path /app-ws but context failed to start
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:36 min
[INFO] Finished at: 2015-07-28T15:58:13+03:00
[INFO] Final Memory: 27M/259M
[INFO] ---
I have next stack trace in C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\tomcat7-stderr.2015-07-28.log :
Jul 28, 2015 3:57:47 PM org.apache.catalina.startup.HostConfig
deployWAR INFO: Deploying web application archive C:\Program
Files\Apache Software Foundation\Tomcat 7.0\webapps\app-ws.war Jul 28,
2015 3:58:12 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile INFO: validateJarFile(C:\Program Files\Apache Software
Foundation\Tomcat
7.0\webapps\app-ws\WEB-INF\lib\tomcat-embed-core-8.0.20.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
javax/servlet/Servlet.class Jul 28, 2015 3:58:12 PM
org.apache.catalina.loader.WebappClassLoader validateJarFile INFO:
validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\app-ws\WEB-INF\lib\tomcat-embed-el-7.0.63.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
javax/el/Expression.class Jul 28, 2015 3:58:12 PM
org.apache.catalina.deploy.WebXml setVersion WARNING: Unknown version
string [3.1]. Default version will be used. Jul 28, 2015 3:58:13 PM
org.apache.catalina.core.ContainerBase addChildInternal SEVERE:
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app-ws]]
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1687)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
Source) at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1516)
at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:739)
at
org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:457)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:653) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source) Caused by:
java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
at
org.apache.tomcat.websocket.server.WsServerContainer.(WsServerContainer.java:147)
at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131) at
org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:47) at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 41 more
Jul 28, 2015 3:58:13 PM org.apache.catalina.startup.HostConfig
deployWAR SEVERE: Error deploying web application archive C:\Program
Files\Apache Software Foundation\Tomcat 7.0\webapps\app-ws.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app-ws]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1687)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
Source) at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1516)
at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:739)
at
org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:457)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:653) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Jul 28, 2015 3:58:13 PM org.apache.catalina.startup.HostConfig
deployWAR INFO: Deployment of web application archive C:\Program
Files\Apache Software Foundation\Tomcat 7.0\webapps\app-ws.war has
finished in 26,717 ms
UPDATE 1
Fixed this :
Jul 28, 2015 3:57:47 PM org.apache.catalina.startup.HostConfig
deployWAR INFO: Deploying web application archive C:\Program
Files\Apache Software Foundation\Tomcat 7.0\webapps\app-ws.war Jul 28,
2015 3:58:12 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile INFO: validateJarFile(C:\Program Files\Apache Software
Foundation\Tomcat
7.0\webapps\app-ws\WEB-INF\lib\tomcat-embed-core-8.0.20.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
javax/servlet/Servlet.class Jul 28, 2015 3:58:12 PM
org.apache.catalina.loader.WebappClassLoader validateJarFile INFO:
validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\app-ws\WEB-INF\lib\tomcat-embed-el-7.0.63.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
javax/el/Expression.class Jul 28, 2015 3:58:12 PM
org.apache.catalina.deploy.WebXml setVersion WARNING: Unknown version
string [3.1]. Default version will be used.
by adding
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-el</artifactId>
<version>7.0.63</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>8.0.24</version>
<scope>provided</scope>
</dependency>
I too faced the same issue. then i done the following things
Go to tomcat management page and go to "http://localhost:8000/manager/html"
Then undeployed the my project.
or manually delete the project (project.war and project folder) from web apps.
Deployed the project again in the tomcat web apps folder.
Please note that this is applicable if server deployed the application successfully without any errors.
I'm using Tomcat to host my web service and trying to access but not at all able to access. Please do not mark this one 'Duplicated', rather help me out.
Console says:
Mar 04, 2015 6:22:53 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Server' did not find a matching property.
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.20
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 15 2015 18:10:42 UTC
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.20.0
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre8
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_11-b12
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: D:\Downloads\apache-tomcat-8.0.20
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=D:\Downloads\apache-tomcat-8.0.20
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=D:\Downloads\apache-tomcat-8.0.20\endorsed
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Mar 04, 2015 6:22:53 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_31/bin/server;C:/Program Files/Java/jre1.8.0_31/bin;C:/Program Files/Java/jre1.8.0_31/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.6\bin;D:\Docs\Softwares\Eclipse\eclipse;;.
Mar 04, 2015 6:22:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Mar 04, 2015 6:22:53 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 04, 2015 6:22:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Mar 04, 2015 6:22:53 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Mar 04, 2015 6:22:53 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 981 ms
Mar 04, 2015 6:22:53 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 04, 2015 6:22:53 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.20
Mar 04, 2015 6:22:55 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Mar 04, 2015 6:22:55 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [167] milliseconds.
Mar 04, 2015 6:22:58 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
sun-jaxws.xml:
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime"
version="2.0">
<endpoint name="sampleApp" implementation="Service.Sample"
url-pattern="/app" />
</endpoints>
web.xml:
<web-app>
<listener>
<listener-class>
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
</listener-class>
</listener>
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
so where would be the problem? Is there anything more has to be configured to access endpoint services?
Here you will similar questions and answer too with detail explanations.
How to manually deploy a web service on Tomcat 6?
http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/
Hope it may help you.!!
I have tried the tutorial on http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example-document-style/comment-page-1/#comment-133527. This tutorial tells how to create a helloworld web service, publish it and try it by a client code. The tutorial works well. I can publish web service with the publisher (without deploying ???) and I can run the client and call the web service method and get answer.
My web service code is part of another web project. When I deploy the project war file on tomcat I get the error. When I delete the web service code( service, client and publisher ) from project I can deploy my web project.
I checked web.xml file, sun-jaxws.xml file and everything a million times but I can not find anything. Please help..
May 29, 2013 10:33:53 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error during ServletContainerInitializer processing
javax.servlet.ServletException: com.sun.xml.ws.transport.http.servlet.WSServletE
xception: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.S
erviceConfigurationError: com.sun.xml.ws.policy.jaxws.spi.PolicyFeatureConfigura
tor: Provider com.sun.xml.ws.addressing.policy.AddressingFeatureConfigurator is
specified in jar:file:/C:/Program%20Files/Apache/apache-tomcat-7.0.40/webapps/RO
OT/WEB-INF/lib/webservices-rt.jar!/META-INF/services/com.sun.xml.ws.policy.jaxws
.spi.PolicyFeatureConfiguratorbut could not be instantiated: java.lang.ClassCast
Exception: Cannot cast com.sun.xml.ws.addressing.policy.AddressingFeatureConfigu
rator to com.sun.xml.ws.policy.jaxws.spi.PolicyFeatureConfigurator
at com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer.o
nStartup(WSServletContainerInitializer.java:70)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5370)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1654)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11
: failed to parse runtime descriptor: com.sun.xml.ws.util.ServiceConfigurationEr
ror: com.sun.xml.ws.policy.jaxws.spi.PolicyFeatureConfigurator: Provider com.sun
.xml.ws.addressing.policy.AddressingFeatureConfigurator is specified in jar:file
:/C:/Program%20Files/Apache/apache-tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/webser
vices-rt.jar!/META-INF/services/com.sun.xml.ws.policy.jaxws.spi.PolicyFeatureCon
figuratorbut could not be instantiated: java.lang.ClassCastException: Cannot cas
t com.sun.xml.ws.addressing.policy.AddressingFeatureConfigurator to com.sun.xml.
ws.policy.jaxws.spi.PolicyFeatureConfigurator
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseA
daptersAndCreateDelegate(WSServletContextListener.java:141)
at com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer.o
nStartup(WSServletContainerInitializer.java:65)
... 13 more
Caused by: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.policy.
jaxws.spi.PolicyFeatureConfigurator: Provider com.sun.xml.ws.addressing.policy.A
ddressingFeatureConfigurator is specified in jar:file:/C:/Program%20Files/Apache
/apache-tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/webservices-rt.jar!/META-INF/serv
ices/com.sun.xml.ws.policy.jaxws.spi.PolicyFeatureConfiguratorbut could not be i
nstantiated: java.lang.ClassCastException: Cannot cast com.sun.xml.ws.addressing
.policy.AddressingFeatureConfigurator to com.sun.xml.ws.policy.jaxws.spi.PolicyF
eatureConfigurator
at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:258)
at com.sun.xml.ws.util.ServiceFinder.access$300(ServiceFinder.java:151)
at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.jav
a:465)
at com.sun.xml.ws.util.ServiceFinder$CompositeIterator.next(ServiceFinde
r.java:402)
at com.sun.xml.ws.policy.jaxws.PolicyUtil.addServiceProviders(PolicyUtil
.java:97)
at com.sun.xml.ws.policy.jaxws.PolicyUtil.<clinit>(PolicyUtil.java:83)
at com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension.loadConfigur
ators(PolicyWSDLGeneratorExtension.java:476)
at com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension.start(Policy
WSDLGeneratorExtension.java:124)
at com.sun.xml.ws.wsdl.writer.WSDLGeneratorExtensionFacade.start(WSDLGen
eratorExtensionFacade.java:71)
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.generateDocument(WSDLGenerat
or.java:407)
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.doGeneration(WSDLGenerator.j
ava:330)
at com.sun.xml.ws.db.DatabindingImpl.generateWSDL(DatabindingImpl.java:2
30)
at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.ja
va:553)
at com.sun.xml.ws.server.EndpointFactory.create(EndpointFactory.java:278
)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.
java:147)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:574)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:557)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapter
s(DeploymentDescriptorParser.java:260)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(Deploy
mentDescriptorParser.java:152)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseA
daptersAndCreateDelegate(WSServletContextListener.java:131)
... 14 more
Caused by: java.lang.ClassCastException: Cannot cast com.sun.xml.ws.addressing.p
olicy.AddressingFeatureConfigurator to com.sun.xml.ws.policy.jaxws.spi.PolicyFea
tureConfigurator
at java.lang.Class.cast(Class.java:3014)
at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.jav
a:460)
... 31 more
May 29, 2013 10:33:53 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
May 29, 2013 10:33:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache\apache-tomcat-
7.0.40\webapps\docs
May 29, 2013 10:33:56 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jcaptcha.sourceforge.net is already defined
May 29, 2013 10:33:59 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache\apache-tomcat-
7.0.40\webapps\examples
May 29, 2013 10:34:00 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jcaptcha.sourceforge.net is already defined
May 29, 2013 10:34:00 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache\apache-tomcat-
7.0.40\webapps\host-manager
May 29, 2013 10:34:01 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jcaptcha.sourceforge.net is already defined
May 29, 2013 10:34:01 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache\apache-tomcat-
7.0.40\webapps\manager
May 29, 2013 10:34:03 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jcaptcha.sourceforge.net is already defined
May 29, 2013 10:34:03 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
May 29, 2013 10:34:03 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 29, 2013 10:34:03 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17869 ms
Putting jar files from https://metro.java.net/2.2/ in webinf/lib solved my problem...
I am trying to deploy a tomcat 7.0 web app as a standalone application based on the blog http://blog.cloudfoundry.org/2012/06/18/deploying-tomcat-7-using-the-standalone-framework/ with my-sql service. While this app works fine without a service, the server fails to start when I bind a MySQL service to the app. Below is the exception I get on server start up:
Mar 22, 2013 8:03:49 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 22, 2013 8:03:49 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 22, 2013 8:03:49 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCa
che', 'org.apache.jasper.compiler.TldLocationsCache#2fe6e305')
Mar 22, 2013 8:03:49 AM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'webapp.root' = [/var/vcap/data/dea/apps
/log-app-0-0466f9837a2ada3db95aef1b77a78787/app/webapps/ROOT/]
Mar 22, 2013 8:03:49 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Mar 22, 2013 8:03:50 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'mysql1': Invocation of init method failed; nested exception is java.lang
.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:563)
at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4797)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:662)
**Caused by: java.lang.NullPointerException
at org.cloudfoundry.runtime.env.CloudEnvironment.getServiceInfo(CloudEnv
ironment.java:150)**
at org.cloudfoundry.runtime.service.AbstractCloudServiceFactory.createIn
stance(AbstractCloudServiceFactory.java:54)
at org.springframework.beans.factory.config.AbstractFactoryBean.afterPro
pertiesSet(AbstractFactoryBean.java:130)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 26 more
Mar 22, 2013 8:03:50 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 22, 2013 8:03:50 AM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j
This is the localhost log obtained using
vmc files log-app app/logs/localhost.2013-03-22.log
Any help and insight on this issue is much appreciated.
Also, I would like to add that I am binding the service to the application during push. Here is the result of vmc app log-app command:
C:\Users\kinjal.doshi\apache-tomcat-7.0.35>vmc app log-app
log-app: running
platform: standalone on java
usage: 256M x 1 instance
urls: log-app.cloudfoundry.com
services: mysql-2
I have been able to resolve this issue. Just needed to add mysql connector jar to the tomcat 7.0 lib folder
I'm a beginner at setting up spring web-applications. I got this far but now I find myself stuck.
I get the following error:
WARNING: No endpoint mapping found for [SaajSoapMessage {http://mycompany.com/weather/schemas}GetCities]
The main problem is that I have run out of ideas where to look for debug information. I fixed as many errors that I've seen, but now I can't even find something wrong in the logs. So I'm getting bit desperate.
This my web.xml
<web-app>
<display-name>Weather report webservice</display-name>
<servlet>
<servlet-name>spring-ws</servlet-name>
<servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-ws-servlet.xml</param-value>
</init-param>
<init-param>
<param-name>transformWsdlLocations</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>spring-ws</servlet-name>
<url-pattern>/weatherws</url-pattern>
</servlet-mapping>
</web-app>
This is what my spring-ws-servlet.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:sws="http://www.springframework.org/schema/web-services"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="path.to.weather"/>
<sws:annotation-driven/>
</beans>
This is what my endpoint looks like:
#Endpoint
public class WeatherEndpoint {
private static final String NAMESPACE_URI = "http://mycompany.com/weather/schema";
private WeatherReportManager manager;
#Autowired
public WeatherEndpoint(WeatherReportManager manager) throws JDOMException {
this.manager = manager;
}
#PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetCities")
#ResponsePayload
public Element getCities() {
Element toReturn = null;
for(City city : manager.getCities()) {
//To some stuff
}
return toReturn;
}
}
This is the catalina.log as I see it right now. I tried to get Tomcat to output DEBUG messages by editing the logging.properties. This did not give any additional effect.
INFO: Deploying web application archive weather.war
Feb 15, 2012 3:28:51 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'spring-ws': initialization started
Feb 15, 2012 3:28:51 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'spring-ws-servlet': startup date [Wed Feb 15 15:28:51 EET 2012]; root of context hierarchy
Feb 15, 2012 3:28:52 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-ws-servlet.xml]
Feb 15, 2012 3:28:52 PM org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping afterPropertiesSet
INFO: Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
Feb 15, 2012 3:28:52 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#36496381: defining beans [weatherEndpoint,weatherReportManagerWWW,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping#0,org.springframework.ws.soap.server.endpoint.mapping.SoapActionAnnotationMethodEndpointMapping#0,org.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping#0,org.springframework.ws.server.endpoint.adapter.method.dom.DomPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.SourcePayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.XmlRootElementPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.JaxbElementPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.dom.JDomPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
Feb 15, 2012 3:28:52 PM org.springframework.ws.soap.saaj.SaajSoapMessageFactory afterPropertiesSet
INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
Feb 15, 2012 3:28:52 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'spring-ws': initialization completed in 714 ms
Feb 15, 2012 3:28:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Feb 15, 2012 3:28:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Feb 15, 2012 3:28:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Feb 15, 2012 3:28:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory lib
Feb 15, 2012 3:28:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Feb 15, 2012 3:28:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Feb 15, 2012 3:28:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 15, 2012 3:28:53 PM org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Feb 15, 2012 3:28:53 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8777 ms
Feb 15, 2012 3:29:07 PM org.springframework.ws.server.MessageDispatcher dispatch
WARNING: No endpoint mapping found for [SaajSoapMessage {http://mycompany.com/weather/schemas}GetCities]
I would be very grateful for any assistance. If you need to see anything additional, just let me know.
In your endpoint code you have :
private static final String NAMESPACE_URI = "http://mycompany.com/weather/schema";
but your message is from http://mycompany.com/weather/schemas namespace. Note the final s.