X

Geertjan's Blog

  • September 5, 2005

Deploying Web Service Clients to JBoss & Tomcat (Part 1)

Geertjan Wielenga
Product Manager
A problem with web service support in NetBeans IDE has been its reliance on the Sun Java System Application Server's wscompile tool. However, recently (click here) things changed so that web service clients can also be deployed to other servers, specifically, JBoss and Tomcat. But, it requires a little bit of work. (A lot of it can probably be automated via Ant scripts, but that's for another blog entry.)

Take the following steps and you too will be able to consume web services via JBoss and Tomcat:

  1. Move the following JAR files from Sun/AppServer/lib to jboss_install_dir\\server\\name_of_server\\lib (for JBoss) or nb_install_dir\\enterprise2\\jakarta-tomcat-5.5.7\\common\\lib (for Tomcat):
    activation.jar
    dom.jar
    j2ee.jar (for Tomcat only because JBoss has its own)
    jaxrpc-api.jar
    jaxrpc-impl.jar
    jhall.jar
    mail.jar
    saaj-api.jar
    saaj-impl.jar
    xercesImpl.jar

  2. If you're behind a firewall, tunnel through it in jboss_install_dir\\bin\\run.bat (for JBoss) and nb_install_dir\\enterprise2\\jakarta-tomcat-5.5.7\\bin\\catalina.bat (for Tomcat). This is how you do it:

    set JAVA_OPTS=-Dhttp.proxyHost=my.host -Dhttp.proxyPort=my.port.number

    (Actually, for Tomcat you can set the proxy in the IDE. Right-click Tomcat's node in the Runtime window, choose Properties, and use the VM Options field in the Platform tab.)

  3. Create a web service client in the IDE, but make sure that the Client Type (specified in the Web Service Client wizard) is "IDE-generated static stub" and not "J2EE Container-generated static stub". The reason for this is that JBoss doesn't handle document/literal web services so well (see here). For Tomcat, the reason for this is that it isn't a J2EE application server (it's a web server).

  4. Build the web service client using the Sun Java System Application Server. (In other words, set this server as your target server in the Run panel of the Project Properties dialog box.)

  5. Change the server to the server of your choice (i.e., either JBoss or Tomcat), again in the Run panel of the Project Properties dialog box.

  6. Run the project (right-click the project node in the IDE and choose Run Project). You'll get a message similar to the following in the Output window:

    build-impl.xml:240: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found

    Click on the link and you'll jump to this line in the Source Editor:

    <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile" classpath="${wscompile.classpath}"/>

    You don't need that line anymore, because you've already compiled the web service client. It just gets in the way when you deploy to JBoss or Tomcat. So delete the line (Ctrl-E in the line). (If you find this too clunky, just skip this step and the previous step -- and the next step -- and just manually copy the WAR file that the Sun Java System Application Server created in step 4 to JBoss or Tomcat's deployment directory. Then start the server, either inside or outside the IDE.)

  7. Run the project again.

Now the web service client deploys to JBoss or Tomcat, breaks through the firewall (if there is one and you've set the proxy as specified in step 2 above), uses the IDE-generated stubs to communicate with the web service, and displays the payload (i.e., the data returned from the web service) in the browser.

Thanks to Petr Blaha for help and patience!

Join the discussion

Comments ( 29 )
  • Geertjan Tuesday, September 6, 2005
    Update: See this issue.
  • suresh kr Tuesday, September 6, 2005
    Geertjan,
    Tried today with netbeans-4_2-daily-bin-200509041800-windows-4_Sep_2005_1800.exe
    Developed WebSErvice in SessionBean with JBoss as target server, compile with Sun as target server, copy jar file to JBoss deploy folder and the new WebService is deployed without any issues.
    Thats great.... Coool.
  • Geertjan Tuesday, September 6, 2005
    Suresh, thanks for passing this on! Good to know that it doesn't just work within this building in Prague... :-)
  • Geertjan Tuesday, September 6, 2005
    By the way, based on the issue I referred to above (here it is again), you won't have to compile with Sun as target server anymore, soon. You'll be able to keep JBoss as your target server (because the <tt>wscompile</tt> in the IDE, instead of the one provided by the Sun App Server, will be used). This also means that you'll be able to choose Run Project in the IDE, and the IDE will deploy the app to JBoss. (So, no manual copying of the archive file will need to be done.)
  • suresh kr Tuesday, September 6, 2005
    Geertjan,
    Would be great if the issue is resolved. Update this blog when it is done, i will give it a try.
  • suresh kr Tuesday, September 6, 2005
    Geertjan,
    I tried to add call to another SessionBean in ejbCreate method of Webservice SessionBean (right click on Editor-->EnterPrise Resources-->Call EnterpriseBean) after i select a SessionBean (Used Generate Inline lookupCode) and clicked ok, got the following exception
    javax.jmi.reflect.ConstraintViolationException: Cannot ask for body after the body text was changed.

    at org.netbeans.modules.javacore.jmiimpl.javamodel.BehavioralFeatureImpl.getBody(BehavioralFeatureImpl.java:130)

    at org.netbeans.jmi.javamodel.Method$Impl.getBody(Unknown Source)

    at org.netbeans.modules.javacore.jmiimpl.javamodel.MethodImpl.duplicate(MethodImpl.java:348)

    at org.netbeans.modules.j2ee.ejbcore.Utils.addReference(Utils.java:263)

    at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entres.CallEjbDialog.open(CallEjbDialog.java:109)

    at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entres.CallEjbAction.performAction(CallEjbAction.java:38)

    at org.openide.util.actions.NodeAction.performAction(NodeAction.java:255)

    at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:94)

    at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47)

    at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:90)

    at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:244)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)

    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)

    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)

    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)

    at java.awt.Component.processMouseEvent(Component.java:5488)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)

    at java.awt.Component.processEvent(Component.java:5253)

    at java.awt.Container.processEvent(Container.java:1966)

    at java.awt.Component.dispatchEventImpl(Component.java:3955)

    at java.awt.Container.dispatchEventImpl(Container.java:2024)

    at java.awt.Component.dispatchEvent(Component.java:3803)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)

    at java.awt.Container.dispatchEventImpl(Container.java:2010)

    at java.awt.Window.dispatchEventImpl(Window.java:1766)

    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)

    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
  • suresh kr Tuesday, September 6, 2005
    Raised a issue 63747 for this
  • Geertjan Tuesday, September 6, 2005
    Thanks Suresh. You got to admit that this error message is actually quite profound: "Cannot ask for body after the body text was changed." About JBoss -- I'll let you know as soon as I know more about when/where available. Thanks for your support!
  • suresh kr Tuesday, September 6, 2005
    Geertjan,
    Sorry i don't understand you. What does this mean "Cannot ask for body after the body text was changed".
    Hope it must be possible to access other Session Beans from WS SessionBeans
  • Geertjan Wednesday, September 7, 2005
    Suresh, I don't know what it means either. But I think it's an interesting message. I'll try and keep track of your issue and hope it gets resolved soon.
  • suresh kr Thursday, September 8, 2005
    Geertjan,
    Any updates on the issue i reported. There seems to be no activity on the bug i posted.
    http://www.netbeans.org/issues/show_bug.cgi?id=63747
  • Geertjan Thursday, September 8, 2005
    Suresh, if you add another comment to that issue, but this time put it like this:

    1. I did this...

    2. Then I did this...

    3. Next I did this...

    4. And then this happened...

    You will get a faster response on your issue. You've got to realize that developers are nearing the Beta release so there's not much time -- the more specific you can be, the better. If you put those steps like that in your issue, I will try and reproduce the steps myself.
  • Geertjan Thursday, September 8, 2005
    Also say what your operating system is, what JDK version, what server, etc. etc. etc.
  • suresh kr Thursday, September 8, 2005
    Geertjan,
    Thanks for the reply. I downloaded latest build netbeans-5_0-daily-bin-200509072000-windows-7_Sep_2005_2000.exe to give you step by step procedure.
    Installation was ok, but the first time i started IDE i got following exeception
    java.lang.NullPointerException

    at org.netbeans.editor.GlyphGutter.update(GlyphGutter.java:310)

    at org.netbeans.editor.GlyphGutter.<init>(GlyphGutter.java:164)

    at org.netbeans.editor.GlyphGutter.createSideBar(GlyphGutter.java:682)

    at org.netbeans.modules.editor.CustomizableSideBar.getPanelComponents(CustomizableSideBar.java:215)

    at org.netbeans.modules.editor.CustomizableSideBar.createSideBars(CustomizableSideBar.java:133)

    at org.netbeans.modules.editor.NbEditorUI.createExtComponent(NbEditorUI.java:304)

    at org.netbeans.editor.EditorUI.getExtComponent(EditorUI.java:970)
    [catch] at org.netbeans.modules.java.editor.JavaEditorWarmUpTask.run(JavaEditorWarmUpTask.java:142)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I ignored this created a EJB project to be deplyed in JBoss and created a stateless session bean.
    It was created successfully, but i cannot view the code in editor as the above exception repeats whenever i click on the created EJB node in projects tab.
    Cannot see the code at all. I can send a screen shot if you need to your email address.
    I use jdk1.5.0_01 and my OS is Win XP Profession with SP1.
    Cant proceed think i have to wait for next build..
  • Geertjan Thursday, September 8, 2005
    It's also a good idea to delete your user directory (or at least to move the old one somewhere else) with Dev builds -- some things might not load properly. So I'd advise retrying, but now with a fresh user dir. Don't know if you know what user directory is, so if you don't click here.
  • Geertjan Thursday, September 8, 2005
  • suresh kr Thursday, September 8, 2005
    Geertjan,
    Cool. I deleted user directory and reinstalled, now both the problems are resolved.
    This is just great, will close 63747.
    Thanks a lot again.
  • Geertjan Thursday, September 8, 2005
    No problem at all. Happy NetBeaning today!
  • Dru Devore Wednesday, September 21, 2005
    I was having a problem with deserialization on this tell I changed the webservice tell I removed the onewaycommunications flag. This works...Thanks
  • guest Wednesday, October 12, 2005
    hh
  • Komal Singh Friday, January 27, 2006
    Hi Geertjan,
    I've been religiously reading your blog since I'm new to web services.
    However, there is a peculiar problem I'm facing...
    1) I'm using Netbeans 5.0 with JDK1.5 and Jboss 4.0.3.
    2) I write a web service in RPC/Literal style and deploy it sucesfully on both Jboss and Sun Server.
    3) Using NetBeans IDE, I can successfully acess the web service on the Sun Server, but NOT on the Jboss Server.
    4) I have followed all steps highlighted on your blog, i.e I use Static IDE Generated Stubs and include the JAXRPC library along with modifying build.xml.
    5) The error has to do with mapping complex types, but since I can access the service on Sun server, I should be able to access on Jboss as well. Is there something wrong with the deployed service, the generated client, or me??!!
    Following is the error i get
    16:32:55,390 ERROR [BeanSerializer] Exception:
    java.io.IOException: No serializer found for class com.eyelit.view.Keys in registry org.jboss.axis.encoding.TypeMappingImpl@1c74f8d
    at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:148 at org.jboss.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:89 at org.jboss.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:31 at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:145 at org.jboss.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:89 at org.jboss.axis.message.RPCParam.serialize(RPCParam.java:26 at org.jboss.axis.message.RPCElement.outputImpl(RPCElement.java:44 at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:145 at org.jboss.axis.message.SOAPBodyAxisImpl.outputImpl(SOAPBodyAxisImpl.java:15 at org.jboss.axis.message.SOAPEnvelopeAxisImpl.outputImpl(SOAPEnvelopeAxisImpl.java:58 at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:145 at org.jboss.axis.MessagePart.writeTo(MessagePart.java:29 at org.jboss.axis.MessagePart.getAsString(MessagePart.java:59 at org.jboss.axis.MessagePart.getAsBytes(MessagePart.java:44 at org.jboss.axis.Message.getContentType(Message.java:47 at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:97 at javax.servlet.http.HttpServlet.service(HttpServlet.java:71 at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:81 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:8 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:3 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:15 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:5 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:74 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:52 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:11 at java.lang.Thread.run(Thread.java:5916:32:55,765 WARN [[MESWebService]] Servlet.service() for servlet MESWebService threw exception
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: java.io.IOException: No serializer found for class com.eyelit.view.Keys in registry org.jboss.axis.encoding.TypeMappingImpl@1c74f8d
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: java.io.IOException: java.io.IOException: No serializer found for class com.eyelit.view.Keys in registry org.jboss.axis.encoding.TypeMappingImpl@1c74f at org.jboss.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:36 at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:145 at org.jboss.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:89 at org.jboss.axis.message.RPCParam.serialize(RPCParam.java:26 at org.jboss.axis.message.RPCElement.outputImpl(RPCElement.java:44 at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:145 at org.jboss.axis.message.SOAPBodyAxisImpl.outputImpl(SOAPBodyAxisImpl.java:15 at org.jboss.axis.message.SOAPEnvelopeAxisImpl.outputImpl(SOAPEnvelopeAxisImpl.java:58 at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:145 at org.jboss.axis.MessagePart.writeTo(MessagePart.java:29 at org.jboss.axis.MessagePart.getAsString(MessagePart.java:59 at org.jboss.axis.MessagePart.getAsBytes(MessagePart.java:44 at org.jboss.axis.Message.getContentType(Message.java:47 at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:97 at javax.servlet.http.HttpServlet.service(HttpServlet.java:71 at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:81 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:8 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:3 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:15 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:5 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:74 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:52 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:11 at java.lang.Thread.run(Thread.java:59
    org.jboss.axis.AxisFault: java.io.IOException: No serializer found for class com.eyelit.view.Keys in registry org.jboss.axis.encoding.TypeMappingImpl@1c74f8d
    at org.jboss.axis.AxisFault.makeFault(AxisFault.java:9 at org.jboss.axis.MessagePart.writeTo(MessagePart.java:30 at org.jboss.axis.MessagePart.getAsString(MessagePart.java:59 at org.jboss.axis.MessagePart.getAsBytes(MessagePart.java:44 at org.jboss.axis.Message.getContentType(Message.java:47 at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:97 at javax.servlet.http.HttpServlet.service(HttpServlet.java:71 at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:81 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:8 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:17 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:3 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:15 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:5 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:74 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:52 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:11 at java.lang.Thread.run(Thread.java:59Caused by: java.io.IOException: java.io.IOException: No serializer found for class com.eyelit.view.Keys in registry org.jboss.axis.encoding.TypeMappingImpl@1c74f8d
    at org.jboss.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:36 at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:145 at org.jboss.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:89 at org.jbo
    PLEASE HELP ME IN ANY WAY U CAN. I AM APPROACHING A DEADLINE.
    YOur help is very much appreciated.
    Thank you.
    Komal
  • Geertjan Saturday, January 28, 2006
    Komal, please do NOT post long stack traces in my blog... :-) It takes up so much space and is ugly. Anyway, thanks for liking and reading my blog. I don't know the answer to your specific question, but I strongly suggest that you Google the first line of your stack trace (you'll find this helpful post, for example). Also, there are mailing lists on NetBeans website that you can write to. Finally, I suspect that the problem lies with JBoss, but I don't know for sure.
  • Komal Singh Saturday, January 28, 2006
    Sorry Geertjan, I didn't realise I was sending the whole stack. It does look ugly! Thanks for your reply, I've posted the question on some other forums.
    Best,
    Komal
  • Komal Sunday, January 29, 2006
    Hi again Geertjan,
    I've realise that the issue in general is with returning complex types on JBoss. Whenever I try to return a class/object I get an error message "Unable to internalize message". However, the same service works just fine on Sun Server. Is Jboss expecting additional tags in the mapping file?
    Thanks for your help.
    KOmal
  • Ranvir Sunday, May 7, 2006
    I need help trying to test a webservice using Netbeans 5.0 and JBoss 4.0. I am not behind proxy and my home machine is connected to internet using basic firewall.
    I am neither able to run it on server nor able to create web service client. I get the following error---
    InvocationTargetException org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) Next Exception Layer null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) Next Exception Layer Endpoint cannot handle requests in state: CREATED com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:510) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307) webservice.HiWSSEI_Stub.sayHi(HiWSSEI_Stub.java:69) webservice.HiWSClient.hiwsseiportSayHi(HiWSClient.java:22) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
    -----------------
  • kvdg Wednesday, September 27, 2006
    Thanks for the good help above to use a webservice in netbeans deployed in tomcat.
    I hava a problem: netbeans generated following code:
    package.Ivatservice ivatservice = new package.Ivatservice_Impl();
    package.Ivat ivatPort = vatservice.getIvatPort();
    String result = Double.toString(ivatPort.echoDouble(12.50));
    System.out.println(result);
    When I try to run this the program terminates on de first line. Can anybody help me to solve this problem?
  • trivedi Monday, October 16, 2006
    Hi,
    I am facing problem in deploying webservices in jboss-4.0.4.GA. I have created the webservice in Netbeans 5.0, but when deploying i am getting the following error:
    org.jboss.ws.WSException: Cannot load java type: com.trivedi.WSTestSEI_testService_RequestStruct
    But the same thing is working on SUN App server. I configured my netbeans IDE with both app servers, but able to run it on sun's App server.
    I was also searched for similar error in google, but couldnt able to find solution. Pls help me on this. It would be great help if i get solution.
    Thanks,
    Trivedi
  • Jairaj Wednesday, November 1, 2006
    I'm getting the same problem as trivedi on Netbeans 5.5 and jboss-4.0.5.GA.
    I would also appreciate any help, thanks
  • Geertjan Wednesday, November 1, 2006
    Please write to nbj2ee@netbeans.org with this question. Thank you.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.