|
From: Hans B. <ben...@ch...> - 2003-11-18 19:10:14
|
Thanks Bill,
your answer inspirated me to re-read the tomcat class loader howto and to
find out that I was wrong thinking that
web_server_libs=... - path to the shared library directory
for your webserver
means "common/lib" - it of course means "shared/lib". (Somehow I thought
this had changed between tomcat 4.0 and 4.1, but obviously I was wrong!)
So now tomcat starts again and I am running into the next kind of trouble:
---
<2003-11-18 19:36:42,000> ERROR [http8080-Processor4] :
[UserFactory.<init>] Error trying to instantiate: simple
java.lang.NullPointerException
at com.babeldoc.core.user.UserFactory.<init>(UserFactory.java:109)
at
com.babeldoc.core.user.UserFactory.getInstance(UserFactory.java:131)
at com.babeldoc.web.main.ConsoleServlet.handleSecurity(Unknown
Source)
at com.babeldoc.web.main.ConsoleServlet.handleRequest(Unknown
Source)
---
Should there be a line like
Userfactory.simple=com.babeldoc.core.user.simple.SimpleUserFactory
in modules/core/config/service/query.properties? Or is this left out,
because afterwards everybody with the password "password" is
authenticated?
Thanks for your help,
Hans
On Tue, 18 Nov 2003, Bill Harrelson wrote:
> Hi Hans,
>
> I got this too. I ended up renaming commons-digester.jar (to
> commons-digestar.jar-remove) in tomcat/common/lib, and everything
> seemed to work. I don't know why this works, perhaps one of the
> developers can answer. I'm sure that I'm not using something that
> relies on commons-digester, I just haven't found it, and I was able to
> move forward in my testing.
>
> I hope that someone will be able to answer this, as my original post
> on this subject was unanswered.
>
> regards,
>
> Bill
>
> On 18 Nov 2003 at 17:48, Hans Benedict wrote:
>
> > Hi,
> >
> > has anybody used the web module together with tomcat 4.1.x? I tried to
> > follow the instructions in modules/web/readme.txt and created a file
> > called local.properties like this:
> >
> > -------
> > web_server_home=/path/to/tomcat
> > web_server_libs=/path/to/tomcat/common/lib
> > web_server_opts=JAVA_OPTS
> > web_server_webapps=/path/to/tomcat/webapps
> > web_server_bin=/path/to/tomcat/bin
> > web_server_startup=/path/to/tomcat/bin/startup.sh
> > -------
> >
> > Running "build.sh deploy" copies the files as intended, but afterwards
> > starting tomcat fails with the following message in catalina_out:
> >
> > -------
> > Catalina.start: java.lang.ClassNotFoundException:
> > org.apache.catalina.core.Stand
> > ardServer
> > java.lang.ClassNotFoundException:
> > org.apache.catalina.core.StandardServer
> > at
> > org.apache.commons.digester.Digester.createSAXException(Digester.java
> > :2383)
> > at
> > org.apache.commons.digester.Digester.createSAXException(Digester.java
> > :2409)
> > at
> > org.apache.commons.digester.Digester.startElement(Digester.java:1271)
> > at
> > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
> > ce)
> > at
> > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknow
> > n
> > Sourc
> > e)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
> > t(Unknown Source)
> > at
> > org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
> > ootElementHook(Unknown Source)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> > Dispatcher.dispatch(Unknown Source)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> > known Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> > Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> > Source)
> > at
> > org.apache.commons.digester.Digester.parse(Digester.java:1543)
> > at
> > org.apache.catalina.startup.Catalina.start(Catalina.java:449)
> > at
> > org.apache.catalina.startup.Catalina.execute(Catalina.java:400
> > ) at
> > org.apache.catalina.startup.Catalina.process(Catalina.java:180
> > ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method) at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > --------
> >
> > To me this looks like a conflicting library, perhaps something like
> > xerces...
> >
> > Any suggestions about this?
> >
> > And another question:
> >
> > In the file babeldoc_webrun, which is created with the build command
> > above, it reads:
> >
> > ---
> > JAVA_OPTS=-Dbabeldoc.home=$BABELDOC_HOME
> > if [ -z "$BABELDOC_USER" ] ; then
> > JAVA_OPTS="$JAVA_OPTS -DbabelConfigPath=$BABELDOC_USER"
> > fi
> > ---
> >
> > Shouldn't this be a "NOT zero" in the if test? Like this:
> >
> > ---
> > JAVA_OPTS=-Dbabeldoc.home=$BABELDOC_HOME
> > if [ -n "$BABELDOC_USER" ] ; then
> > JAVA_OPTS="$JAVA_OPTS -DbabelConfigPath=$BABELDOC_USER"
> > fi
> > ---
> >
> >
> > Regards,
> >
> > Hans
> >
> >
> >
> > -------------------------------------------------------
> > This SF. Net email is sponsored by: GoToMyPC
> > GoToMyPC is the fast, easy and secure way to access your computer from
> > any Web browser or wireless device. Click here to Try it Free!
> > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tm
> > pl _______________________________________________ Babeldoc-devel
> > mailing list Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> --
> William B. Harrelson
> President
> Accordare
> 13A Medford Street, Arlington, MA 02474
> t:781-646-2241 f:781-646-2242
> Bil...@Ac...
>
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
|