Dain,

Installation was successful!!.

However, I put my bean classes in the classes directory, tried to look
it up from a servlet and am getting the following exceptoin. What am I
doing wrong? I am just tired, prolly need a strong cup of coffee.

javax.naming.ServiceUnavailableException: Cannot lookup
'/GreetingBeanBusinessRemote'. [Root exception is
java.net.ConnectException: Cannot connect to server
'foo://127.0.0.1:4201'.  Check that the server is started and that the
specified serverURL is correct.]
        at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:203)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.acme.TestServlet.doGet(TestServlet.java:18)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Cannot connect to server
'foo://127.0.0.1:4201'.  Check that the server is started and that the
specified serverURL is correct.
        at 
org.apache.openejb.client.SocketConnectionFactory$SocketConnection.open(SocketConnectionFactory.java:55)
        at 
org.apache.openejb.client.SocketConnectionFactory.getConnection(SocketConnectionFactory.java:35)
        at 
org.apache.openejb.client.ConnectionManager.getConnection(ConnectionManager.java:43)
        at org.apache.openejb.client.Client.processRequest(Client.java:63)
        at org.apache.openejb.client.Client.request(Client.java:43)
        at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:74)
        at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:199)


On 9/12/07, Dain Sundstrom <[EMAIL PROTECTED]> wrote:
> I added a basic installer servlet for Tomcat, and am looking for some
> people to try it out and help with the UI (see below).
>
> Installation:
> 1. copy openejb-tomcat-3.0.0-SNAPSHOT-bin.zip to your Tomcat webapps
> directory
> 2. make sure Tomcat is running
> 3. visit http://localhost:8080/openejb/installer and click the
> install button
> 4. Assuming you don't get any errors, reboot tomcat
>
> Once complete, simply include EJBs in your war WEB-INF/classes or WEB-
> INF/lib/*.jar using either annotated classes or via a META-INF/ejb-
> jar.xml file.
>
> Restrictions:
> o The installer only runs on Unix.  Windows support will require a
> tweaked catalina.bat and a work around for Windows file locking.
> Cygwin won't work either and will require even more work arounds in
> the Unix code to deal with pathing problems.
> o There is no uninstaller.  Currently, the installer deletes the non-
> compliant Tomcat annotations-api.jar so in addition to backing out
> the changes, you need to restore this file.
> o Annotations in servlets to OpenEJB resources (EJBs,
> PersistenceUnits, Topics, Queues, DataSources, etc) don't resolve.
> You will have to use global JNDI for the time being.
> o There is no security integration.  I suggest you don't even try
> using secured EJB in Tomcat embedded mode yet.
> o Only works with Tomcat 6.
>
> As you will see, the UI is what I like to call stone and chisel, and
> would appreciate any help making it look like the rest of OpenEJB.
> The UI is rendered in the
> org.apache.openejb.tomcat.installer.InstallerServlet class and the
> real work is done in the Paths and Installer helper classes.  The
> page has form that lets the user change the location of the Tomcat
> home dir, base dir and server.xml file, but I think we should hide
> this items for normal users since the defaults almost always work.
> For advanced users we could have a button that reveal those text boxes.
>
> I appreciate any help on this.
>
> Thanks,
>
> -dain
>


-- 
Karan Singh Malhi

Reply via email to