You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2001/01/13 14:55:35 UTC
C2 - missing class?
I just checked out the current CVS version but cannot start C2 anymore...
At startup I get:
org.apache.cocoon.components.datasource.DataSourceComponentSelector could
not be found
Did someone forgot to check in something? ;)
--
Torsten
Re: C2 - missing class?
Posted by Paul Russell <pa...@luminas.co.uk>.
* Torsten Curdt (tcurdt@dff.st) wrote :
> > No. You need to have BOTH the JNDI package, AND the JDBC Extensions
> > package to compile it. In many J2EE App Servers, there is one jar
> > that has all the needed interfaces. In IBM WebSphere's case, it is
> > called ujc.jar (I have no idea hy it is named that way). Really,
> > the J2eeDataSource is useless outside the context of a J2EE Server.
> Well, as far as I know JRun 3.0 is a J2EE server but JRun builds
> it's own CLASSPATH. Should I copy JRun's jars (jdbc.jar and jndi.jar)
> into C2's lib directory to solve this? They hold the
> javax.naming.context and javax.sql.DataSource classes
Yep. It's a compile time flag, not runtime.
Paul.
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk
RE: C2 - missing class?
Posted by Berin Loritsch <bl...@infoplanning.com>.
At this point, that would be unnecessary. Those classes are in Avalon now.
I have been making sure that they exist in the included jar.
> -----Original Message-----
> From: Torsten Curdt [mailto:tcurdt@dff.st]
> Sent: Monday, January 15, 2001 5:24 AM
> To: cocoon-dev@xml.apache.org
> Cc: bloritsch@infoplanning.com
> Subject: RE: C2 - missing class?
>
>
> > No. You need to have BOTH the JNDI package, AND the JDBC Extensions
> > package to compile it. In many J2EE App Servers, there is one jar
> > that has all the needed interfaces. In IBM WebSphere's case, it is
> > called ujc.jar (I have no idea hy it is named that way). Really,
> > the J2eeDataSource is useless outside the context of a J2EE Server.
>
> Well, as far as I know JRun 3.0 is a J2EE server but JRun builds
> it's own CLASSPATH. Should I copy JRun's jars (jdbc.jar and jndi.jar)
> into C2's lib directory to solve this? They hold the
> javax.naming.context and javax.sql.DataSource classes
> --
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: C2 - missing class?
Posted by Torsten Curdt <tc...@dff.st>.
> No. You need to have BOTH the JNDI package, AND the JDBC Extensions
> package to compile it. In many J2EE App Servers, there is one jar
> that has all the needed interfaces. In IBM WebSphere's case, it is
> called ujc.jar (I have no idea hy it is named that way). Really,
> the J2eeDataSource is useless outside the context of a J2EE Server.
Well, as far as I know JRun 3.0 is a J2EE server but JRun builds
it's own CLASSPATH. Should I copy JRun's jars (jdbc.jar and jndi.jar)
into C2's lib directory to solve this? They hold the
javax.naming.context and javax.sql.DataSource classes
--
Torsten
Re: C2 - missing class?
Posted by Berin Loritsch <bl...@infoplanning.com>.
Torsten Curdt wrote:
>
> > I don't have access to a computer where I can commit the change, but try
> > removing the
> > entry for the J2EE connection. I did notice that the CVS version of
> > cocoon.xconf has
> > <component name="...."> instead of <component role="....">. That may
> > contribute to
> > the problem.
>
> Ok... found it!
> Removed the "j2eePersonnel" from cocoon.xconf and now it works.
>
> <component-instance name="j2eePersonnel"
> class="org.apache.cocoon.components.datasource.J2eeDataSource">
> <dbname>cocoonPersonnel</dbname>
> </component-instance>
>
> I looked into the cocoon.jar and found out that the "J2eeDataSource.class"
> is missing in my cocoon.jar. Looked into the build dir and it is
> copied but not compiled!
>
> Do I need to add something like "build with J2ee"?
No. You need to have BOTH the JNDI package, AND the JDBC Extensions
package to compile it. In many J2EE App Servers, there is one jar
that has all the needed interfaces. In IBM WebSphere's case, it is
called ujc.jar (I have no idea hy it is named that way). Really,
the J2eeDataSource is useless outside the context of a J2EE Server.
Ant looks for javax.naming.context and javax.sql.DataSource before
it will compile the J2EE DataSource class.
I will remove the offending entry because none of the samples use
it, and it causes problems if you try to access it and it is not
there.
RE: C2 - missing class?
Posted by Torsten Curdt <tc...@dff.st>.
> I don't have access to a computer where I can commit the change, but try
> removing the
> entry for the J2EE connection. I did notice that the CVS version of
> cocoon.xconf has
> <component name="...."> instead of <component role="....">. That may
> contribute to
> the problem.
Ok... found it!
Removed the "j2eePersonnel" from cocoon.xconf and now it works.
<component-instance name="j2eePersonnel"
class="org.apache.cocoon.components.datasource.J2eeDataSource">
<dbname>cocoonPersonnel</dbname>
</component-instance>
I looked into the cocoon.jar and found out that the "J2eeDataSource.class"
is missing in my cocoon.jar. Looked into the build dir and it is
copied but not compiled!
Do I need to add something like "build with J2ee"?
--
Torsten
Re: C2 - missing class?
Posted by Berin Loritsch <bl...@apache.org>.
----- Original Message -----
From: Paul Russell <pa...@luminas.co.uk>
To: <co...@xml.apache.org>
Sent: Sunday, January 14, 2001 6:31 AM
Subject: Re: C2 - missing class?
> * Berin Loritsch (bloritsch@infoplanning.com) wrote :
> > > > * Torsten Curdt (tcurdt@dff.st) wrote :
> > > > > I just checked out the current CVS version but cannot start C2
anymore...
> > > > > At startup I get:
> > > > >
org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > > > > not be found
> > > > > Did someone forgot to check in something? ;)
> > > > Looks that way. Whoops Berin ;)
> > > I didn't had any problem. I've checked out and in multiple time today
> > > and my "cvs diff" isn't showing me that mentioned class is absent.
> > That should be the role name--not the class name. I am doing a cvs
checkout
> > from home, and will verify if it is set correctly. Basically you should
have:
> > <component
role="org.apache.cocoon.components.datasource.DataSourceComponentSelector"
> > class="org.apache.cocoon.CocoonComponentSelector">
> > ...
> > </component>
>
> Yeah, you're right, sorry. This begs the question why is Torsten's
> installation looking for the class. Torsten: do you get a stack trace?
I don't have access to a computer where I can commit the change, but try
removing the
entry for the J2EE connection. I did notice that the CVS version of
cocoon.xconf has
<component name="...."> instead of <component role="....">. That may
contribute to
the problem.
I will write in a separate message something I have been thinking about for
some time
now. This is regarding hiding the complexity of the role names from the
user.
Re: C2 - missing class?
Posted by Paul Russell <pa...@luminas.co.uk>.
* Berin Loritsch (bloritsch@infoplanning.com) wrote :
> > > * Torsten Curdt (tcurdt@dff.st) wrote :
> > > > I just checked out the current CVS version but cannot start C2 anymore...
> > > > At startup I get:
> > > > org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > > > not be found
> > > > Did someone forgot to check in something? ;)
> > > Looks that way. Whoops Berin ;)
> > I didn't had any problem. I've checked out and in multiple time today
> > and my "cvs diff" isn't showing me that mentioned class is absent.
> That should be the role name--not the class name. I am doing a cvs checkout
> from home, and will verify if it is set correctly. Basically you should have:
> <component role="org.apache.cocoon.components.datasource.DataSourceComponentSelector"
> class="org.apache.cocoon.CocoonComponentSelector">
> ...
> </component>
Yeah, you're right, sorry. This begs the question why is Torsten's
installation looking for the class. Torsten: do you get a stack trace?
Paul
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk
Re: C2 - missing class?
Posted by Berin Loritsch <bl...@infoplanning.com>.
Giacomo Pati wrote:
>
> Paul Russell wrote:
> >
> > * Torsten Curdt (tcurdt@dff.st) wrote :
> > > I just checked out the current CVS version but cannot start C2 anymore...
> > > At startup I get:
> > > org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > > not be found
> > > Did someone forgot to check in something? ;)
> >
> > Looks that way. Whoops Berin ;)
>
> I didn't had any problem. I've checked out and in multiple time today
> and my "cvs diff" isn't showing me that mentioned class is absent.
That should be the role name--not the class name. I am doing a cvs checkout
from home, and will verify if it is set correctly. Basically you should have:
<component role="org.apache.cocoon.components.datasource.DataSourceComponentSelector"
class="org.apache.cocoon.CocoonComponentSelector">
...
</component>
Re: C2 - missing class?
Posted by Paul Russell <pa...@luminas.co.uk>.
* Giacomo Pati (giacomo@apache.org) wrote :
> Paul Russell wrote:
> > * Torsten Curdt (tcurdt@dff.st) wrote :
> > > I just checked out the current CVS version but cannot start C2 anymore...
> > > At startup I get:
> > > org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > > not be found
> > > Did someone forgot to check in something? ;)
> > Looks that way. Whoops Berin ;)
> I didn't had any problem. I've checked out and in multiple time today
> and my "cvs diff" isn't showing me that mentioned class is absent.
Hrm. Strange. I can see the reference to it in cocoon.xconf, and I've
just done (another) update. The class isn't there...
Paul.
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk
Re: C2 - missing class?
Posted by Giacomo Pati <gi...@apache.org>.
Paul Russell wrote:
>
> * Torsten Curdt (tcurdt@dff.st) wrote :
> > I just checked out the current CVS version but cannot start C2 anymore...
> > At startup I get:
> > org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > not be found
> > Did someone forgot to check in something? ;)
>
> Looks that way. Whoops Berin ;)
I didn't had any problem. I've checked out and in multiple time today
and my "cvs diff" isn't showing me that mentioned class is absent.
Giacomo
>
> Paul
>
> --
> Paul Russell Email: paul@luminas.co.uk
> Technical Director Tel: +44 (0)20 8553 6622
> Luminas Internet Applications Fax: +44 (0)870 28 47489
> This is not an official statement or order. Web: www.luminas.co.uk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
Re: C2 - missing class?
Posted by Ross Burton <ro...@mail.com>.
Paul Russell wrote:
>
> * Torsten Curdt (tcurdt@dff.st) wrote :
> > I just checked out the current CVS version but cannot start C2 anymore...
> > At startup I get:
> > org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> > not be found
> > Did someone forgot to check in something? ;)
>
> Looks that way. Whoops Berin ;)
Possibly due to missing directories - did you tell CVS to get new
directories? -Pd are the options to CVS to do this.
Ross
Re: C2 - missing class?
Posted by Paul Russell <pa...@luminas.co.uk>.
* Torsten Curdt (tcurdt@dff.st) wrote :
> I just checked out the current CVS version but cannot start C2 anymore...
> At startup I get:
> org.apache.cocoon.components.datasource.DataSourceComponentSelector could
> not be found
> Did someone forgot to check in something? ;)
Looks that way. Whoops Berin ;)
Paul
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk