java ee - Web Service unavailable after restart Glassfish -


now have new problem. i´m using glassfish 3.1.2.2 host application has web service communicate application outside server, swing desktop application. every thing works fine, (always but), if need restart glassfish reason, destop application didn't find ws, need redeploy application in glassfish , every thing works fine again.

at begining thought problem in desktop client, refresh connection web service, nothing. after that, tested web service netbeans option , warning:

enter image description here

the solution found redeploy application, guest, when application in production not aceptable solution.

my application build jdk 7.0.21, using netbeans 7.3, jsf 2.0, primefaces 3.5, jpa 2.0, web service constructed following tutorial.

this message received in log of desktop test application:

exception in thread "awt-eventqueue-0" com.sun.xml.internal.ws.client.clienttransportexception: server sent http status code 404: not found @ com.sun.xml.internal.ws.transport.http.client.httptransportpipe.checkstatuscode(httptransportpipe.java:296) @ com.sun.xml.internal.ws.transport.http.client.httptransportpipe.createresponsepacket(httptransportpipe.java:245) @ com.sun.xml.internal.ws.transport.http.client.httptransportpipe.process(httptransportpipe.java:203) @ com.sun.xml.internal.ws.transport.http.client.httptransportpipe.processrequest(httptransportpipe.java:122) @ com.sun.xml.internal.ws.transport.deferredtransportpipe.processrequest(deferredtransportpipe.java:95) @ com.sun.xml.internal.ws.api.pipe.fiber.__dorun(fiber.java:626) @ com.sun.xml.internal.ws.api.pipe.fiber._dorun(fiber.java:585) @ com.sun.xml.internal.ws.api.pipe.fiber.dorun(fiber.java:570) @ com.sun.xml.internal.ws.api.pipe.fiber.runsync(fiber.java:467) @ com.sun.xml.internal.ws.client.stub.process(stub.java:308) @ com.sun.xml.internal.ws.client.sei.seistub.doprocess(seistub.java:146) @ com.sun.xml.internal.ws.client.sei.syncmethodhandler.invoke(syncmethodhandler.java:98) @ com.sun.xml.internal.ws.client.sei.syncmethodhandler.invoke(syncmethodhandler.java:78) @ com.sun.xml.internal.ws.client.sei.seistub.invoke(seistub.java:129) @ com.sun.proxy.$proxy30.hello(unknown source) @ com.spontecorp.testws.testwsframe.invokewsbuttonactionperformed(testwsframe.java:137) @ com.spontecorp.testws.testwsframe.access$100(testwsframe.java:14) @ com.spontecorp.testws.testwsframe$2.actionperformed(testwsframe.java:62) @ javax.swing.abstractbutton.fireactionperformed(abstractbutton.java:2018) @ javax.swing.abstractbutton$handler.actionperformed(abstractbutton.java:2341) @ javax.swing.defaultbuttonmodel.fireactionperformed(defaultbuttonmodel.java:402) @ javax.swing.defaultbuttonmodel.setpressed(defaultbuttonmodel.java:259) @ javax.swing.plaf.basic.basicbuttonlistener.mousereleased(basicbuttonlistener.java:252) @ java.awt.component.processmouseevent(component.java:6505) @ javax.swing.jcomponent.processmouseevent(jcomponent.java:3321) @ java.awt.component.processevent(component.java:6270) @ java.awt.container.processevent(container.java:2229) @ java.awt.component.dispatcheventimpl(component.java:4861) @ java.awt.container.dispatcheventimpl(container.java:2287) @ java.awt.component.dispatchevent(component.java:4687) @ java.awt.lightweightdispatcher.retargetmouseevent(container.java:4832) @ java.awt.lightweightdispatcher.processmouseevent(container.java:4492) @ java.awt.lightweightdispatcher.dispatchevent(container.java:4422) @ java.awt.container.dispatcheventimpl(container.java:2273) @ java.awt.window.dispatcheventimpl(window.java:2719) @ java.awt.component.dispatchevent(component.java:4687) @ java.awt.eventqueue.dispatcheventimpl(eventqueue.java:729) @ java.awt.eventqueue.access$200(eventqueue.java:103) @ java.awt.eventqueue$3.run(eventqueue.java:688) @ java.awt.eventqueue$3.run(eventqueue.java:686) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:76) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:87) @ java.awt.eventqueue$4.run(eventqueue.java:702) @ java.awt.eventqueue$4.run(eventqueue.java:700) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:76) @ java.awt.eventqueue.dispatchevent(eventqueue.java:699) @ java.awt.eventdispatchthread.pumponeeventforfilters(eventdispatchthread.java:242) @ java.awt.eventdispatchthread.pumpeventsforfilter(eventdispatchthread.java:161) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(eventdispatchthread.java:150) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:146) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:138) @ java.awt.eventdispatchthread.run(eventdispatchthread.java:91)

my question is: - need setup in glassfish after deployment application serves web service?, if so, where?

had same problem after refractoring, had create new webservice @ server (and copy old code), after re-imported new wsdl , made right changes code (to new name of webservice).

problem was, me @ least, after refractoring couldn't call

com.package.class.mywebservice_service service; 

dont know why, , there better solution instead of "recreating".


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -