Problem deploying onto Websphere Server

709 views
Skip to first unread message

Frank

unread,
Aug 1, 2006, 1:39:00 PM8/1/06
to Google Web Toolkit
I'm currently trying to use GWT to handle the ui logic part of my web
application. I have already created a successful gwt project using the
application and project creator, and I have tested the use of RPC in
it. Everything works nicely within the Hosted mode (google browser),
but I want to deploy my application onto an Websphere application
server. I've tried to use Luca's tutorial on using struts to apply it
to my problem
(http://jroller.com/page/masini?entry=deploy_and_debug_google_web) ,
but it doesn't seem to work. I am able to access my ajax page, but
when I try to call a RPC to the server, i get the error


websphere Error 404: No target servlet configured for uri:
myRemoteService

Seems like my servlet isn't being registered correctly... Can anyone
help me out with this? Thanks

here is my web.xml file

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
WebProj</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>Inventory.html</welcome-file>
</welcome-file-list>


<servlet>
<servlet-name>myRemoteService</servlet-name>
<servlet-class>com.merck.server.MyServicesImpl</servlet-class>
</servlet>

<servlet>
<servlet-name>MyServices</servlet-name>
<servlet-class>com.merck.server.MyServicesImpl</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>myRemoteService</servlet-name>
<url-pattern>/com.merck.GWTClient/myRemoteService</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>MyServices</servlet-name>
<url-pattern>/com.merck.GWTClient/myServices</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>gwt-hosted</servlet-name>
<jsp-file>/WEB-INF/jsp/gwt-hosted.jsp</jsp-file>
</servlet>

<servlet-mapping>
<servlet-name>gwt-hosted</servlet-name>
<url-pattern>/com.merck.GWTClient/gwt-hosted.html</url-pattern>
</servlet-mapping>

</web-app>

Daryl

unread,
Aug 1, 2006, 6:35:26 PM8/1/06
to Google Web Toolkit
I tried something similar with an example I found at
http://www.devx.com/webdev/Article/31868/0/page/1 however it fails with
a LinkageError when attempting to load the RPC servlet. I tried to
compile the source and found numerous classes that failed becuase it
needs JDK 1.4 classes (example IdentityHashmap). So unless you can
figure a way to replace the IBM 1.3 JDK you are out of luck.

mP

unread,
Aug 2, 2006, 4:45:31 AM8/2/06
to Google Web Toolkit
Given that you have the source it wouldnt be too hard to substitute 1.4
classes such as IdentityHashMap with a replacement such as jakarta's
equivalent class. I catn remember exactly which sub-project it is...

Dion Gillard

unread,
Aug 2, 2006, 6:30:29 AM8/2/06
to Google-We...@googlegroups.com
The error message is referring to the URI:

myRemoteService

You've configured the servlet URL pattern to be:

/com.merck.GWTClient/myRemoteService

They don't match.


--
http://www.multitask.com.au/people/dion/
"If you even dream of beating me you'd better wake up and apologize" -
Muhammad Ali

Frank

unread,
Aug 2, 2006, 11:40:01 AM8/2/06
to Google Web Toolkit

Thanks! i fixed it and now I know longer get that error....
However now my RPC call isn't getting returned successfully to my html
Page.
When i launch an rpc, the server succesfully receives the call(
observed this in debug mode),
and my server sends a return back to the page, however, the page never
gets the result back...
in fact there is an error thrown.


com.google.gwt.user.client.rpc.InvocationException: <H1>SRVE0232E:
Internal Server Error. <br> Exception Message:
[null]</H1><BR><H3>null</H3><BR><I>IBM WebSphere Application Server</I>


[02/08/06 11:37:50:688 EDT] 0000002b WebContainer E SRVE0232E:
Internal Server Error. <br> Exception Message:
[java.lang.NullPointerException
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.setDefaultResponseEncoding(SRTServletResponse.java:610)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.start(SRTServletResponse.java:494)
at
com.ibm.ws.webcontainer.srt.SRTConnectionContext.start(SRTConnectionContext.java:48)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1654)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

Reply all
Reply to author
Forward
0 new messages