Re: [jboss-user] [JBoss Microcontainer] - ClassLoading delegation
by Ales Justin
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"ClassLoading delegation"
To view the discussion, visit: http://community.jboss.org/message/543031#543031
--------------------------------------------------------------
> Yeah, I could make my container's parent domain point to the target application's domain. The problem is I can't change anything at target application bundle.
No, just the other way around.
Your app's parent should be container's domain.
> Is there some documentation about these demos? I ran it and got:
My first article on DZone has some very simple instructions on how to set it up:
* http://java.dzone.com/articles/jboss-microcontainer-scanning http://java.dzone.com/articles/jboss-microcontainer-scanning (see Part 1)
> java.lang.NoClassDefFoundError: org/jboss/kernel/plugins/bootstrap/basic/BasicBootstrapat org.jboss.demos.bootstrap.Main.configure(Main.java:109)
> at org.jboss.demos.bootstrap.Main.main(Main.java:54)
> at org.jboss.demos.bootstrap.Main.main(Main.java:48)
> Caused by: java.lang.ClassNotFoundException: org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
>
>
> Looks like a Microcontainer class. Reading the docs, seems Microcontainer doesn't have a binary release yet..
There should be no problems running this from IDE.
All MC binaries are in our maven repository.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543031#543031]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [JNDI and Naming] - EJB 3.1 @Singleton remote access
by Christian Tre
Christian Tre [http://community.jboss.org/people/RET] replied to the discussion
"EJB 3.1 @Singleton remote access"
To view the discussion, visit: http://community.jboss.org/message/543030#543030
--------------------------------------------------------------
ouch :| maybe im too new to this stuff and should read the basics again ^^ thx
i repacked the ejb-jar.xml (which only contains the display-name)
and now get Exception when deploying:
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=portal.ear,jar=ejb3.jar,name=ParameterHolderImpl,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=portal.ear,jar=ejb3.jar,name=ParameterHolderImpl,service=EJB3" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=portal.ear,jar=ejb3.jar,name=ParameterHolderImpl,service=EJB3' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:ear=portal.ear,jar=ejb3.jar,name=ParameterHolderImpl,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=portal.ear,jar=ejb3.jar,name=ParameterHolderImpl,service=EJB3' **
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543030#543030]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [JNDI and Naming] - EJB 3.1 @Singleton remote access
by Christian Tre
Christian Tre [http://community.jboss.org/people/RET] replied to the discussion
"EJB 3.1 @Singleton remote access"
To view the discussion, visit: http://community.jboss.org/message/543024#543024
--------------------------------------------------------------
The ear is packed as following
+ META-INF
| | ejb-jar.xml
| | MANIFEST.MF
| log4j.properties
| ejb3.jar
| + META-INF
| | MANIFEST.MF
| | persistence.xml
| + de
| + xxx
| | + business
| | + service
| | | BaseEntityService.class
| | | BaseEntityServiceImpl.class
| | + core
| | | CompanyServiceImpl.class
| | | ParameterHolderImpl.class
| | | ParameterServiceImpl.class
| | + interceptor
| | | | ParameterReloader.class
| | + interfaces
| | | CompanyService.class
| | | CompanyServiceLocal.class
| | | ParameterHolder.class
| | | ParameterHolderLocal.class
| | | ParameterService.class
| | | ParameterServiceLocal.class
| | + persistence
| | + entity
| | | | BaseEntity.class
| | | | Entity.class (Interface)
| | | + core
| | | | Company.class
| | | | Parameter.class
| | + utils
| | | .... unimportant
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543024#543024]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [JNDI and Naming] - EJB 3.1 @Singleton remote access
by jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"EJB 3.1 @Singleton remote access"
To view the discussion, visit: http://community.jboss.org/message/543017#543017
--------------------------------------------------------------
> java.lang.RuntimeException: java.lang.ClassNotFoundException: de.xxx.persistence.entity.core.Company (no security manager: RMI class loader disabled) at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:318) at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.dynamicInvoke(AOPBasedSingletonContainer.java:331) at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53) at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91) at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) at
Looking at this stacktrace, the ClassNotFoundException is on the server side. So where exactly is the de.xxx.persistence.entity.core.Company class (the jar containing that class) placed on the server? How is your application packaged and deployed on the server (jar/ear)?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543017#543017]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [JNDI and Naming] - EJB 3.1 @Singleton remote access
by Christian Tre
Christian Tre [http://community.jboss.org/people/RET] replied to the discussion
"EJB 3.1 @Singleton remote access"
To view the discussion, visit: http://community.jboss.org/message/543016#543016
--------------------------------------------------------------
the root problem described in the 1st post is solved, it was the import of the client-jars from JBoss.
but i dont have a clue about the 2nd problem.
imho the situation is the following (i assume):
Client knows his Classes (also Entities, because would have crashed earlier).
Server knows his classes too (same as above).
at the call with the company as argument client tries to marshal company c with classes of JBoss but did not get access via RMI (i dont know WHY the JBoss tries to return a class to the client, because the client have these class and my entity implements Serializable).
Full Stacktrace:
java.lang.RuntimeException: java.lang.ClassNotFoundException: de.xxx.persistence.entity.core.Company (no security manager: RMI class loader disabled)
at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:318)
at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.dynamicInvoke(AOPBasedSingletonContainer.java:331)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Caused by: java.lang.ClassNotFoundException: de.xxx.persistence.entity.core.Company (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:309)
at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.dynamicInvoke(AOPBasedSingletonContainer.java:331)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:213)
at org.jboss.remoting.Client.invoke(Client.java:1927)
at org.jboss.remoting.Client.invoke(Client.java:770)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy6.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:188)
at $Proxy5.get(Unknown Source)
at de.xxx.test.CoreServicesRemoteTest.testCompanyCreate(CoreServicesRemoteTest.java:39)
at de.xxx.test.CoreServicesRemoteTest.main(CoreServicesRemoteTest.java:50)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy6.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:188)
at $Proxy5.get(Unknown Source)
at de.xxx.test.CoreServicesRemoteTest.testCompanyCreate(CoreServicesRemoteTest.java:39)
at de.xxx.test.CoreServicesRemoteTest.main(CoreServicesRemoteTest.java:50)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543016#543016]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months