RE: Config/Startup problem contextInit() not running

2002-01-22 Thread Adam Paeth

I added the CustomRealm declaration into the modules.xml and now I get a
CNFE(ClassNotFound Exception).  This is a step in the right direction, I
know that at least my config directory is being read.  The class is in a
.jar file that is in /opt/local/tomcat/lib.  Is there something that I need
to do with the classpath somewhere to have this jar file included?

Thanks,
Adam Paeth

> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 11:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Config/Startup problem contextInit() not running
>
>
> More likely there is something going wrong with modules-myapp.xml.
> Perhaps there is an problem reading a separate "modules" file and
> context local modules. I recall something like this happening to
> me a while back, but I forget exact problem and cause.  I'll try
> investigating.  In the mean time, try adding the CustomRealm
> declaration directly in modules.xml instead of using
> modules-myapp.xml and see what happens.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Adam Paeth [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 22, 2002 12:21 PM
> > To: Tomcat Users List
> > Subject: RE: Config/Startup problem contextInit() not running
> >
> >
> > OK, I have more clues, but no answer yet.  Here's what I did:
> >
> > 1> Change javaClass in modules-myapp.xml to a non-existant class.
> >Result: no error messages.
> >
> > 2> change modules-myapp.xml to _modules-myapp.xml in an
> > attempt to make TC
> > think there is no such file
> >Result: no error messages.
> >
> > 3> change  to  in apps-myapp.xml
> >Result: no error messages.
> >
> > It appears to be ignoring my apps-myapp.xml file all
> > together.  TOMCAT_HOME
> > is set properly to /opt/local/tomcat.  I'm not sure what is
> > happening.  I
> > feel completely lost at this point.
> >
> > AP
> >
> > > -Original Message-
> > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 22, 2002 7:35 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Config/Startup problem contextInit() not running
> > >
> > >
> > > If there aren't any System.out.println's or log output being
> > > generated by your CustomRealm, you can try temporarily removing
> > > the myapp.tomcat.CustomRealm class from your installation and
> > > see if Tomcat complains.  It should complain if it is acting on
> > > your  entry but can't find the class.  An
> > > alternative is to modify modules-myapp.xml to specify
> > > an incorrect class name.
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: Adam Paeth [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, January 21, 2002 5:05 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: Config/Startup problem contextInit() not running
> > > >
> > > >
> > > > That is a great question, how do I check since I can't find
> > > > anything in a
> > > > log file?
> > > >
> > > > Thanks,
> > > > Adam
> > > >
> > > > > -Original Message-
> > > > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, January 21, 2002 3:53 PM
> > > > > To: 'Tomcat Users List'
> > > > > Subject: RE: Config/Startup problem contextInit() not running
> > > > >
> > > > >
> > > > > I'll investigate for Tomcat 3.3a/3.3.1-dev.  Do you know if your
> > > > >  is being loaded, as opposed to being ignored?
> > > > >
> > > > > Cheers,
> > > > > Larry
> > > > >
> > > > > > -Original Message-
> > > > > > From: Adam Paeth
> > [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Monday, January 21, 2002 4:10 PM
> > > > > > To: Tomcat User List
> > > > > > Subject: Config/Startup problem contextInit() not running
> > > > > >
> > > > > >
> > > > > >
> > > > > > I'm going crazy trying to figure this out...
> > > > > >
> > > > > > I've re-written a customized realm that we used for our
> &

RE: Config/Startup problem contextInit() not running

2002-01-22 Thread Adam Paeth

OK, I have more clues, but no answer yet.  Here's what I did:

1> Change javaClass in modules-myapp.xml to a non-existant class.
   Result: no error messages.

2> change modules-myapp.xml to _modules-myapp.xml in an attempt to make TC
think there is no such file
   Result: no error messages.

3> change  to  in apps-myapp.xml
   Result: no error messages.

It appears to be ignoring my apps-myapp.xml file all together.  TOMCAT_HOME
is set properly to /opt/local/tomcat.  I'm not sure what is happening.  I
feel completely lost at this point.

AP

> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 7:35 AM
> To: 'Tomcat Users List'
> Subject: RE: Config/Startup problem contextInit() not running
>
>
> If there aren't any System.out.println's or log output being
> generated by your CustomRealm, you can try temporarily removing
> the myapp.tomcat.CustomRealm class from your installation and
> see if Tomcat complains.  It should complain if it is acting on
> your  entry but can't find the class.  An
> alternative is to modify modules-myapp.xml to specify
> an incorrect class name.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Adam Paeth [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 21, 2002 5:05 PM
> > To: Tomcat Users List
> > Subject: RE: Config/Startup problem contextInit() not running
> >
> >
> > That is a great question, how do I check since I can't find
> > anything in a
> > log file?
> >
> > Thanks,
> > Adam
> >
> > > -Original Message-
> > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 21, 2002 3:53 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Config/Startup problem contextInit() not running
> > >
> > >
> > > I'll investigate for Tomcat 3.3a/3.3.1-dev.  Do you know if your
> > >  is being loaded, as opposed to being ignored?
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: Adam Paeth [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, January 21, 2002 4:10 PM
> > > > To: Tomcat User List
> > > > Subject: Config/Startup problem contextInit() not running
> > > >
> > > >
> > > >
> > > > I'm going crazy trying to figure this out...
> > > >
> > > > I've re-written a customized realm that we used for our
> > > > Tomcat 3.2.1 (now
> > > > for 3.3).  For some reason the debug messages that I've
> > put into the
> > > > contextInit() method are not showing up on the console or any
> > > > log files.  It
> > > > doesn't appear that the method is running.  Can anyone tell
> > > > me why this is
> > > > happening and the best approach to fixing it?
> > > >
> > > > After getting some advice from a previous post I setup the
> > > > config files as
> > > > such:
> > > >
> > > > apps-myapp.xml
> > > > --
> > > > 
> > > > 
> > > > > > > docBase="webapps/myapp"
> > > > debug="1"
> > > > reloadable="true" >
> > > >   
> > > >> path="logs/myapp.log" />
> > > >> > >  path="logs/servlet_myapp.log"
> > > >  servletLogger="true"/>
> > > >   
> > > >
> > > > 
> > > >
> > > > modules-myapp.xml
> > > > -
> > > > 
> > > > 
> > > >> javaClass="myapp.tomcat.CustomRealm"/>
> > > > 
> > > >
> > > > Thanks,
> > > > Adam Paeth
> > > >
> > > >
> > > > --
> > > > To unsubscribe:
> > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands:
> > <mailto:[EMAIL PROTECTED]>
> > > > Troubles with the list:
> > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > > --
> > > To unsubscribe:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands:
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Config/Startup problem contextInit() not running

2002-01-21 Thread Adam Paeth

That is a great question, how do I check since I can't find anything in a
log file?

Thanks,
Adam

> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 3:53 PM
> To: 'Tomcat Users List'
> Subject: RE: Config/Startup problem contextInit() not running
>
>
> I'll investigate for Tomcat 3.3a/3.3.1-dev.  Do you know if your
>  is being loaded, as opposed to being ignored?
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Adam Paeth [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 21, 2002 4:10 PM
> > To: Tomcat User List
> > Subject: Config/Startup problem contextInit() not running
> >
> >
> >
> > I'm going crazy trying to figure this out...
> >
> > I've re-written a customized realm that we used for our
> > Tomcat 3.2.1 (now
> > for 3.3).  For some reason the debug messages that I've put into the
> > contextInit() method are not showing up on the console or any
> > log files.  It
> > doesn't appear that the method is running.  Can anyone tell
> > me why this is
> > happening and the best approach to fixing it?
> >
> > After getting some advice from a previous post I setup the
> > config files as
> > such:
> >
> > apps-myapp.xml
> > --
> > 
> > 
> > > docBase="webapps/myapp"
> > debug="1"
> > reloadable="true" >
> >   
> >   
> >>  path="logs/servlet_myapp.log"
> >  servletLogger="true"/>
> >   
> >
> > 
> >
> > modules-myapp.xml
> > -
> > 
> > 
> >   
> > 
> >
> > Thanks,
> > Adam Paeth
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Config/Startup problem contextInit() not running

2002-01-21 Thread Adam Paeth


I'm going crazy trying to figure this out...

I've re-written a customized realm that we used for our Tomcat 3.2.1 (now
for 3.3).  For some reason the debug messages that I've put into the
contextInit() method are not showing up on the console or any log files.  It
doesn't appear that the method is running.  Can anyone tell me why this is
happening and the best approach to fixing it?

After getting some advice from a previous post I setup the config files as
such:

apps-myapp.xml
--


   
  
  
  
  



modules-myapp.xml
-


  


Thanks,
Adam Paeth


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Custom Realm looking for LocalStrings in wrong package

2001-12-18 Thread Adam Paeth

I'm continuing my attempt to get my 3.2.1 app to run on 3.3.  While I'm
making progress, I'm now stuck with the error at the end of this post.
 I believe the error happens when it tries to load my custom realm.  I'm
assuming that it is looking for the LocalStrings.properties or an
associated file in the org.apache.tomcat.resources package, but as the
error shos, it is looking in the org.apache.tomcat.request package which
no longer exists in 3.3. None of the custom realm classes reference the
LocalStrings file directly.  Any ideas on how to get this fixed is
appreciated.

Thanks in advance (again),
Adam Paeth

 Errror Message from console 

2001-12-18 10:12:53 - ContextXmlReader: Context
config=$TOMCAT_HOME/conf/apps-myapp.xml
EmbededTomcat: exception initializing ContextManager
java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find resource for base name
org.apache.tomcat.request.LocalStrings, locale en_US
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:47)
at
java.util.MissingResourceException.(MissingResourceException.java:54)
at java.util.ResourceBundle.getBundle(Compiled Code)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:353)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:120)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:111)
at
org.apache.tomcat.util.res.StringManager.getManager(StringManager.java:289)
at 
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance0(Compiled Code)
at java.lang.Class.newInstance(Compiled Code)
at org.apache.tomcat.util.xml.ObjectCreate.start(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.matchStart(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.startElement(Compiled Code)
at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.parseInternal(Compiled Code)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:310)
at
org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(ServerXmlRea
der.java:172)
at
org.apache.tomcat.modules.config.ContextXmlReader.engineInit(Compiled Code)
at org.apache.tomcat.core.ContextManager.init(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:564)
at
org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:548)
at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.
java:183)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:10
1)
at
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:546)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87
)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Custom Realm looking for LocalStrings in wrong package

2001-12-18 Thread Adam Paeth

I'm continuing my attempt to get my 3.2.1 app to run on 3.3.  While I'm
making progress, I'm now stuck with the error at the end of this post.
 I believe the error happens when it tries to load my custom realm.  I'm
assuming that it is looking for the LocalStrings.properties or an
associated file in the org.apache.tomcat.resources package, but as the
error shos, it is looking in the org.apache.tomcat.request package which
no longer exists in 3.3. None of the custom realm classes reference the
LocalStrings file directly.  Any ideas on how to get this fixed is
appreciated.

Thanks in advance (again),
Adam Paeth

 Errror Message from console 

2001-12-18 10:12:53 - ContextXmlReader: Context
config=$TOMCAT_HOME/conf/apps-myapp.xml
EmbededTomcat: exception initializing ContextManager
java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find resource for base name
org.apache.tomcat.request.LocalStrings, locale en_US
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:47)
at
java.util.MissingResourceException.(MissingResourceException.java:54)
at java.util.ResourceBundle.getBundle(Compiled Code)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:353)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:120)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:111)
at
org.apache.tomcat.util.res.StringManager.getManager(StringManager.java:289)
at 
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance0(Compiled Code)
at java.lang.Class.newInstance(Compiled Code)
at org.apache.tomcat.util.xml.ObjectCreate.start(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.matchStart(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.startElement(Compiled Code)
at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.parseInternal(Compiled Code)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:310)
at
org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(ServerXmlRea
der.java:172)
at
org.apache.tomcat.modules.config.ContextXmlReader.engineInit(Compiled Code)
at org.apache.tomcat.core.ContextManager.init(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:564)
at
org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:548)
at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.
java:183)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:10
1)
at
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:546)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87
)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Custom Realm looking for LocalStrings in wrong package

2001-12-18 Thread Adam Paeth

I'm continuing my attempt to get my 3.2.1 app to run on 3.3.  While I'm
making progress, I'm now stuck with the error at the end of this post.
 I believe the error happens when it tries to load my custom realm.  I'm
assuming that it is looking for the LocalStrings.properties or an
associated file in the org.apache.tomcat.resources package, but as the
error shows, it is looking in the org.apache.tomcat.request package which
no longer exists in 3.3. None of the custom realm classes reference the
LocalStrings file directly.  Any ideas on how to get this fixed is
appreciated.

Thanks in advance (again),
Adam Paeth

 Errror Message from console 

2001-12-18 10:12:53 - ContextXmlReader: Context
config=$TOMCAT_HOME/conf/apps-myapp.xml
EmbededTomcat: exception initializing ContextManager
java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find resource for base name
org.apache.tomcat.request.LocalStrings, locale en_US
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:47)
at
java.util.MissingResourceException.(MissingResourceException.java:54)
at java.util.ResourceBundle.getBundle(Compiled Code)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:353)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:120)
at
org.apache.tomcat.util.res.StringManager.(StringManager.java:111)
at
org.apache.tomcat.util.res.StringManager.getManager(StringManager.java:289)
at 
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance0(Compiled Code)
at java.lang.Class.newInstance(Compiled Code)
at org.apache.tomcat.util.xml.ObjectCreate.start(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.matchStart(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.startElement(Compiled Code)
at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.content(Compiled Code)
at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)
at org.apache.crimson.parser.Parser2.parseInternal(Compiled Code)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:310)
at
org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(ServerXmlRea
der.java:172)
at
org.apache.tomcat.modules.config.ContextXmlReader.engineInit(Compiled Code)
at org.apache.tomcat.core.ContextManager.init(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:564)
at
org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:548)
at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.
java:183)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:10
1)
at
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:546)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87
)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




tomcat 3.2.1 to 3.3 custom realm & Context Interceptor

2001-12-14 Thread Adam Paeth


As stated in previous postings, I'm trying to get our application ported to
tomcat 3.3.  I'm looking through our server.xml file and there are a few
customizations that I'm trying to figure out the 3.3 equivalent (from
3.2.1).

I have a custom realm based on the JDBCrealm, but does quite a bit more.
The entry in the Server.xml was



I'm guessing that the new entry should go in a app-x.xml file, but I'm
reading the documentation and getting nowhere fast.

Second, we have an Interceptor that was written to do some initialization.
Should this go into the app-.xml file as well?  What tag should I use?

Thanks for any help in advance,
Adam Paeth


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




mod_jk build fail tomcat 3.3 apache 1.3.22

2001-12-13 Thread Adam Paeth

Before I begin I did search the maillist archive and didn't see anyone 
have this specific problem yet...

I'm trying to build mod_jk on Solaris 8.
I've got apache w/ mod_ssl installed.
I've got tomcat 3.3 installed just fine.
apache and tomcat have tested just fine independent on one another.

When I run 'sh build-solaris.sh' it fails with the following:

gcc -DSOLARIS -DUSE_EXPAT -I../lib/expat-lite  
-I/opt/local/apache/include -I../common -I/usr/java/include 
-I/usr/java/include/solaris  -c mod_jk.c
  -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o 
jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o 
jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o 
jk_ajp12_worker.o -lposix4
apxs:Break: Command failed with rc=16777215
Error with apxs

I've read that most errors occur because of a mis-configured apxs script 
due to using a binary dist of apache.  However, apache along with the 
rest of my apps have been build from source.

any help is appreciated.

Thanks,
Adam Paeth



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Converting code from 3.2.1 to 3.3 Cookies and SecurityTools

2001-12-11 Thread Adam Paeth

I'm currently trying to upgrade our application to use tomcat 3.3.  We're
currently using 3.2.1 and at the very minimum need to go to 3.2.4.  Before I
go on let me say that I didn't write the code I'm trying to update.  I've
managed to convert quite a bit of our custom JDBC Realm, but I'm stuck on
two remaining sections of code:

1> Cookie addition.  I've looked at the javadoc and can't figure out what
the 3.3 equivalent should be for the following code segment. I get an error
when compiling because there is no addCookie anymore in the Response class.

Cookie ck = new Cookie("TEMPUSER", cookieValue);
ck.setPath("/");
response.addCookie(ck);

2> SecurityTools.  The SecurityTools class seems to be a relic of 3.2.x.
Therefore the calls to SecurityTools.haveRole( , ) and
SecurityTools.credentials( , ) fail when compiling.  Can anyone tell me what
the replacement calls or code would be?

Thanks in advance for any help.
Adam Paeth


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>