• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservice Question with Return

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all.

My Apps: Netbeans (8.0.1), Apache Tomcat

I have here a Webservice and Webmethod.
User should insert a number (Sozialversicherungsnummer (SVN)). He should get as Return the corresponding name ("Nachname"). The table in the database is called "kunden". Fields: "Sozialversicherungsnummer" and "Nachname".



I test the Webservice with SOAP UI. Unfortunately, there is a mistake in my code. Probably in the "while ( resultSet.next()" section. Would be kind if somebody could help me.


Greetz
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

there is a mistake in my code.


How do you know that? What happens if you run this code?

What's with all the double quotes in the SQL statement? Remove those.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some further thoughts: A web service should almost certainly not open a new connection for each access - consider using a connection pool. And there's no need to "select *" if you only intend to use a single field - the call should just return that one field.
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:
How do you know that? What happens if you run this code?

What's with all the double quotes in the SQL statement? Remove those.



It doesn't work. I don't get a name ("Nachname") as return back

Doublequotes? I have to put them in:



The statement will get red underlined and I think this is correct. Or not?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"It doesn't work" gives us nothing to work with. Which path is taken through the code? If there are exceptions, post the stack trace. Does "SVN" have the value that you think it should have?

Doublequotes? I have to put them in


No, you don't. The single quotes are important, not the double quotes. I've never tried to use "*" instead of just * - does that work?
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I updated my Code:



I always get "3" asreturn. When I delete my "finally" section i get "1" as return. When I also delete this, i get "2" as return... It doesn't matter what I insert: Any number like "123" or a right "Sozialversicherungsnummer" from Database which SHOULD work.

I want to get a Integer from the User, and to return a corresponding Name ("Nachname"). Much more complicated as I thought :-/

Greetzs
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you get "3" that means that an exception is thrown which prevents the actual result from being returned. Post the complete stack trace that is generated in line 37.
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:If you get "3" that means that an exception is thrown which prevents the actual result from being returned. Post the complete stack trace that is generated in line 37.


I would - but I just test it via SOAP UI. So I don't get the complete stack trace. Or is there a other possibility?

Thank you for your help!



I tried the SQL Statement with MYSQL Workbench: It works: http://www.youscreen.de/wqjjwlew19.jpg
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SOAP UI acts as the client - somewhere there has to be a server running that serves up the WS, no? In its log files you should find the stack trace.
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

That should be a PreparedStatement.
That way you can avoid having to worry about quotes or SQL Injection.

As for your query working, it clearly isn't on the server so you need to find the logs with the stack trace.
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Tolls wrote:
That should be a PreparedStatement.
That way you can avoid having to worry about quotes or SQL Injection.

As for your query working, it clearly isn't on the server so you need to find the logs with the stack trace.



Ok i changed it to a PreparedStatement!

And here is my Log:


10-Dec-2014 20:46:35.877 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
10-Dec-2014 20:46:35.877 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
10-Dec-2014 20:46:35.892 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 27598 ms
10-Dec-2014 20:46:37.158 INFO [http-nio-8080-exec-11] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 20:46:37.158 INFO [http-nio-8080-exec-11] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 20:46:37.158 INFO [http-nio-8080-exec-11] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 20:46:37.174 SEVERE [http-nio-8080-exec-11] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@6e9bbd66]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 20:46:37.174 SEVERE [http-nio-8080-exec-11] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@b9eafef]) and a value of type [java.util.WeakHashMap] (value [{class com.sun.xml.ws.runtime.config.MetroConfig=java.lang.ref.WeakReference@59981743, class com.sun.xml.ws.runtime.config.TubelineDefinition=java.lang.ref.WeakReference@7442991a, class com.sun.xml.ws.runtime.config.TubeFactoryList=java.lang.ref.WeakReference@47817a79, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@391e44b1, class com.sun.xml.ws.runtime.config.TubeFactoryConfig=java.lang.ref.WeakReference@20a56ede, class java.util.ArrayList=java.lang.ref.WeakReference@40cfb999, class com.sun.xml.ws.runtime.config.Tubelines=java.lang.ref.WeakReference@cd1514b, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@4721a7ac}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 20:46:37.174 SEVERE [http-nio-8080-exec-11] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@4c79f208]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@7147896f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 20:46:37.174 SEVERE [http-nio-8080-exec-11] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@6e9bbd66]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 20:46:38.121 INFO [http-nio-8080-exec-11] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
10-Dec-2014 20:46:38.184 INFO [http-nio-8080-exec-5] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
10-Dec-2014 20:46:38.199 WARNING [http-nio-8080-exec-5] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Dec-2014 20:46:42.934 INFO [http-nio-8080-exec-5] null.null WSSERVLET12: JAX-WS context listener initializing
10-Dec-2014 20:46:47.397 INFO [http-nio-8080-exec-5] com.sun.xml.ws.server.MonitorBase.createRoot Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 20:46:47.912 INFO [http-nio-8080-exec-5] null.null WSSERVLET14: JAX-WS servlet initializing
10-Dec-2014 20:46:48.053 INFO [http-nio-8080-exec-5] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
10-Dec-2014 20:46:48.256 INFO [http-nio-8080-exec-5] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
10-Dec-2014 20:46:49.256 INFO [http-nio-8080-exec-5] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 11,072 ms
10-Dec-2014 20:46:49.272 INFO [http-nio-8080-exec-3] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
10-Dec-2014 20:47:04.890 INFO [http-nio-8080-exec-3] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 20:47:04.890 INFO [http-nio-8080-exec-3] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 20:47:04.890 INFO [http-nio-8080-exec-3] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 20:47:04.906 SEVERE [http-nio-8080-exec-3] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@2147cdfb]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 20:47:05.812 INFO [http-nio-8080-exec-3] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
10-Dec-2014 20:47:05.859 INFO [http-nio-8080-exec-16] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
10-Dec-2014 20:47:05.875 WARNING [http-nio-8080-exec-16] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Dec-2014 20:47:09.599 INFO [http-nio-8080-exec-16] null.null WSSERVLET12: JAX-WS context listener initializing
10-Dec-2014 20:47:14.302 INFO [http-nio-8080-exec-16] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 20:47:14.786 INFO [http-nio-8080-exec-16] null.null WSSERVLET14: JAX-WS servlet initializing
10-Dec-2014 20:47:14.911 INFO [http-nio-8080-exec-16] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
10-Dec-2014 20:47:15.099 INFO [http-nio-8080-exec-16] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
10-Dec-2014 20:47:16.099 INFO [http-nio-8080-exec-16] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,240 ms
10-Dec-2014 20:47:16.115 INFO [http-nio-8080-exec-4] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
10-Dec-2014 21:00:20.946 INFO [http-nio-8080-exec-21] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 21:00:20.958 INFO [http-nio-8080-exec-21] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 21:00:20.966 INFO [http-nio-8080-exec-21] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 21:00:21.001 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@4a4e776a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@18cc9b22]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.003 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@1b50f340]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@46ed6ebe}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.004 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@4a4e776a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3c83573]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.004 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@1b50f340]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@1f1e0cb9}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.006 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@322b097a]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.008 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@4a4e776a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@40d94bc5]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.009 SEVERE [http-nio-8080-exec-21] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@1b50f340]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@2f89d00}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:00:21.951 INFO [http-nio-8080-exec-21] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
10-Dec-2014 21:00:22.030 INFO [http-nio-8080-exec-20] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
10-Dec-2014 21:00:22.094 WARNING [http-nio-8080-exec-20] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Dec-2014 21:00:29.825 INFO [http-nio-8080-exec-20] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing
10-Dec-2014 21:00:35.449 INFO [http-nio-8080-exec-20] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 21:00:36.011 INFO [http-nio-8080-exec-20] null.null WSSERVLET14: JAX-WS servlet initializing
10-Dec-2014 21:00:36.144 INFO [http-nio-8080-exec-20] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
10-Dec-2014 21:00:36.361 INFO [http-nio-8080-exec-20] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
10-Dec-2014 21:00:38.034 INFO [http-nio-8080-exec-20] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 16,004 ms
10-Dec-2014 21:00:38.066 INFO [http-nio-8080-exec-27] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
10-Dec-2014 21:46:18.932 INFO [http-nio-8080-exec-34] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 21:46:18.942 INFO [http-nio-8080-exec-34] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 21:46:18.953 INFO [http-nio-8080-exec-34] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 21:46:18.986 SEVERE [http-nio-8080-exec-34] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@1bad980d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@22a08827]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:46:18.988 SEVERE [http-nio-8080-exec-34] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@3ad5e529]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@773384bf}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:46:18.989 SEVERE [http-nio-8080-exec-34] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@a917a4]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 21:46:20.129 INFO [http-nio-8080-exec-34] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
10-Dec-2014 21:46:20.204 INFO [http-nio-8080-exec-31] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
10-Dec-2014 21:46:20.289 WARNING [http-nio-8080-exec-31] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Dec-2014 21:46:30.085 INFO [http-nio-8080-exec-31] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing
10-Dec-2014 21:46:35.466 INFO [http-nio-8080-exec-31] com.sun.xml.ws.server.MonitorBase.createRoot Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 21:46:36.247 INFO [http-nio-8080-exec-31] null.null WSSERVLET14: JAX-WS servlet initializing
10-Dec-2014 21:46:36.426 INFO [http-nio-8080-exec-31] null.contextInitialized Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
10-Dec-2014 21:46:36.751 INFO [http-nio-8080-exec-31] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
10-Dec-2014 21:46:42.274 INFO [http-nio-8080-exec-31] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 22,071 ms
10-Dec-2014 21:46:42.298 INFO [http-nio-8080-exec-32] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
10-Dec-2014 22:01:39.591 INFO [http-nio-8080-exec-48] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 22:01:39.606 INFO [http-nio-8080-exec-48] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Web-Service-Webservice-WebservicePort
10-Dec-2014 22:01:39.609 INFO [http-nio-8080-exec-48] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 22:01:39.622 SEVERE [http-nio-8080-exec-48] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Web-Service] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@66839bc6]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:00.562 INFO [http-nio-8080-exec-49] null.null WSSERVLET15: JAX-WS servlet destroyed
10-Dec-2014 22:02:00.574 INFO [http-nio-8080-exec-49] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 22:02:00.582 INFO [http-nio-8080-exec-49] null.null WSSERVLET13: JAX-WS context listener destroyed
10-Dec-2014 22:02:00.593 SEVERE [http-nio-8080-exec-49] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@53ea23d7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@7e19925e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:00.594 SEVERE [http-nio-8080-exec-49] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@745692e8]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@4a188ec8}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:00.595 SEVERE [http-nio-8080-exec-49] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@53ea23d7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@48eee8c7]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:00.596 SEVERE [http-nio-8080-exec-49] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@745692e8]) and a value of type [java.util.WeakHashMap] (value [{class at.fhprojectkuranstalt.ws.jaxws.Svn=java.lang.ref.WeakReference@7a5708e6}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:00.597 SEVERE [http-nio-8080-exec-49] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@3ad61496]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
10-Dec-2014 22:02:01.534 INFO [http-nio-8080-exec-49] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
10-Dec-2014 22:02:01.602 INFO [http-nio-8080-exec-53] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
10-Dec-2014 22:02:01.651 WARNING [http-nio-8080-exec-53] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Dec-2014 22:02:09.433 INFO [http-nio-8080-exec-53] null.null WSSERVLET12: JAX-WS context listener initializing
10-Dec-2014 22:02:16.239 INFO [http-nio-8080-exec-53] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
10-Dec-2014 22:02:16.801 INFO [http-nio-8080-exec-53] null.<init> WSSERVLET14: JAX-WS servlet initializing
10-Dec-2014 22:02:16.944 INFO [http-nio-8080-exec-53] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
10-Dec-2014 22:02:17.151 INFO [http-nio-8080-exec-53] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
10-Dec-2014 22:02:18.434 INFO [http-nio-8080-exec-53] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 16,832 ms
10-Dec-2014 22:02:18.471 INFO [http-nio-8080-exec-43] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.

 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Update: I have created a new Project without Webservice. Result: It works!

Here a Screen: http://www.youscreen.de/wutlkxgz18.jpg

Now I would like to do this in a Webservice without Problems........ Maybe somebody sees anything what I should change in the Webmethod above. I dont really see it :/

Thank you all very much for your help!!!


Update2:

My Webservice now looks like this:



Here as Picture:


Here the Picture to SOAP UI (return value: "Error!"):


At the moment I don't know what to do. Maybe somebody can help me..... thanks!

Lg
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same advice as before: get the stack trace of the exception (and post it here). You may also want to return the actual error message instead of just "Error", something like "return ex.getMessage()".

So "Sozialversicherungsnummer" is an actually an integer field in the DB, not a character field? Just asking because earlier you enclosed it in single quotes (which are needed for a character field, but not allowed for a number) - those are now missing.
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Same advice as before: get the stack trace of the exception (and post it here). You may also want to return the actual error message instead of just "Error", something like "return ex.getMessage()".


Can you tell me how I find it? I Already posted the content of the log file, but it seems that it is not what you wanted.

Ulf Dittmer wrote:So "Sozialversicherungsnummer" is an actually an integer field in the DB, not a character field? Just asking because earlier you enclosed it in single quotes (which are needed for a character field, but not allowed for a number) - those are now missing.


Yes Sozialversicherungsnummer is an integer field:


Thanks for your help!
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can you tell me how I find it? I Already posted the content of the log file, but it seems that it is not what you wanted.


That's the catalina.log, but it's apparently not where the "KuranstaltWS" logger logs to - check the log4j setup where that goes to. Easier might be to add an "ex.printStackTrace()" to the catch handler - that would go to the catalina.log as well.

Sozialversicherungsnummer is an integer field


OK, that explains why it failed earlier - because of the enclosing single quotes.
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, I added "ex.printStackTrace()". Here is my log:


12-Dec-2014 00:45:05.867 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kur_WebService.xml has finished in 32 ms
12-Dec-2014 00:45:05.945 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Web-Service.xml
12-Dec-2014 00:45:05.945 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:45:10.757 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:10.773 INFO [localhost-startStop-1] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:45:15.586 INFO [localhost-startStop-1] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Web-Service-Webservice-WebservicePort
12-Dec-2014 00:45:16.133 INFO [localhost-startStop-1] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:45:16.148 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Web-Service.xml has finished in 10,203 ms
12-Dec-2014 00:45:16.148 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\docs
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\docs has finished in 250 ms
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\examples
12-Dec-2014 00:45:17.539 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\examples has finished in 1,141 ms
12-Dec-2014 00:45:17.539 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\host-manager
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\host-manager has finished in 375 ms
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\manager
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\manager has finished in 500 ms
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\ROOT
12-Dec-2014 00:45:18.680 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:18.680 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\ROOT has finished in 266 ms
12-Dec-2014 00:45:18.680 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
12-Dec-2014 00:45:18.695 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
12-Dec-2014 00:45:18.711 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 28031 ms
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.destroy WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextDestroyed WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@4d942520]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@7063f3f2]) and a value of type [java.util.WeakHashMap] (value [{class com.sun.xml.ws.runtime.config.TubeFactoryList=java.lang.ref.WeakReference@20277d78, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@3d23f37e, class com.sun.xml.ws.runtime.config.Tubelines=java.lang.ref.WeakReference@51726cdf, class com.sun.xml.ws.runtime.config.MetroConfig=java.lang.ref.WeakReference@3e61e960, class java.util.ArrayList=java.lang.ref.WeakReference@25b69f69, class com.sun.xml.ws.runtime.config.TubelineDefinition=java.lang.ref.WeakReference@72c20a2, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@457aa00c, class com.sun.xml.ws.runtime.config.TubeFactoryConfig=java.lang.ref.WeakReference@74616b2a}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@65bdff18]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3f2fa3d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@4d942520]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:21.164 INFO [http-nio-8080-exec-5] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:45:21.227 INFO [http-nio-8080-exec-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:45:21.242 WARNING [http-nio-8080-exec-2] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:45:26.008 INFO [http-nio-8080-exec-2] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:45:30.337 INFO [http-nio-8080-exec-2] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:45:30.790 INFO [http-nio-8080-exec-2] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:45:30.915 INFO [http-nio-8080-exec-2] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:45:31.102 INFO [http-nio-8080-exec-2] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:45:32.118 INFO [http-nio-8080-exec-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,891 ms
12-Dec-2014 00:45:32.134 INFO [http-nio-8080-exec-9] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:46:25.530 SEVERE [http-nio-8080-exec-18] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@451176db]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:46:26.452 INFO [http-nio-8080-exec-18] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:46:26.499 INFO [http-nio-8080-exec-12] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:46:26.514 WARNING [http-nio-8080-exec-12] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:46:30.390 INFO [http-nio-8080-exec-12] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:46:34.843 INFO [http-nio-8080-exec-12] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:46:35.265 INFO [http-nio-8080-exec-12] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:46:35.390 INFO [http-nio-8080-exec-12] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:46:35.593 INFO [http-nio-8080-exec-12] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:46:36.531 INFO [http-nio-8080-exec-12] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,032 ms
12-Dec-2014 00:46:36.546 INFO [http-nio-8080-exec-19] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
12-Dec-2014 00:47:57.399 INFO [http-nio-8080-exec-24] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kur_WebService]
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] null.null WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] null.null WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:48:07.599 SEVERE [http-nio-8080-exec-29] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@219f8ed1]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:48:08.521 INFO [http-nio-8080-exec-29] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:48:08.568 INFO [http-nio-8080-exec-28] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:48:08.583 WARNING [http-nio-8080-exec-28] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:48:12.318 INFO [http-nio-8080-exec-28] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:48:16.927 INFO [http-nio-8080-exec-28] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:48:17.365 INFO [http-nio-8080-exec-28] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:48:17.474 INFO [http-nio-8080-exec-28] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:48:17.724 INFO [http-nio-8080-exec-28] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:48:18.771 INFO [http-nio-8080-exec-28] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,203 ms
12-Dec-2014 00:48:18.787 INFO [http-nio-8080-exec-26] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.



But I still can't see whats the problem.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I can see that log contains only information related to starting and stopping your web application. If you are actually logging an exception, maybe you're logging it to somewhere else?
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried again:

12-Dec-2014 00:44:50.116 INFO [main] org.apache.catalina.core.AprLifecycleListener.init 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\jdk1.8.0_20\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Smart Projects\IsoBuster;.
12-Dec-2014 00:44:50.553 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
12-Dec-2014 00:44:50.663 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
12-Dec-2014 00:44:50.678 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
12-Dec-2014 00:44:50.678 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
12-Dec-2014 00:44:50.678 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1020 ms
12-Dec-2014 00:44:50.725 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
12-Dec-2014 00:44:50.725 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.9
12-Dec-2014 00:44:50.741 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:44:50.819 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:44:56.991 INFO [localhost-startStop-1] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:45:03.663 INFO [localhost-startStop-1] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:45:04.179 INFO [localhost-startStop-1] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:45:04.288 INFO [localhost-startStop-1] com.sun.faces.config.ConfigureListener.contextInitialized Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:45:04.523 INFO [localhost-startStop-1] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:45:05.835 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 15,094 ms
12-Dec-2014 00:45:05.835 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kur_WebService.xml
12-Dec-2014 00:45:05.851 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:45:05.851 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kur_WebService]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@151050ee]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4863)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4992)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\Users\Mario\Documents\NetBeansProjects\Kur_WebService\build\web] is not valid
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:643)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more

12-Dec-2014 00:45:05.867 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kur_WebService.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kur_WebService]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:727)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

12-Dec-2014 00:45:05.867 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kur_WebService.xml has finished in 32 ms
12-Dec-2014 00:45:05.945 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Web-Service.xml
12-Dec-2014 00:45:05.945 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:45:10.757 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:10.773 INFO [localhost-startStop-1] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:45:15.586 INFO [localhost-startStop-1] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Web-Service-Webservice-WebservicePort
12-Dec-2014 00:45:16.133 INFO [localhost-startStop-1] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:45:16.148 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Web-Service.xml has finished in 10,203 ms
12-Dec-2014 00:45:16.148 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\docs
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\docs has finished in 250 ms
12-Dec-2014 00:45:16.398 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\examples
12-Dec-2014 00:45:17.539 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\examples has finished in 1,141 ms
12-Dec-2014 00:45:17.539 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\host-manager
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\host-manager has finished in 375 ms
12-Dec-2014 00:45:17.914 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\manager
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\manager has finished in 500 ms
12-Dec-2014 00:45:18.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\ROOT
12-Dec-2014 00:45:18.680 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
12-Dec-2014 00:45:18.680 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Apache Software Foundation\Apache Tomcat 8.0.9\webapps\ROOT has finished in 266 ms
12-Dec-2014 00:45:18.680 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
12-Dec-2014 00:45:18.695 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
12-Dec-2014 00:45:18.711 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 28031 ms
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.destroy WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:45:20.227 INFO [http-nio-8080-exec-5] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextDestroyed WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@4d942520]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@7063f3f2]) and a value of type [java.util.WeakHashMap] (value [{class com.sun.xml.ws.runtime.config.TubeFactoryList=java.lang.ref.WeakReference@20277d78, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@3d23f37e, class com.sun.xml.ws.runtime.config.Tubelines=java.lang.ref.WeakReference@51726cdf, class com.sun.xml.ws.runtime.config.MetroConfig=java.lang.ref.WeakReference@3e61e960, class java.util.ArrayList=java.lang.ref.WeakReference@25b69f69, class com.sun.xml.ws.runtime.config.TubelineDefinition=java.lang.ref.WeakReference@72c20a2, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@457aa00c, class com.sun.xml.ws.runtime.config.TubeFactoryConfig=java.lang.ref.WeakReference@74616b2a}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@65bdff18]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3f2fa3d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:20.242 SEVERE [http-nio-8080-exec-5] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@4d942520]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:45:21.164 INFO [http-nio-8080-exec-5] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:45:21.227 INFO [http-nio-8080-exec-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:45:21.242 WARNING [http-nio-8080-exec-2] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:45:26.008 INFO [http-nio-8080-exec-2] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:45:30.337 INFO [http-nio-8080-exec-2] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:45:30.790 INFO [http-nio-8080-exec-2] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:45:30.915 INFO [http-nio-8080-exec-2] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:45:31.102 INFO [http-nio-8080-exec-2] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:45:32.118 INFO [http-nio-8080-exec-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,891 ms
12-Dec-2014 00:45:32.134 INFO [http-nio-8080-exec-9] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:46:25.530 INFO [http-nio-8080-exec-18] null.null WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:46:25.530 SEVERE [http-nio-8080-exec-18] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@451176db]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:46:26.452 INFO [http-nio-8080-exec-18] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:46:26.499 INFO [http-nio-8080-exec-12] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:46:26.514 WARNING [http-nio-8080-exec-12] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:46:30.390 INFO [http-nio-8080-exec-12] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:46:34.843 INFO [http-nio-8080-exec-12] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:46:35.265 INFO [http-nio-8080-exec-12] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:46:35.390 INFO [http-nio-8080-exec-12] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:46:35.593 INFO [http-nio-8080-exec-12] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:46:36.531 INFO [http-nio-8080-exec-12] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,032 ms
12-Dec-2014 00:46:36.546 INFO [http-nio-8080-exec-19] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
12-Dec-2014 00:47:57.399 INFO [http-nio-8080-exec-24] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kur_WebService]
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] null.null WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:48:07.599 INFO [http-nio-8080-exec-29] null.null WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 00:48:07.599 SEVERE [http-nio-8080-exec-29] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@219f8ed1]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 00:48:08.521 INFO [http-nio-8080-exec-29] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 00:48:08.568 INFO [http-nio-8080-exec-28] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 00:48:08.583 WARNING [http-nio-8080-exec-28] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 00:48:12.318 INFO [http-nio-8080-exec-28] null.null WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 00:48:16.927 INFO [http-nio-8080-exec-28] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 00:48:17.365 INFO [http-nio-8080-exec-28] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 00:48:17.474 INFO [http-nio-8080-exec-28] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 00:48:17.724 INFO [http-nio-8080-exec-28] null.null JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 00:48:18.771 INFO [http-nio-8080-exec-28] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,203 ms
12-Dec-2014 00:48:18.787 INFO [http-nio-8080-exec-26] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.
12-Dec-2014 01:03:22.921 INFO [http-nio-8080-exec-30] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.destroy WSSERVLET15: JAX-WS servlet destroyed
12-Dec-2014 01:03:22.921 INFO [http-nio-8080-exec-30] com.sun.xml.ws.server.MonitorBase.closeMOM Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 01:03:22.921 INFO [http-nio-8080-exec-30] null.null WSSERVLET13: JAX-WS context listener destroyed
12-Dec-2014 01:03:22.937 SEVERE [http-nio-8080-exec-30] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/Kuranstaltwebapp] created a ThreadLocal with key of type [org.glassfish.gmbal.generic.OperationTracer$1] (value [org.glassfish.gmbal.generic.OperationTracer$1@39aca697]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
12-Dec-2014 01:03:23.843 INFO [http-nio-8080-exec-30] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Kuranstaltwebapp]
12-Dec-2014 01:03:23.890 INFO [http-nio-8080-exec-35] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml
12-Dec-2014 01:03:23.890 WARNING [http-nio-8080-exec-35] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
12-Dec-2014 01:03:27.359 INFO [http-nio-8080-exec-35] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing
12-Dec-2014 01:03:32.437 INFO [http-nio-8080-exec-35] null.null Metro monitoring rootname successfully set to: com.sun.metro:pp=/,type=WSEndpoint,name=/Kuranstaltwebapp-KuranstaltWSService-KuranstaltWSPort
12-Dec-2014 01:03:32.906 INFO [http-nio-8080-exec-35] null.null WSSERVLET14: JAX-WS servlet initializing
12-Dec-2014 01:03:33.031 INFO [http-nio-8080-exec-35] null.null Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) für Kontext '/Kuranstaltwebapp' wird initialisiert.
12-Dec-2014 01:03:33.296 INFO [http-nio-8080-exec-35] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048: PostConstruct/PreDestroy-Annotationen vorhanden. Verwaltete Bean-Methoden, die mit diesen Annotationen markiert sind, lassen die entsprechenden Annotationen verarbeiten.
12-Dec-2014 01:03:34.359 INFO [http-nio-8080-exec-35] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kuranstaltwebapp.xml has finished in 10,469 ms
12-Dec-2014 01:03:34.375 INFO [http-nio-8080-exec-33] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Kuranstaltwebapp]] after start() had already been called. The second call will be ignored.

 
Paul Clapham
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I can see from all that bumf, your web service isn't getting called and it isn't even starting properly. Is there something which you haven't mentioned which suggests that it's that code which is the problem?
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:As far as I can see from all that bumf, your web service isn't getting called and it isn't even starting properly. Is there something which you haven't mentioned which suggests that it's that code which is the problem?


No not really, have no idea :/
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mario

Please post your web.xml code and describe how have you configured your web service to run in Tomcat (web container).

Thanks
Abhay Agarwal
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although not related , please post WSDL contents.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I see the reason for your error.

As specified, web service application is not getting deployed successfully in Tomcat 8.

Reason : mentioned in your catalina logs


Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\Users\Mario\Documents\NetBeansProjects\Kur_WebService\build\web] is not valid
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:643)



Here , "main resource" normally refers to WAR file.

I assume there is path related issue with "docBase" and "path" property of <Context> tag in "Web-Service.xml" file.
Is docbase value relative or asbolute path to WAR file ?

Below mentioned is the code of startInternal() method StandardRoot class of Tomcat 8 API -


As mentioned in code, line 643 is



a. Is "C:\Users\Mario\Documents\NetBeansProjects\Kur_WebService\build\web" path correct ?
b. Please post contents of "C:\Apache Software Foundation\Apache Tomcat 8.0.9\conf\Catalina\localhost\Kur_WebService.xml" file.

Thanks
Abhay Agarwal
 
Mario Huber
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much! You are right, the paths were wrong.
Now I installed everything new and it finally works!

Thank you! -> I got a name to my number!

Now I would like to return more Data of my Database not only the name!

First_name VARCHAR
Last_name VARCHAR
Zip Code INT
City VARCHAR
Geburtsdatum DATE


I thought about an Array. Is it possible to store different datatypes in an Array?
How should I do this best?

Greetz
 
Ranch Hand
Posts: 171
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its too late for replying here, but you shouldn't have just any datatype togather in a single array. Still if you need it that way, create an Object array & add your values to it.
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic