Yes this listener makes tomcat being tomee
Le 28 oct. 2012 10:37, "Marco de Booij" <[email protected]> a
écrit :

> I downloaded the tomee-plus-webapp-1.5.0.war and renamed it to tomee.war.
> This I deployed through the tomcat manager console. I do not know what you
> mean by the server listener to be in the server.xml. My server.xml of
> tomcat7 looks like (I removed the comments so it is much smaller. Hope I
> did not remove too much):
> <?xml version='1.0' encoding='utf-8'?>
> <Server port="8005" shutdown="SHUTDOWN">
>   <Listener className="org.apache.**catalina.core.JasperListener" />
>   <Listener className="org.apache.**catalina.core.**
> JreMemoryLeakPreventionListene**r" />
>   <Listener className="org.apache.**catalina.mbeans.**
> GlobalResourcesLifecycleListen**er" />
>   <Listener className="org.apache.**catalina.core.**
> ThreadLocalLeakPreventionListe**ner" />
>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.**UserDatabase"
>               description="User database that can be updated and saved"
> factory="org.apache.catalina.**users.**MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.**xml" />
>   </GlobalNamingResources>
>   <Service name="Catalina">
>     <Connector port="8080" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                URIEncoding="UTF-8"
>                redirectPort="8443" />
>     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>     <Engine name="Catalina" defaultHost="localhost">
>       <Realm className="org.apache.**catalina.realm.LockOutRealm">
>         <Realm className="org.apache.**catalina.realm.**UserDatabaseRealm"
>                resourceName="UserDatabase"/>
>       </Realm>
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
>         <Valve className="org.apache.**catalina.valves.**AccessLogValve"
> directory="logs"
>                prefix="localhost_access_log." suffix=".txt"
>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>
>       </Host>
>     </Engine>
>   </Service>
> </Server>
>
> In Tomee there is an optional menu option to install a listener. Is this
> the one you meant? If I click on that option I get a screen with the
> Catalina Home, Catalina Base, and Catalina server.xml. When I click on
> Install I get an error that the openejb/installer does not exist. My
> Catalina Home and Catalina Base are owned by root and do not have write
> rights for group and others.
>
> I checked the server.xml that I have locally. This comes from the package
> tomee plus with tomcat7 included. There I only find a tomee thing
> (<Listener className="org.apache.tomee.**catalina.ServerListener" />) in
> the shutdown part.
>
> Regards,
>
> Marco
>
> Op 28-10-12 00:24, Romain Manni-Bucau schreef:
>
>> How is tomee installed? Is your sercer.xml ok (does it contain server
>> listener)?
>> Le 27 oct. 2012 23:20, "Marco de Booij" <[email protected]> a
>> écrit :
>>
>>  Hello,
>>>
>>> I have installed Tomcat 7.0.28 (from the Wheezy test branch) on a server
>>> with Debian Squeeze. I copied the postgresql-8.4-703.jdbc4.jar to the
>>> /usr/share/tomcat7/lib lib. I deployed the tomee-plus-webapp-1.5.0.war
>>> and
>>> I start tomcat7 as a service the file openejb.xml is created in
>>> /etc/tomcat7. In this file I added the following datasources:
>>> <Resource id="jdbc/DS1" type="DataSource">
>>>      JdbcDriver   org.postgresql.Driver
>>>      JdbcUrl      jdbc:postgresql://localhost/****prda
>>>      UserName     user1
>>>      Password     pwd1
>>>      JtaManaged   true
>>> </Resource>
>>>
>>> <Resource id="jdbc/DS2" type="DataSource">
>>>      JdbcDriver   org.postgresql.Driver
>>>      JdbcUrl      jdbc:postgresql://localhost/****prda
>>>      UserName     user2
>>>      Password     pwd2
>>>      JtaManaged   true
>>> </Resource>
>>>
>>> When I start tomcat7 again I get an error message that tells me to send
>>> it
>>> to this list.
>>>
>>> Oct 27, 2012 11:01:10 PM org.apache.openejb.util.****OpenEJBErrorHandler
>>> handleUnknownError
>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>> following stack trace and this message to [email protected] :
>>>   org.apache.xbean.recipe.****ConstructionException: Error invoking
>>> factory
>>> method: public static javax.sql.DataSource org.apache.openejb.resource.**
>>> jdbc.DataSourceFactory.create(****java.lang.String,boolean,**java.**
>>> lang.Class,java.lang.String,****org.apache.openejb.util.**
>>> Duration,org.apache.openejb.****util.Duration,org.apache.****
>>> openejb.util.Duration)
>>> throws java.lang.****IllegalAccessException,java.**
>>> lang.InstantiationException,****java.io.IOException
>>>          at org.apache.xbean.recipe.****ReflectionUtil$StaticFactory.***
>>> *
>>> create(ReflectionUtil.java:****1006)
>>>
>>> Is this a bug or did I forget to do something or did something wrong?
>>> When
>>> I have it working the same way with apache-tomee-1.5.0-plus.tar.gz on
>>> another server (I added the datasources in the tomee.xml file).
>>>
>>> Regards,
>>>
>>> Marco
>>>
>>>
>

Reply via email to