You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bruno Melloni <br...@melloni.com> on 2000/03/01 17:01:26 UTC

Win98, cocoon, class not found

I think I might have found a bug in the Win98 implementation, although I
hope I'm proven wrong.  I say this because I had no problem setting up
this configuration on a Linux box (although with versions of the
software that were 1-2 weeks older, but that shouldn't be relevant).

I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1, Cocoon
1.7, Xerces 1.0.2, Xalan 0.19.5.

I have setup all the pieces in the configuration and properties files as
I did with Linux (with appropriate changes for DOS paths) and attempted
to access http://localhost/Cocoon.xml.  Cocoon has clearly begun loading
(obviously from the cocoon.jar) but generated an error screen saying
that it can't find the org.apache.cocoon.transformer.XalanTransformer
class, which after checking I found in the cocoon.jar itself!!!

I am clearly having some sort of classpath problem, although I have the
proper wrapper.classpath statements for cocoon, xerces and xalan in
jserv.properties.  Any ideas?

bruno


Re: Win98, cocoon, class not found

Posted by Russell Castagnaro <ru...@synctank.com>.
Bruno,

This is my setup for weblogic:
set DRIVE=c:
set JDK=%DRIVE%\jdk1.2
set WL=%DRIVE%\weblogic
set COCOON=%DRIVE%\downloads\xml-apache\cocoon\

set PATH=.;%JDK%\bin;%WL%\bin;C:\orawin95\BIN

set CLASSPATH=.;%WL%\classes\boot;%WL%\eval\cloudscape\lib\cloudscape.jar
set
WEBLOGICCLASSPATH=%STUDENT%;C:\java\javamail-1.1.3ea\mail.jar;C:\java\jaf\activation.jar;%WL%\classes;%WL%\license;%WL%\lib\weblogicaux.jar;%WL%\myserver\serverclasses;c:\development\castagnaro\classes

set
WEBLOGICCLASSPATH=%WEBLOGICCLASSPATH%;%COCOON%bin\Cocoon.jar;%COCOON%lib\fop_0_12_1.jar;%COCOON%bin\;C:\java\gnu.regexp-1.0.8\lib\gnu-regexp-1.0.8.jar;%COCOON%lib\xalan_0_19_4.jar;%COCOON%lib\xerces_1_0_1.jar;%COCOON%lib\xml.jar;%CLASSPATH%




%DRIVE%
cd %WL%
java -ms64m -mx64m -classpath %CLASSPATH%
-Dweblogic.class.path=%WEBLOGICCLASSPATH% -Djava.security.manager
-Djava.security.policy=%WL%\weblogic.policy weblogic.Server

Or a more standard server Iserver from servertec:

set DRIVE=c:
set JDK=%DRIVE%\jdk1.2
set IWS=%DRIVE%\IWS
set WL=%DRIVE%\weblogic
set COCOON=%DRIVE%\downloads\xml-apache\cocoon\
REM development stuff
set
CLASSPATH=.;c:\development\castagnaro\classes;c:\development\synctank\classes;C:\java\jce1.2\lib\jce1_2-do.jar

REM IWS Stuff
set
CLASSPATH=%IWS%\servlets;%IWS%\samples\servlets;%IWS%\classes\servlet.jar;%IWS%\classes\iws.jar;%CLASSPATH%

REM cocoon
set
CLASSPATH=%COCOON%bin\Cocoon.jar;%COCOON%lib\fop_0_12_1.jar;%COCOON%bin\;C:\java\gnu.regexp-1.0.8\lib\gnu-regexp-1.0.8.jar;%COCOON%lib\xalan_0_19_4.jar;%COCOON%lib\xerces_1_0_1.jar;%COCOON%lib\xml.jar;%CLASSPATH%

set
CLASSPATH=%WL%\classes;%CLASSPATH%;%WL%\classes;C:\java\jaf\activation.jar;C:\java\javamail-1.1.3ea\mail.jar

set
CLASSPATH=C:\java\javamail-1.1.3ea\mail.jar;%WL%\eval\cloudscape\lib\cloudscape.jar;C:\jdk1.2\lib\tools.jar;%CLASSPATH%

set JAVA_EXE=c:\jdk1.2\bin\java.exe%FOO%

java.exe -Dserver_config_file=C:\development\DH\Source\test\demoserver.properties
stec.iws.iws /iws/deployment


That should do ya.



Bruno Melloni wrote:

> Thanks,
>
> I guess that confirms that I either have a version-specific problem, or more likely
> that I still have something not configured right.  Do you have any suggestions?
>
> bruno
>
> Russell Castagnaro wrote:
>
> > I'm running Cocoon in Win98 with no problems.
> >
> > Jeff Maury wrote:
> >
> > >
> > >
> > > Bruno Melloni wrote:
> > >
> > >> I am not sure I get your point.  cocoon, xerces and xalan are all in the
> > >> classpath.  What class do you think might be missing?
> > >
> > > What's about the SAX files ?
> > >
> > > Jeff
> > >
> > >
> > >>
> > >>
> > >> bruno
> > >>
> > >> Jeff Maury wrote:
> > >>
> > >> >
> > >> >
> > >> > Bruno Melloni wrote:
> > >> >
> > >> >>  I think I might have found a bug in the Win98 implementation, although I
> > >> >>  hope I'm proven wrong.  I say this because I had no problem setting up
> > >> >>  this configuration on a Linux box (although with versions of the
> > >> >>  software that were 1-2 weeks older, but that shouldn't be relevant).
> > >> >>
> > >> >>  I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1, Cocoon
> > >> >>  1.7, Xerces 1.0.2, Xalan 0.19.5.
> > >> >>
> > >> >>  I have setup all the pieces in the configuration and properties files as
> > >> >>  I did with Linux (with appropriate changes for DOS paths) and attempted
> > >> >>  to access http://localhost/Cocoon.xml.  Cocoon has clearly begun loading
> > >> >>  (obviously from the cocoon.jar) but generated an error screen saying
> > >> >>  that it can't find the org.apache.cocoon.transformer.XalanTransformer
> > >> >>  class, which after checking I found in the cocoon.jar itself!!!
> > >> >>
> > >> >>  I am clearly having some sort of classpath problem, although I have the
> > >> >>  proper wrapper.classpath statements for cocoon, xerces and xalan in
> > >> >>  jserv.properties.  Any ideas?
> > >> >
> > >> > In JDK 1.2.x, having a class in the classpath is not enougth, you also must
> > >> > have all classes used  by this class in the classpath, otherwise, the class
> > >> > can not load.
> > >> > Here is an example
> > >> >
> > >> > public class A
> > >> > {
> > >> >
> > >> >   private void oneMethod() {
> > >> >     B obj;
> > >> >   }
> > >> > }
> > >> >
> > >> > If class B is not in the class path, even if the oneMethod is not called,
> > >> > the A class cannot be loaded. This was not true in JDK 1.1, an exception
> > >> > would be thrown when the method will be called but the class can be loaded.
> > >> >
> > >> > Best regards
> > >> > Jeff
> > >> >
> > >> >
> > >> >>
> > >> >>
> > >> >>  bruno
> > >> >>
> > >> >>  ---------------------------------------------------------------------
> > >> >>  To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > >> >>  For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >> >
> > >> > --
> > >> > Jeff MAURY
> > >> > SCORT CTO
> > >> >
> > >> >
> > >> >  #####   #####  ####### ######  #######
> > >> > #     # #     # #     # #     #    #
> > >> > #       #       #     # #     #    #
> > >> >  #####  #       #     # ######     #
> > >> >       # #       #     # #   #      #
> > >> > #     # #     # #     # #    #     #
> > >> >  #####   #####  ####### #     #    #
> > >> >
> > >> >   Extending the net to the mainframe
> > >> >   ==================================
> > >> >
> > >> >
> > >> >     --------------------------------------------------------------------
> > >> > ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > >> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >> >
> > > --
> > > Jeff MAURY
> > > SCORT CTO
> > >
> > >
> > >  #####   #####  ####### ######  #######
> > > #     # #     # #     # #     #    #
> > > #       #       #     # #     #    #
> > >  #####  #       #     # ######     #
> > >       # #       #     # #   #      #
> > > #     # #     # #     # #    #     #
> > >  #####   #####  ####### #     #    #
> > >
> > >   Extending the net to the mainframe
> > >   ==================================
> > >
> > >
> > >     -----------------------------------------------------------------------
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> > --
> >
> > Russell Castagnaro
> > Chief Mentor
> > SyncTank Solutions
> > http://www.synctank.com
> >
> > Earth is the cradle of mankind; one does not remain in the cradle forever
> > -Tsiolkovsky
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

--

Russell Castagnaro
Chief Mentor
SyncTank Solutions
http://www.synctank.com

Earth is the cradle of mankind; one does not remain in the cradle forever
-Tsiolkovsky



Re: Win98, cocoon, class not found

Posted by Bruno Melloni <br...@melloni.com>.
Thanks,

I guess that confirms that I either have a version-specific problem, or more likely
that I still have something not configured right.  Do you have any suggestions?

bruno

Russell Castagnaro wrote:

> I'm running Cocoon in Win98 with no problems.
>
> Jeff Maury wrote:
>
> >
> >
> > Bruno Melloni wrote:
> >
> >> I am not sure I get your point.  cocoon, xerces and xalan are all in the
> >> classpath.  What class do you think might be missing?
> >
> > What's about the SAX files ?
> >
> > Jeff
> >
> >
> >>
> >>
> >> bruno
> >>
> >> Jeff Maury wrote:
> >>
> >> >
> >> >
> >> > Bruno Melloni wrote:
> >> >
> >> >>  I think I might have found a bug in the Win98 implementation, although I
> >> >>  hope I'm proven wrong.  I say this because I had no problem setting up
> >> >>  this configuration on a Linux box (although with versions of the
> >> >>  software that were 1-2 weeks older, but that shouldn't be relevant).
> >> >>
> >> >>  I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1, Cocoon
> >> >>  1.7, Xerces 1.0.2, Xalan 0.19.5.
> >> >>
> >> >>  I have setup all the pieces in the configuration and properties files as
> >> >>  I did with Linux (with appropriate changes for DOS paths) and attempted
> >> >>  to access http://localhost/Cocoon.xml.  Cocoon has clearly begun loading
> >> >>  (obviously from the cocoon.jar) but generated an error screen saying
> >> >>  that it can't find the org.apache.cocoon.transformer.XalanTransformer
> >> >>  class, which after checking I found in the cocoon.jar itself!!!
> >> >>
> >> >>  I am clearly having some sort of classpath problem, although I have the
> >> >>  proper wrapper.classpath statements for cocoon, xerces and xalan in
> >> >>  jserv.properties.  Any ideas?
> >> >
> >> > In JDK 1.2.x, having a class in the classpath is not enougth, you also must
> >> > have all classes used  by this class in the classpath, otherwise, the class
> >> > can not load.
> >> > Here is an example
> >> >
> >> > public class A
> >> > {
> >> >
> >> >   private void oneMethod() {
> >> >     B obj;
> >> >   }
> >> > }
> >> >
> >> > If class B is not in the class path, even if the oneMethod is not called,
> >> > the A class cannot be loaded. This was not true in JDK 1.1, an exception
> >> > would be thrown when the method will be called but the class can be loaded.
> >> >
> >> > Best regards
> >> > Jeff
> >> >
> >> >
> >> >>
> >> >>
> >> >>  bruno
> >> >>
> >> >>  ---------------------------------------------------------------------
> >> >>  To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> >> >>  For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >> >
> >> > --
> >> > Jeff MAURY
> >> > SCORT CTO
> >> >
> >> >
> >> >  #####   #####  ####### ######  #######
> >> > #     # #     # #     # #     #    #
> >> > #       #       #     # #     #    #
> >> >  #####  #       #     # ######     #
> >> >       # #       #     # #   #      #
> >> > #     # #     # #     # #    #     #
> >> >  #####   #####  ####### #     #    #
> >> >
> >> >   Extending the net to the mainframe
> >> >   ==================================
> >> >
> >> >
> >> >     --------------------------------------------------------------------
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> >> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >> >
> > --
> > Jeff MAURY
> > SCORT CTO
> >
> >
> >  #####   #####  ####### ######  #######
> > #     # #     # #     # #     #    #
> > #       #       #     # #     #    #
> >  #####  #       #     # ######     #
> >       # #       #     # #   #      #
> > #     # #     # #     # #    #     #
> >  #####   #####  ####### #     #    #
> >
> >   Extending the net to the mainframe
> >   ==================================
> >
> >
> >     -----------------------------------------------------------------------
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> --
>
> Russell Castagnaro
> Chief Mentor
> SyncTank Solutions
> http://www.synctank.com
>
> Earth is the cradle of mankind; one does not remain in the cradle forever
> -Tsiolkovsky
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Win98, cocoon, class not found

Posted by Russell Castagnaro <ru...@synctank.com>.
I'm running Cocoon in Win98 with no problems.



Jeff Maury wrote:

>
>
> Bruno Melloni wrote:
>
>> I am not sure I get your point.  cocoon, xerces and xalan are all in the
>> classpath.  What class do you think might be missing?
>
> What's about the SAX files ?
>
> Jeff
>
>
>>
>>
>> bruno
>>
>> Jeff Maury wrote:
>>
>> >
>> >
>> > Bruno Melloni wrote:
>> >
>> >>  I think I might have found a bug in the Win98 implementation, although I
>> >>  hope I'm proven wrong.  I say this because I had no problem setting up
>> >>  this configuration on a Linux box (although with versions of the
>> >>  software that were 1-2 weeks older, but that shouldn't be relevant).
>> >>
>> >>  I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1, Cocoon
>> >>  1.7, Xerces 1.0.2, Xalan 0.19.5.
>> >>
>> >>  I have setup all the pieces in the configuration and properties files as
>> >>  I did with Linux (with appropriate changes for DOS paths) and attempted
>> >>  to access http://localhost/Cocoon.xml.  Cocoon has clearly begun loading
>> >>  (obviously from the cocoon.jar) but generated an error screen saying
>> >>  that it can't find the org.apache.cocoon.transformer.XalanTransformer
>> >>  class, which after checking I found in the cocoon.jar itself!!!
>> >>
>> >>  I am clearly having some sort of classpath problem, although I have the
>> >>  proper wrapper.classpath statements for cocoon, xerces and xalan in
>> >>  jserv.properties.  Any ideas?
>> >
>> > In JDK 1.2.x, having a class in the classpath is not enougth, you also must
>> > have all classes used  by this class in the classpath, otherwise, the class
>> > can not load.
>> > Here is an example
>> >
>> > public class A
>> > {
>> >
>> >   private void oneMethod() {
>> >     B obj;
>> >   }
>> > }
>> >
>> > If class B is not in the class path, even if the oneMethod is not called,
>> > the A class cannot be loaded. This was not true in JDK 1.1, an exception
>> > would be thrown when the method will be called but the class can be loaded.
>> >
>> > Best regards
>> > Jeff
>> >
>> >
>> >>
>> >>
>> >>  bruno
>> >>
>> >>  ---------------------------------------------------------------------
>> >>  To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> >>  For additional commands, e-mail: cocoon-users-help@xml.apache.org
>> >
>> > --
>> > Jeff MAURY
>> > SCORT CTO
>> >
>> >
>> >  #####   #####  ####### ######  #######
>> > #     # #     # #     # #     #    #
>> > #       #       #     # #     #    #
>> >  #####  #       #     # ######     #
>> >       # #       #     # #   #      #
>> > #     # #     # #     # #    #     #
>> >  #####   #####  ####### #     #    #
>> >
>> >   Extending the net to the mainframe
>> >   ==================================
>> >
>> >
>> >     --------------------------------------------------------------------
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>> >
> --
> Jeff MAURY
> SCORT CTO
>
>
>  #####   #####  ####### ######  #######
> #     # #     # #     # #     #    #
> #       #       #     # #     #    #
>  #####  #       #     # ######     #
>       # #       #     # #   #      #
> #     # #     # #     # #    #     #
>  #####   #####  ####### #     #    #
>
>   Extending the net to the mainframe
>   ==================================
>
>
>     -----------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
--

Russell Castagnaro
Chief Mentor
SyncTank Solutions
http://www.synctank.com

Earth is the cradle of mankind; one does not remain in the cradle forever
-Tsiolkovsky



Re: Win98, cocoon, class not found

Posted by Bruno Melloni <br...@melloni.com>.
Pardon my ignorance, but I'm very new to cocoon.  What is SAX?  Is it a
part of cocoon, xalan or xerces, or is it an alternative to one of
them.  I don't remember installing anything by that name on my Linux
setup, and that one worked.

bruno

Jeff Maury wrote:

>
>
> Bruno Melloni wrote:
>
>> I am not sure I get your point.  cocoon, xerces and xalan are all in
>> the classpath.  What class do you think might be missing?
>
> What's about the SAX files ?
>
> Jeff
>
>
>>
>>
>> bruno
>>
>> Jeff Maury wrote:
>>
>> >
>> >
>> > Bruno Melloni wrote:
>> >
>> >>  I think I might have found a bug in the Win98 implementation,
>> >>  although I
>> >>  hope I'm proven wrong.  I say this because I had no problem
>> >>  setting up
>> >>  this configuration on a Linux box (although with versions of the
>> >>  software that were 1-2 weeks older, but that shouldn't be
>> >>  relevant).
>> >>
>> >>  I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1,
>> >>  Cocoon
>> >>  1.7, Xerces 1.0.2, Xalan 0.19.5.
>> >>
>> >>  I have setup all the pieces in the configuration and properties
>> >>  files as
>> >>  I did with Linux (with appropriate changes for DOS paths) and
>> >>  attempted
>> >>  to access http://localhost/Cocoon.xml.  Cocoon has clearly begun
>> >>  loading
>> >>  (obviously from the cocoon.jar) but generated an error screen
>> >>  saying
>> >>  that it can't find the
>> >>  org.apache.cocoon.transformer.XalanTransformer
>> >>  class, which after checking I found in the cocoon.jar itself!!!
>> >>
>> >>  I am clearly having some sort of classpath problem, although I
>> >>  have the
>> >>  proper wrapper.classpath statements for cocoon, xerces and xalan
>> >>  in
>> >>  jserv.properties.  Any ideas?
>> >
>> > In JDK 1.2.x, having a class in the classpath is not enougth, you
>> > also must have all classes used  by this class in the classpath,
>> > otherwise, the class can not load.
>> > Here is an example
>> >
>> > public class A
>> > {
>> >
>> >   private void oneMethod() {
>> >     B obj;
>> >   }
>> > }
>> >
>> > If class B is not in the class path, even if the oneMethod is not
>> > called, the A class cannot be loaded. This was not true in JDK 1.1,
>> > an exception would be thrown when the method will be called but the
>> > class can be loaded.
>> >
>> > Best regards
>> > Jeff
>> >
>> >
>> >>
>> >>
>> >>  bruno
>> >>
>> >>
>> >>  --------------------------------------------------------------------
>> >>
>> >>  To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> >>  For additional commands, e-mail: cocoon-users-help@xml.apache.org
>> >
>> > --
>> > Jeff MAURY
>> > SCORT CTO
>> >
>> >
>> >  #####   #####  ####### ######  #######
>> > #     # #     # #     # #     #    #
>> > #       #       #     # #     #    #
>> >  #####  #       #     # ######     #
>> >       # #       #     # #   #      #
>> > #     # #     # #     # #    #     #
>> >  #####   #####  ####### #     #    #
>> >
>> >   Extending the net to the mainframe
>> >   ==================================
>> >
>> >
>> >    -------------------------------------------------------------
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>> >
> --
> Jeff MAURY
> SCORT CTO
>
>
>  #####   #####  ####### ######  #######
> #     # #     # #     # #     #    #
> #       #       #     # #     #    #
>  #####  #       #     # ######     #
>       # #       #     # #   #      #
> #     # #     # #     # #    #     #
>  #####   #####  ####### #     #    #
>
>   Extending the net to the mainframe
>   ==================================
>
>
>    ----------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

Re: Win98, cocoon, class not found

Posted by Jeff Maury <jf...@scort.com>.

Bruno Melloni wrote:

> I am not sure I get your point.  cocoon, xerces and xalan are all in
> the classpath.  What class do you think might be missing?

What's about the SAX files ?

Jeff


>
>
> bruno
>
> Jeff Maury wrote:
>
>>
>>
>> Bruno Melloni wrote:
>>
>> > I think I might have found a bug in the Win98 implementation,
>> > although I
>> > hope I'm proven wrong.  I say this because I had no problem setting
>> > up
>> > this configuration on a Linux box (although with versions of the
>> > software that were 1-2 weeks older, but that shouldn't be
>> > relevant).
>> >
>> > I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1,
>> > Cocoon
>> > 1.7, Xerces 1.0.2, Xalan 0.19.5.
>> >
>> > I have setup all the pieces in the configuration and properties
>> > files as
>> > I did with Linux (with appropriate changes for DOS paths) and
>> > attempted
>> > to access http://localhost/Cocoon.xml.  Cocoon has clearly begun
>> > loading
>> > (obviously from the cocoon.jar) but generated an error screen
>> > saying
>> > that it can't find the
>> > org.apache.cocoon.transformer.XalanTransformer
>> > class, which after checking I found in the cocoon.jar itself!!!
>> >
>> > I am clearly having some sort of classpath problem, although I have
>> > the
>> > proper wrapper.classpath statements for cocoon, xerces and xalan in
>> >
>> > jserv.properties.  Any ideas?
>>
>> In JDK 1.2.x, having a class in the classpath is not enougth, you
>> also must have all classes used  by this class in the classpath,
>> otherwise, the class can not load.
>> Here is an example
>>
>> public class A
>> {
>>
>>   private void oneMethod() {
>>     B obj;
>>   }
>> }
>>
>> If class B is not in the class path, even if the oneMethod is not
>> called, the A class cannot be loaded. This was not true in JDK 1.1,
>> an exception would be thrown when the method will be called but the
>> class can be loaded.
>>
>> Best regards
>> Jeff
>>
>>
>> >
>> >
>> > bruno
>> >
>> >
>> > --------------------------------------------------------------------
>> >
>> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>> --
>> Jeff MAURY
>> SCORT CTO
>>
>>
>>  #####   #####  ####### ######  #######
>> #     # #     # #     # #     #    #
>> #       #       #     # #     #    #
>>  #####  #       #     # ######     #
>>       # #       #     # #   #      #
>> #     # #     # #     # #    #     #
>>  #####   #####  ####### #     #    #
>>
>>   Extending the net to the mainframe
>>   ==================================
>>
>>
>>     --------------------------------------------------------------
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
--
Jeff MAURY
SCORT CTO


 #####   #####  ####### ######  #######
#     # #     # #     # #     #    #
#       #       #     # #     #    #
 #####  #       #     # ######     #
      # #       #     # #   #      #
#     # #     # #     # #    #     #
 #####   #####  ####### #     #    #

  Extending the net to the mainframe
  ==================================


Re: Win98, cocoon, class not found

Posted by Bruno Melloni <br...@melloni.com>.
I am not sure I get your point.  cocoon, xerces and xalan are all in the
classpath.  What class do you think might be missing?

bruno

Jeff Maury wrote:

>
>
> Bruno Melloni wrote:
>
>> I think I might have found a bug in the Win98 implementation,
>> although I
>> hope I'm proven wrong.  I say this because I had no problem setting
>> up
>> this configuration on a Linux box (although with versions of the
>> software that were 1-2 weeks older, but that shouldn't be relevant).
>>
>> I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1,
>> Cocoon
>> 1.7, Xerces 1.0.2, Xalan 0.19.5.
>>
>> I have setup all the pieces in the configuration and properties
>> files as
>> I did with Linux (with appropriate changes for DOS paths) and
>> attempted
>> to access http://localhost/Cocoon.xml.  Cocoon has clearly begun
>> loading
>> (obviously from the cocoon.jar) but generated an error screen saying
>>
>> that it can't find the
>> org.apache.cocoon.transformer.XalanTransformer
>> class, which after checking I found in the cocoon.jar itself!!!
>>
>> I am clearly having some sort of classpath problem, although I have
>> the
>> proper wrapper.classpath statements for cocoon, xerces and xalan in
>> jserv.properties.  Any ideas?
>
> In JDK 1.2.x, having a class in the classpath is not enougth, you also
> must have all classes used  by this class in the classpath, otherwise,
> the class can not load.
> Here is an example
>
> public class A
> {
>
>   private void oneMethod() {
>     B obj;
>   }
> }
>
> If class B is not in the class path, even if the oneMethod is not
> called, the A class cannot be loaded. This was not true in JDK 1.1, an
> exception would be thrown when the method will be called but the class
> can be loaded.
>
> Best regards
> Jeff
>
>
>>
>>
>> bruno
>>
>>
>> --------------------------------------------------------------------
>>
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> --
> Jeff MAURY
> SCORT CTO
>
>
>  #####   #####  ####### ######  #######
> #     # #     # #     # #     #    #
> #       #       #     # #     #    #
>  #####  #       #     # ######     #
>       # #       #     # #   #      #
> #     # #     # #     # #    #     #
>  #####   #####  ####### #     #    #
>
>   Extending the net to the mainframe
>   ==================================
>
>
>    ----------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

Re: Win98, cocoon, class not found

Posted by Jeff Maury <jf...@scort.com>.

Bruno Melloni wrote:

> I think I might have found a bug in the Win98 implementation, although I
> hope I'm proven wrong.  I say this because I had no problem setting up
> this configuration on a Linux box (although with versions of the
> software that were 1-2 weeks older, but that shouldn't be relevant).
>
> I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe 1.1, Cocoon
> 1.7, Xerces 1.0.2, Xalan 0.19.5.
>
> I have setup all the pieces in the configuration and properties files as
> I did with Linux (with appropriate changes for DOS paths) and attempted
> to access http://localhost/Cocoon.xml.  Cocoon has clearly begun loading
> (obviously from the cocoon.jar) but generated an error screen saying
> that it can't find the org.apache.cocoon.transformer.XalanTransformer
> class, which after checking I found in the cocoon.jar itself!!!
>
> I am clearly having some sort of classpath problem, although I have the
> proper wrapper.classpath statements for cocoon, xerces and xalan in
> jserv.properties.  Any ideas?

In JDK 1.2.x, having a class in the classpath is not enougth, you also must
have all classes used  by this class in the classpath, otherwise, the class
can not load.
Here is an example

public class A
{

  private void oneMethod() {
    B obj;
  }
}

If class B is not in the class path, even if the oneMethod is not called,
the A class cannot be loaded. This was not true in JDK 1.1, an exception
would be thrown when the method will be called but the class can be loaded.

Best regards
Jeff


>
>
> bruno
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

--
Jeff MAURY
SCORT CTO


 #####   #####  ####### ######  #######
#     # #     # #     # #     #    #
#       #       #     # #     #    #
 #####  #       #     # ######     #
      # #       #     # #   #      #
#     # #     # #     # #    #     #
 #####   #####  ####### #     #    #

  Extending the net to the mainframe
  ==================================


RE: Win98, cocoon, class not found

Posted by Michel Lehon <Mi...@Outwares.com>.
> From: Bruno Melloni [mailto:bruno@melloni.com]
>
> Thank you, you nailed it on the dot.  I replaced the Xerces
> 1.0.2 wth 1.0.1 and
> the problem went away.  The windows version of 1.0.2 is
> definitely incomplete.

I don't know if it is incomplete or out of sync with Xalan.
To avoid problems use the jars bundled with Cocoon first.

> But a new problem popped up.  Now I get the error:
>
> java.lang.RuntimeException: Error creating
> org.apache.cocoon.processor.ldap.LdapProcessor:  make sure
> the needed classes
> can be found in the classpath (javax/naming/directory/DirContext).
>
> I checked and found that DirContext.class is in jndi.jar.  So
> I put jndi.jar in
> the classpath (by placing it in JAVA_HOME/jre/lib/ext), but
> that now returns an
> "Internal Server Error" when trying to access
> localhost/Cocoon.xml.  Could it be
> that Cocoon is actually looking for an LDAP service to be
> running on my PC?  If
> so, can you recommend one I can download?

There is a long thread out the LDAP processor running.

If you don't intend to use it just comment it out in the cocoon.properties
file
and forget about jndi.jar

it should look like this:
#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor

If you need it then you should go the the sun java web site to get the
missing pieces.
(I don't know the exact address, but it should be rather easy to find)

I really think the LDAP processor should be commented out by default
to avoid all these problems people are having setting up Cocoon...

just my 2cents.

Michel Lehon.
Michel.Lehon@Outwares.com
SAS Data Warehousing & Web enablement.


Re: Win98, cocoon, class not found

Posted by Bruno Melloni <br...@melloni.com>.
Thank you, you nailed it on the dot.  I replaced the Xerces 1.0.2 wth 1.0.1 and
the problem went away.  The windows version of 1.0.2 is definitely incomplete.

But a new problem popped up.  Now I get the error:

java.lang.RuntimeException: Error creating
org.apache.cocoon.processor.ldap.LdapProcessor:  make sure the needed classes
can be found in the classpath (javax/naming/directory/DirContext).

I checked and found that DirContext.class is in jndi.jar.  So I put jndi.jar in
the classpath (by placing it in JAVA_HOME/jre/lib/ext), but that now returns an
"Internal Server Error" when trying to access localhost/Cocoon.xml.  Could it be
that Cocoon is actually looking for an LDAP service to be running on my PC?  If
so, can you recommend one I can download?

bruno

Michel Lehon wrote:

> > From: Bruno Melloni [mailto:bruno@melloni.com]
> >
> > I think I might have found a bug in the Win98 implementation,
> > although I
> > hope I'm proven wrong.  I say this because I had no problem setting up
> > this configuration on a Linux box (although with versions of the
> > software that were 1-2 weeks older, but that shouldn't be relevant).
> >
> > I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe
> > 1.1, Cocoon
> > 1.7, Xerces 1.0.2, Xalan 0.19.5.
> >
> [snip]
>
> > Cocoon has clearly begun loading
> > (obviously from the cocoon.jar) but generated an error screen saying
> > that it can't find the org.apache.cocoon.transformer.XalanTransformer
> > class, which after checking I found in the cocoon.jar itself!!!
> >
> > I am clearly having some sort of classpath problem, although
> > I have the
> > proper wrapper.classpath statements for cocoon, xerces and xalan in
> > jserv.properties.  Any ideas?
>
> I could reproduce your problem, the complete error message is
> java.lang.RuntimeException: Error creating
> org.apache.cocoon.transformer.XalanTransformer: make sure the needed classes
> can be found in the classpath (org/xml/sax/misc/LexicalHandler)
>
> So the class missing is org.xml.sax.misc.LexicalHandler
> for some reasons I don't know it was in Xerces 1.0.1
> but moved in Xerces 1.0.2 (to org.xml.sax.ext.LexicalHandler ? just a guess)
>
> For the moment the problem can be resolved by using Xerces1.0.1.
>
> I looked in XalanTransformer but can't find any LexicalHandler so I guess
> this is a problem
> either in Xerces1.0.2 itself or in its interaction with Xalan 0.19.5 (the
> only versions of Xalan I tested with).
>
> Michel Lehon.
> Michel.Lehon@Outwares.com
> SAS Data Warehousing & Web enablement.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


RE: Win98, cocoon, class not found

Posted by Michel Lehon <Mi...@Outwares.com>.
> From: Bruno Melloni [mailto:bruno@melloni.com]
>
> I think I might have found a bug in the Win98 implementation,
> although I
> hope I'm proven wrong.  I say this because I had no problem setting up
> this configuration on a Linux box (although with versions of the
> software that were 1-2 weeks older, but that shouldn't be relevant).
>
> I am using Win98, JDK 1.2.2, JSDK 2.0, Apache 1.3.12, JServe
> 1.1, Cocoon
> 1.7, Xerces 1.0.2, Xalan 0.19.5.
>
[snip]

> Cocoon has clearly begun loading
> (obviously from the cocoon.jar) but generated an error screen saying
> that it can't find the org.apache.cocoon.transformer.XalanTransformer
> class, which after checking I found in the cocoon.jar itself!!!
>
> I am clearly having some sort of classpath problem, although
> I have the
> proper wrapper.classpath statements for cocoon, xerces and xalan in
> jserv.properties.  Any ideas?

I could reproduce your problem, the complete error message is
java.lang.RuntimeException: Error creating
org.apache.cocoon.transformer.XalanTransformer: make sure the needed classes
can be found in the classpath (org/xml/sax/misc/LexicalHandler)

So the class missing is org.xml.sax.misc.LexicalHandler
for some reasons I don't know it was in Xerces 1.0.1
but moved in Xerces 1.0.2 (to org.xml.sax.ext.LexicalHandler ? just a guess)

For the moment the problem can be resolved by using Xerces1.0.1.

I looked in XalanTransformer but can't find any LexicalHandler so I guess
this is a problem
either in Xerces1.0.2 itself or in its interaction with Xalan 0.19.5 (the
only versions of Xalan I tested with).

Michel Lehon.
Michel.Lehon@Outwares.com
SAS Data Warehousing & Web enablement.