[Installation, Configuration & DEPLOYMENT] - JBoss deployment problem
by leileicici
Hi experts
I am using Jboss 4.2.2.GA to deploy my java ee program but suddenly today the error msg came out when i deploy it. (Previously the program can be deployed correctly). Here is the error msg:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,unitName=EVSEntApp-ejbPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=DefaultEVS,service=DataSourceBinding
ObjectName: persistence.units:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,unitName=EVSEntApp-ejbPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=DefaultEVS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=BankAccountFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=ComModuleFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=ComModuleTypeFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=MeterFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=MeterGroupFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=MeterGroupMemberFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=MeterStatusFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=MeterTypeFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=OfferDetailFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=OfferFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=PremiseFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=PremiseTypeFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=EnergyFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=AccessRightFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=AccessRightListFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=CustomerFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=OperatorFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=PageParaFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=PageParaListFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=RetailerFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=UserAccountFacade,service=EJB3
jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=WorkgroupFacade,service=EJB3
ObjectName: jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=BankAccountFacade,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,unitName=EVSEntApp-ejbPU
ObjectName: jboss.j2ee:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,name=ComModuleFacade,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:ear=EVSEntApp.ear,jar=EVSEntApp-ejb.jar,unitName=EVSEntApp-ejbPU
-----------------
the error msg saying I did not install DataSourceBinding...but previously the whole deployment was ok and the system was running also.
-----------------
Here is my hsqldb-ds.xml portion:
<!-- Oracle -->
<local-tx-datasource>
<jndi-name>DefaultEVS</jndi-name>
<connection-url>jdbc:oracle:thin:@127.0.0.1:1521:evs</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>evs</user-name>
evs
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements/>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<type-mapping>Oracle10gXEr2</type-mapping>
</local-tx-datasource>
<!-- end of Oracle -->
Before this error came out, I did changes for the connection-url, changed the IP 127.0.0.1 to other IP as I wanted to connect to a database sitting on other PC, and after It was working well after I did the change. But when I continue my programming work for a while this msg out when i deploy... really headache...
Any idea of it??
Tks alot for ur kindest help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147584#4147584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147584
16 years, 5 months
[EJB 3.0] - Re: Why is Remote Interface not installed
by baumar
Hi,
Sorry to forget this, I was too straight.
(My analysis was: the NamingException is due to the ClassNotFoundException: The class of the remote interface cannot be found because it is not there, as it shows in the JMX-console. But maybe that analysis is already wrong...)
The code for the client is:
public class PersonFeederClient {
| public static void main(String[] args) {
| Properties props =null;
| InitialContext context = null;
| // get context
| props = new Properties();
| props.put("java.naming.factory.initial",
| "org.jnp.interfaces.NamingContextFactory");
| props.put("java.naming.factory.url.pkgs",
| "org.jboss.naming:org.jnp.interfaces");
| props.put("java.naming.provider.url", "jnp://localhost:1099");
| try {
| context = new InitialContext(props);
| } catch (NamingException e) {
| System.out.println("could not get context, exit.");
| e.printStackTrace();
| System.exit(0);
| }
|
|
| PersonHandlerRemote phr = null;
| try {
| phr = (PersonHandlerRemote) context.lookup("PersonHandlerBean/remote");
| } catch (NamingException e) {
| System.out.println("could not get PersonHandlerRemote, exit.");
| e.printStackTrace();
| System.exit(0);
| }
| System.out.println("methods in PersonHandlerRemote: ");
| for (Method method : phr.getClass().getMethods()) {
| System.out.println(method.getName());
| }
| // create a list of persons
|
| Person smith = new Person();
| smith.initAll(1, "John", "Smith");
|
| phr.addPerson(smith);
| phr.printAllPerson("added Smith:");
| System.out.println();
|
| phr.deletePerson(smith);
| phr.printAllPerson("deleted Smith");
| System.out.println();
| }
|
And the stacktrace is:
could not get PersonHandlerRemote, exit.
| javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(Unknown Source)
| at com.informationcontrol.forumorganizer.client.PersonFeederClient.main(PersonFeederClient.java:36)
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.createProxy(Unknown Source)
| at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
| at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
| at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
| ... 4 more
| Caused by: java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor;
| at java.net.URLClassLoader$1.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(Unknown Source)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
| at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
| at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
| at java.io.ObjectInputStream.readClassDesc(Unknown Source)
| at java.io.ObjectInputStream.readArray(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.readObject(Unknown Source)
| at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
| at java.io.ObjectInputStream.readExternalData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.readObject(Unknown Source)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
| at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:48)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
| ... 9 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147571#4147571
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147571
16 years, 5 months