Disabling session cookies

2005-09-28 Thread William Holloway
Hello all,

I'm trying to force a particular web application to use url-rewritting
in place of session cookies to manage the session on Tomcat 5.0.28.  I
have, per the documentation, set the cookies="false" attribute of the
Context container for that application.  However, the cookie is still
getting set.  If I set the same attribute (cookies="false") in the
DefaultContext container in server.xml, I get the desired result. 
This would be great if there weren't other applications that relied on
session cookies running on the same server.

My question is, is this a bug or is Tomcat not designed to use
different methods of maintaining session across different contexts? 
The existance of the attribute and the context level would seem to
indicate this is possible.  I've seen posts with the same problem in
my searching but no resolutions.

Thanks in advance for any suggestions or information.

william

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN][Solaris] Availability of blastwave tomcat packages

2005-09-22 Thread william
Dear all,

To whom this may help...

Tomcat 4.1.31 and 5.5.9 have been packaged for solaris by BlastWave and are
available to people who use the BlastWave packages.

You can report any problem to http://www.blastwave.org/bugtrack/

Kind regards,

-- 
William Bonnet

SunWizard - Le site francais dédié aux amateurs de stations Unix
http://www.sunwizard.net

Community SoftWare for Solaris
http://www.blastwave.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread william
Hi

> I want to be taken off this mailing list.  Can somebody PLEASE help.

as i told in a previous email (that you likely did not read) there is a
message explaining how to unsuscribe from the mailing list in the footer of
*every* message sent on the list

have you tried it ?

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Kind regards,
William


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK ChangeLog

2005-09-01 Thread william
Hi

Selon "Hildegard Bronkhorst XH (ZA/ESA)" <[EMAIL PROTECTED]>:

> PLEASE DELETE ME IMMEDIATELY FROM YOUR MAILING LIST.  I NEVER REQUESTED A
> SUBSCRIPTION!

in this case it looks like you have been automagically added to the list :)

instead of shouting, could you please read the footer of the email ?

> To unsubscribe, e-mail: [EMAIL PROTECTED]

Have you tried this ? did it worked or not ? because if you did not tried,
nobody here will do it for you... do it yourself or ask to the admin if it does
not work

Kind regards,
William

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
I only sent the message once.  I apologize for any inconvenience, but
I wonder if gmail and/or ezmlm are having issues today - I've received
the welcome message from ezmlm four times now.

w

On 7/7/05, Tim Funk <[EMAIL PROTECTED]> wrote:
> Please stop posting the same question 4 times and please wait for a response.
> 
> The answer to the question below is no. There is no switch. To not use URL
> rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of
> course - this requires a code rewrite.
> 
> The easier solution is to implement a servlet filter which creates a
> HttpServletResponseWrapper which overrides encodeURL and encodeRedirectURL
> 
> -Tim
> 
> William Stranathan wrote:
> 
> > Is there a configuration parameter to ONLY send the jsessionid by
> > cookie, not on the URL bar?
> >
> > Picture this, user goes to your site http://www.yoursite.com/yourapp
> > yoursite redirects to the menu page, which gives a jsessionid.  That
> > page is under an auth-constraint and requires login, so you get
> > displayed the login page, but the URL you've been redirected to
> > includes the jsessionid - like:
> > http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
> > User wants to share the site with their friends, so they copy/paste
> > from the URL bar.  Then they log in - their session is now logged in,
> > AND they have the same session ID.
> >
> > And yes, this does work - I'm able to copy/paste between different
> > browsers (exploder and firefox) and the session works fine.
> >
> > Is there a way to turn that feature off?
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
Is there a configuration parameter to ONLY send the jsessionid by
cookie, not on the URL bar?

Picture this, user goes to your site http://www.yoursite.com/yourapp
yoursite redirects to the menu page, which gives a jsessionid.  That
page is under an auth-constraint and requires login, so you get
displayed the login page, but the URL you've been redirected to
includes the jsessionid - like:
http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
User wants to share the site with their friends, so they copy/paste
from the URL bar.  Then they log in - their session is now logged in,
AND they have the same session ID.

And yes, this does work - I'm able to copy/paste between different
browsers (exploder and firefox) and the session works fine.

Is there a way to turn that feature off?

w

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MOD_JK 1.2.13 problems building (is this correct forum?)

2005-06-23 Thread William Bulley
I am attempting to build mod_jk 1.2.13 from source on FreeBSD 5.4
which already has apache-2.1.4 and jakarta-tomcat-5.0.30 build
from source (from the FreeBSD ports tree).  I am following the
build instructions at:

   http://jakarta.apache.org/tomcat/connectors-doc/install/apache2.html

but I am getting compile time errors on the first file that make
attempts to build.  Is this the correct forum for dicsussing this
sort of problem?  Thanks in advance.

Regards,

web...

--
William Bulley Email: [EMAIL PROTECTED]
Merit Network Inc. Ann Arbor, Michigan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat on Solaris 10

2005-06-17 Thread william
Hi

> Has anyone got Tomcat running on Solaris 10? Your responses will be
> appreciated.

Tomcat is packaged by blastwave.org and is working fine under solaris 10.

Kind regards,
William

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat for Solaris System

2005-06-15 Thread william
Hi,

> I am new to solaris system and i want to learn jsp in solaris system using
> tomcat server.
> where can i get the tomcat server and how to install it in solaris.
> What is the process of executing jsp in solaris.

Tomcat 5.5.9 has been packaged for Solaris and is available from
www.blastwave.org

If you are using blastwave's package sources you can add it by pkg-get -i tomcat

Kind regards,
William

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: logging.properties configuration - log stdout and stderr to a file

2005-06-01 Thread William BC Crandall
Hello Santhana,

I just went through this and found useful info here

$CATALINA_HOME\webapps\tomcat-docs\logging.html

and here:

http://minaret.biz/tips/tomcatLogging.html

Good luck!

William BC Crandall
bc.crandall [around] earthlink.net




- Original Message - 
From: "SANTHANA GOPALAN" <[EMAIL PROTECTED]>
To: 
Sent: 01 June 2005 2:01 AM
Subject: logging.properties configuration - log stdout and stderr to a file


> Hi,
>  
>How to configure tomcat 5 to log stderr and stdout
>  to the log file. I tried it using logging.properties
>  but the stdout and stderr is displaying only in the
>  console. How to log into the file?   I am
>  using tomcat 5.5.9 on windows OS. How to configure
>  logging.properties file?
>  
>  With regards,
>  R. SANTHANA GOPALAN.
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDI Realm Broken

2005-05-24 Thread William Brown
Greetings:
 
We have been using a custom JNDI realm for several months on Tomcat 5.0
without an issue.  Yesterday, an application suddenly stopped working
with the following error trace during deployment: 
 
May 24, 2005 8:46:12 AM org.apache.commons.digester.Digester
startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/catalina/realm/JNDIRealm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLo
ader.java:485)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ader.java:820)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ader.java:721)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ader.java:803)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ader.java:721)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:252)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.
java:65)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.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:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:81
3)
at
org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManage
rServlet.java:271)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:540)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:

Re: Accessing images through FrontController Servlet

2005-05-21 Thread William BC Crandall
Thanks Robert, 

Hard-coding the images works fine, but I'm leery of this, 
as they will of course all need to be changed when the app 
goes up on a public server; changes could be localized, but... 

Is there really no way to declare  calls in the web-app 
that would allow images to use relative path names? 

The init-param 'imgURL' sounds like it should allow this, 
but I'm not familiar with it.

Thanks for your suggestion, which gets things moving again. 
Thanks too for the pointer to Ethereal; looks like a useful tool.

Best,

-BC

William BC Crandall
bc.crandall [around] earthlink.net



- Original Message - 
From: "Robert r. Sanders" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: 20 May 2005 8:36 PM
Subject: Re: Accessing images through FrontController Servlet


> Do you have any logs of what's going on?  Also, make sure the pages are 
> using the  tag (or equivalent), as the image paths need to be 
> relative to the url that the client browser see - should be able to hard 
> code the path to be /ntrr/images/whatever.jpg
> 
> To check for bad paths  first view page source from your browser, then 
> you can get the image urls and see if they map to the correct path.  
> There are also some nice tools that you can run to see what's going on, 
> for instance the "Live Headers" extension for Firefox, or Ethereal for a 
> more general solution
> 
> William BC Crandall wrote:
> 
> >Hello,
> >
> >I'm starting a new project, using a FrontController servlet
> >(http://java.sun.com/j2ee/patterns/FrontController.html),
> >and am unable to access image files. 
> >
> >My understanding is that each  invokes another call 
> >to the server/servlet, which, due to the mapping in web.xml,
> >is channeled through the controller servlet, which rejects
> >the call because it does not point to a sub-servlet.
> >
> >How can I access images in webapps/ntrr/images/ ?
> >
> >My web.xml: 
> >
> >
> >
> >  
> >
> >  controller
> >
> >
> >  org.ntrr.core.ControlServlet
> >
> >  
> >
> >  
> >
> >  controller
> >
> >
> >  /*
> >
> >  
> >  
> >
> >
> >I have tried, without success, adding: 
> >
> >
> >  imageUrl
> >  http://localhost:8080/ntrr/images/
> >
> >
> >The files in webapps/ntrr/images/ ARE accessible from
> >webapps/ntrr/css/ntrr.css, when called as background 
> >page images, for example.
> >
> >Any suggestions welcomed. 
> >
> >Thanks,
> >
> >-BC
> >
> >William BC Crandall
> >bc.crandall [around] earthlink.net
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> -- 
> Robert r. Sanders
> Chief Technologist
> iPOV
> (334) 821-5412
> www.ipov.net
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



New Session on Authentication?

2005-04-06 Thread William Stranathan
Is there a configuration setting to force Tomcat to expire the old
session and put the user in a new one when they log in using any of
the Realm's?  For example, this is a problem:

- User tries to access a restricted page - no session set up
- Tomcat redirects to the login page, appends ;jsessionid= to the URL
- User successfully authenticates

Now, a URL with a valid session ID is in the user's history, might be
logged, and an unknowing user could copy/paste that URL to somebody
say in a newsgroup or something.

I'm using mod-rewrite on an Apache server in front of Tomcat to fix
the jsessionid going in the URL, but is there any way to force Tomcat
to make a new session upon authentication?  I know that this is not
always desirable - a user may have preferences in their session before
they authenticate, so I think it should be optional.

Thanks for any help.
Will Stranathn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI Realm Issue with 5.5.7

2005-03-26 Thread William Stranathan
I haven't tried this out myself, but here are several possibilities:

1) Does /main/index.jsp exist?  That's where your servlet points to
2) There doesn't appear to be a welcome-file configured - depending on
what URL you're using, it may be that it's looking for a welcome file,
but since there's not one configured, it can't be found.

This doesn't APPEAR to be a JNDI issue.  Have you tried this
configuration WITHOUT the security-constraint yet to eliminate AAA as
the cause of the issues?

w

On Fri, 25 Mar 2005 20:17:19 -0800 (PST), Ole Ersoy <[EMAIL PROTECTED]> wrote:
> 
> I think I must be missing something obvious in the
> configuration
> files, because I get the login error page when
> entering non user information,
> and when I type in the correct username and password,
> tomcat gives me this:
> 
> HTTP Status 403 - Access to the requested resource has
> been denied
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



setting sys properties in context? yea / nay?

2005-03-23 Thread William Noto
Hi there - 

 

I have what I consider a Tomcat question but it lies somewhere between
tomcat and log4j.  I've looked elsewhere in the log4j and tomcat user lists
and I have not been able to find an answer to this one but please forgive me
if it is out there and I missed it.

 

Can I set a system property in my Context?  My understanding is that I can
set a JNDI property using the  tag, but not a system property?
The issue is that I would like to use this property in my log4j.properties
file, like this:

 

log4j.appender.fileout.File=${log.path}/logs/logfile.log

 

Any suggestions or links?

 

Thanks,

 

William

 



Re: image upload

2005-03-22 Thread William Stranathan
Use javax.imageio.ImageIO to read the image from an input stream - you
get back a BufferedImage from which you can determine the dimensions.

w


On Tue, 22 Mar 2005 08:57:36 -0500, Shannon Scott <[EMAIL PROTECTED]> wrote:
> Thank you for pointing me to the JCFU.
> I plan to use it for uploading images.
> I could not find a method that would allow me to determine or control
> pixel dimensions for uploaded images ( only file size ).
> How do others filter images based on actual image size ( pixel
> dimensions ).
> Thank you again.
> S
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to trap errors while authenticating user : Custon Authentication mechanism ?

2005-03-22 Thread William Stranathan
Besides, giving to the USER a different authentication failure message
is a bad idea - hackers use that information to know which accounts to
try to hack.

On the other hand, though, custom handling of the error would be nice
- the LDAP servers I use disconnect silently without traffic for some
amount of time, but there's no way for me to trap that error - it just
appears as an authentication failure to the user, and they have to try
to authenticate again so Tomcat can establish a new connection.

w


On Mon, 21 Mar 2005 13:27:50 -0900, Erik Fiegel
<[EMAIL PROTECTED]> wrote:
> That seems like overkill.  Did you try turning up the debug level of
> your Realm?
> 
> debug="9"
>  connectionURL="ldap://localhost:389";
>   userBase="ou=people,dc=mycompany,dc=com"
> userSearch="(mail={0})"
>   userRoleName="memberOf"
>   roleBase="ou=groups,dc=mycompany,dc=com"
>   roleName="cn"
> roleSearch="(uniqueMember={0})"
> />
> 
> - Erik
> 
> [EMAIL PROTECTED] wrote:
> 
> >Hello,
> >
> >I'm trying to use a Novell LDAP server, and let it manage the Passwords
> >instead of my webapp. Unfortunately I've found that the JNDIRealm doesn't
> >tell me the reason of the failure when authenticating a user.
> >

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LDAP Realm Issues

2005-03-17 Thread William Stranathan
I apologize for posting this again - I just didn't hear anything (a
lot of sprited discussions going on at the time) and wanted to give
this one more shot here before sending to the developer list.

I opened a bug on this a couple of weeks ago, but it hasn't been
touched.  Maybe other folks have seen this behavior...

I'm using the LDAP realm for AAA in my application.  However, the LDAP
server it connects to drops stale sessions after a pretty short time.
Evidently, Tomcat tries to keep connections open so it doesn't have to
connect later on.  Unfortunately, this causes authentication failures
because the host it wants to connect with is no longer there (er...the
connection isn't, anyhow).  After one failure, Tomcat drops the
connection, the user tries again, and gets in.  But 5 minutes later,
the next user will have to try again.

Here's the stack trace that get's logged:

2005-03-11 08:33:47 JNDIRealm[/iso]:   Searching for billybob
2005-03-11 08:33:47 JNDIRealm[/iso]:   base:
ou=users,dc=mycompany,dc=com  filter:
(&(objectClass=appUser)(uid=billybob))
2005-03-11 08:33:47 JNDIRealm[/iso]: Exception performing authentication
javax.naming.CommunicationException: Request: 7 cancelled; remaining
name 'ou=users,dc=mycompany,dc=com'
   at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
   at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
   at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611)
   at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534)
   at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)
   at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
   at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
   at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
   at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
   at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
   at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
   at 
org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1074)
   at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:967)
   at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:916)
   at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:235)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

2005-03-11 08:33:47 JNDIRealm[/iso]: Closing directory context

Any magic undocumented setting that will work around this?

Thanks,
Will

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat freezes when accessing db after several queries

2005-03-14 Thread William Stranathan
Also, make sure you have a finally block that always closes the
connection so the connection is returned to the pool.

Will Stranathan


On Mon, 14 Mar 2005 15:27:29 -0700, George Sexton
<[EMAIL PROTECTED]> wrote:
> Look for something like this:
> 
> Try {
> statement.execUupdate("some statement");
> } catch (SQLException se){
> }
> 
> Make sure that the catch has:
> 
> conn.rollback();
> 
> > -Original Message-
> > From: Larry Johnson [mailto:[EMAIL PROTECTED]
> > Subject: tomcat freezes when accessing db after several queries
> >
> > Hi all,
> >
> >   I've encountered a rather strange error that I need some help
> > getting to the bottom of. Recently I lost the hard drive on
> > one of my tomcat
> > application servers. I've since reinstalled and set everything on the
> > effected machine to mirror the configuration of my other app
> > servers (which
> > are working fine). However, now when I access the webapp on
> > this server
> > tomcat seems to freeze (like it's waiting for something) after several
> > queries to the database are executed. After this happens I am

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LDAP Realm issues

2005-03-14 Thread William Stranathan
I opened a bug on this a couple of weeks ago, but it hasn't been
touched.  Maybe other folks have seen this behavior...

I'm using the LDAP realm for AAA in my application.  However, the LDAP
server it connects to drops stale sessions after a pretty short time. 
Evidently, Tomcat tries to keep connections open so it doesn't have to
connect later on.  Unfortunately, this causes authentication failures
because the host it wants to connect with is no longer there (er...the
connection isn't, anyhow).  After one failure, Tomcat drops the
connection, the user tries again, and gets in.  But 5 minutes later,
the next user will have to try again.

Here's the stack trace that get's logged:

2005-03-11 08:33:47 JNDIRealm[/iso]:   Searching for billybob
2005-03-11 08:33:47 JNDIRealm[/iso]:   base:
ou=users,dc=mycompany,dc=com  filter:
(&(objectClass=appUser)(uid=billybob))
2005-03-11 08:33:47 JNDIRealm[/iso]: Exception performing authentication
javax.naming.CommunicationException: Request: 7 cancelled; remaining
name 'ou=users,dc=mycompany,dc=com'
at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at 
org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1074)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:967)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:916)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:235)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

2005-03-11 08:33:47 JNDIRealm[/iso]: Closing directory context

Any magic undocumented setting that will work around this?

Thanks,
Will

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat caching servlet conf directory?

2005-03-07 Thread William Norris
I am working on writing some junit tests for a project and am running
into some rather odd behavior... it seems that tomcat is caching the
servlets configuration data somewhere between tests.  Here's what I'm
doing...

Presently I have one TestCase class with two methods, let's call them
testA() and testB().  Each method first copies a config directory into
place inside the servlet's webapps folder.  It then creates a new
Embedded object, configures it with a custom connector I created, and
starts up Tomcat.  I then pass in a fabricated HTTP request and check
the result against the expected response.

These two particular tests happen to use the same servlet
configuration, so to verify that things are acting weird, I changed
testA() to copy in a non-working configuration.  If I run testA()
first, then it fails as expected.  However, if I run testB() first and
then testA() then both tests pass, verifying that testA is in fact
using the leftover configuration from testB.  I've additionally
printed out the contents of the servlet's configuration directory
AFTER copying the contents over, but BEFORE starting up tomcat to
ensure the new configuration data is actually being copied over...
which it is.  Finally, I tried deleting the entire work/ directory
between tests to ensure nothing was being cached in there.

At this point, I'm somewhat at a loss.  There appear to be no caches
on the filesystem, and because I'm starting with a new Embedded object
for each method, there shouldn't be any caches in memory.  Any help
would be greatly appreciated.

--
Will Norris
Shibboleth Project
The University of Memphis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]File size with DOS batch commands

2005-01-28 Thread William Sundberg
Try with: C:\>dir /N
Or try:   C:\>help dir


-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] 
Sent: den 28 januari 2005 14:12
To: Tomcat Users List
Subject: [OT]File size with DOS batch commands


Hi,



Can somebody help me in finding the size of a file (and last modified
date also)with DOS batch commands only?



Regards,

Srinivas




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Precompiling JSP problem

2005-01-28 Thread William Sundberg
When I open jasper-compiler.jar and look in JspC.class with Jbuilder it
look ok:

  public void execute() throws JasperException { }

But it still don't compile, any Ideer?

-Original Message-
From: Marcus Beyer [mailto:[EMAIL PROTECTED] 
Sent: den 28 januari 2005 10:44
To: Tomcat Users List
Subject: Re: Precompiling JSP problem


William Sundberg schrieb:

> I am trying to precompile the JSP files but recive the following error

> when building:
> 
> No public execute() in class org.apache.jasper.JspC
> 
> My buildfile is basicly the same as the Tomcat example build 
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/printer/jasper-howto.h
> tm
> l

Mine too. It works for me.

> I am using Ant from the Cmd-prompt on an Win NT.
> 
> Java: 1.5.0
> JBoss 4.0.0

Java: 1.4.2_06
JBoss 3.2.5 (Tomcat 5.0.26?)

> And when I look in the javadoc 
> on[http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper/docs/api/ind
> ex
> .html] the execute method in JspC are not public but I think it should
> be.

The binary view of Eclipse shows me this signature of JspC.class (in 
jasper-compiler.jar):

public void execute() throws org.apache.jasper.JasperException;

Can you have a direct look at the binary you are using?

Cheers, Marcus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Precompiling JSP problem

2005-01-28 Thread William Sundberg
I am trying to precompile the JSP files but recive the following error
when building:

No public execute() in class org.apache.jasper.JspC

My buildfile is basicly the same as the Tomcat example build
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/printer/jasper-howto.htm
l

I am using Ant from the Cmd-prompt on an Win NT.

Java: 1.5.0
JBoss 4.0.0


I have fetched the latest Jasper.*.jar from both: apache.org and
jboss-4.0.1 but still recived receives the error:"No public execute() in
class org.apache.jasper.JspC"

And when I look in the javadoc
on[http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper/docs/api/index
.html] the execute method in JspC are not public but I think it should
be.

If that is not the problem what am I doing wrong. 


Thank you in advance/William

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can Tomcat be configured to be an FTP Server?

2004-10-26 Thread William Ferguson
The Apache FTP Server is where I started :-)
Made me wonder whether I couldn't write a servlet that delegated to it.
Or whether someone else hadn't already done it.

I have a website on which I now also want to host a blog.
I'm using BlogSpot for the blog but want to publish to my own host, which
requires an FTP Server.
So since I already run Tomcat for the webserver I thought I could simplify
my machine's config and conserve resources by running the FTP server within
Tomcat.

I'm sure it is reasonably common to want to host both an FTP and  HTTP
server.
Has no-one combined both within Tomcat before?
Whats the consensus on how to best proceed?

William


- Original Message - 
From: "Cees van de Griend" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, October 24, 2004 9:19 PM
Subject: Re: Can Tomcat be configured to be an FTP Server?
>
> Yes, in theory you are right, but practical you have to write a
> ServletContainer which is FTP aware; not a simple task as FTP is not a
simple
> protocol.
>
> Take a look at a new Apache project: FtpServer at
> http://incubator.apache.org/projects/ftpserver/.
>
> What are you trying to do?
>
> It is possible to use Tomcat for uploading/downloading of files. Maybe the
> WebDAV protocol (on top of the HTTP protocol) is enough for your demands.
>
> Why do you want to run the 2 servers in 1 JVM?
>
> It makes more sense to separate the two services in different JVM's. Even
if
> you are able to create a FtpContainer, the implementation would run in a
> different thread and more realisticly in a different JVM which is started
by
> the mail process. I expect there is little gain to combine the two
services
> in one JVM, not for resource usage.
> It is only needed if you need the two services to interact directly with
each
> order and even then is is more easy to use a communication or messaging
> protocol like JMS.
>
> With kind regards,
> Cees.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can Tomcat be configured to be an FTP Server?

2004-10-24 Thread William Ferguson
But can't you implement a Servlet to support any transfer protocol? Http is
only one transfer mechanism.
The javax.servlet.Servlet interface is not Http aware.

As for the different port numbers, I thought these were actually configured
in Tomcat.

William



- Original Message - 
From: "Cees van de Griend" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, October 24, 2004 8:27 PM
Subject: Re: Can Tomcat be configured to be an FTP Server?


> On Sunday 24 October 2004 10:52, William Ferguson wrote:
> > Is it possible to configure Tomcat as an FTP Server?
>
> No.
>
> Tomcat is a HTTP server, not a FTP server: different port numbers,
different
> commands, different kind of application.
>
> Regards,
> Cees.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can Tomcat be configured to be an FTP Server?

2004-10-24 Thread William Ferguson
Apologies if this is a dumb question, but I've had a good look through the archives 
and couldn't find anything of relevance.

Is it possible to configure Tomcat as an FTP Server?
Since I need to run both a WebServer and an FTP Server I was hoping to host them both 
from the one JVM.

It looks like it might be possible to configure a Connector to accept FTP connections, 
but I'm not sure, and I'd hate to reinvent the wheel if someone had already been down 
this path.

thanks in advance,

William

Problem setting custom Policy object in ServletContextListener

2004-08-31 Thread william
Basically, I am trying to install a custom Policy class on a web app running
within a Tomcat 4.1.27 container.
To do so, I have registered a ServletContextListener in the web.xml and I am
calling Policy.setPolicy(new rbac.MyPolicy()) from within the
contextInitialized method. Later I use the standard JAAS calls to check
permissions.

Everything works well on an XP tomcat installation. However, as soon as I
deploy to Solaris 2.8, strange behavior appears. It seems that the Policy
class is being modified so that the following calls made from a jsp

<% Policy.getPolicy() instanceof rbac.MyPolicy %> <%
Policy.getPolicy().getClass().getName().equals("rbac.MyPolicy") %>

return inconsistent values. The first returns false while the second returns
true!

If I delay the policy installation to a later point in the application
lifecycle (i.e. call setPolicy from within a servlet filter instead of
setting the Policy, the problem disappears. However, I would like to avoid
the extra overhead of filtering each request.

I am not running tomcat with the security manager. 
I would be grateful to anyone offering a remedy or suggestions.

Thanks,
// William.

[EMAIL PROTECTED]
ncubeAIT Development


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 JK2 IIS 5

2004-08-25 Thread William L. Thomson Jr.
On Wed, 2004-08-25 at 04:06, Allistair Crossley wrote:

> 
> I notice the name of your redirector is not the name of how it is distributed by the 
> way.

This was my entire problem it looks like. Damn spelling.

-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 JK2 IIS 5

2004-08-25 Thread William L. Thomson Jr.
I will try your suggestions and get back to you.

I noticed in a log is said worker= was deprecated uses group= instead?

I set up an test env that is now doing the exact same thing as the
production env. I do not have those lines in jk2.properties and really
as far as Tomcat is concerned I see nothing related to jk in the tomcat
logs. Only the system event log generated by the dll.


-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 JK2 IIS 5

2004-08-24 Thread William L. Thomson Jr.
Also in the workers2.properties file I have seen uri entries with ether
worker or context. Neither both.


[uri:/*.jsp]
Context=/

[uri:/servlet/*]
Context=/

or

[uri:/*.jsp]
worker=ajp13:localhost:8009

[uri:/servlet/*]
worker=ajp13:localhost:8009


The log I posted makes me seem to think it's a context issue. But
everything works perfectly in Tomcat via it's web server 8080. If
contexts or something else as wrong it should be wrong there as well?

Do you need to specify contexts or a worker for each uri?

-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 JK2 IIS 5

2004-08-24 Thread William L. Thomson Jr.
iMap:
fix uri /jkstatus/* context null host *"

38222,0.700821759259259,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_uriMap.c (484)]: uriMap:
fix uri /servlet/* context null host *"

38222,0.700821759259259,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_uriMap.c (484)]: uriMap:
fix uri /*.jsp context null host *"

38222,0.700821759259259,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_uriMap.c (395)]:
uriMap.init() Fixing Host *"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_shm.c (124)]:
shm.create() Created head 0x16e0008 size 8192"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info: 
[jk_channel_apr_socket.c (215)]: channelApr.resolve(): create AF_NET 
127.0.0.1 8009"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done uri:/jkstatus/*"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done uri:/servlet/*"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done uri:/*.jsp"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done status:status"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done ajp13:localhost:8009"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done channel.socket:localhost:8009"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done shm:"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done logger.file:0"

38222,0.700821759259259,"Apache Jakarta
Connector2",Information,None,3,N/A,SERVER,"Info:  [jk_config.c (490)]:
config.update(): done logger"

38222,0.70068287037037,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_workerEnv.c (127)]:
workerEnv.close() done 3"

38222,0.70068287037037,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_workerEnv.c (120)]:
destroy worker lb:lb"

38222,0.70068287037037,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_workerEnv.c (120)]:
destroy worker status:status"

38222,0.70068287037037,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_worker_ajp13.c (980)]:
ajp13.destroy() closed 0 cached endpoints"

38222,0.70068287037037,"Apache Jakarta
Connector2",None,None,4,N/A,SERVER,"Debug:  [jk_workerEnv.c (120)]:
destroy worker ajp13:localhost:8009"


Now my current jk2.properties file is empty since I am not sure if it's
required or what's supposed to go there as opposed to
workers2.properties.

Here is my workers2.properties file

[logger]
level=debug
debug=3

[logger.file:0]
level=debug
debug=3
file=D:\Programs\Tomcat 5.0\logs\iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=D:\Programs\Tomcat 5.0\work\jk2.shm
size=100


# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[status:status]

# Uri mappings
[uri:/*.jsp]
#worker=ajp13:localhost:8009

# Uri mappings
# [uri:/*.swt]
# worker=ajp13:localhost:8009

[uri:/servlet/*]
#worker=ajp13:localhost:8009

[uri:/jkstatus/*]
#worker=status:status

Registry settings

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0]
"serverRoot"="D:ProgramsTomcat 5.0"
"extensionUri"="/jakarta/isapi_redirect2.dll"
"workersFile"="D:ProgramsTomcat 5.0confworkers2.properties"
"logLevel"="DEBUG"


I am open to any comments or suggestions. If you need me to post more info let me know.


-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 JK2 IIS 5

2004-08-23 Thread William L. Thomson Jr.
Anyone here get Tomcat 5 to work with IIS 5?

I spent more than 7 hours today mainly because of the damn jk2
connector.

After all sorts of misleading docs of different working configs that did
not work for me. I have everything up an running.
However I can't get the syntax right in workers2.properties file.

IIS receives the request logs the redirect via the dll and then that's
it. No error logged in the jk log. Finally I came across a posting that
allowed me to enable logging via one of Windows system logs. Available
in the system manager.

Seems that the host is null and there are context issues.

I can post what ever you want to see, but I am almost 100% positive my
problem lies in the workers2.properties file.

Now Tomcat alone works perfectly. I have run Tomcat on Linux with Apache
for 3+ years now. Never had issues like this.

Absolutely ridiculous.

What really bothers me is I run the latest version of both Tomcat and
JK2. Why my workers2.properties file will work fine on Linux and not on
Windows. There is nothing in it to make it OS specific except for file
paths to the shm and log file. Otherwise the files should be the same.

Yet I have to modify them to get any sort of response. Otherwise it's
like jk is not there.

Either I get an error 500 from IIS or I get the page showing all java
content that is not supposed to be visible.

All documentation on Tomcat's site is wrong. It's all for JK not JK2.
Huge differences.

FYI, I have confirmed my registry settings are correct, the ISAPI dll
shows up with a green arrow.

I am doing all this for a client and do not have access to the files at
this moment. However I can get at them tomorrow and post them if needed.

In a nutshell what exactly needs to go in

jk2.properties

and

workers2.properties

on IIS. Since it's obviously different for IIS?

That or I really screwed up with configure Tomcat. Despite everything
working perfectly at port 8080.

Really at a loss and want to hate IIS but my problem is more with JK2
for IIS than IIS. Client really thinks highly of Tomcat at this point.

-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL.setURLStreamHandlerFactory - Tomcat 5.0

2004-08-11 Thread William Rusch

Thanks for the confirmation. Im looking at the code right now. Looks like 
it will be a straight forward change.

Thanks again
Bill

On Wed, 11 Aug 2004, Shapira, Yoav wrote:

> Hi,
> It's funny you should ask now, just as I was contemplating
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29631.  I think I'm
> going to implement that in the coming days, probably via a system
> property (a bit ugly, but this is enough of a marginal feature that I
> can live with it being ugly for now).  However until that happens, the
> answer to your question is no: the setURLStreamHandlerFactory call
> cannot be avoided with current Tomcat releases.  You must build a custom
> Tomcat to do that.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: William Rusch [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, August 10, 2004 9:26 PM
> >To: Tomcat Users List
> >Subject: URL.setURLStreamHandlerFactory - Tomcat 5.0
> >
> >
> >I am trying to port some code from another app server to tomcat. We
> >currently have custom URL protocols which are set using
> >
> >URL.setURLStreamHandlerFactory()
> >
> >java.io.IOException: Illegal URL: java.net.MalformedURLException:
> unknown
> >protocol: filecache
> > at
> com.lodging.xsl.XSLManager.loadStyleSheet(XSLManager.java:188)
> > at
> >com.lodging.xsl.XSLStylesheetCache.getStylesheet(XSLStylesheetCache.jav
> a:10
> >2)
> > at
> >com.lodging.xsl.XSLManager.loadCachedStyleSheet(XSLManager.java:125)
> > at com.lodging.xsl.XSLManager.getStyleSheet(XSLManager.java:77)
> > at
> >reservations.CitywideAvailabilityXML.doPost(CitywideAvailabilityXML.jav
> a:13
> >83)
> > at
> >reservations.CitywideAvailabilityXML.doGet(CitywideAvailabilityXML.java
> :61)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > at
> >org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet
> .jav
> >a:419)
> > at
> >org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:1
> 33)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >Apparantly this can only be called once and in Tomcat
> >URL.setURLStreamHandlerFactory() is called during initialization.
> >
> >Does anyone know how to override or extend this functionality in
> Tomcat?
> >
> >Even a pointer in the right direction would be greatly appreciated.
> >
> >Bill
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL.setURLStreamHandlerFactory - Tomcat 5.0

2004-08-10 Thread William Rusch

I am trying to port some code from another app server to tomcat. We 
currently have custom URL protocols which are set using 

URL.setURLStreamHandlerFactory()

java.io.IOException: Illegal URL: java.net.MalformedURLException: unknown 
protocol: filecache
at com.lodging.xsl.XSLManager.loadStyleSheet(XSLManager.java:188)
at 
com.lodging.xsl.XSLStylesheetCache.getStylesheet(XSLStylesheetCache.java:102)
at 
com.lodging.xsl.XSLManager.loadCachedStyleSheet(XSLManager.java:125)
at com.lodging.xsl.XSLManager.getStyleSheet(XSLManager.java:77)
at 
reservations.CitywideAvailabilityXML.doPost(CitywideAvailabilityXML.java:1383)
at 
reservations.CitywideAvailabilityXML.doGet(CitywideAvailabilityXML.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Apparantly this can only be called once and in Tomcat 
URL.setURLStreamHandlerFactory() is called during initialization. 

Does anyone know how to override or extend this functionality in Tomcat?

Even a pointer in the right direction would be greatly appreciated.

Bill


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL Certificate Errors

2004-07-26 Thread Craig, William S.
Hi,

I'm experiencing the following errors while running Tomcat 4.1.27 on Win2K.
I have a U.S. Government certificate in X.509 format "trusted" on Tomcat.
I'm trying to communicate on SSL, but it appears that my certificate isn't
trusted.  I followed the instructions - any ideas on why my certificate
isn't being trusted (if that's my problem)   

Thanks!!

cacerts file:
pa-ng-app, Jun 16, 2004 trustedCertEntry,
Certificate fingerprint (MD5): DD:3D:8F.etc

Errors:
Exception Message: java.security.cert.CertificateException: Could not find
trusted certificate 
 javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Could not find trusted certificate
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at
sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA
6275) at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(DashoA6275) at
com.plumtree.content.client.http.diagnostic.DiagnosticTestsUtil.connectAndCh
eckResponseCode(DiagnosticTestsUtil.java:127) at
com.plumtree.content.client.http.diagnostic.DiagnosticTests.testConnectionWi
thPortal(DiagnosticTests.java:644) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
com.plumtree.content.client.http.diagnostic.DiagnosticTests.executeTestMetho
d(DiagnosticTests.java:202) at
com.plumtree.content.client.http.diagnostic.DiagnosticTests.executeDiagnosti
cTests(DiagnosticTests.java:178) at
com.plumtree.content.client.http.diagnostic.DiagnosticTests.getDiagnosticTes
tResults(DiagnosticTests.java:150) at
org.apache.jsp.index_0002dinclude_0002ddiagnostics_jsp._jspService(index_000
2dinclude_0002ddiagnostics_jsp.java:53) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at
...etcetc. 


z/OSS-USS and -Dfile.encoding

2004-07-15 Thread William Walsh
Hi all,

I've installed the Tomcat (5.0.27) binary on z/OS-USS 1.4 (an EBCDIC
platform).  tomcat-docs and the sample application are working.  In trying
to get Anthill (1.7.0.162) to run I appear to be having problems with file
encoding.  My normal approach to these problems is to try java with
-Dfile.encoding=UTF-8, but when I do that for Tomcat (set JAVA_OPTS and run
startup.sh) it won't come up, but I see nothing in the catalina.out log.
Unsetting JAVA_OPTS again allows Tomcat to come up.  

If anyone has specific information on this situation that would be great.
I've been looking for information on the -debug option to startup.sh and
debug="" in server.xml as I'm not seeing any additional information upon
setting these.  If anyone has information or can point me to some on how to
diagnose Tomcat startup that would be appreciated.  

Thanks,
www

The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Finding CSS files in webapp

2004-07-12 Thread William BC Crandall
Thanks Peter, for opening a new line of inquiry. The solution I came up
with is not unlike Michael's recommendation as forwarded by DaveP.

What I did:

   Got real path (in class that initiates transformation):

  ServletContext ctx = servlet.getServletContext();
  String cssFileName  = ctx.getRealPath("/css/nrd.css");

   Passed it to the Transformer:

  trans.setParameter("cssFile", cssFileName);

   Then added param at top of stylesheet, and used it in place:

  

  

Thanks to all for helpful pointers.

Best,

William BC Crandall
bc.crandall [around] earthlink.net


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 12 July 2004 1:18 AM
Subject: RE: Finding CSS files in webapp


> Xalan or Saxon have no 'base' from which to determine
> the context for the css file, so you'll have to use
> an absolute file reference from the stylesheet.
>
> Came up on the Saxon list this week.
> Its for the document() function, but the same logic applies.
>
> HTH DaveP
>
> 
> > It appears that I must use a full path when using the
> > xsl:result-document command from a saxon servlet.
> >
> > For example:  > format="web">
> >
> > rather than:  > format="web">
> >
> > Is this true, or is it possible to use a relative path?
>
> Although it's possible in principle to use a relative path, this isn't
> likely to be convenient in a servlet environment. Any relative URI is
> resolved relative to the base URI of the principal output document, which
in
> the servlet case is going to the servlet output streat, which doesn't have
a
> meaningful URI. You could, when you allocate the principal output
> destination, give it an arbitrary URI for this purpose:
>
> ServletOutputStream out = res.getOutputStream(); StreamResult tout = new
> StreamResult(out); tout.setSystemId("file:/c:/some/uri/");
> transformer.transform(new StreamSource(sourceFile), tout);
>
> However, I'm wondering what you're actually trying to do here. Where do
you
> want to put the extra output files? Is it a location associated with the
> individual end user, or a location associated with the source document, or
> what? Are you trying to split the source document into multiple result
> documents the first time it is accessed, and cache the results for later
> use? Do you actually want to serialize the multiple output documents to
> disk, or do you really want them in (application or session) memory?
>
> > Also, there is no
> > 'c:' on Unix\Linux, so would I use something like
> > 'href=file://mywebdir/myfile.html' ??
>
> I think the correct syntax is file:///usr/dir/file.xml to reference the
UNIX
> file /user/dir/file.xml
> >
> > I'm new to the Servlet environment.. I'm not sure how to obtain the
> > full path if I'm running my Servlet on a hosted machine. Do I have to
> > ask the host provider and hard code the path or is there a dynamic way
> > to do this?
> >
>
> If you're running on a hosted machine then you'll have to write the files
to
> a directory where the servlet has write permission. A Java call such as
>
> getServletContext().getRealPath(source);
>
> will give you path names to files within the directory structure visible
to
> users via a browser - it's not clear whether you want the XML files you
> generate to be directly accessible to users or not.
>
> Michael Kay
> 
>
> -- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Finding CSS files in webapp

2004-07-10 Thread William BC Crandall

Greetings fellow Tomcat dancers,

Been losing cycles in a gumption trap, trying to hook a CSS file 
up to XSLT-generated XHTML pages. Many thanks to whomever sees 
my obvious error.

If I hardwire the full-path filename of my development environment 
into the XSLT file, all works as hoped/planned/dreamed. But all 
other techniques I've tried fail. 


Tomcat: 5.0.19. Webapp name: nrd.

WAR layout:

  |-nrd
|-css/nrd.css
|-images/
|-Meta-inf/
|-Web-inf/
  |-classes/
  |-dtd/
  |-lib/
  |-xsl/
  |-web.xml

web.xml:


  

  controller


  org.apnp.nrd.ControlServlet

  

  

  controller


  /*

  


XSLT source that works:


  

  



Versions of CSS href that do not work:

href="css/nrd.css"/>
href="/css/nrd.css"/>
href="./css/nrd.css"/>
href="nrd/css/nrd.css"/>
href="/nrd/css/nrd.css"/>
href="./nrd/css/nrd.css"/>


I've also tried setting a global XSLT parameter:

  

and calling that:

  

which results in a known unsuccesful link:

href="/nrd/css/nrd.css" 


Please, if you can, tell me what obvious thing I've missed.

Thanks for any suggestions.


Best wishes,

William BC Crandall
bc.crandall [around] earthlink.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp:directive.include behavior

2004-06-08 Thread William M. Shubert
Hello, I'm having a little trouble with the way that
jsp:directive.include works in Tomcat 5 (5.0.19 to be exact). I've read
the JSP 2.0 spec, and it's confusing enough that I may well be
misunderstanding it, but the way that the spec reads and the behavior I
get from tomcat don't match at all! Here's the issue:

My files are all XML-style JSP documents. I expect from the spec that
adding  into my JSP document
should give me a result as if xxx.jspf had been cut and pasted into the
"master" JSP document. This isn't what is happening though. Instead, it
seems like xxx.jspf is skipping a processing step, or being processed as
a non-XML JSP file.

In the "master" jsp file, all comments like  are stripped out,
and all character elements are processed a bit, so if I want an
ampersand in the final XHTML document, I need to say "&". In the
included "xxx.jspf" file, though,  comments are left in (and
make it all the way to the client), and character elements are left
alone as if they were inside CDATA blocks. This is annoying, especially
the comments; the comments are being treated as character data when tags
are evaluated, so tags that aren't supposed to have character data like
 give errors unless I move all comments outside the 
or inside an inner  tag. Furthermore, a lot of the comments are
notes to myself, and I would prefer that they not make it to the end
users.

So can somebody explain the rationale here? If I could understand why
things act this way, I could probably live with it, instead of getting
annoyed every time that I stumble across another include-related issue.
Even better, is there some way to get the behavior I expect - to process
an included JSP fragment exactly as if it were part of the original
XML-style JSP file. Thank you.
Bill Shubert ([EMAIL PROTECTED])


signature.asc
Description: This is a digitally signed message part


Re: directory structure and porting issues

2004-04-12 Thread William Claxton
QM -

Thanks very much for your detailed reply.  I have Shawn Bayern's "JSTL in 
Action", and you're right - the URL issue is covered.  I have also reviewed 
relevant portions of the Servlet Spec 2.4, which sets out the general 
approach to directory structure in applications.  It seems safest to place 
the 'context' prefix before any URL.

Cheers.

At 11:36 AM 4/10/04 -0500, you wrote:


: - Is there an online guide that helps app developers select a directory
: structure that is portable across servlet containers?
The servlet spec.

Do a search at java.sun.com for it.  You'll want 2.3 if you're running
Tomcat 4, or 2.4 if you're running Tomcat 5.  Either way, it's available
as a PDF.
As a Java web developer, the spec is your guide to webapp standards and
portability.  At the risk of sounding facetious, it answers all of your
questions except this one:
: - Finally, is it the best practice to hard-code the 'context' prefix in
: your application?
JSTL.  I forget the exact tag names, but any JSTL reference will have
them listed.  There's a tag for creating context-relative links, and (I
believe) one for creating context-relative image tags.
-QM

--

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


directory structure and porting issues

2004-04-10 Thread William Claxton
Folks, hi -

I keep stumbling into porting issues when moving older servlet applications 
from Jrun or Servlet Exec to Tomcat.  A couple issues related to directory 
structure always seem to arise.

One issue is that an application expecting all servlets to be loaded from a 
single classpath may not have the 'context' prefix.  For example, an 
application 'app1' that posts to '/servlet/Controller' may not work unless 
'app1' is defined as Tomcat's default context.  It would work if you change 
the code so that it posts to 'app1/servlet/Controller'.  But that's a 
global change that hardcodes the context name.

Incidentally, I observed the same issue when changing the 'appbase' in 
Tomcat's server.xml - the Tomcat home page is no longer accessible.  Even 
if you create a new 'tomcat' context, the admin, manager and servlet 
examples linked from Tomcat's homepage don't work.  A solution I found 
works in Tomcat 5 is to create new contexts for each, such as:


As I recall, this didn't work in Tomcat 4.

Another issue is that 'context' seems to function as both a 'script-alias' 
and an 'alias' for static files, but with differing results.  For example, 
suppose that in the application called 'app1', I create a static web page 
that does 3 things:

- displays an image at 'app1/images/button.gif'
- loads a stylesheet from '/app1/includes/default.css'
- posts a form to '/app1/servlet/Controller'
It seems that the images and includes folders are expected to appear in the 
folder 'app1' directly below my appbase, whereas the Controller servlet is 
expected in the 'app1/WEB-INF/classes' folder.  This is different from 
where these folders resided in other servlet containers that did not use 
'WEB-INF'. Apparently 'app1' is a 'script-alias' for servlets, and an 
ordinary 'alias' for static files, with different meanings for each.  The 
problem can be resolved if I use a connector to Apache or IIS, and then 
create the 'alias' for static files in the web server.  But in a standalone 
instance of Tomcat there is no separate alias definition - 'context' is the 
only way to create aliases.

- Am I right about the double-meaning of 'context'?
- Do others experience similar porting issues?
- Is there an online guide that helps app developers select a directory 
structure that is portable across servlet containers?
- Finally, is it the best practice to hard-code the 'context' prefix in 
your application?

Cheers.



Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk2 linking issues

2004-03-05 Thread William Rusch

Im trying to get mod_jk2 to compile and Im getting a problem during
linking.

It's basically not finding the crypt symbol/library.

Im using gcc on tru64.

I tried adding my ssl libraries but cant figure out a way to get it to 
link.

Does anybody have any ideas, or should I go to the developers mailing list 
for help?

Thanks
Bill

/bin/sh /usr/local/apache2/build/libtool --silent  --mode=install /sbin/cp 
../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2
libtool: install: warning: remember to run `libtool --finish 
/usr/local/apache2/modules'
/bin/sh /usr/local/apache2/build/libtool --silent  --mode=link gcc 
-avoid-version -module -rpath /usr/local/apache2/modules -o 
../../../build/jk2/apache2/libjkjni.la -L/usr/local/apache2/lib -lcrypt 
-lapr-0 ../../../build/jk2/apache2/jk_jni_aprImpl.lo 
../../../build/jk2/apache2/jk_channel.lo 
../../../build/jk2/apache2/jk_channel_apr_socket.lo 
../../../build/jk2/apache2/jk_channel_jni.lo 
../../../build/jk2/apache2/jk_channel_un.lo 
../../../build/jk2/apache2/jk_config.lo 
../../../build/jk2/apache2/jk_config_file.lo 
../../../build/jk2/apache2/jk_endpoint.lo 
../../../build/jk2/apache2/jk_env.lo 
../../../build/jk2/apache2/jk_handler_logon.lo 
../../../build/jk2/apache2/jk_handler_response.lo 
../../../build/jk2/apache2/jk_logger_file.lo 
../../../build/jk2/apache2/jk_logger_win32.lo 
../../../build/jk2/apache2/jk_map.lo ../../../build/jk2/apache2/jk_md5.lo 
../../../build/jk2/apache2/jk_msg_ajp.lo 
../../../build/jk2/apache2/jk_mutex.lo 
../../../build/jk2/apache2/jk_mutex_proc.lo 
../../../build/jk2/apache2/jk_mutex_thread.lo 
../../../build/jk2/apache2/jk_nwmain.lo 
../../../build/jk2/apache2/jk_objCache.lo 
../../../build/jk2/apache2/jk_pool_apr.lo 
../../../build/jk2/apache2/jk_registry.lo 
../../../build/jk2/apache2/jk_requtil.lo 
../../../build/jk2/apache2/jk_shm.lo 
../../../build/jk2/apache2/jk_signal.lo 
../../../build/jk2/apache2/jk_uriEnv.lo 
../../../build/jk2/apache2/jk_uriMap.lo 
../../../build/jk2/apache2/jk_user.lo 
../../../build/jk2/apache2/jk_vm_default.lo 
../../../build/jk2/apache2/jk_workerEnv.lo 
../../../build/jk2/apache2/jk_worker_ajp13.lo 
../../../build/jk2/apache2/jk_worker_jni.lo 
../../../build/jk2/apache2/jk_worker_lb.lo 
../../../build/jk2/apache2/jk_worker_run.lo 
../../../build/jk2/apache2/jk_worker_status.lo
/usr/bin/ld:
Can't locate file for: -lcrypt
collect2: ld returned 1 exit status



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk2 connection issues

2004-03-04 Thread William Rusch

I am in the initial stages of moving our application servers to Tomcat and 
eventually our OS to linux (instead of tru64). However, I am having a lot 
of trouble compliling the mod_jk2 connector on tru64 5.1a .

I installed cygnus's gcc, gmake, autoconf, automake and libtools, and I
put /usr/local/bin ahead of usr/bin/ to give the gcc binaries precedence,
but I still get the same error. It appears to be a simple C coding issue
but Im not familiar enough with C to know what to do at this point.

These are the steps Im taking

CC="gcc" ./configure --with-java-home=/usr/opt/java141 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-apache2=/install/httpd-2.0.48

creating cache ./config.cache
checking host system type... alphaev67-dec-osf5.1
checking target system type... alphaev67-dec-osf5.1
checking build system type... alphaev67-dec-osf5.1
checking for a BSD compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -Wall ) works... yes
checking whether the C compiler (gcc -Wall ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for ranlib... ranlib
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... none
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm output... failed
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... osf5.1 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... no
checking for dlopen... yes
checking for dlfcn.h... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for test... /usr/bin/test
checking for rm... /sbin/rm
checking for grep... /sbin/grep
checking for echo... /usr/bin/echo
checking for sed... /sbin/sed
checking for cp... /sbin/cp
checking for mkdir... /sbin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/local/bin/perl
building connector for "apache-2.0"
checking checking for apache13.. not provided
checking checking for apache20.. /install/httpd-2.0.48
checking checking for iis.. not provided
./configure: !: not found
updating cache ./config.cache
creating ./config.status
creating Makefile
creating server/apache13/Makefile
creating server/apache13/Makefile.apxs
creating server/apache2/Makefile
creating server/apache2/Makefile.apxs
creating ../build.properties
creating scripts/build/unix/dummy

then i run gmake:

there is a lot before the error that Im not including at this point
but it fails here:

gcc -g -O2 -DOSF1 -I../../include -I/install/httpd-2.0.48/include 
-I/install/httpd-2.0.48/os/[EMAIL PROTECTED]@%unix%g -g -O2 
-I/install/httpd-2.0.48/srclib/apr-util/include 
-I/install/httpd-2.0.48/srclib/apr/include -DCHUNK_SIZE=4096 
-DUSE_APACHE_MD5 -DHAS_APR -DHAS_AP_PCRE -c ../../common/jk_logger_file.c  
-DPIC -o ../../../build/jk2/apache2/.libs/jk_logger_file.lo
In file included from ../../include/jk_global.h:104,
 from ../../include/jk_logger.h:27,
 from ../../include/jk_env.h:25,
 from ../../common/jk_logger_file.c:25:
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/unistd.h:609: 
warning: `cuserid' redefined
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/stdio.h:458: 
warning: this is the location of the previous definition
../../common/jk_logger_file.c: In function `jk2_logger_file_jkVLog':
../../common/jk_logger_file.c:197: wrong type argument to unary 
exclamation mark
gmake[1]: *** [../../../build/jk2/apache2/jk_logger_file.lo] Error 1
gmake[1]: Leaving directory 
`/tomcat/tomcat.5.0.19/src/jakarta-tomcat-connectors/jk/native2/server/apache2'
gmake: *** [jk2-build] Er

class not found problem

2004-01-21 Thread William Sundberg

I receive the following error when I try to startup Tomcat after
configuring it to use ajp13, it runnes ok if I remove the
ajp13-configuration line in server.xml.

So my question is where is this class defiened(which jar file and where is
it)? or how can I get my system to start?

Best regards/William
-
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.ajp.tomcat4.Ajp13Connector
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:891)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:756)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java
:112)


-
I am running RedHat 9.0

To install the software i did the following steps, following the steps
in(http://daydream.stanford.edu/tomcat/install_web_services.html).



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to limit( or reduce) the amount of RAM used by Tomcat?

2004-01-21 Thread William Sundberg
Try and use the java memory options:

export JAVA_OPTS='-Xms64m -Xmx128m'


-Original Message-
From: Salvador Santander Gutierrez
[mailto:[EMAIL PROTECTED]
Sent: den 21 januari 04 09:25
To: Tomcat List
Subject: How to limit( or reduce) the amount of RAM used by Tomcat?


I want to limit ( or reduce) the max Mb of RAM for the tomcat application,
Can I configure this in Tomcat?
We've a problem with Tomcat: Memory assigned to Tomcat grows and grows and
when process of Tomcat use the 64% of phisical memory, Tomcat crash and I
need to restart the server.
We're using Red Hat Linux 9, jdk 1.4.2, and Tomcat 4.1.24.
Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I compile Mod_jdk2 ?

2003-12-19 Thread William Marques
Hi, Chris!

Well, I made it!
Now I have my mod_jsk2.so. Then I copy to $APACHE_HOME/modules, and put
a line in the end of my httpd.conf, just the same way I sought in the
Apache-Tomcat HOWTO.


>> Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto

Then I'll have to start Tomcat before Apache 'cause this is a temp file.
Right?

->Wrong!
When I start the Tomcat 5.0.16, I dont have no mod_jk.conf-auto
self-created, I start Apache, but the connectors doesn't work.
 
Can you help me?




Em Sex, 2003-12-19 às 05:13, Christopher Schultz escreveu:
> William,
> 
> > I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this:
> > ./configure --with-apxs2=/usr/local/apache2/bin/apxs \
> > --with-apache2=/usr/local/apache2\
> > --with-apach2-include=/usr/local/apache2/include\
> > --with-apache2-lib=/usr/local/apache2/lib \
> > 
> > then in the end of configure process, I received a message:
> > no apxs given
> > building connector for "apche-2.0" 
> > configure: error: can't locate /usr/local/apache2
> 
> Hmmm... do you really need all those options? I would think that:
> 
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> 
> would be sufficient. Let's see...
> 
> $ tar xzf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
> $ cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
> $ ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> 
> [completed successfully]
> 
> $ make
> 
> [completed successfully]
> 
> $ ls ../build/jk2/apache2/*.so
> ../build/jk2/apache2/jkjni.so
> ../build/jk2/apache2/mod_jk2.so
> $
> 
> Looks good to me. I also built my Apache 2.0.48 from source. The code, 
> etc, is in /usr/local/httpd-2.0.48, and not in /usr/local/apache.
> 
> It's funny that the build instructions in the "jk" directory say "Just 
> type ant!", and it fails miserably. Too bad. I like the whole 
> configure/make/make install. It tends to work well.
> 
> Let me know if you are still having problems compiling...
> 
> -chris
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This works...

2003-12-18 Thread William Marques
My frien Nuno Faria tell me that:

./buildconf.sh
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make

And it works!!!
Thanks everybody for the help!!

Now I'll try to put Apche Working together Tomcat




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can I compile Mod_jdk2 ?

2003-12-18 Thread William Marques
the "\" it's to indicate that all comands is in the same line with one
space between the arguments, but thank's at all...


Em Qui, 2003-12-18 Ãs 14:48, [EMAIL PROTECTED] escreveu:
> I'd stick a space between the apache2 and the '\'
> 
> Does live there and work?
> 
> Greg
> 
> > -Original Message-
> > From: William Marques [mailto:[EMAIL PROTECTED]
> > Sent: 18 December 2003 16:43
> > To: Tomcat Users List
> > Subject: Re: How can I compile Mod_jdk2 ?
> > 
> > 
> > Ok, IÄl try to give some more details...
> > 
> > I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this:
> > ./configure --with-apxs2=/usr/local/apache2/bin/apxs \
> > --with-apache2=/usr/local/apache2\
> > --with-apach2-include=/usr/local/apache2/include\
> > --with-apache2-lib=/usr/local/apache2/lib \
> > 
> > then in the end of configure process, I received a message:
> > no apxs given
> > building connector for "apche-2.0" 
> > configure: error: can't locate /usr/local/apache2
> > 
> > I try to put the slash in the end of the path, but the same error
> > ocourred and try just ./configure too, but then I receive a 
> > message: no
> > Webserver Found 
> > I forgot to say thatI compiled apache2 from the source
> > 
> > Thank's for the help, anyway...
> > 
> > Em Qui, 2003-12-18 Ãs 13:56, Christopher Schultz escreveu:
> > > William,
> > > 
> > > > I trying to compile the mod_jdk from the source version
> > > > jakarta-tomcat-connectors-jk2-2.0.2 but everytime an 
> > error happens.
> > > 
> > > Please provide more information. The error message itself, perhaps.
> > > 
> > > > Does anybody know a place where I can get a binary for 
> > linux, to connect
> > > > my apache 2.0.48 and Tomcat 5.0.16 ?
> > > 
> > > This does not exist. Binary versions are not available from 
> > Jakarta for 
> > > Linux. It's because you need to compile it against your own apache 
> > > version and libc version. Sure, you *can* get one from 
> > someone else, but 
> > > it shouldn't be a big deal to compile it.
> > > 
> > > > Or maybe send-me the module by e-mail
> > > 
> > > That's a dangerous request. Someone could send you a trojan...
> > > 
> > > > I using Fedora Core box and J2sdk 1.4.2
> > > > 
> > > > If this is impossible, maybe someone just has passed for the same
> > > > troubles ?I have now, and help me with something.
> > > 
> > > Check the archives for your specific error message. We've 
> > beat this to 
> > > death like a million times on this list. If your error 
> > mesage is not 
> > > found, just followup your own post with the error and we'll 
> > see what we 
> > > can do.
> > > 
> > > Since you're using Fedora, it's very possible that you are 
> > missing some 
> > > required library. Fedora isn't exactly ready for prime time. :)
> > > 
> > > -chris
> > > 
> > > 
> > > 
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I compile Mod_jdk2 ?

2003-12-18 Thread William Marques
Ok, IÄl try to give some more details...

I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-apache2=/usr/local/apache2\
--with-apach2-include=/usr/local/apache2/include\
--with-apache2-lib=/usr/local/apache2/lib \

then in the end of configure process, I received a message:
no apxs given
building connector for "apche-2.0" 
configure: error: can't locate /usr/local/apache2

I try to put the slash in the end of the path, but the same error
ocourred and try just ./configure too, but then I receive a message: no
Webserver Found 
I forgot to say thatI compiled apache2 from the source

Thank's for the help, anyway...

Em Qui, 2003-12-18 Ãs 13:56, Christopher Schultz escreveu:
> William,
> 
> > I trying to compile the mod_jdk from the source version
> > jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens.
> 
> Please provide more information. The error message itself, perhaps.
> 
> > Does anybody know a place where I can get a binary for linux, to connect
> > my apache 2.0.48 and Tomcat 5.0.16 ?
> 
> This does not exist. Binary versions are not available from Jakarta for 
> Linux. It's because you need to compile it against your own apache 
> version and libc version. Sure, you *can* get one from someone else, but 
> it shouldn't be a big deal to compile it.
> 
> > Or maybe send-me the module by e-mail
> 
> That's a dangerous request. Someone could send you a trojan...
> 
> > I using Fedora Core box and J2sdk 1.4.2
> > 
> > If this is impossible, maybe someone just has passed for the same
> > troubles ?I have now, and help me with something.
> 
> Check the archives for your specific error message. We've beat this to 
> death like a million times on this list. If your error mesage is not 
> found, just followup your own post with the error and we'll see what we 
> can do.
> 
> Since you're using Fedora, it's very possible that you are missing some 
> required library. Fedora isn't exactly ready for prime time. :)
> 
> -chris
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I compile Mod_jdk2 ?

2003-12-18 Thread William Marques
Hi everybody,

I trying to compile the mod_jdk from the source version
jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens.

Does anybody know a place where I can get a binary for linux, to connect
my apache 2.0.48 and Tomcat 5.0.16 ? Or maybe send-me the module by
e-mail
I using Fedora Core box and J2sdk 1.4.2

If this is impossible, maybe someone just has passed for the same
troubles ?I have now, and help me with something.

Thanks...


William Marques
Gma Consultoria - Brasil -
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cgi script not launching in Tomcat 5.0

2003-12-11 Thread Li, William
Hi,

I did the config as per the documentation for CGI.  I have a script
/local/0/home/tomcat/webapps/ROOT/cgi-bin/printenv.cgi and it works fine on
command line.  But Tomcat doesn't like it:

2003-12-11 10:54:41 cgi: findCGI calc: name=printenv.cgi,
path=/local/0/home/tomcat/webapps/ROOT/cgi-bin/printenv.cgi,
scriptname=/cgi-bin/printenv.cgi, cginame=/printenv.cgi
2003-12-11 10:54:41 cgi: runCGI(envp=[{CONTENT_TYPE=, SERVER_PORT=8080,
REMOTE_ADDR=127.0.0.1, GATEWAY_INTERFACE=CGI/1.1, QUERY_STRING=,
X_TOMCAT_SCRIPT_PATH=/local/0/home/tomcat/webapps/ROOT/cgi-bin/printenv.cgi,
REMOTE_HOST=127.0.0.1, SERVER_SOFTWARE=TOMCAT, PATH_INFO=, AUTH_TYPE=,
SERVER_PROTOCOL=, REQUEST_METHOD=GET, REMOTE_USER=, REMOTE_IDENT=,
SERVER_NAME=localhost.localdomain, CONTENT_LENGTH=,
SCRIPT_NAME=/cgi-bin/printenv.cgi}],
command=/local/0/home/tomcat/webapps/ROOT/cgi-bin/printenv.cgi)
2003-12-11 10:54:41 cgi: runCGI (stderr):Can't open perl script
""/local/0/home/tomcat/webapps/ROOT/cgi-bin/printenv.cgi"": No such file or
directory
2003-12-11 10:54:41 cgi: runCGI: 1 lines received on stderr

Can anyone help?  Thanks!


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Access Apache server variables from Tomcat code?

2003-12-10 Thread William R Briggs
Hi all,

A somewhat random question that I have been unable to find the answer to - 
I have a setup using Tomcat 5.0.16 w/ Apache 1.3.28.  I am using a custom 
Apache  module that is internal to my company in order to perform user 
authentication.  This module exports certain values into the server 
environment.  Using PHP, I can access the values like so: 
$_SERVER['REMOTE_USER'].

Is there an equivalent I can use from my servlet/jsp code within Tomcat to 
access this environment information?

Thanks,
Will


RE: mod_jk worker help please!!

2003-12-05 Thread William R Briggs

Return Receipt
   
Your  RE: mod_jk worker help please!!  
document   
:  
   
was   William R Briggs/Burlington/IBM  
received   
by:
   
at:   12/05/2003 12:03:34  
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Testing, please ignore

2003-12-05 Thread William R Briggs

Return Receipt
   
Your  Testing, please ignore   
document   
:  
   
was   William R Briggs/Burlington/IBM  
received   
by:
   
at:   12/05/2003 11:19:26  
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.x - Cannot create PoolableConnectionFactory

2003-12-03 Thread William Nguyen
Silly mistake.  I created a User DSN instead of a
System DSN.

Regards,
Will Nguyen

--- William Nguyen <[EMAIL PROTECTED]> wrote:
> I'm having the most difficult time trying to get my
> web app to connect to a database (MS Access via
> sun.jdbc.odbc.JdbcOdbcDriver).  I've registered an
> odbc datasource in Windows and have gotten the
> application to work in a command prompt.  I've tried
> my best to emulate the examples provided in 8. JNDI
> Resources HOW-TO and 9. JDBC Datasources as well as
> searches all over the net.  I've extracted the
> JdbcOdbcDriver class file from rt.jar and placed it
> in
> a dbconn.jar file in [$CATALINA_HOME]/common/lib
> (I've
> also tried just putting rt.jar in there).  The error
> message I get states, "Cannot create
> PoolableConnectionFactory."
> 
> server.xml
> 
>   className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
>   
>  type="javax.sql.DataSource"/>
> 
>   
> factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
> maxWait
> 5000
>   
>   
> maxActive
> 4
>   
>   
> password
> password
>   
>   
> url
> jdbc:odbc:TimeTrack
>   
>   
> driverClassName
> sun.jdbc.odbc.JdbcOdbcDriver
>   
>   
> maxIdle
> 2
>   
>   
> username
> admin
>   
>   
>   
> 
> 
> 
> web.xml
> 
>   datasource
>   jdbc/TimeTrack
>   javax.sql.DataSource
>   Container
> 
> 
> Source code: A servlet calls a class that calls this
> class.
> try
> {
>  ErrorLog.writeErrorLog("0");
>  Context initCtx = new InitialContext();
>  ErrorLog.writeErrorLog("1");
>  Context envCtx = (Context)
> initCtx.lookup("java:comp/env");
>  ErrorLog.writeErrorLog("2");
>  DataSource ds =
> (DataSource)envCtx.lookup("jdbc/TimeTrack");
>  ErrorLog.writeErrorLog(ds.toString());
>  ErrorLog.writeErrorLog("3");
>  conn = ds.getConnection();
>  ErrorLog.writeErrorLog("4");
>  stmt =
>
conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_UPDATABLE);
>  ErrorLog.writeErrorLog("5");
>  //if all successful, return true
>  return true;
> }
> catch (NamingException ne)
> {
>  ErrorLog.writeErrorLog("Naming exception open");
>  ErrorLog.writeErrorLog(ne.getMessage());
>  ErrorLog.writeErrorLog("Naming excepton close");
>  return false;
> }
> catch (SQLException sqle)
> {
>  ErrorLog.writeErrorLog("SQLEXception open");
>  ErrorLog.writeErrorLog(sqle.getMessage());
>  ErrorLog.writeErrorLog("SQLEXception close");
>  return false;
> }
> 
> And the output to the error log
> 12/2/2003 4:19:57 PM: 0
> 12/2/2003 4:19:57 PM: 1
> 12/2/2003 4:19:57 PM: 2
> 12/2/2003 4:19:57 PM:
> [EMAIL PROTECTED]
> 12/2/2003 4:19:57 PM: 3
> 12/2/2003 4:19:57 PM: SQLEXception open
> 12/2/2003 4:19:57 PM: Cannot create
> PoolableConnectionFactory
> 12/2/2003 4:19:57 PM: SQLEXception close
>  
> Any advice would get greatly appreciated.  Thanks.
> 
> __
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.0.x memory leak (not javac)

2003-12-03 Thread William Connor
We first ran into this bug when hot-deploying JetSpeed - about seven 
times would cause an out of memory w/ the default heap size. JetSpeed 
had so many leaks itself that we dropped down to bares bones test app 
with a servlet, but no JSPs or third party libraries. With this small 
app would could do a hundred or so deploys or reloads before hitting 
out of memory. We purchased JProbe to try and further track down the 
problem. Unfortunately, JProbe appeared to disturb the environment 
enough that things could not clean up properly anyway. At that point we 
gave up the hunt. Although we're still using 4.1.x in production, we 
recently confirmed that the problem still exists in 5.x. In most cases 
we've been running RedHat 8 with a Sun 4.1 JDK, but we've seen the 
problem on Windows and MacOS as well. It is easy to reproduce - we used 
the Ant task to deploy inside a loop. No need to hit any pages or cause 
JSP's to compile, just redeploying will do it.

On Dec 3, 2003, at 7:06 AM, Shapira, Yoav wrote:

Howdy,
Happy holidays hopefully devoid of debugging ;)
Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Trenton D. Adams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 4:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.x memory leak (not javac)
Ok, thanks guys.  I'll see what I can do.  EXTREMELY busy right now,
but I
might be able to try it over christmas holidays. :)  MAYBE!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: December 2, 2003 12:08 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.x memory leak (not javac)
Howdy,
You don't have to know much about "the tomcat under the hood" to
diagnose this.  It's not a problem with the tomcat classes.  What you
need to know is:
- What 3rd party libraries does your application use
- What classes stay in memory after a reload and have a 2nd
instance of
them created.
You can use a profiler like Senor Hanik suggested (JProbe,
OptimizeIt,
etc.) to find out the latter.  You want to look for a list of objects
whose instance count increases after a reload of your webapp.
OptimizeIt can do heap snapshot deltas which are the perfect
tool here.
Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Trenton D. Adams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 2:08 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.x memory leak (not javac)
Ouch, LOL.  I don't really know a whole lot about the tomcat
"under the
hood"!
:)
I can try though.  Do you have a procedure that I should take to
find
this?
Is there a debugging option that I can turn on for tomcat?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: December 2, 2003 11:45 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.x memory leak (not javac)
Howdy,
Since you can reproduce your error easily, can you narrow
down which 3rd
party library is keeping the references that cause the memory
leak?
Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Trenton D. Adams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 1:43 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.x memory leak (not javac)
-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED]
Sent: December 2, 2003 11:01 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.x memory leak (not javac)
Shapira, Yoav wrote:
Besides what Senor Schultz said (which is 100% true),
1. Where is this mentioned in the release notes, and what
would one have
to search for?
Under KNOWN ISSUES IN THIS RELEASE it does mention issues
during web
application reloading where shared libraries keep references
to objects
instantiated by the web application.  That says "memory leak"
to
me
although it doesn't specifically say that.

2. You mentioned in your passage the bug was marked as
invalid
or
wontfix, and the bug you gave below is marked as new.
So if anyone
actually wasted time (like me) looking up what you said, they
didn't
find it.
All I did was search for "memory leak" under Tomcat 4 and all
status.  I
was not positive that it was marked WONTFIX, I should have
clarified
that in my original message.  I had thought that the issue
was something
inherent to the design of Tomcat 4 (which was overhauled in
Tomcat 5),
but I'm sure that they are willing to accept patches if
anyone can fix
it.  ;-)
Bugzilla is obviously not working sometimes.  I searched
for "memory
leak"
one
time and got it.  Then I went to search for it for
someone else so I
could
give them the bug number but nothing came up.  I did the
exact same
search,
"memory leak".  Very interesting indeed.  Heck, I even
searched for
just
"memory" or "leak" once each and came up with nothing.

-Dave



-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]



__
   This communication is intended for the use of the
recipient to whom
it
   is addressed, and ma

Tomcat 5.x - Cannot create PoolableConnectionFactory

2003-12-02 Thread William Nguyen
I'm having the most difficult time trying to get my
web app to connect to a database (MS Access via
sun.jdbc.odbc.JdbcOdbcDriver).  I've registered an
odbc datasource in Windows and have gotten the
application to work in a command prompt.  I've tried
my best to emulate the examples provided in 8. JNDI
Resources HOW-TO and 9. JDBC Datasources as well as
searches all over the net.  I've extracted the
JdbcOdbcDriver class file from rt.jar and placed it in
a dbconn.jar file in [$CATALINA_HOME]/common/lib (I've
also tried just putting rt.jar in there).  The error
message I get states, "Cannot create
PoolableConnectionFactory."

server.xml

 
  


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
maxWait
5000
  
  
maxActive
4
  
  
password
password
  
  
url
jdbc:odbc:TimeTrack
  
  
driverClassName
sun.jdbc.odbc.JdbcOdbcDriver
  
  
maxIdle
2
  
  
username
admin
  
  
  



web.xml

  datasource
  jdbc/TimeTrack
  javax.sql.DataSource
  Container


Source code: A servlet calls a class that calls this
class.
try
{
 ErrorLog.writeErrorLog("0");
 Context initCtx = new InitialContext();
 ErrorLog.writeErrorLog("1");
 Context envCtx = (Context)
initCtx.lookup("java:comp/env");
 ErrorLog.writeErrorLog("2");
 DataSource ds =
(DataSource)envCtx.lookup("jdbc/TimeTrack");
 ErrorLog.writeErrorLog(ds.toString());
 ErrorLog.writeErrorLog("3");
 conn = ds.getConnection();
 ErrorLog.writeErrorLog("4");
 stmt =
conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
 ErrorLog.writeErrorLog("5");
 //if all successful, return true
 return true;
}
catch (NamingException ne)
{
 ErrorLog.writeErrorLog("Naming exception open");
 ErrorLog.writeErrorLog(ne.getMessage());
 ErrorLog.writeErrorLog("Naming excepton close");
 return false;
}
catch (SQLException sqle)
{
 ErrorLog.writeErrorLog("SQLEXception open");
 ErrorLog.writeErrorLog(sqle.getMessage());
 ErrorLog.writeErrorLog("SQLEXception close");
 return false;
}

And the output to the error log
12/2/2003 4:19:57 PM: 0
12/2/2003 4:19:57 PM: 1
12/2/2003 4:19:57 PM: 2
12/2/2003 4:19:57 PM:
[EMAIL PROTECTED]
12/2/2003 4:19:57 PM: 3
12/2/2003 4:19:57 PM: SQLEXception open
12/2/2003 4:19:57 PM: Cannot create
PoolableConnectionFactory
12/2/2003 4:19:57 PM: SQLEXception close
 
Any advice would get greatly appreciated.  Thanks.

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache proxy question

2003-10-27 Thread William Bondy
I'm a newbie to apache/tomcat intergration. A couple of questions:
 
1) Can apache run in a proxy mode and still forward requests to Tomcat?
 
2) If it can, does apache send requests to Tomcat as if Tomcat is part of
the proxy server (ie. absolute URL) or an origin server (ie. relative URL),
I would expect that Tomcat would be part of the proxy server and hence
receive abolute URLs.
 
3) How does URL mapping in Tomcat work when a host name is provided in an
absolute URL.
 
  
  Thanks!


RE: Content length

2003-10-24 Thread William Bondy
Unfortunately no, it looks like the only solution is change the connector
used with Tomcat, though I really wan't to avoid that...

-Original Message-
From: Jeff Jackson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 05:08 PM
To: Tomcat Users List
Subject: Re: Content length


Can the client handle chunked encoding?  Then you don't need to set
content-length at all.

Jeff Jackson

On Fri, 24 Oct 2003, William Bondy wrote:

> I have a client browser that acts a bit in a non-standard fashion, for
http
> responses with content-length set (keep-alive) it expects the
content-length
> worth of data PLUS an extra \r\n that is not counted in the content length
> header sent.
>  
>  
> When I set the HttpServletResponse contentLength header to value X and
then
> write X+2 bytes to the stream, only X bytes get written. I assume the the
> underlying control is only sending what the header is set to. Is there
> anyway to get around this, ie. set the content length header to X and X+2
> bytes?
>  
>   Thanks!
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Content length

2003-10-24 Thread William Bondy
Tell me about it, I can't change the browser however which blows...

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 04:03 PM
To: 'Tomcat Users List'
Subject: RE: Content length


Why would you try to support something non standard?  What browser is
it?  There was a big write up about this years ago over the http spec.
Browsers nor Servers should be sending nor expecting non standard extra
empty lines in the protocol.

Wade

-Original Message-
From: William Bondy [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 4:33 PM
To: '[EMAIL PROTECTED]'
Subject: Content length


I have a client browser that acts a bit in a non-standard fashion, for
http responses with content-length set (keep-alive) it expects the
content-length worth of data PLUS an extra \r\n that is not counted in
the content length header sent.
 
 
When I set the HttpServletResponse contentLength header to value X and
then write X+2 bytes to the stream, only X bytes get written. I assume
the the underlying control is only sending what the header is set to. Is
there anyway to get around this, ie. set the content length header to X
and X+2 bytes?
 
  Thanks!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Content length

2003-10-24 Thread William Bondy
I have a client browser that acts a bit in a non-standard fashion, for http
responses with content-length set (keep-alive) it expects the content-length
worth of data PLUS an extra \r\n that is not counted in the content length
header sent.
 
 
When I set the HttpServletResponse contentLength header to value X and then
write X+2 bytes to the stream, only X bytes get written. I assume the the
underlying control is only sending what the header is set to. Is there
anyway to get around this, ie. set the content length header to X and X+2
bytes?
 
  Thanks!


HttpServletResponse handling

2003-10-23 Thread William Bondy
Is there a way to suppress the "Date" and "Server" headers from being
automatically generated in HttpServletResponses ?
 
 
Thanks,
   Bill.


RE: HTTP Connect support

2003-10-17 Thread William Bondy
Would appache be able to forward SSL requests (via the Connect) to a locally
connected Tomcat server?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 10:44 AM
To: Tomcat Users List
Subject: RE: HTTP Connect support


You should use Apache instead.


-Original Message-
From: William Bondy [mailto:[EMAIL PROTECTED]
Sent: 17 octobre, 2003 11:37
To: [EMAIL PROTECTED]
Subject: HTTP Connect support


I would like to possibly use tomcat to act as a proxy server and handle
proxy connections, how does Tomcat handle HTTP Connect methods, or does it?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTTP Connect support

2003-10-17 Thread William Bondy
I would like to possibly use tomcat to act as a proxy server and handle
proxy connections, how does Tomcat handle HTTP Connect methods, or does it?


Setting JVM options for Servlet

2003-10-15 Thread William Bondy
I have a servlet application that requires tuning of JVM command line
operations to have decent performace. I need to tune things like the heap
size and garbage collection parameters. How do I do this, do I have to
change Tomcat startup files? Or is there a way to have contexts run in their
own jvm and use per context/jvm command line options?
 
 Thanks,
Bill.


RE: Receiving Transfer-coding: chunked

2003-10-14 Thread William Bondy
Does your answer imply that the servlet getReader() method returns the
content in chunked format? Ie. the servlet engine does not interpret or
aggregate the chunks ? The servlet API is very unclear in this area, I just
want to make sure that my thread reading the socket can read the exact
number of content bytes and not block unnecesarily AND that this is standard
across all servlet compliant engines.

 Thanks for your help!
   Bill.

-Original Message-
From: Manty, George [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 09:30 AM
To: Tomcat Users List
Subject: RE: Receiving Transfer-coding: chunked


To make things easier use something like the Jakarta commons projects
FileUpload API in your servlet to parse the request:

http://jakarta.apache.org/commons/fileupload/


Hope that helps,
George

-Original Message-
From: William Bondy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 9:16 AM
To: '[EMAIL PROTECTED]'
Subject: Receiving Transfer-coding: chunked


If a client sends content (via a POST) using chunked transfer-coding,
how is the content retreived via a servlet? Does the user need to be
concerned with getting the inputstream and handling the content directly
in chunked format since the length may not be known at processing time?
I.e. the content-legnth may be set to -1...
 
 Bill.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Receiving Transfer-coding: chunked

2003-10-14 Thread William Bondy
If a client sends content (via a POST) using chunked transfer-coding, how is
the content retreived via a servlet? Does the user need to be concerned with
getting the inputstream and handling the content directly in chunked format
since the length may not be known at processing time? I.e. the
content-legnth may be set to -1...
 
 Bill.


SSL Encryption buffer size

2003-09-24 Thread William Bondy
I have SSL clients that can process maximum 4Kb of encrypted data per chunk.
Is there a way to configure the Coyote SSL factory to produce SSL sockets
that will not use an encrypt buffer greater than 4Kb?
 
 
 Thank you.
 
  Bill.


How to map mime-extentions to mime-types in an Tomcat/Axis service

2003-08-04 Thread William Barber

Greetings,

I sent this query to the Axis user list last week, but never received any
replys. Perhaps it was the wrong list. Hopefully someone on the Tomcat list will
know the answer?

 I've written an Axis client/service pair that uses "soapConnection.call()" to
send SOAP attachments to the service, along with parameters specifying input and
output mime-extensions. The client will not know the actual mime-type of the
response attachment that the server will return after converting the request
file.

The service end is not a servlet, but just a SOAP service.
The service needs to map the request mime-extensions to mime-types according to
 elements in the Axis web.xml file.

The only call I can find in any docs that does this mapping is the
Context.findMimeMapping(String extension) call.

But its not clear to me how the service end can get a reference to the
appropriate Context so it can make this mapping call. Can someone point me to
the correct methods? Or if I'm just on the wrong path here, point me in a better
direction?

Many thanks! Bill

Bill Barber
Scientific Software Group (CCN-12)
Los Alamos National Laboratory
505-667-8616

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The JAVA_HOME environment variable is not defined. This environment variable is needed to run this program.

2003-07-24 Thread William Mitchell
Ok the echo command shows that the variable is setup.
I also tried the other things you suggested:
Adding JAVA_HOME='/usr/java2' to startup.sh (or better yet, catalina.sh).
Still no success.
I found online that it could be a permissions problem, but after running the suggested 
chmod commands, still no luck.

Any other ideas.
thanks again.

William Mitchell



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:50 PM
To: Tomcat Users List
Subject: RE: The JAVA_HOME environment variable is not defined. This
environment variable is needed to run this program.



Howdy,
That's fairly strange.  Add "echo $JAVA_HOME" to the beginning of
startup.sh to see if it's really set.  Maybe you're setting it in the
wrong way or location.  Alternatively, just add JAVA_HOME='/usr/java2'
to startup.sh (or better yet, catalina.sh).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: William Mitchell [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 24, 2003 1:40 PM
>To: Tomcat Users List
>Subject: RE: The JAVA_HOME environment variable is not defined. This
>environment variable is needed to run this program.
>
>Hello everyone, hopefully someone can help me with an issue I am having
>with Tomcat version 4. I am trying to install it on a SGI Octane 300
with
>the Irix 6.5 O/S. I installed the JDK 1.4 to /usr/java2 and I pointed
the
>variable JAVA_HOME to there... I also created the CATALINA_HOME
variable to
>point to the tomcat install directory, but when i try to startup tomcat
>with the startup.sh, i get the following error message: The JAVA_HOME
>environment variable is not defined. This environment variable is
needed to
>run this program.
>
>also I changed the port from 8080 to 6060 since 8080 was being used,
and i
>am unable to open the website on this system.
>
>Additional information is that I am using the TCSH Shell.
>
>Let me know if anyone has any idea, or needs more info, thanks!
>
>-Original Message-
>From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 24, 2003 1:31 PM
>To: Tomcat Users List
>Subject: Re: Env var serverRoot or JkSet config.file
>
>
>Hi,
>
>I use:
>
>JkSet config.file /usr/local/apache/conf/workers2.properties
>
>you have to have the full system path in there.  You can't shortcut it
>like you can in a LoadModule statement.  (i.e. modules/mod_jk2.so)
>
>-e
>
>On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro wrote:
>
>> Nicolas, Simon, many thanks for the previous response.
>> To everybody else, hi again!
>>
>> I'm a bit lost about configuration files with Apache
>> 2.0+Tomcat 4.1+mod_jk2... I was trying to lower
>> workers2.properties logger level to ERROR instead of
>> INFO/DEBUG, but at startup Tomcat told me:
>>
>> (error ) [jk_config_file.c (279)]  config.update():
>> Can't find config file
>> ${serverRoot}/conf/workers2.properties
>> ( info ) [jk_config.c (251)]  config.setAttribute()
>> Error setting config: file
>> ${serverRoot}/conf/workers2.properties
>>
>> I was using "JkSet config.file" at httpd.conf just
>> after "LoadModule mod_jk2". Following instructions
>> from Nicolas' documents I did a export
>> serverRoot=/opt/apache2/ and everything worked fine.
>> Did Tomcat/Apache ignored my order or I was doing
>> something wrong? I would rather prefer to have a
>> config line rather than another line in my mega shell
>> script...
>>
>> Thanks everybody
>>
>> Ivan
>>
>>

>> Want to chat instantly with your online friends?  Get the FREE Yahoo!
>> Messenger http://uk.messenger.yahoo.com/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The JAVA_HOME environment variable is not defined. This environment variable is needed to run this program.

2003-07-24 Thread William Mitchell
Hello everyone, hopefully someone can help me with an issue I am having with Tomcat 
version 4. I am trying to install it on a SGI Octane 300 with the Irix 6.5 O/S. I 
installed the JDK 1.4 to /usr/java2 and I pointed the variable JAVA_HOME to there... I 
also created the CATALINA_HOME variable to point to the tomcat install directory, but 
when i try to startup tomcat with the startup.sh, i get the following error message: 
The JAVA_HOME environment variable is not defined. This environment variable is needed 
to run this program.

also I changed the port from 8080 to 6060 since 8080 was being used, and i am unable 
to open the website on this system.

Additional information is that I am using the TCSH Shell.

Let me know if anyone has any idea, or needs more info, thanks!

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:31 PM
To: Tomcat Users List
Subject: Re: Env var serverRoot or JkSet config.file


Hi,

I use:

JkSet config.file /usr/local/apache/conf/workers2.properties

you have to have the full system path in there.  You can't shortcut it
like you can in a LoadModule statement.  (i.e. modules/mod_jk2.so)

-e

On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro wrote:

> Nicolas, Simon, many thanks for the previous response.
> To everybody else, hi again!
>
> I'm a bit lost about configuration files with Apache
> 2.0+Tomcat 4.1+mod_jk2... I was trying to lower
> workers2.properties logger level to ERROR instead of
> INFO/DEBUG, but at startup Tomcat told me:
>
> (error ) [jk_config_file.c (279)]  config.update():
> Can't find config file
> ${serverRoot}/conf/workers2.properties
> ( info ) [jk_config.c (251)]  config.setAttribute()
> Error setting config: file
> ${serverRoot}/conf/workers2.properties
>
> I was using "JkSet config.file" at httpd.conf just
> after "LoadModule mod_jk2". Following instructions
> from Nicolas' documents I did a export
> serverRoot=/opt/apache2/ and everything worked fine.
> Did Tomcat/Apache ignored my order or I was doing
> something wrong? I would rather prefer to have a
> config line rather than another line in my mega shell
> script...
>
> Thanks everybody
>
> Ivan
>
> 
> Want to chat instantly with your online friends?  Get the FREE Yahoo!
> Messenger http://uk.messenger.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DB Connection

2003-05-28 Thread William Wragg
What you might want to try is storing the ResultSet in the session, and 
closing the ResultSet when the session is closed or the ResultSet is 
removed from the session. I looked into this, but eneded up going down the 
copying route. To store a ResultSet in the session what I came up with is 
the following:

The object you use to make the connection and retrieve the ResultSet needs 
to implement the HttpSessionBindingListener. The object also needs to store 
the ResultSet i.e. it doesn't pass it else where, and allow public access 
to it. You put the closing of the ResultSet and connection into the 
valueUnbound method of the object, which gets called when the session is 
invalidated (via a timeout say) or the object is removed from the session.

Just a word of warning if you decide to go down this route, a connection 
can be left in the session until it times out, which can mean that all the 
connections in the pool can be tied up in unused sessions until they start 
to timeout.

Regards,

Wm.

At 09:12 28/05/2003, you wrote:

Guys, this is very interesting discussion.
I have read all the posts.
I still have another problem.
What about VERY large Result Sets?
I have a portal with 1 000 000 records[books related].
When the user searches for romance, there are more than 200 000 records
returned.
I can't use CachedResultSet [I would have to hold all this in memory, in an
object registerd in the HTTPSession]
also I can't use the ArrayList.
I am also using a DB pool system and I want to return the connection.
Is there a solution? [better said an optimal solution].
If the ResultSet doesn't hold all the records in memory[RAM],
(setFetchSize(int) -> sets how many rows to be brought into memory), where
is the rest? A concrete case:
"select name from books" -> returns 850 000 records.
statement->setFecthSize(25);
the rest of 849975 records are left in the database?, on the hard-disk? or
the database is making all this resultset
internally, and itself uses RAM and some swap? Does anyone knows all this
internal action, how it is going on?
Comments, URLs appreciated.
Info: I use Postgresql if it counts.
In the case that I will have to not return the connection to the pool, and,
because ResultSet doesn't hold in memory all the records I would save it int
the HTTPSession, HOW AM I going to know when to release it and return the
connection to the pool?
Thank you very much in advance.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27/05/2003

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

the latest stable release?

2003-04-01 Thread Xu, William [CC]
http://jakarta.apache.org/tomcat/index.html This page (paragraph 2 in
section Tomcat 4.x) still shows the latest stable release is 4.1.18 as
opposed to 4.1.24. Is there any specific reason for that or just that page
has not been updated? Thanks in advance.

Regards,

William Xu



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IIS-Tomcat Connector Config

2003-03-26 Thread Rooda, William J
I apologize in advance if my message sounds "crude," but I am relatively
new to configuring web servers.

 

I have a Web server which (unfortunately) must run IIS in order to serve
some old asp pages I have.  All my new functionality, however, is
written in J2EE architecture, so I need to connect Tomcat with IIS.


I have downloaded the isapi_redirect.dll file and put it in the
corresponding folder.  There are two other *.properties files which are
also necessary.  Because I have not written these files before, I need
to see the samples.  The release documentation, available at:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.0/doc/jk/iishowto.html

 

Says that the *.dll file is available under the win32 directory of the
release. I found that fine.  It goes on to say that the *.properties
files can be found in the "conf" directory.  I checked the "conf"
directory on the server where I installed Tomcat (4.1.18) and did not
find any such files.  I have exhausted my searching both on the web and
within Jakarta.apache.org and have been unable to find copies of these
files that relate to IIS (isapi).  Did I perhaps download an incomplete
build of Tomcat?  Am I looking in the wrong place?

Again, I apologize in advance if this email has made any of you stupid.

 

~WJR



Building Tomcat

2003-03-17 Thread William H. Du Chene
Hi list.

Can anyone please point me in the direction of a tutorial, or a how-to on
building tomcat, and the related projects? I have spent two days scouring
the internet looking for one and have come up empty handed.

Thank you in advance.

Will


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Fwd: Strange logging error for 4.1.18]

2003-03-14 Thread William Lee
I sent this to tomcat-dev, but maybe the user list is a better place to ask:

 Original Message 
Subject: Strange logging error for 4.1.18
Date: Fri, 14 Mar 2003 17:50:18 -0800
From: William Lee <[EMAIL PROTECTED]>
Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
To: tomcat-dev <[EMAIL PROTECTED]>
I'm running Tomcat 4.1.18 on Solaris 8 and Sun's JRE 1.3.x.  I tried
searching for the list but I couldn't seem to find anything that'll
describe this problem.
Usually, I can start tomcat fine.  However, it seems like once in a
while I got this error from stdout:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:567)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:291)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:415)
at
org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:174)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)
Then Tomcat stops accepting connection and just hung there.  Looking at
the ThreadPool.java code I see around line 522:
/* Check if should execute a runnable.  */
try {
if(noThData) {
if(p.debug>0) p.log( "Getting new thread
data");
thData=toRun.getInitData();
noThData = false;
}
if(shouldRun) {
toRun.runIt(thData);
}
} catch(Throwable t) {
loghelper.log("Caught exception executing " +
toRun.toString() + ", terminating thread", t);
loghelper.flush();
/*
* The runnable throw an exception (can be even
a ThreadDeath),
* signalling that the thread die.
*
* The meaning is that we should release the thread from
* the pool.
*/
It seems to throw another exception on the "loghelper.log()" call inside
the catch(Throwable t) block.  From here I suspect class loading issues,
but I couldn't figure out what is wrong.   Note that I'm compiling
Tomcat from source using common-logging 1.0.2 and log4j 1.2.6.   I
didn't include log4j in the tomcat distribution (not in server/lib) but
I do have a servlet that uses log4j1.2.6 and have the jar in the
WEB-INF/lib directory.
Does somebody experience anything like this before?

--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Restricting servlet access

2003-03-04 Thread William Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,


I'm running tomcat 4.1.18 under SUN j2sdk1.4.1 on linux. I'm looking for an
easy way to restrict access to servlets based on connectors. For example, I
have a servlet X. I only want X to be accessed through connector Y. Is there
a way to only deploy that servlet on connector Y? A solution using
web.xml/server.xml is fine, but if anyone knows how to do this
programatically (I embed tomcat) then that too would be cool.


Thanks,


Will

- - --
William Wilson

Applied Generics Ltd
Pentlands Science Park
Bush Loan, Penicuik
Scotland, EH26 OPZ

[EMAIL PROTECTED]
Tel: +44 870 240 3694
Fax: +44 870 706 5818
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+ZIE8NAhBZq2mRiYRApp+AKCQvJM8q/+JCjxx6HE4ei8dLpwo1wCgmcwE
FNEvSj+Fv1xRhduhY1DOIEA=
=RS+Z
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Restricting servlet access

2003-03-04 Thread William Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,


I'm running tomcat 4.1.18 under SUN j2sdk1.4.1 on linux. I'm looking for an 
easy way to restrict access to servlets based on connectors. For example, I 
have a servlet X. I only want X to be accessed through connector Y. Is there 
a way to only deploy that servlet on connector Y? A solution using 
web.xml/server.xml is fine, but if anyone knows how to do this 
programatically (I embed tomcat) then that too would be cool.


Thanks,


Will



- -- 
William Wilson  

Applied Generics Ltd
Pentlands Science Park
Bush Loan, Penicuik
Scotland, EH26 OPZ

[EMAIL PROTECTED]   
Tel: +44 870 240 3694   
Fax: +44 870 706 5818   
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+ZHdrNAhBZq2mRiYRAme/AJ97UQaC8MPshpuG2qLWgxnOS61QFACfXa1h
Tz0Dtxr7LJClanc+R2Lh2no=
=JE/0
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: webapps location

2003-02-26 Thread William Claxton
I think you are being a bit harsh on the fellow.  Here's why:

1.  A well-behaved application should permit the separation of user data
and application binaries.  This is essential to simple backup procedures
and avoiding data loss when applications are updated.

2.  Tomcat documentation does indeed explain that the parameter 'appbase'
may be changed, but does not highlight the fact that this causes the Tomcat
main page, documentation and test servlets to become non-functional.  There
are workarounds, but none are given in the documentation.

3.  The post by NGO XUAN asks if he can *both* stage his applications in a
place other than the Tomcat application folder, and also retain the
benefits of Tomcat's Catalina home.  I read this as saying that he wants to
be able to test Tomcat from time-to-time by going to the Tomcat home page.
The doc does not explain how to do this.

4.  In fact, the documentation misleadingly states that one may test a
Tomcat deployment, to determine that it is properly configured, by
accessing "http://localhost:8080";.  This does *not* test the servlet
engine, only the Tomcat HTTP service.  When you change the appbase setting,
the HTTP service continues to work - but the context for example servlets
will break.

I think in fairness, you might recommend a solution to the question raised.
 I and others have asked the same question.


At 12:38 PM 2/26/03 -0500, you wrote:
>
>Howdy,
>RTFM.
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: NGO XUAN MARC-AURELE [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, February 26, 2003 12:31 PM
>>To: '[EMAIL PROTECTED]'
>>Subject: webapps location
>>
>>hi all !
>>
>>I wonder if it is possible to put webapps in a directory which is not
>>catalina_home/webapps
>>I'd like to keep the catalina_home/ directory unchanged and allow
>>developpers to put
>>their apps in a directory that I would declare perhaps in server.xml or
>>anywhere else.
>>Does anybody knows if it is possible ?
>>
>>thanx !
>>
>>Marc-Aurèle NGO XUAN
>>Société Générale Asset Management
>>SGAM/ALT/RIM
>>01 56 37 16 54
>>06 30 70 18 12
>>
>>
>

Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need 2 appbase settings

2003-02-26 Thread William Claxton
>> Date: Tue, 25 Feb 2003 13:09:09 +0800
>> From: William Claxton <[EMAIL PROTECTED]>
>> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: need 2 appbase settings
>>
>> We have successfully moved our appbase to a folder other than Tomcat's
>> default.  However, this means we can no longer see the manual pages or the
>> Tomcat servlet examples.
>>
>> I believe the correct approach would be to create 2 host entries in
>> 'server.xml', one with the default appbase (where we'd find the Tomcat
>> manual and examples), and one for the modified appbase (where we'd find our
>> own applications).  There may also need to be modifications to the Apache
>> configuration, to enable virtual hosting.
>>
>
At 09:41 PM 2/24/03 -0800, you wrote:
>
>That technique would work.
>
>So would putting an explicit  element inside the standard 
>element, with a docBase attribute pointing back to where the files really
>are (remember, both docBase and appBase can be absolute or relative
>paths).
>
>An even simpler approach, of course, would be to just copy or move the
>"tomcat-docs" into your new "appBase" location -- then, the automatic
>recognition will find them again.
>
>> Has anyone done this?  If so, can you provide snippets from your
>> 'server.xml' and perhaps 'httpd.conf' to show us how it's done?
>>
>>
>
>Craig
>

An update on this issue... 

We're trying to use Craig's solution - create a context that points to the
absolute address of the Tomcat examples.  This will save making the DNS
changes required for a virtual host.

For presenting the tomcat documentation, adding a server alias in Apache
does the trick.  But we're still having trouble making the servlet examples
work.  Here's a snippet of the 'server.xml'.

{...}
  
{...}


{...}
  
{...}

When we access an example servlet using port 8080, it works fine:

http://www.openasia.net:8080/examples/servlet/HelloWorldExample

When we access the same servlet using port 80 (via Apache), it fails with a
404 error:

http://www.openasia.net:80/examples/servlet/HelloWorldExample

This, despite the fact that the 'mod_jk' connector is properly configured,
and works fine for other contexts.  

As expected, the Apache access log reports:

"GET /examples/servlet/HelloWorldExample HTTP/1.1" 404 1068

Apache error_log reports:

File does not exist: /home/web/sites/openasia/site/htdocs/examples

Incidentally, the path '/home/web/sites/openasia/site/htdocs' is our site
document root.  Finally, mod_jk.log reports:

jk_uri_worker_map_t::map_uri_to_worker, done without a match

The file 'web.xml' in '/examples/WEB-INF' is straight from the default
installation, unchanged.  It includes a filter for the pattern '/servlet/*'.

Any ideas?


Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need 2 appbase settings

2003-02-24 Thread William Claxton
We have successfully moved our appbase to a folder other than Tomcat's
default.  However, this means we can no longer see the manual pages or the
Tomcat servlet examples.

I believe the correct approach would be to create 2 host entries in
'server.xml', one with the default appbase (where we'd find the Tomcat
manual and examples), and one for the modified appbase (where we'd find our
own applications).  There may also need to be modifications to the Apache
configuration, to enable virtual hosting. 

Has anyone done this?  If so, can you provide snippets from your
'server.xml' and perhaps 'httpd.conf' to show us how it's done?


Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with classpath modification

2003-02-21 Thread William Claxton
Since I didn't see any reply to my first post, let me try to restate, and
simplify the issue.  Interested readers may refer to the earlier post (same
subject) for details.

We encountered an issue when adding a classpath entry to the Tomcat
(v4.1.18) 'setclasspath.sh' script.  It so happens that the classpath entry
'/home/web/mediaware/WEB-INF/classes' is already accessible as a context,
but we need the classpath entry for some functions internal to our servlet.
 When we add this classpath entry using 'setclasspath.sh', Tomcat seems to
loose its context.  There are no errors in any of the startup logs, but
servlets located in '/home/web/mediaware/WEB-INF/classes' cannot run properly.

For a simple HelloWorld script located in this 'classes' folder, the
failure exhibits itself as inability to find the HttpServlet service.  This
can be fixed if we also add the following entry to the classpath:

/usr/local/jakarta/jakarta-tomcat-4.1.18/common/lib/servlet.jar:

This seems odd.  Why does adding an existing 'classes' folder to our
classpath cause Tomcat to fail to find it's own supporting jar file?
Incidentally, the added entry in our classpath also causes Tomcat to fail
to find supporting jar files in '/home/web/mediaware/WEB-INF/lib'.

Any ideas?


Regards, Bill Claxton [EMAIL PROTECTED]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with classpath modification

2003-02-19 Thread William Claxton
We encountered an issue when adding a classpath entry to the
'setclasspath.sh' script.  Our environment is RH Linux 8, Apache 2.0, and
Tomcat 4.1.18.  We have connected Apache and Tomcat, and moved our appbase
to another folder (not $TOMCAT_HOME/webapps).

We need to add a classpath entry in order to help our servlet *find
itself*.  This sounds a bit funny, but the servlet reads a config file, and
parses its own tag library.  In a traditional environment we would set an
entry in the classpath for our servlet, and a couple dependent jar files.
In our Tomcat 4.x environment, such configuration is done through XML
files.  As it is, a 'HelloWorld' servlet runs fine in our  'classes'
folder, and dependent jar files can be found in our 'lib' folder.  But our
own servlet cannot *find itself* to bootstrap the tag library.

So we tried to add the entry '/home/web/mediaware/WEB-INF/classes' to the
CLASSPATH by modifying the 'setclasspath.sh' script.  But it caused us to
get various 500 errors - the supporting classes could not be found!  Even
the 'HelloWorld' servlet cannot be found.

To overcome this issue, we make the following modification in the
'setclasspath.sh' file (the 'joinClassPath' function assures that any
existing classpath is inherited, and that there are no null entries in the
classpath):

# Set standard CLASSPATH
# CLASSPATH="$JAVA_HOME"/lib/tools.jar

joinClassPath() {
# adds string argument to end of existing classpath
if [ -z "$CLASSPATH" ] ; then
CLASSPATH=$1
else
CLASSPATH=$CLASSPATH:$1
fi
export CLASSPATH=`echo $CLASSPATH | tr '::' ':'`
}

joinClassPath "$JAVA_HOME"/lib/tools.jar
joinClassPath "$TOMCAT_HOME"/common/lib/servlet.jar
joinClassPath /home/web/mediaware/WEB-INF/classes
joinClassPath /home/web/mediaware/WEB-INF/lib/activation.jar
joinClassPath /home/web/mediaware/WEB-INF/lib/collections.jar
joinClassPath /home/web/mediaware/WEB-INF/lib/mail.jar

A test servlet, located in our 'classes' folder displays the resulting
classpath as follows:

Output - The classpath is: 
/usr/java/j2sdk1.4.1_01/lib/tools.jar:
/usr/local/jakarta/jakarta-tomcat-4.1.18/common/lib/servlet.jar:
/home/web/mediaware/WEB-INF/classes:
/home/web/mediaware/WEB-INF/lib/activation.jar:
/home/web/mediaware/WEB-INF/lib/collections.jar:
/home/web/mediaware/WEB-INF/lib/mail.jar:
/usr/local/jakarta/jakarta-tomcat-4.1.18/bin/bootstrap.jar 

With this change, our servlet runs fine, and is able to *find itself*
(using the 'classes' entry).  But the question is this: all our servlet
really needs to see is its own directory in the classpath - why does adding
this single entry to our classpath cause Tomcat to fail to find our
supporting jar files, and especially its own servlet jar!  Why is it
necessary for us to forcibly tell Tomcat the classpath for our jar files,
which are sitting in our web application folder (literally under
'/WEB-INF/lib')?

Thanks in advance.


Regards, Bill Claxton [[EMAIL PROTECTED]]
OpenAsia Solutions provides streaming media & payment solutions.
Check out http://www.openasia.net
:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problem with ClassFormatError

2003-02-18 Thread Bryant, William
Thanks for the suggestion, I installed JDK 1.3.1-- same problem.  Any other
thoughts?

Thanks,

Mike


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 18, 2003 2:48 PM
To: Tomcat Users List
Subject: RE: Problem with ClassFormatError



Howdy,
I thought there were known bugs to this effect in Sun's 1.3.0 and 1.4.0 JDK
(slightly different bugs).  Try using JDK 1.3.1 or better yet 1.4.1, as I've
heard a lot of stuff recently about reflection in 1.3.x being very buggy.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Bryant, William [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 18, 2003 2:44 PM
>To: Tomcat Users List
>Subject: Problem with ClassFormatError
>
>Hi all,
>
>After some hair pulling I figured I'd better just email the list with
this
>one...
>
>I have a class that contains an array of Objects and another array of 
>Classes.  This class then uses java.lang.reflect to work its magic in 
>calling various methods on the objects in the array.  The code compiles 
>perfectly fine, but when I try to load this class at runtime, the class 
>loader throws a ClassFormatError saying "Illegal Class name 
>java/lang/Class[]".
>
>The weird thing is that others in the development team run this same
code
>without any problems.  I did some research into this but came up with
no
>answers, my guess is that it has something to do with the fact that the 
>class uses reflection, but I can't be sure.
>
>I'm hoping that I am overlooking the obvious here, ANY help is greatly 
>appreciated.
>
>For whatever help they might be, I am attaching the exception text, the 
>results of running 'javap' on the offending class and my server.xml
(ccv26
>context).
>
>My setup
>
>JDK: 1.3.0_02
>Tomcat: 4.0.3
>Platform: Windows 2000
>
>
>Thanks,
>
>Mike
>




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Problem with ClassFormatError

2003-02-18 Thread Bryant, William
Hi all,

After some hair pulling I figured I'd better just email the list with this
one...

I have a class that contains an array of Objects and another array of
Classes.  This class then uses java.lang.reflect to work its magic in
calling various methods on the objects in the array.  The code compiles
perfectly fine, but when I try to load this class at runtime, the class
loader throws a ClassFormatError saying "Illegal Class name
java/lang/Class[]".

The weird thing is that others in the development team run this same code
without any problems.  I did some research into this but came up with no
answers, my guess is that it has something to do with the fact that the
class uses reflection, but I can't be sure.

I'm hoping that I am overlooking the obvious here, ANY help is greatly
appreciated.

For whatever help they might be, I am attaching the exception text, the
results of running 'javap' on the offending class and my server.xml (ccv26
context).

My setup

JDK: 1.3.0_02
Tomcat: 4.0.3
Platform: Windows 2000


Thanks,

Mike



Compiled from ReportVector.java
public class com.c_cor.ui.ccvg.report.cpeanalysis.ReportVector extends 
java.lang.Object {
protected static com.c_cor.ui.ccvg.util.UIProperties props;
protected static com.c_cor.util.Logger log;
protected static boolean debug;
protected java.util.HashMap fieldMap;
protected com.c_cor.ui.ccvg.report.cpeanalysis.CpeReport cpeReport;
protected float derivedValue;
protected java.lang.Class classArray[];
protected java.lang.Object paramArray[];
static java.lang.Class class$java$lang$Object;
public 
com.c_cor.ui.ccvg.report.cpeanalysis.ReportVector(com.c_cor.ui.ccvg.report.cpeanalysis.CpeReport);
public java.lang.String toString();
public void putField(com.c_cor.ui.ccvg.report.cpeanalysis.Field);
public java.util.HashMap getFieldMap();
public float getDerivedValue();
public void setDerivedValue(float);
public void generateDerivedFields();
public void displayDerivedFields();
public java.lang.Object invokeDerivedMethod(java.lang.String);
protected java.util.ArrayList getDerivedFieldParams(java.util.ArrayList, int);
protected java.lang.String parseObjectName(java.lang.String);
protected java.lang.String parseMethodName(java.lang.String);
protected java.lang.Object getValue(java.lang.Integer);
static java.lang.Class class$(java.lang.String);
static {};
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk performance

2003-01-20 Thread Pimentel, William (Col)
Hello

I've been unsuccesfully trying to compile mod_jk.so for Solaris 8, i get 
all kind of weird erros such as:

sh: ./libtool: not found
*** Error code 1

when there's a ./libtool in the current directory  (native)

The reason i'm trying to compile a new module is because the one i got 
some time ago doesn't work well, it's so slow when i try to display 
a jsp or servlet page over port 80 (apache), whereas it runs smoothly 
over port 8080 (tomcat).

Can anybody tell me how to get this module to compile on Solaris 8?? i 
have tomcat 4.1.18 and Apache 2.0.x

Thanks




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Apache mod_jk's session not sticky

2002-11-11 Thread William Lee
I'm using Apache 2.0.43, mod_ssl, mod_jk 1.2, and Tomcat 4.1.14 (the 
test release).  I've set up Tomcat so it runs behind the apache.  My 
test of having 1 worker behind a load balancer works perfectly without 
any problem.  However, once I added another machine, it seems like my 
user's session is jumping back and forth between the two machines. 
This, of course creates a big problem.

My servlet involves a form-based login page, in which the login code 
would remove the old session and attach a new one once the user has 
authenticated against the authority.  Would this create a problem?  I'm 
wondering how mod_jk handles the stick sessions.  It does seem to be 
pretty random when it jumps back and forth between the two machines I 
have here.

I've turned on the debug log in mod_jk but it doesn't tell me all that 
much.  Is there any other mechanism available for me to debug this?

--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



Re: Tomcat 4.1.12 hanging under stress?

2002-10-30 Thread William Lee
Ben Ricker wrote:

On Mon, 2002-10-28 at 20:24, William Lee wrote:
 

Hmm, it may have something to do with the kernel, I'll try later to see 
whether this is the case.  I don't think the log gives me much though. 
Anyhow, I've made a weird discovery that I found interesting.


After the other info you gave me, I am less concerned with the kernel
now. I would still upgrade it, though. There is a nasty networking bug
in the 2,4,9 kernel, I believe, that effects scalability.



It seems like there's a "barrier" when the JVM consume around 90MB of 
RAM.  Once the JVM got over that barrier, then things will keep working.



Well, it turned out this problem may not have anything to do with the 
JVM at all.

After trying various different JREs, -X flags, and garbage collection 
info, etc, I updated my tomcat to 4.1.14 (test) and now I got the 
following exception in stdout when I got into the situation where the 
connection hung:

Class org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:165)
at org.apache.tomcat.util.threads.ThreadPool.logFull(ThreadPool.java:260)
at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:226)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:509)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:512)


Looking into the 4.1.14 source code it turned out that the thread (maybe 
the connection thread?) just died when calling the function logFull(), 
and somehow log4j failed to do so (?).  Does this have anything to do 
with class loader and using different versions of log4j?  Does anyone 
know how tomcat logged its messages?


--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



Re: Tomcat 4.1.12 hanging under stress?

2002-10-28 Thread William Lee
Ben Ricker wrote:

On Mon, 2002-10-28 at 14:38, William Lee wrote:


I'm running a Tomcat 4.1.12 (with the coyote connectors running SSL) on 
RH Linux with a 2.4.9 kernel and IBM JRE 1.3.1 build cxia32131-20020622.


I am wondering about the kernel version here; you have rather old
kernel, a version which is considered unstable. I would suggest
upgrading the kernel, especially since you have SMP.

This is just a small suggestion.anything in the logs?

Ben Ricker
Wellin.com


Hmm, it may have something to do with the kernel, I'll try later to see 
whether this is the case.  I don't think the log gives me much though. 
Anyhow, I've made a weird discovery that I found interesting.

It seems like there's a "barrier" when the JVM consume around 90MB of 
RAM.  Once the JVM got over that barrier, then things will keep working. 
 The strange thing is, under not-so-heavy load (< 30 concurrent users), 
somehow it failed to break that barrier and the socket hung when it 
reaches that point.  If I drive the load up ( 50, 100, or even 200 
concurrent connections), somehow it breaks that barrier and things will 
work without any problem.  Does anyone know why this is the case?


--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



Tomcat 4.1.12 hanging under stress?

2002-10-28 Thread William Lee
I'm running a Tomcat 4.1.12 (with the coyote connectors running SSL) on 
RH Linux with a 2.4.9 kernel and IBM JRE 1.3.1 build cxia32131-20020622.

I initiated around 50 concurrent https connections from JMeter to the 
test server I have (which is a moderately powerful dual PIII 500 with 
512 MB RAM and Ultra-SCSI drives) and I realized some random hangings 
after running for a while.  When the hanging happened, I could still 
connect to the port that I opened.  However, I couldn't do anything once 
I connected to the port.  The JVM seemed to be running still, but tomcat 
wouldn't response.

BTW, I tried connecting to the port using "openssl s_client ..." and I 
was able to connect to the port when it hung, but I can't issue any HTTP 
commands.

I can, however, shutdown the server from the control port with no problem.

Can somebody tell me how to address / debug this problem?

--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>



Bug in catalina.sh? Problem using jpda

2002-10-08 Thread William Lee

I have been using jswat for debugging Tomcat for a while.  However, 
since I use the catalina's jpda start it doesn't work anymore.  It seems 
like in the java command arguments that catalina.sh script constructed 
are missing a -Xnoagent flag.  It's causing the jswat to skip all the 
breakpoint that I've set I think.

Also, it seems like the setclasspath.sh script is explicitly checking 
jdb and javac in your JAVA_HOME/bin directory before allowing you to 
pass.  That means you can't really use that script with any JRE for the 
binaries are not included...  I know jsp would not work with the JRE but 
I can use the JRE with just plan servlet with no problem and having that 
check there is somewhat redundent.

BTW, I'm currently using IBM JDK 1.3 and Tomcat 4.1.12 on Linux.

-- 
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Tomcat 4.1.12: SSL warnings in catalina.out

2002-09-30 Thread William Lee

I've set up a standalone 4.1.12 Tomcat instance using SSL connection. 
When I looked into the catalina.out in the log directory, I realized 
that there are some warning lines in there that are pretty annoying. The 
lines are like:

[WARN] Http11Processor - -Exception getting SSL attributes 



I assume it's trying to do client authentication and failed (??). 
However, I have set the clientAuth="false" in the the server.xml file. 
Why do I sill get a warning?  It happens each time the browser hits the 
page too, so I think this is going to be a problem (where the 
catalina.out will get big with all the lines of messages).  Is there a 
way to get rid of them?

-- 
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Documentation

2002-09-30 Thread Bryant, William

Great idea.  It has been attempted before, in the form of the "Hitch-hiker's
Guide to Tomcat", http://sourceforge.net/projects/tomcatbook.   That project
is essentially dead, however.  I completely agree with you that something
like this would be a wonderful asset to the Tomcat community.

... Mike



-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 30, 2002 5:01 PM
To: Tomcat Users List
Subject: Documentation


Since most of the questions to tomcat-users list concern installation and 
configuration issues it demonstrates that there is a real need for Tomcat 
to have a "documentation project" that it's users can contribute to. Right 
now most of the documentation consists of the xdocs which are pretty good, 
but can be so much more.  The developers obviously have little time to 
maintain the present documentation and there is such an apparent need that 
I wonder why a project for the documentation has not been started.

There are many "doc-projects" out there to emulate.  I especially like the 
one that the apache folks have running, the new xml documentation for 
Apache 2.0 is probably the best I've seen. 

I'm sure that many people would be willing to devote some time to 
organizing and maintaining input from the community into a resource that 
would benefit everyone.  I for one would be willing to contribute, but 
right now there is nothing an nowhere to submit to.

Should the developers of Tomcat initiate a project for the documentation? 
Or should we?  The Apache folks seem to have solved this issue, it remains 
to be solved for Tomcat.
 
Have a look at some examples of opensouce projects which have solved their 
documentation problems:

http://httpd.apache.org/docs-project/
http://www.freebsd.org/docproj/
http://www.debian.org/doc/ddp http://developer.gnome.org/projects/gdp/
http://www.mulberrytech.com/dsssl/dsssldoc/index.html
http://pm-doc.sourceforge.net/
http://zdp.zope.org/
http://www.tldp.org/

rls

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.1.12

2002-09-24 Thread William Lee

Tim Funk wrote:
> There was a security flaw in 4.1.11 and earlier that so that /servlet/* 
> could be used for bad things. The flaw was fixed in the invoker servlet 
> for the "obvious" issues but it still leaves the door open for people to 
> do other bad things if people aren't careful.
> 
> In $CATALINA_HOME/conf/web.xml - look for the invoker servlet and 
> uncomment it to turn that functionality back on. My guess is it is now 
> commented out by default (which is a good practice to have).
> 
> Personally - I hate the concept of /servlet/* being able to invoke a 
> class. It may make development easier - but then you run into subtle 
> security goofs.
> 
> -Tim
> 

Please excuse my ignorance, what's the preferred way to invoke a servlet 
class file then?

I have a servlet named smimc that I defined a web.xml inside the 
smimc/WEB-INF/ directory:

...
 
 
smimc
 
 
 org.apache.turbine.Turbine
 
...

I used to be able to invoke it with the path /smimc/servlet/smimc

However, this doesn't seem to work anymore with the invoker turned off. 
I can turn the lines in tomcat's web.xml back on but that risks 
security (?).  So what's the proper way for this to work then?

Will


-- 
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: web.xml and manager application

2002-09-23 Thread William Wragg

Hi,

Not sure what this would be, permissions? Have a look at:

http:///tomcat-docs/manager-howto.html

If this doesn't help, send the command, directory of webapp, etc... and 
I'll see if there is anything wrong. I'm not sure if 4.0.1 is different 
from 4.0.4 where the manager is concerned, so if the docs are different go 
with the docs. Alternatively update to 4.0.4 :)

Regards,

Wm.

At 19:03 20/09/2002, you wrote:

>Hi,
>
> > If the webapp is just in a directory _not_ packaged as a .war file then
>use:
> > http://localhost:8080/manager/install?path=/myApp&war=file:/path/to/myApp
>
>thanks for your answere.
>Well it is not working with me I am getting an error:
>FAIL - Encountered exception java.lang.IllegalArgumentException: Cannot
>access document base directory /usr/lib/jakarta-tomcat-4.0.1/webapp/wwa-m
>
>
>
>thanks, Rainer
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: web.xml and manager application

2002-09-20 Thread William Wragg

Hi,

If the webapp is just in a directory _not_ packaged as a .war file then use:
http://localhost:8080/manager/install?path=/myApp&war=file:/path/to/myApp

If the webapp is packaged as a .war file use:
http://localhost:8080/manager/install?path=/myApp&war=jar:/path/to/myApp.war!/

Hope this helps,

Wm.

At 17:22 20/09/2002, you wrote:

>Hi,
>
>I cannot install the Webapp with the manager app since it is not a .war.
>Do you know if there is a way?
>If I only try: http://localhost:8080/manager/install?path=/myApp
>I am getting a
>FAIL - Invalid application URL null was specified
>message.
>
>thanks, Rainer
>
>
>
> > Hi,
> >
> > I had this on 4.0.4. The way I got around it was:
> >
> > (1) Undeploy the wepapp - http://localhost:8080/manager/remove?path=/myApp
> > (2) Delpoy the webapp -
> > http://localhost:8080/manager/install?path=/myApp&war=file:/path/to/myApp
> >
> > This seemed to reparse the web.xml file OK.
> >
> > Reagards,
> >
> > Wm.
> >
> > At 12:29 20/09/2002, you wrote:
> >
> > >Hi, using
> > >Tomcat 4.0.1 on a Linux Box (SuSE 7.3) with JDK 1.3.1.
> > >When I change the web.xml of a webapp and want to reload that webapp
> > >using the manager application the web.xml-file is not parsed again.
> > >Only when I restart the container.
> > >Is that normal? Is there a soulution? It is quite unhandy!
> > >
> > >thanks, rainer
> > >
> > >
> > >
> > >---
> > >Incoming mail is certified Virus Free.
> > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > >Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
> >
>
>
>
>
>
>
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
> >
> >
>
>
>
>
>
>
> > --
> > To unsubscribe, e-mail:
>
> > For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: web.xml and manager application

2002-09-20 Thread William Wragg

Hi,

I had this on 4.0.4. The way I got around it was:

(1) Undeploy the wepapp - http://localhost:8080/manager/remove?path=/myApp
(2) Delpoy the webapp - 
http://localhost:8080/manager/install?path=/myApp&war=file:/path/to/myApp

This seemed to reparse the web.xml file OK.

Reagards,

Wm.

At 12:29 20/09/2002, you wrote:

>Hi, using
>Tomcat 4.0.1 on a Linux Box (SuSE 7.3) with JDK 1.3.1.
>When I change the web.xml of a webapp and want to reload that webapp
>using the manager application the web.xml-file is not parsed again.
>Only when I restart the container.
>Is that normal? Is there a soulution? It is quite unhandy!
>
>thanks, rainer
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Un-tarring jakarta-tomcat-4.0.4.tar.gz

2002-09-18 Thread Wilson, William N

The Tomcat site says there is a problem with the SUN tar command.  You can
unzip this on the windows side and then FTP the whole thing over if you
don't want to install the GNU tar binaries.  That is what I have had to do
on Solaris machines where I am not the administrator.

-Original Message-
From: amit_mahajan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 3:28 AM
To: [EMAIL PROTECTED]
Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz


> Hi,
> 
> I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache
1.3.26. 
> 
> I have downloaded from the Tomcat site the file
jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris
> machine but I keep getting a checksum error each time I try. And though a
lot of folders are created, most of them 
> are emtpy without the files in them. I am running the following commands :
> 
> $gunzip  jakarta-tomcat-4.0.4.tar.gz
> $tar -xvf  jakarta-tomcat-4.0.4.tar
> 
> However, if I unzip on a Win 2K machine, I am able to get a complete
expanded directory. Also the size of the 
> downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667
bytes) - or 4,134 KB.
> 
> Has anyone faced a similar problem or can someone please point out what I
may be doing wrong.
> 
Please reply to [EMAIL PROTECTED] since I am not a member of
this mailing list.

> Thanks,
> Amit

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Connecting IPlanet and Tomcat

2002-09-18 Thread Wilson, William N

I've tried connecting IPlanet to Tomcat and I cannot find a binary copy of
the redirector for Solaris 8.  I do not have a compiler on the Sun box. Does
anyone have any ideas where I might find this file?

Thanks,

Bill

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   3   4   5   6   >