Hi, 
I am trying to deply and run my application in Jboss. I am migrating my 
application from weblogic to Jboss.
I am using EJB1.x and I would like to know if I need to make specific changes 
in the xml files to support EJB1.x as I see that EJB3.x is used in the recent 
versions.
Anyway, I am getting the following error when the application hits one of the 
beans while logging in.

15:29:58,640 ERROR [STDERR] javax.naming.NameNotFoundException: UserProfile not
bound
15:29:58,640 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(Naming
Server.java:529)
15:29:58,640 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(Naming
Server.java:537)
15:29:58,640 ERROR [STDERR]     at org.jnp.server.NamingServer.getObject(NamingS
erver.java:543)
15:29:58,640 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServ
er.java:296)
15:29:58,640 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
15:29:58,640 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
15:29:58,640 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
15:29:58,640 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:5
85)
15:29:58,640 ERROR [STDERR]     at sun.rmi.server.UnicastServerRef.dispatch(Unic
astServerRef.java:294)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.Transport$1.run(Transport.j
ava:153)
15:29:58,640 ERROR [STDERR]     at java.security.AccessController.doPrivileged(N
ative Method)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.Transport.serviceCall(Trans
port.java:149)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.tcp.TCPTransport.handleMess
ages(TCPTransport.java:466)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.tcp.TCPTransport$Connection
Handler.run(TCPTransport.java:707)
15:29:58,640 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.StreamRemoteCall.exceptionR
eceivedFromServer(StreamRemoteCall.java:247)
15:29:58,640 ERROR [STDERR]     at sun.rmi.transport.StreamRemoteCall.executeCal
l(StreamRemoteCall.java:223)
15:29:58,640 ERROR [STDERR]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.j
ava:126)
15:29:58,640 ERROR [STDERR]     at org.jnp.server.NamingServer_Stub.lookup(Unkno
wn Source)
15:29:58,640 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(Namin
gContext.java:627)
15:29:58,640 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(Namin
gContext.java:589)
15:29:58,640 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialCon
text.java:351)
15:29:58,640 ERROR [STDERR]     at ru.ibs.xbcat.view.bean.UserAccount.getUserId(
UserAccount.java:232)

The server log gives me the following details:

2008-03-03 15:27:10,156 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.j2ee:service=EjbModule,module=dascEJB.jar
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.EjbModule] Starting 
jboss.j2ee:service=EjbModule,module=dascEJB.jar
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.EjbModule] startService, starting 
container: UserProfile
2008-03-03 15:27:10,156 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] 
Starting jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] Begin 
java:comp/env for EJB: UserProfile
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] TCL: 
[EMAIL PROTECTED]
2008-03-03 15:27:10,156 DEBUG [org.jboss.ejb.StatelessSessionContainer] Unable 
to retrieve orbjavax.management.InstanceNotFoundException: 
jboss:service=CorbaORB is not registered.
2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding 
an EJBReference EJB/UserProfileHome
2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding 
EJB/UserProfileHome to ejb-link: UserProfile -> UserProfile
2008-03-03 15:27:10,171 DEBUG [org.jboss.ejb.StatelessSessionContainer] End 
java:comp/env for EJB: UserProfile
2008-03-03 15:27:10,171 DEBUG 
[org.jboss.ejb.plugins.local.BaseLocalProxyFactory] UserProfile cannot be 
Bound, doesn't have local and local home interfaces
2008-03-03 15:27:10,171 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.j2ee:service=EJB,plugin=pool,jndiName=local/[EMAIL PROTECTED]
2008-03-03 15:27:10,171 DEBUG 
[org.jboss.ejb.plugins.StatelessSessionInstancePool] Starting 
jboss.j2ee:service=EJB,plugin=pool,jndiName=local/[EMAIL PROTECTED]

I have the following entries made in the xmls.

Ejb-jar.xml:

            
            <ejb-name>UserProfile</ejb-name>
            <ejb-ref>
                    <ejb-ref-name>EJB/UserProfileHome</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
                    ru.ibs.xbcat.model.EJB.UserProfileHome            
                    ru.ibs.xbcat.model.EJB.UserProfile
                    <ejb-link>UserProfile</ejb-link>
            </ejb-ref>
            <ejb-class>ru.ibs.xbcat.model.EJB.UserProfileEJB</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
        

Jboss.xml:


        <ejb-name>UserProfile</ejb-name>
        <ejb-ref>
                <ejb-ref-name>EJB/UserProfileHome</ejb-ref-name>
                <jndi-name>UserProfile</jndi-name>
        </ejb-ref>
    

Jboss-web.xml:

    <ejb-ref>
            <ejb-ref-name>EJB/UserProfileHome</ejb-ref-name>
            <jndi-name>UserProfile</jndi-name>
    </ejb-ref> 

Web.xml:
        
<ejb-ref>
         <ejb-ref-name>EJB/UserProfileHome</ejb-ref-name>
         <ejb-ref-type>Session</ejb-ref-type>
         ru.ibs.xbcat.model.EJB.UserProfileHome            
         ru.ibs.xbcat.model.EJB.UserProfile
         <ejb-link>UserProfile</ejb-link>
 </ejb-ref>

I am not sure what is causing the problem. I am not sure if the jndi name has 
to be altered.
Kindly let me know.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134694#4134694

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134694
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to