aspose file tools*
The moose likes Web Services and the fly likes just firt web service is working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "just firt web service is working" Watch "just firt web service is working" New topic
Author

just firt web service is working

hamid tafreshi
Greenhorn

Joined: Sep 29, 2009
Posts: 5
Hi,
I have problem with deploying service. I am using EJB in Netbeans IDE. when I add my first web services using existing entity class and deploy it, it is working properly but as soon as I add another web services the first one is not working and Glass Fish v2 shows following error. I have not set any ssl or other thing but I ab confused totally about the problem.
I am creating Entity class from database then Session bean from entity class then Web service from Session bean.
Thanks for your help


Exceptions details : null
java.lang.NullPointerException at java.io.File.(File.java:222) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:524) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doGet(WebServiceTesterServlet.java:184) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:119) at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:142) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.executeServlet(CometEngine.java:609) at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:356) at com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84) at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175) at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153) at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874

Hamid,

This error clearly shows the argument passed to create file object is null. Can you show us the code. Also this is nothing to do with your original first application.
hamid tafreshi
Greenhorn

Joined: Sep 29, 2009
Posts: 5
Hi Balu,
I am simply create Entity class from 2 table of my database (postgres). Then I create a session bean for entity class and at the end I create a service for each session bean. I use Netbean 6.5 and Glassfish 2.X.
because the structure of both entity, sessionbean and service are same I just include one of them here to make long story short.
thanks for any help

hamid tafreshi
Greenhorn

Joined: Sep 29, 2009
Posts: 5
this is the content of sun-resources.xml file:

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
Please edit your posts to UseCodeTags. It's unnecessarily hard to read the code as it is, making it less likely that people will bother to do so.


Ping & DNS - my free Android networking tools app
hamid tafreshi
Greenhorn

Joined: Sep 29, 2009
Posts: 5
any idea?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: just firt web service is working