-
1. Re: 5.0.1 - not listening on 1099 (jnp port)
jaikiran Apr 29, 2010 7:59 AM (in response to saleem1209)Saleem Dawoodi wrote:
Hi
I am in a process of migrating from 4.0.3SP1 to 5.0.1GA. I have dropped my ear file and started the server but jnp port doesnt seem to be listening for some reason.
How did you check that? Also what exact command are you using to start the server?
By the way, the latest stable release is 5.1.0, so you might want to use that version.
-
2. Re: 5.0.1 - not listening on 1099 (jnp port)
saleem1209 Apr 30, 2010 12:47 AM (in response to jaikiran)I am at present using 4.0.3.SP1 and log does show 1099 used during startup. I didnt see that and also when I ran the app the client couldnt get to server and thought server is not listening on 1099. I was a bit suspicious of ServiceBindings also.
However this is not the case and its listening on 1099 after having comfirmed via multiple methods including netstat -a -n -o.
Its failing on initializing client spring context specifically initializing SimpleRemoteStatelessSessionProxyFactoryBean for an EJB (v2) on the server. Here is the exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'advertServer' defined in class path resource [ClientBigKevApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: 21
java.lang.ArrayIndexOutOfBoundsException: 21
at org.jboss.invocation.InvocationKey.readResolve(InvocationKey.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1033)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1875)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1837)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1875)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:71)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:106)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.lookup(AbstractRemoteSlsbInvokerInterceptor.java:93)
at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.refreshHome(AbstractSlsbInvokerInterceptor.java:102)
at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.afterPropertiesSet(AbstractSlsbInvokerInterceptor.java:90)
at org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean.afterPropertiesSet(SimpleRemoteStatelessSessionProxyFactoryBean.java:95)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:57)
at com.yoogalu.advert.framework.util.AppContext.init(AppContext.java:43)
at com.yoogalu.advert.uicontroller.app.AdvertClient.systemSetup(AdvertClient.java:309)
at com.yoogalu.advert.uicontroller.app.AdvertClient.runClient(AdvertClient.java:163)
at com.yoogalu.advert.uicontroller.app.AdvertClient.main(AdvertClient.java:77)Appreciate any help.
Cheers,
Sd.
-
3. Re: 5.0.1 - not listening on 1099 (jnp port)
saleem1209 Apr 30, 2010 12:50 AM (in response to saleem1209)Add to that, I have tried both 5.0.1GA and 5.1.0GA.
-
4. Re: 5.0.1 - not listening on 1099 (jnp port)
c4siva Nov 22, 2011 11:51 AM (in response to saleem1209)HI Saleem,
I am also facing the same issue and struggling hard to fix this.
Please let us know what needs to be done to get this issue resolved.
-
5. Re: 5.0.1 - not listening on 1099 (jnp port)
gmanoj77 Apr 25, 2012 10:32 AM (in response to c4siva)has any one found a solution to this problem? I am also facing the same problem while migrating a swing application from jaboss 4.0.4 to jboss 5.1.0
Many Thanks
-
6. Re: 5.0.1 - not listening on 1099 (jnp port)
periklis_douvitsas May 31, 2012 8:38 AM (in response to saleem1209)Hi.
I am not sure if what i will say is going to help you
This is what i did when i wanted to migrate my application from jboss 4 to jboss 6 concerning the ejb 2
I opened the jar files that they had the ejb 2
I modified the file META-INF\boss.xml
In the whole file i put the the local-jndi-name first and then the configuration-name.
for example
<entity>
<ejb-name>exampleEJB</ejb-name>
<local-jndi-name>cm/ejb/exampleEJB</local-jndi-name>
<configuration-name>CMP 2.x and Cache</configuration-name>
</entity>
After doing this, i unzipped the jar and put in the deploy directory of jboss
if the name of the jar was bla.bla.bla.bla.bla.jar i unzipped it and put it here
\jboss-6.1.0.Final\server\default\deploy\bla.bla.bla.bla.bla
Hope this helps