Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am building a simple test application, which has GWT client as front end. I am using JBOSS as my application server and there are remote services running on JBOSS. Eclipse is my development environment.

While I try and call a simple hello method of JBOSS remote interface through eclipse it works fine the JNDI lookup works fine and the method of remote interface gets invoked properly.

While I deploy the business layer on JBOSS and keep the GWT application running from Eclipse and at that time also JNDI lookup works fine and the method of remote interface gets invoked properly.

In the third case I deploy the web application on Tomcate and business layer on JBOSS, in that case the JNDI lookup works fine but the problem is when I try to invoke the method of remote interface I get following error.

Following is my simple code.

=================== Code ===================================

try { GreetingServiceBI bi = (GreetingServiceBI) ServiceLocator.getInstance().getRemoteService(GreetingServiceBI.class);

System.out.println("BI Initialized.");


msg = bi.sayHi(input);

System.out.println("BI said Hi");

} catch (NamingException e) { e.printStackTrace(); }

The exception which I get while running this code from Tomcat I get the Message BI Initialized Class $Proxy2 After that I get error from Tomcat Log

================== Exception ======================================= Oct 21, 2010 3:24:53 PM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call Service method 'public abstract java.lang.String com.client.GreetingService.greetServer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.reflect.UndeclaredThrowableException at at at at at at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( at$ at Source) Caused by: java.lang.reflect.UndeclaredThrowableException at $Proxy7.sayHi(Unknown Source) at com.server.GreetingServiceImpl.greetServer( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at ... 17 more Caused by: java.lang.reflect.InvocationTargetException at Method) at at at org.jboss.aop.joinpoint.MethodInvocation.invokeNext( at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke( at org.jboss.aop.joinpoint.MethodInvocation.invokeNext( at org.jboss.aspects.remoting.PojiProxy.invoke( at $Proxy8.invoke(Unknown Source) at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke( at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke( ... 24 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at at at$ ... 34 more Caused by: java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContextException at ... 41 more Caused by: java.lang.ClassNotFoundException: at org.apache.catalina.loader.WebappClassLoader.loadClass( at org.apache.catalina.loader.WebappClassLoader.loadClass( ... 42 more

====================================== I think that this is configuration issue but I am not able to figure out.

I am in middle of a production cycle and I am stuck up.

Thanks in Advance.

share|improve this question

Root exception is java.lang.ClassNotFoundException:

This class is found in JEE jars like in this list.

Suggest you try to download and put client.jar or jacc-1_0.jar in TOMCAT_HOME/lib if Tomcat6 or in TOMCAT_HOME/server/lib if Tomcat 5.5

share|improve this answer
Thanks a lot man this worked out for me and we are now much relieved. – Kuntal Shah Oct 26 '10 at 8:05
@Kuntal Shah: Great, you could accept the answer then - that is good for both of us ;) – JoseK Oct 26 '10 at 8:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.