You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by giovacar <gi...@gmail.com> on 2009/03/19 13:22:52 UTC

deploy EJB on tomcat

Hi Gurus,
i try to deploy a EJB on Tomcat installation:

bin\openejb deploy --server-url http://localhost:8080/openejb/ejb myEJB.jar

but it not work:
19-mar-2009 13.17.17 org.apache.openejb.client.StickyConnectionStrategy
connect
AVVERTENZA: Failover: Cannot connect to server(s): ejbd://localhost:4201
Excepti
on: Cannot connect to server 'ejbd://localhost:4201'.  Check that the server
is
started and that the specified serverURL is correct..  Trying next.
openejb/DeployerBusinessRemote does not exist in server
'ejbd://localhost:4201',
 check the server logs to ensure it exists and has not been removed.

what's my wrong action?

-- 
View this message in context: http://www.nabble.com/deploy-EJB-on-tomcat-tp22599057p22599057.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deploy EJB on tomcat

Posted by David Blevins <da...@visi.com>.
On Mar 19, 2009, at 5:22 AM, giovacar wrote:

>
> Hi Gurus,
> i try to deploy a EJB on Tomcat installation:
>
> bin\openejb deploy --server-url http://localhost:8080/openejb/ejb  
> myEJB.jar
>
> but it not work:
> 19-mar-2009 13.17.17  
> org.apache.openejb.client.StickyConnectionStrategy
> connect
> AVVERTENZA: Failover: Cannot connect to server(s): ejbd://localhost: 
> 4201
> Excepti
> on: Cannot connect to server 'ejbd://localhost:4201'.  Check that  
> the server
> is
> started and that the specified serverURL is correct..  Trying next.
> openejb/DeployerBusinessRemote does not exist in server
> 'ejbd://localhost:4201',
> check the server logs to ensure it exists and has not been removed.
>
> what's my wrong action?

The command line tools for starting/stopping/deploying in OpenEJB  
standalone don't work for starting/stopping/deploying Tomcat and  
aren't shipped in the openejb.war for that reason.

In Tomcat, copying the ejb jar into the webapps/ directory should do  
the trick.

-David


Re: deploy EJB on tomcat

Posted by giovacar <gi...@gmail.com>.
Hi ,
i create the file, put the line, restart tomcat,
but when i test i have the same error trace.



Jean-Louis MONTEIRO wrote:
> 
> Considering you are in an embedded (in tomcat) mode, you can do the
> following to activate the remotable mode.
> 
>    1. Create a file named system.properties under the conf directory (with
> server.xml, openejb.xml, ...)
>    2. Add the following to the system.properties file and save
>       openejb.embedded.remotable=true
> 
> They you can use a command line tool to remotely deploy an ejb-jar.
> You probably saw the log saying it can not connect to
> ejbd://localhost:4201
> event if you provide the command line argument --server-url. It has been
> fixed (https://issues.apache.org/jira/browse/OPENEJB-1002) in the trunk
> and it will be available for next release.
> 
> Jean-Louis
> 

-- 
View this message in context: http://www.nabble.com/deploy-EJB-on-tomcat-tp22599057p22601279.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deploy EJB on tomcat

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Considering you are in an embedded (in tomcat) mode, you can do the following
to activate the remotable mode.

   1. Create a file named system.properties under the conf directory (with
server.xml, openejb.xml, ...)
   2. Add the following to the system.properties file and save
      openejb.embedded.remotable=true

They you can use a command line tool to remotely deploy an ejb-jar.
You probably saw the log saying it can not connect to ejbd://localhost:4201
event if you provide the command line argument --server-url. It has been
fixed (https://issues.apache.org/jira/browse/OPENEJB-1002) in the trunk and
it will be available for next release.

Jean-Louis
-- 
View this message in context: http://www.nabble.com/deploy-EJB-on-tomcat-tp22599057p22601009.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deploy EJB on tomcat

Posted by giovacar <gi...@gmail.com>.
Hi,
where did i set the property
openejb.embedded.remotable ?

thanks



Jean-Louis MONTEIRO wrote:
> 
> Hi,
> 
> did you try activating remoting ?
> You have to set the property openejb.embedded.remotable to true
> http://openejb.apache.org/3.0/embedded-and-remotable.html
> 
> Jean-Louis
> 
> 
> giovacar wrote:
>> 
>> Hi Gurus,
>> i try to deploy a EJB on Tomcat installation:
>> 
>> bin\openejb deploy --server-url http://localhost:8080/openejb/ejb
>> myEJB.jar
>> 
>> but it not work:
>> 19-mar-2009 13.17.17 org.apache.openejb.client.StickyConnectionStrategy
>> connect
>> AVVERTENZA: Failover: Cannot connect to server(s): ejbd://localhost:4201
>> Excepti
>> on: Cannot connect to server 'ejbd://localhost:4201'.  Check that the
>> server is
>> started and that the specified serverURL is correct..  Trying next.
>> openejb/DeployerBusinessRemote does not exist in server
>> 'ejbd://localhost:4201',
>>  check the server logs to ensure it exists and has not been removed.
>> 
>> what's my wrong action?
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/deploy-EJB-on-tomcat-tp22599057p22600990.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deploy EJB on tomcat

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi,

did you try activating remoting ?
You have to set the property openejb.embedded.remotable to true
http://openejb.apache.org/3.0/embedded-and-remotable.html

Jean-Louis


giovacar wrote:
> 
> Hi Gurus,
> i try to deploy a EJB on Tomcat installation:
> 
> bin\openejb deploy --server-url http://localhost:8080/openejb/ejb
> myEJB.jar
> 
> but it not work:
> 19-mar-2009 13.17.17 org.apache.openejb.client.StickyConnectionStrategy
> connect
> AVVERTENZA: Failover: Cannot connect to server(s): ejbd://localhost:4201
> Excepti
> on: Cannot connect to server 'ejbd://localhost:4201'.  Check that the
> server is
> started and that the specified serverURL is correct..  Trying next.
> openejb/DeployerBusinessRemote does not exist in server
> 'ejbd://localhost:4201',
>  check the server logs to ensure it exists and has not been removed.
> 
> what's my wrong action?
> 
> 

-- 
View this message in context: http://www.nabble.com/deploy-EJB-on-tomcat-tp22599057p22600692.html
Sent from the OpenEJB User mailing list archive at Nabble.com.