tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pae Choi" <paec...@earthlink.net>
Subject Re: Tomcat and Sun J2EE
Date Sat, 15 Jul 2000 19:15:54 GMT
Peter,

Then, are you trying to use the Tomcat to handle the WAR part
of J2EE Server and use the J2EE Server only for Apllication
Server? If so, couldn't we just put your Servlet in the context of
Tomcat and deply your Enterprise Bean JAR? Let me know
how it goes.

Pae



>Hello Pae,
>
>you are right, within Suns J2EE the example work.
>But i still cannot get the remote reference within my
>Tomcat.
>I hope i will figure it out soon.
>
>Thank you very much,
>
>Peter
>
>-----Ursprüngliche Nachricht-----
>Von: Pae Choi [mailto:paechoi@earthlink.net]
>Gesendet: Freitag, 14. Juli 2000 22:04
>An: tomcat-user@jakarta.apache.org
>Betreff: Re: Tomcat and Sun J2EE
>
>
>Hello Peter,
>
>I have tested your stuffs. And it seems running just fine. I guess
>I have failed to re-produce the problem case. I have attached the
>Result Output HTML from your Servlet. And the output to the console
>as:
>
>------ Hello.setSessionContext executing : ------
>------ Hello.ejbCreate executing : ------
>
>I am thinking that the problem described below may coming out
>from the environment configuration. This is tested solely with
>J2EE, not the Tomcat independently.
>
>This is what I found out so far.
>
>
>Pae
>
>
>
></Peter>
>Hello Pae,
>
>thanks for your response.
>I attached a simple example.
>I have the same problem with it as with
>my complex EJB. It throws the same exception.
>
>Thanks
>
>Peter
></Peter>
>-----Ursprüngliche Nachricht-----
>Von: Pae Choi [mailto:paechoi@earthlink.net]
>Gesendet: Freitag, 14. Juli 2000 13:48
>An: tomcat-user@jakarta.apache.org
>Betreff: Re: Tomcat and Sun J2EE
>
>
>Peter,
>
>Now I have better understanding. By just looking at the error messages
>it is not easy to determine the cause of problem. If you provide the
>source code for Servlet, 3 EJB files(HOME, Remote Object, and its
>Iterface), I will test and see how it comes out. Please make them short
>and trim the Business Logic portion in your code. So, no one is going
>to after for us. :-)
>
>
>Pae
>
>
>
>>Hello Pae,
>>
>>we are trying to use tomcat as our primary servlet-engine
>>and we want all of our buisseneslogic to reside within EJBs.
>>
>>As we have not decided yet what product we will use for EJB (maybe EJBoss,
>>JonAS ...)
>>we use the J2EE ref. impl. from Sun during our test.
>>
>>Both environments Tomcat and J2EE run on the same machine.
>>My Problem is, that i cannot request a remote reference for a EJB.
>>When the initial context executes a lookup i always get a error message
>(see
>>below).
>>I have no idea what the problem is.
>>I have also a stand-alone client application that works perfectly.
>>
>>Thanks
>>
>>Peter
>>
>>
>>-----Ursprüngliche Nachricht-----
>>Von: Pae Choi [mailto:paechoi@earthlink.net]
>>Gesendet: Freitag, 14. Juli 2000 03:38
>>An: tomcat-user@jakarta.apache.org
>>Betreff: Re: Tomcat and Sun J2EE
>>
>>
>>Hello Peter,
>>
>>I am not sure what are you trying to do with both of them. First, J2EE
>>is a full range of development and deployment tools, including Web
>>Server, Application Server, J2EE APIs(JSP, Servlet, EJB, JMS, etc...)
>>, and even with Database. Once you configure and use them, you can
>>see the tomcat is included as well. And I like the "deploytool" in person
>>in some sense. :-)
>>
>>Or, if you are having any trouble, you can forget the first option above
>>and just use the Apache/Tomcat to handle the Web Components such as
>>HTML, JSP, Servlet, and possibly Java Beans. and access the
>>Application Components such as EJBs, etc.. that interact with database.
>>Even though the EJB is not necessary to access the database.
>>So, it would be another option.
>>
>>Hope this help.
>>
>>Pae
>>
>>
>>
>>>Hello,
>>>
>>>i try to connect from a servlet to a running EJB on the
>>>J2EE reference impl. from Sun.
>>>
>>>Until now i had no success :-(
>>>
>>>I added the j2ee.jar to the end of the tomcat classpath.
>>>I added the jndi properties as -d options (copied from the
jndi.properties
>>>of j2ee.jar).
>>>
>>>I get the following message in the browser when accessing the servlet:
>>>
>>>Error: 500
>>>
>>>Location:/kurs1/servlet/EJBServlet
>>>
>>>Internal Servlet Error:
>>>
>>>java.lang.UnsatisfiedLinkError: specialLoadClass
>>>        at
>>>com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.ja
v
>a
>>:
>>>59)
>>>        at
>>>com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:269)
>>>        at
>>>com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:109)
>>>        at javax.rmi.CORBA.Util.loadClass(Util.java:216)
>>>        at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:307)
>>>        at javax.rmi.CORBA.Util.(Util.java:55)
>>>        at
>>>com.sun.corba.ee.internal.corba.ClientDelegate.getServiceContexts(ClientD
e
>l
>>e
>>>gate.java:245)
>>>        at
>>>com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelega
t
>e
>>.
>>>java:314)
>>>        at
>>>com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelega
t
>e
>>.
>>>java:330)
>>>        at
>>>com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNaming
C
>l
>>i
>>>ent.java:198)
>>>        at
>>>com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferenc
e
>s
>>(
>>>InitialNamingClient.java:279)
>>>        at
>>>com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_refer
e
>n
>>c
>>>es(InitialNamingClient.java:188)
>>>        at
>>>com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:1
3
>5
>>6
>>>)
>>>        at
>>>com.sun.corba.ee.internal.POA.POAORB.resolve_initial_references(POAORB.ja
v
>a
>>:
>>>482)
>>>        at
>>com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:258)
>>>        at
>>>com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:188)
>>>        at com.sun.jndi.cosnaming.CNCtx.(CNCtx.java:75)
>>>        at
>>>com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:3
9
>)
>>>        at
>>>javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
>>>        at com.sun.enterprise.naming.EJBCtx.(EJBCtx.java:44)
>>>        at
>>>com.sun.enterprise.naming.EJBInitialContextFactory.getInitialContext(EJBI
n
>i
>>t
>>>ialContextFactory.java:62)
>>>        at
>>>javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
>>>        at
>>>javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
>>>        at javax.naming.InitialContext.init(InitialContext.java:226)
>>>        at javax.naming.InitialContext.(InitialContext.java:202)
>>>        at servlet.EJBServlet.lookup(EJBServlet.java)
>>>        at servlet.EJBServlet.doGet(EJBServlet.java)
>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>        at
>>>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:368)
>>>        at org.apache.tomcat.core.Handler.service(Handler.java:261)
>>>        at
>>>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:356)
>>>        at
>>>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java
:
>7
>>1
>>>9)
>>>        at
>>>org.apache.tomcat.core.ContextManager.service(ContextManager.java:665)
>>>        at
>>>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnect
i
>o
>>n
>>>(Ajp12ConnectionHandler.java:166)
>>>        at
>>>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
>>>Compiled Code)
>>>        at
>>>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
>>>Compiled Code)
>>>        at java.lang.Thread.run(Thread.java:479)
>>>
>>>
>>>Any help would be appreciaited.
>>>
>>>Thanks,
>>>
>>>Peter
>>>
>>>
>>>
>>
>
>
>


Mime
View raw message