[JBoss AOP] - NoClassDefFoundError HeirarchicalLoaderRepository3
by wallayta
I was using JBoss AOP load-time with JDK1.4. Now trying to use it with jrockit-R26.4.0-jdk1.5.0_06 I get the following error :
java.lang.NoClassDefFoundError: org/jboss/mx/loading/HeirarchicalLoaderRepository3 at org.jboss.aop.deployment.JBossScopedClassLoaderHelper.isScopedClassLoader(JBossScopedClassLoaderHelper.java:64) at org.jboss.aop.deployment.JBossScopedClassLoaderHelper.ifScopedDeploymentGetScopedParentUclForCL(JBossScopedClassLoaderHelper.java:44) at org.jboss.aop.AspectManager.instance(AspectManager.java:334) at org.jboss.aop.deployment.AspectManagerService$1.transform(AspectManagerService.java:216)
I have download jboss-aop_1.5.2GA and I'm using jbossas-4.0.5GA.
I've tried pluggable-implementor.jar and jrockit-pluggable-implementor.jar from lib-50 but none is working.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992548#3992548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992548
19 years, 4 months
[Security & JAAS/JBoss] - Getting Exception while trying to access a Stateless EJB in
by dvuday
Hi...
I am trying to access a Stateless EJB
I am getting an Exception when trying to access the EJB which is deployed in the jboss server.
==========================================
The client program from which I tried to access is :
==========================================
package client;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import examples.ejb21.Hello;
import examples.ejb21.HelloHome;
public class HelloClient
{
public static void main (String args[])throws Exception
{
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
props.put(Context.PROVIDER_URL,"jnp://localhost:8080");
Context ctx = new InitialContext(props);
Object obj = ctx.lookup("HelloHome");
HelloHome home = (HelloHome)PortableRemoteObject.narrow(obj, HelloHome.class);
Hello hello = home.create();
System.out.println(hello.hello());
hello.remove();
}
}
=============================================================================================
The Exception I got is
javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.io.StreamCorruptedException: invalid stream header]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:69)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at client.HelloClient.main(HelloClient.java:30)
Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:119)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:65)
... 5 more
Exception in thread "main"
========================================================================
Can anybody help me to come out of this Exception??
Thanks in advance
Uday
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992542#3992542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992542
19 years, 4 months