Hi Norman,

1) As you see in your log -> java.lang.NoClassDefFoundError:
sung/app/kylintv/product/Product , one of your Classes or package can't be
found by the server runtime.

Are you sure that your *.war is well generated ?

Open your *.war with a ZIP utility tool and check if there is a
'Product.class' and 'sung.app.kylintv.product' package. Sometimes Eclipse
War exportation tool don't include package or classes with compilation
warnings.

2) Of course GWT applications work with EJB...So in my opinion EJBs are not
the problem.

You'll tell me later.

I hope it helps.

Karim Duran.








2011/9/15 Norman Klingspor <[email protected]>

> Hello,
>
> I'm trying to establish a shop-system through gwt. In Ecplise running
> on jBoss 6.1.0.Final, GWT 2.4
>
> In my first approach I wanted to integrate my ejb-structures from the
> originial project. As a result I:
>
> 1.) created a <shop>.ejb project and integrated all classes relevant
> from my original project
> 2.) created a <shop>.gwt project, build first page, one button:
> establish database (which is implemented in my class ProductHome.java)
> 3.) adding an interface Product for ProductHome
> 4.) added my <shop>.ejb-project into my build-path, added the
> generated jar-file to the deployf-folder WEB-INF/classes by hand
> additionally
> 5.) build the Service DatabaseBuilderService (incl
> DatabaseBuilderServiceImpl and DatabaseBuilderServiceAsync)
> 6.) deployed the complete war-folder to jBoss into <shop>.gwt.war
>
> The page is build, and I can reach my side, pressing the button to
> start my function in <shop>.ejb CreateDefaultDatabase().
>
> In debug I reached the server-code-line, where the external function
> should be called.
>
> But in jBoss there still occurs this Error:
>
> 2011-09-15 17:17:26,324 ERROR [org.apache.catalina.core.ContainerBase.
> [jboss.web].[localhost].[/kylintv.gwt]] (http-127.0.0.1-8080-2)
> Exception while dispatching incoming RPC call:
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract boolean
>
> sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()'
> threw an unexpected exception: java.lang.NoClassDefFoundError: sung/
> app/kylintv/product/Product
>        at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 385) [:]
>        at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 588) [:]
>        at
>
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 208) [:]
>        at
>
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> 248) [:]
>        at
>
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> 62) [:]
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:
> 1.0.0.Final]
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:
> 1.0.0.Final]
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 324) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>        at
>
> org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:
> 67) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 274) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 275) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 161) [:6.1.0.Final]
>        at
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
> 181) [:6.1.0.Final]
>        at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
>        at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
>        at
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
> 88) [:6.1.0.Final]
>        at
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
> 100) [:6.1.0.Final]
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 159) [:6.1.0.Final]
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 102) [:6.1.0.Final]
>        at
>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
> 158) [:6.1.0.Final]
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109) [:6.1.0.Final]
>        at
>
> org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:
> 53) [:6.1.0.Final]
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 362) [:6.1.0.Final]
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 877) [:6.1.0.Final]
>        at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:654) [:
> 6.1.0.Final]
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 951) [:6.1.0.Final]
>        at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
> Caused by: java.lang.NoClassDefFoundError: sung/app/kylintv/product/
> Product
>        at
>
> sung.app.kylintv.gwt.server.DatabaseBuilderServiceImpl.createDefaultDatabaseEntries(DatabaseBuilderServiceImpl.java:
> 24) [:]
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:
> 1.6.0_25]
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39) [:1.6.0_25]
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25) [:1.6.0_25]
>        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25]
>        at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 569) [:]
>        ... 27 more
> Caused by: java.lang.ClassNotFoundException:
> sung.app.kylintv.product.Product from BaseClassLoader@788370f8{vfs:///
> D:/Development/jboss-6.1.0.Final/server/default/deploy/
> kylintv.gwt.war}
>        at
>
> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:
> 480) [jboss-classloader.jar:2.2.1.GA]
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_25]
>        ... 33 more
>
> ----
> Am I missing something? In case: what? Do you need further information
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to