Sorry, I pasted wrong geronimo-application.xml. The following should be
right:
portlet-api
portlet-api
1.0
org.apache.pluto
pluto
1.0.1
jetspeed2
jetspeed-api
2.0-M4-SNAPSHOT
jetspeed2
jetspeed-commons
2.0-M4-SNAPSHOT
portals-bridges
portals-bridges-common
0.4-SNAPSHOT
tranql-connector-1.0-SNAPSHOT.rar
oracle-plan.xml
-James Liao
On 11/4/05, Jian Liao wrote:
>
> Hi david,
> I did use the svn head and following are my web.xml in "jetspeed/WEB-INF/"
> which is about jndi data source.
> ......
>
>
> DB Connection
> jdbc/jetspeed
> javax.sql.DataSource
> Container
>
> ......
>
> - James Liao
>
> On 11/4/05, Jian Liao wrote:
> >
> > Thanks for respond.
> > The directory structural:
> >
> > jetspeed.ear
> > |
> > |------META-INF
> > | |-----------geronimo-application.xml
> > | |-----------application.xml
> > |
> > |------tranql-connector-1.0-SNAPSHOT.rar
> > |------oracle-plan.xml
> > |------jetspeed.war
> >
> > jetspeed.war
> > |
> > |
> > |------WEB-INF
> > |----------web.xml
> > |----------geronimo-web.xml
> > (.......)
> >
> > I've replaced config.xml with config.tomcat.xml.
> >
> > The following are all of my plans:
> >
> > =====================oracle-plan.xml=============================
> >
> > > configId="OracleDatabase" parentId="org/apache/geronimo/Server">
> >
> > oracle/jars/classes12-10gr2.jar
> >
> >
> >
> >
> > javax.sql.DataSource
> >
> >
> > OracleDataSource
> > > name="UserName">JETSPEED2_PRODUCTION
> > > name="Password">PRODUCTION
> > oracle.jdbc.driver.OracleDriver
> >
> >
> > jdbc:oracle:thin:@pek-wkst116:1521:orcl
> > > name="CommitBeforeAutocommit">false
> >
> > org.tranql.connector.NoExceptionsAreFatalSorter
> >
> >
> >
> >
> > 100
> > 0
> > 10000
> > 30
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > =================geronimo-application.xml========================
> >
> > > configId="OracleDatabase" parentId="org/apache/geronimo/Server">
> >
> > oracle/jars/classes12-10gr2.jar
> >
> >
> >
> >
> > javax.sql.DataSource
> >
> >
> > OracleDataSource
> > > name="UserName">JETSPEED2_PRODUCTION
> > > name="Password">PRODUCTION
> > oracle.jdbc.driver.OracleDriver
> >
> >
> > jdbc:oracle:thin:@pek-wkst116:1521:orcl
> > > name="CommitBeforeAutocommit">false
> >
> > org.tranql.connector.NoExceptionsAreFatalSorter
> >
> >
> >
> >
> > 100
> > 0
> > 10000
> > 30
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ==================geronimo-web.xml========================
> >
> > > configId="org/apache/jetspeed" parentId="OracleDatabase">
> > true
> >
> > jdbc/jetspeed
> > OracleDataSource
> >
> >
> >
> > ====================application.xml========================
> > > xmlns="http://java.sun.com/xml/ns/j2ee"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
> > version="1.4">
> >
> >
> > jetspeed.war
> > /jetspeed
> >
> >
> >
> > tranql-connector-1.0-SNAPSHOT.rar
> >
> >
> >
> >
> > -James Liao
> >
> >
> > On 11/4/05, David Jencks wrote:
> > >
> > > How are you setting up the datasource for j2 to use? You need to look
> > > up something like java:comp/env/jdbc/jetspeed and either deploy a
> > > datasource "named" jdbc/jetspeed or map it to whatever the datasource
> > > is named.
> > >
> > > If you are deploying the datasource in the same plan as j2 (I
> > > recommend
> > > doing this) you need to use geronimo head because the appropriate
> > > dependencies to force the correct start order were only added last
> > > week.
> > >
> > > If you are still having problems please show us your geronimo plan.
> > >
> > > thanks
> > > david jencks
> > >
> > > On Nov 3, 2005, at 10:35 PM, Jian Liao wrote:
> > >
> > > > Sorry, I forgot to tell Jetspeed 2 work perfectly with tomcat 5.5.9
> > > > standalone. Because Tomcat5.5.9 use its own naming services with
> > > > useNaming = true by default. I saw that Geronimo disable it in
> > > > TomcatContainer.doStart() with embedded.setUseNaming(false).
> > > >
> > > > - James Liao
> > > >
> > > > On 11/4/05, Jian Liao wrote:
> > > >>
> > > >> - James Liao
> > > >>
> > > >>
> > > >> On 11/4/05, Bruce Snyder < bruce.snyder@gmail.com>
> > > >> wrote:norwaywoods@gmail.com> wrote:
> > > >>> > All,
> > > >>> >I'm trying to integrate jetspeed 2 with geronimo(svn head) and
> > > >>> tomcat-5.5.9
> > > >>> > as web container.
> > > >>> >The deployment is successful. But Jetspeed will initialize OJB in
> > > >>> > JetspeedServlet.init() method which needs to obtain resource
> > > >>> jdbc/jetspeed
> > > >>> > through JNDI. It just can not get it cause the context is never
> > > >>> bind to the
> > > >>> > thread.
> > > >>> >
> > > >>> >I try it with Jetty and it works because
> > > >>> ComponentContextBeforeAfter is
> > > >>> > called.
> > > >>> >
> > > >>> >I am wondering if I am not allowed to do any JNDI operation in
> > > >>> > Servlet.init ()?
> > > >>>
> > > >>> Have you tried this in Tomcat running standalone? When you tried
> > > it
> > > >>> with Jetty, was Jetty running standalone or within Geronimo?
> > > >>>
> > > >>> Bruce
> > > >>> --
> > > >>> perl -e 'print
> > > >>>
> > > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E > > >>> );'
> > > >>>
> > > >>> The Castor Project
> > > >>> http://www.castor.org/
> > > >>>
> > > >>> Apache Geronimo
> > > >>> http://geronimo.apache.org/
> > > >>
> > >
> > >
> >
>