Newbie problem with Sessions

2004-03-02 Thread Derek Clarkson
Hi guys,
Not sure if I'm in the right list for this ;-)

I'm trying to debug an application which has basically been cobbled together
by a number of previous programmers using a mix of servlets, jsp and struts.
The app also uses 3 contexts - 2 normal and 1 secure via apache. The problem
is this, if I log on and setup some stuff on the main site, the software
uses the same session through out. Security is done but storing a user
object in the session. If I then perform a CC transaction which requires the
secure server to be used and then come back to the main server, the session
is "lost" and the system insists I logon again. Then every time I try to
access a page it keeps creating new sessions and insisting I relogon. This
only seems to happen after I access the secure server. I have to restart the
browser to get everything working again.

I've logged the session ids which is how I tell when it starts accessing
different sessions. The software appears to have originally been written to
use cookies, but whilst they are stored, they are not used anywhere. 

Questions:
1. If the software creates and stores a cookie, but never actually retrieves
it, can this effect the session ? I've read something about cookies
controlling sessions, but I don't know how this works.

2. What sort of things will cause a server to start a new session ? 

Any help much appreciated.

Ciao
Derek.


Re Re: ReRe: Need Help in Session Management !!!

2004-03-02 Thread amit varshney
Thanks Tim 
I didn't see that one.It was really a silly mistake. Now it worked.
Thanks ..


Amit Varshney

Quoting  [EMAIL PROTECTED]:

> Le lun 01/03/2004 à 08:58, Tim Kelly a écrit :
> > There are missing parenthesis in the line:
> > 
> > String user1=request.getUserPricipal.getName();
> > 
> > It should be
> > String user1=request.getUserPricipal().getName();
> > 
> > Thats why you get the cannot resolve symbol :)
> > 
> > Tim
> > 
> > 
> > 
> > amit varshney wrote:
> > 
> > >it did not work. The following error message is displayed
> > >
> > >
> >
> >/usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61:
> cannot resolve symbol
> > >symbol: variable getUserPricipal 
> > >location: interface javax.servlet.http.HttpServletRequest
> > >String user1=request.getUserPricipal.getName();
> > >^
> > >
> > >
> >
> >.
> > >
> > >Quoting  [EMAIL PROTECTED]:
> > >
> > >  
> > >
> > >>I think you can get the user name by getting the Principal object
> from
> > >>
> > >>request and then getting the name from it like
> > >>
> > >>String userName = request.getUserPrincipal().getName();
> > >>
> > >>-Shanmugam-
> > >>
> > >>amit varshney wrote:
> > >>
> > >>
> > >>
> > >>>I want to use  tomcat user authentication in my application. for
> that i
> > >>>  
> > >>>
> > >>am using JDBCRealm.I have set the security constraint in the
> web.xml. So
> > >>when  a request for the restricted page comes a login page comes.
> > >>
> > >>
> > >>>But the problem is that it is submitting to the j_security_check
> and
> > >>>  
> > >>>
> > >>the textboxes are named j_username and j_password respectivley.I
> want
> > >>session mangemant in my application. For that I need the login name
> of
> > >>the person on my each page. How can I pass the username from login
> page
> > >>to my page. is it possible to maintain session using tomcat user
> > >>authentication or should i go for my own authentication and
> session
> > >>management.
> > >>
> > >>
> > >>>Plz help me 
> > >>>Thanks in advance 
> > >>>Amit Varshney
> > >>>
> > >>>-
> > >>>Still single? Click here to find the perfect match.
> > >>>   
>   
> > >>>  
> > >>>
> > >>
> > >>
> > >>
> > >>>http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
> > >>>
> > >>> 
> > >>>
> > >>>  
> > >>>
> >
> >>-
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >>
> > >
> > >-
> > >Still single? Click here to find the perfect match.
> > >
> > >http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
> > >
> > >  
> > >
> > 
> > -- 
> > Tim Kelly, Director of Development
> > Building Engines, Inc.
> > 
> > Phone: 781-290-5300
> > Cell: 508-561-0985
> > 
> > www.buildingengines.com
> > 
> > 275 Wyman Street
> > Suite 11
> > Waltham MA 02451
> > 
> > 
> > 
> > 
> 
> 
> Well, I think you also have a typo. It should be
> request.getUserPrincipal.getName(), not
> request.getUserPricipal.getName().
> 
> Notice the missing "n" in Principal.
> 
> 
> -- 
> 
> ===
> Daniel Savard
> Consultation Informatique Daniel Savard
> 551, boul. Sir-Wilfrid-Laurier
> suite 105
> Beloeil, (Québec)
> Canada J3G 4J1
> 
> Tél: (450) 467-8014
> Internet: [EMAIL PROTECTED]
> ===
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141


Re: CLIENT-CERT login (5.0.19)

2004-03-02 Thread Bill Barker

"Remy Maucherat" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Almaz Sharipov wrote:
>
> > Hi! I am newbie here.
> > I spent a lot of time discovering that:
> >
> > 1. CLIENT-CERT login works only with MemoryRealm, all
> > other predefined realms must be commented in
> > server.xml
>
> I don't see how this is the case. I think you are making mistakes
somewhere.
>

Nope, Almez is correct.  There was a recent patch to allow UDBRealm in
Tomcat 5, but that was after the 5.0.19 release.  All other Realms return
'null' from getPrincipal(String).

> > 2. In tomcat-user.xml there must be presented the full
> > Subject DN of client certificate as username, instead
> > of CN, as mentioned in mail archive. The password
> > entered here has no meaning.
> > To get the sample of string containing subject DN from
> > certificate I switched off authorization and run this
> > simple JSP:
> > <%
> > X509Certificate[] certs = (X509Certificate [])
> > request.getAttribute("javax.servlet.request.X509Certificate");
> > X509Certificate clientCert = certs[0];
> > %>
> > <%=clientCert.getSubjectDN()%>
> >

Personally, I set the logging level to TRACE for
'org.apache.tomcat.util.net', and grab it from the log files.

> > 3. It is not true that only keystores in PKSC12 format
> > work as mentioned in mail archive. JKS is working
> > well.
> >

Yes, JKS works fine.  It's just that I, personally, find it easier to use a
PKCS12 keystore when I need to import an OpenSSL certificate.

> > 4. To work CLIENT-CERT authorization using OpenSSL is
> > enough to import:
> >  a) CA cert. to JDK keystore
> > ($JAVA_HOME/jre/lib/security/cacerts)
> >  b) CA cert. to Tomcat keystore, as described in mail
> > archive. You do not need to import client certificates
> > to the keystores.
> >

It's cleaner to import the client-cert CA into your truststoreFile (and
specify it in the Connector config), but this works as well (assuming that
you have permission to modify cacerts :).

> > That'all :)
>
> Well, you should look at the authenticator.SSLAuthenticator code, as
> well as realm.RealmBase and other realm implementations.
>
> -- 
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> x




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



Re: reclaiming memory problem PS

2004-03-02 Thread Jerald Powel

PS is the session time out linked wirth inactivity? My session attribute only persists 
as long as I am using the app.

G.


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

Re: [OT] Re: Process Died | Production

2004-03-02 Thread Christopher Schultz
Ankur,

I've experienced even more random crashes (SEGV). It turned out to be 
bad memory (or bus), and it only showed up under pretty heavy load. :(
>
This is a little OT, but just out of curiosity, has anybody been 
successful in gaining root/tomcat/whatever-uid shell by capitalizing on 
a JVM's (not necessarily tomcat's) core dump? I've always wondered if 
that was possible. I know its extremely hard (impossible?) to 
"consistently" overflow JVM's stack, but has it ever been done?
I've never heard of anything like this before.

However, Java's "stack" is not what gets overflowed, here. IF the JVM 
goes down, it's the JVM code that faults, not the Java code itself. 
Java's stack and heap are pretty far away from anything that's executing.

Generally stack or buffer overflow bugs are exploited because someone 
corrupted the stack and not only inserted some maliscious code, but also 
modified the return pointer to call that code. In Java (without native 
code, at least), I don't think you could intentionally do anything like 
this. I suppose it you had an evil app connect to a JVM using something 
like JVMPI, you might be able to do something like this. However, you 
usually don't have the profiling hooks turned on in production ;)

-chris


signature.asc
Description: OpenPGP digital signature


Re: reclaiming memory problem

2004-03-02 Thread Jerald Powel

Hello and thank you for that (all), 

  Originally, 

request.getSession().setMaxInactiveInterval(-1);

was set. After some deliberation (not a lot), I opted for setting the session to time 
out, defined in web.xml:





1 



 

After defining the above, setting a value in the session, restarting TC, and running 
my app, why does it continue to persist well after the session-timeout has elapsed? 
When the session is timed out, is the current session invalidated and a new one 
created? Hence all fields set in the original should be null? (the “true” attribute 
(below) persists well past one minute)

 

Thanks again

 

G.

 

Code:

 

(servlet)

request.getSession().setAttribute("sessionStatus", "true");

 

(JSP)

String sessionStatus = (String) request.getSession().getAttribute("sessionStatus");

out.println("alert('sessionStatus: " + sessionStatus + "');"); 


1. Reduce the session timeout.
2. Store less stuff in the session so that it's not such a memory drain.
3. Beg your customers to logout before leaving your app. ;)





-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

cgi-bin

2004-03-02 Thread George Hester
In my webapp in /WEB-INF/lib I put servlets-cgi.jar.  I then added just this to the 
web.xml in \WEB-INF


cgi
org.apache.catalina.servlets.CGIServlet

  clientInputTimeout
  100


  debug
  6


  cgiPathPrefix
  WEB-INF/cgi

 5


Then I made a \cgi-bin folder and put a cgi file in there I know works over the web.  
Call it test.cgi.  I then tried 

http://localhost/jsp-files/cgi-bin/test.cgi

C\Inetpub\jsp-files

The reuslt was the cgi code returned as a text file.  What did I do wrong?  Can I get 
this to work?  ActiveState Perl is installed in C:\Perl.  Is there a test different 
than what I have done to see if what I set up works?  Thanks.

-- 
George Hester
__


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



Two JK2 Connector Questions

2004-03-02 Thread Cunningham Emmett
1. Are the JK2 connector releases decoupled from
Tomcat?


2. When is connector release 2.0.4 expected to be
released?

I'm specifically interested in BUG # 13869.
"mod_jk2 becomes confused when client breaks the
connection" 

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13869

If this bug needs to be verified I can do that as we
have a repeatable test case.

thanks,


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



[OT] Re: Process Died | Production

2004-03-02 Thread Ankur Shah
Christopher Schultz wrote:

I've had the displeasure of experiencing a Tomcat JVM core
dump
on me not too long ago (in a multi-user development environment,
fortunately) on a Sparc/Solaris box. It turned out to be due to
insufficient swap memory in the system. I didn't see any
OutOfMemoryExceptions raised prior to the crash, so it wasn't that
obvious, but the top command came to the rescue in the end.


Good one ;)  It reminds of another time, where I had internal crashes
occurring due to a low limit of file descriptors (ulimit -a will show
you the limits).  That one was frustrating ;)  I'm sure many people on
this list of horror stories with seemingly random crashes...


I've experienced even more random crashes (SEGV). It turned out to be 
bad memory (or bus), and it only showed up under pretty heavy load. :(

This is a little OT, but just out of curiosity, has anybody been 
successful in gaining root/tomcat/whatever-uid shell by capitalizing on 
a JVM's (not necessarily tomcat's) core dump? I've always wondered if 
that was possible. I know its extremely hard (impossible?) to 
"consistently" overflow JVM's stack, but has it ever been done? 

-- A

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


Error when starting tomcat ListenerNotFoundException

2004-03-02 Thread Joao Araujo
Hi,

  I've installed tomcat many times without problems. Unfortunately,
  after I downloaded the last version of tomcat 5.0.19 the 
following error is driving me crazy:

java.lang.NoClassDefFoundError: javax/management/ListenerNotFoundException
   at 
javax.management.MBeanServerDelegate.(MBeanServerDelegate.java:65)
   at 
com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.(MBeanServerDelegateImpl.java:93)
   at 
com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanServer.java:1356)
   at 
javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerBuilder.java:61)
   at 
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:316)
   at 
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:227)
   at 
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:188)

  Can anyone help me with this?

  BTW, the same problem also happens  with version 4.1.30

  Environment.
  RedHat 9.0
  j2sdk  1.4.02
  Thanks in advance.

Joao,


Re: Tomcat 5 SSI problems

2004-03-02 Thread Nathan Maves
Never mind...  my own mistake!

On Mar 2, 2004, at 2:21 PM, Nathan Maves wrote:

I have followed the instructions in the documentation to a t and still 
can not get the following line to work.

Any ideas?



-
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]


FAIL - Application at context path /[context] could not be started ???

2004-03-02 Thread Timothy Stone
List,

I did an archive search. Nothing meaningful returned, so I'm posting 
what must be a regular question.

I can get a development tree to install via the Manager interface, but I 
can't get it started. This seems to be a UNIX problem at the moment.

For example on Windoze:

Install directory or WAR file located on server
Context Path (optional):  /foobar
XML Configuration file URL: 
WAR or Directory URL:   file:c:/path/to/foobar/dev
will load and start.

The very same application on Linux/Mac OS X:

Install directory or WAR file located on server
Context Path (optional): /foobar
XML Configuration file URL: 
WAR or Directory URL:   file:/home/user/path/to/foobar/dev
will load, but consistently fails to start.

The error, not explained in the Manager documentation anywhere BTW :

FAIL - Application at context path /foobar could not be started

What I can't figure out is this very application will work with the 
catalina.ant tasks! Windoze or Unix. So the problem seems to be with the 
HTML interface.

So, what's the trick? Anyone? Oh, I did 777 the dev tree. Didn't help. :(

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


Tomcat 5 SSI problems

2004-03-02 Thread Nathan Maves
I have followed the instructions in the documentation to a t and still 
can not get the following line to work.

Any ideas?



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


RE: web.xml config, dif between 4.0 and 5.0

2004-03-02 Thread Shapira, Yoav

Hi,

>   Does this sound like a good idea?  I notice several people are
still
>talking about configuring new 4.0 installs.  Is 5.0 stable enough?

Yes, it's a good idea.  Yes, 5.0 is stable enough.  Questions about new
4.0 installs have been rare on this list over the past few months, so
maybe we're reading a different list or disagree on the meaning of
"several" in this context.

>   My main problem however, is that my web.xml file for my web
>application behaves differently in the two versions.  The web.xml file
>validates against the 2.2 DTD not the 2.3 ( or 2.4 now? ).  In my old
>set up I have not needed to state each servlet that will be addressed.
>Now it seems as if this may be required for 5.0.

No, it's not required, merely recommended, and for good reasons.  You
can comment in the invoker servlet as Tim said.  The 2.4 servlet spec
has no has a Schema instead of a DTD by the way, so it's a different
validation.  Also, why doesn't your web.xml validate against the 2.3
DTD?

>require that each servlet be mapped?  Is there a good solution to my

A "good" meaning minimum effort?  Enable the invoker servlet.  A "good"
meaning more correct/safer?  Map the servlets.  You an do it with some
fun perl/sed/awk/java scripts at least for generating the automatic
mappings, e.g. for each class X write a  element where the name
is the full class name and a servlet-mapping where the url-pattern is
/servlet/full-class-name.  That way you don't have to change any code,
you're mimicking the invoker servlet ;)

Yoav Shapira



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]



Re: web.xml config, dif between 4.0 and 5.0

2004-03-02 Thread Jim Beard
Tim,

	Thanks for the quick reply.  That is exactly what the problem was.  I 
understand that statically defining and mapping servlets would be much 
more secure, however I'm not sure I want to map the several hundred 
servlets involved
	I put the invoker back in place and things are moving along fine now.

Jim

On Tuesday, March 2, 2004, at 12:57 PM, Tim Funk wrote:

My main problem however, is that my web.xml file for my web 
application behaves differently in the two versions.  The web.xml 
file validates against the 2.2 DTD not the 2.3 ( or 2.4 now? ).  In 
my old set up I have not needed to state each servlet that will be 
addressed.  Now it seems as if this may be required for 5.0.
It looks like you are still using the invoker. Its evil:
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
But the servlet 2.4 is mostly compatible with 2.3 and 2.2.
-Tim



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

Jim Beard
counterclaim.com, Inc
http://www.counterclaim.com
http://openefm.sourceforge.net
(800) 264-8145
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


re-newbie help

2004-03-02 Thread crombie
hi,

i'm re-introducing myself to tomcat after 2 yrs.  for some reason i cannot get my 
servlet apps to
run.  i installed tomcat, got the welcome screen at port 8080 but when i put my class 
files in the
/webapps dir, it won't run.  um, can i get some pointers on where to get docs and etc. 
 the docs
at sun.com are not doing me any good.  does anyone have tomcat set up with intellj 
idea?

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Re: web.xml config, dif between 4.0 and 5.0

2004-03-02 Thread Tim Funk
Jim Beard wrote:
I work with a rather large and comlex web application.  We have been 
hosting the application with Jakarta Tomcat for a while now.  I am 
working on upgrading our environment to 5.0.18.
Does this sound like a good idea?  I notice several people are still 
talking about configuring new 4.0 installs.  Is 5.0 stable enough?
It should be stable enough, but then again it really depends on *your* 
webapp. Testing is the key.

My main problem however, is that my web.xml file for my web 
application behaves differently in the two versions.  The web.xml file 
validates against the 2.2 DTD not the 2.3 ( or 2.4 now? ).  In my old 
set up I have not needed to state each servlet that will be addressed.  
Now it seems as if this may be required for 5.0.
It looks like you are still using the invoker. Its evil:
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
But the servlet 2.4 is mostly compatible with 2.3 and 2.2.
-Tim



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


Re: ClassNotDefError problems within JAR files under Tomcat 4.1.12

2004-03-02 Thread Nathan Rogers
I just noticed a slight (but important typo).  Sorry for the reply to my
own message.
It should say "and they are picked up on a reload without having to
restart the entire container." rather than what it actually does say.
Spellcheckers should be smart enough to know what I mean, even if what I
said was legal English. :)
Nathan Rogers wrote:

I am developing an imaging servlet under Tomcat 4.1.12 using JAI 1.1.2.
Every time I update my code to add new features, it will return with a
NoClassDefFoundError until I restart Tomcat.  At that point, it finds
the 'missing' class and everything works as expected.
Only the superficial ImageIO classes are directly invoked (ImageReader,
ImageWriter, ImageIO) - the NoClassDefFoundErrors are always for
implementation specific classes (typically com.sun.media.*).  I've
verified that the files are in JAR files located under /WEB-INF/lib so
they should be picked up by Tomcat on a reload.  Are the JAR files not
scanned for dependencies on a reload?  I've never had this problem with
classes that I create - I simply place them in /WEB-INF/classes// and they are picked up on a reload with having to
restart the entire container.
Here is the last error that I saw - this is typical of what I see when
these errors occur
java.lang.NoClassDefFoundError:
com/sun/media/imageioimpl/plugins/jpeg2000/J2KReadState
at
com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.readHeader(J2KImageReader.java:285) 

at
com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.getWidth(J2KImageReader.java:235) 

at edu.wisc.library.ltg.digitalCollections.JP2Image.(JP2Image.java:93)
at
edu.wisc.library.ltg.digitalCollections.ImageFactory.createImage(ImageFactory.java:73) 

at
edu.wisc.library.ltg.digitalCollections.TestCollectionImpl.getResource(TestCollectionImpl.java:59) 

at
edu.wisc.library.ltg.imageServlet.SimpleImageServlet.doGet(SimpleImageServlet.java:177) 

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) 

at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) 

at java.lang.Thread.run(Thread.java:534)



--
Nathan Rogers
Library Technology Group
312F Memorial Library
728 State Street
261-1409
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 

web.xml config, dif between 4.0 and 5.0

2004-03-02 Thread Jim Beard
Hi folks,

	I work with a rather large and comlex web application.  We have been 
hosting the application with Jakarta Tomcat for a while now.  I am 
working on upgrading our environment to 5.0.18.
	Does this sound like a good idea?  I notice several people are still 
talking about configuring new 4.0 installs.  Is 5.0 stable enough?
	My main problem however, is that my web.xml file for my web 
application behaves differently in the two versions.  The web.xml file 
validates against the 2.2 DTD not the 2.3 ( or 2.4 now? ).  In my old 
set up I have not needed to state each servlet that will be addressed.  
Now it seems as if this may be required for 5.0.
	I would really like to not have to do this.  Our application has 
hundreds of servlets, and mapping them each by hand could be a royal 
pain.  Is there a way I can get it to run like 4.0 does, and not 
require that each servlet be mapped?  Is there a good solution to my 
problem?

Jim Beard
counterclaim.com, Inc
http://www.counterclaim.com
http://openefm.sourceforge.net
(800) 264-8145
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ClassNotDefError problems within JAR files under Tomcat 4.1.12

2004-03-02 Thread Nathan Rogers
I am developing an imaging servlet under Tomcat 4.1.12 using JAI 1.1.2.
Every time I update my code to add new features, it will return with a
NoClassDefFoundError until I restart Tomcat.  At that point, it finds
the 'missing' class and everything works as expected.
Only the superficial ImageIO classes are directly invoked (ImageReader,
ImageWriter, ImageIO) - the NoClassDefFoundErrors are always for
implementation specific classes (typically com.sun.media.*).  I've
verified that the files are in JAR files located under /WEB-INF/lib so
they should be picked up by Tomcat on a reload.  Are the JAR files not
scanned for dependencies on a reload?  I've never had this problem with
classes that I create - I simply place them in /WEB-INF/classes// and they are picked up on a reload with having to
restart the entire container.
Here is the last error that I saw - this is typical of what I see when
these errors occur
java.lang.NoClassDefFoundError:
com/sun/media/imageioimpl/plugins/jpeg2000/J2KReadState
at
com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.readHeader(J2KImageReader.java:285)
at
com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.getWidth(J2KImageReader.java:235)
at edu.wisc.library.ltg.digitalCollections.JP2Image.(JP2Image.java:93)
at
edu.wisc.library.ltg.digitalCollections.ImageFactory.createImage(ImageFactory.java:73)
at
edu.wisc.library.ltg.digitalCollections.TestCollectionImpl.getResource(TestCollectionImpl.java:59)
at
edu.wisc.library.ltg.imageServlet.SimpleImageServlet.doGet(SimpleImageServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:534)

--
Nathan Rogers
Library Technology Group
312F Memorial Library
728 State Street


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


RE: How do I automatically post urls?

2004-03-02 Thread Riaan Oberholzer
Thanks I was trying to get the answers in the
HTTPRequest/Response classes

I want to use it for PayPal verifications. They send
me a url (which a servlet of mine accepts), I send
something similar back.

Do they have libraries to do it? Or has someone done
it before?



--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >How do I "dymanically" create a url, eg:
> >
> >http://domain.com/servlet.do?name=xxx
> 
> Umm, like
> java.net.URL url = new
> URL(http://domain.com/servlet.do?name=xxx";);
> ?
> 
> >and then, from my Java app, post it. Ie, the
> receiver
> >will see it as a normal client accessing. Will be
> used
> >in processing of automatic payments.
> 
> If you mean open a connection to it, read up on
> java.net.URLConnection.
> But this will be a GET request.  If you mean
> simulate a POST HTTP
> operation, that's significantly more complicated so
> I won't go into it
> unless that's what you really want.
> 
> Yoav Shapira
> 
> 
> 
> 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]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



RE: How do I automatically post urls?

2004-03-02 Thread Shapira, Yoav

Hi,

>How do I "dymanically" create a url, eg:
>
>http://domain.com/servlet.do?name=xxx

Umm, like
java.net.URL url = new URL(http://domain.com/servlet.do?name=xxx";);
?

>and then, from my Java app, post it. Ie, the receiver
>will see it as a normal client accessing. Will be used
>in processing of automatic payments.

If you mean open a connection to it, read up on java.net.URLConnection.
But this will be a GET request.  If you mean simulate a POST HTTP
operation, that's significantly more complicated so I won't go into it
unless that's what you really want.

Yoav Shapira



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]



How do I automatically post urls?

2004-03-02 Thread Riaan Oberholzer
Not quite Tomcat, but I figure most people here will
now:

How do I "dymanically" create a url, eg:

http://domain.com/servlet.do?name=xxx

and then, from my Java app, post it. Ie, the receiver
will see it as a normal client accessing. Will be used
in processing of automatic payments.


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



RE: problem with server.xml

2004-03-02 Thread Dave Robbins
Hi Yoav,

Well, I got it working
Simply went back to original server.xml and it works with no modification
That sure was a lot easier than all the hair pulling I've been going thru :)

Thanx
Dave
>
> Hi,
>
> Both howto's say to backup the default server.xml and start from
> scratch,
>
> That's unfortunate, as you can clearly see the howto's are for tomcat4.
> Class names, attributes, and other elements were changed in tomcat 5.
> You should take supplied tomcat 5 server.xml and customize it as needed.
>
> Yoav Shapira
>
>
>
> 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: RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
Either. I'll look at the java.util.regex one. I posted at taglib-user earlier and 
still waiting for response. Thanks again.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: RegExp issues with Tomcat 5



Hi,

>Is there a regexp library people recommend? I saw there is one on the
>Jakarta site.

Library in general or JSP tag library specifically?

I've been fine with java.util.regex, which I think requires JDK 1.4.  If
you must use a JDK older than 1.4, use jakarta-regexp (which tomcat
uses).

For a JSP tag library to handle regular expressions: I don't know and
don't have time to research, but it does seem Glenn is actively working
on the regexp taglib and I can't imagine its next release not working on
tomcat 5.  As I said previously, ask on taglib-user, and I'm sure he'll
respond.

Yoav Shapira



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: RegExp issues with Tomcat 5

2004-03-02 Thread Shapira, Yoav

Hi,

>Is there a regexp library people recommend? I saw there is one on the
>Jakarta site.

Library in general or JSP tag library specifically?

I've been fine with java.util.regex, which I think requires JDK 1.4.  If
you must use a JDK older than 1.4, use jakarta-regexp (which tomcat
uses).

For a JSP tag library to handle regular expressions: I don't know and
don't have time to research, but it does seem Glenn is actively working
on the regexp taglib and I can't imagine its next release not working on
tomcat 5.  As I said previously, ask on taglib-user, and I'm sure he'll
respond.

Yoav Shapira



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]



Global URL Redirect Tomcat 5

2004-03-02 Thread Nathan Maves
I am trying to migrate to Tomcat 5 from a different app server.  Is 
there a way to define url redirects? i.e. if a page moved off your 
server to a different location and you do not want to make a redirect 
page.

Nathan

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


RE: RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
Is there a regexp library people recommend? I saw there is one on the Jakarta site.

Karl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: RegExp issues with Tomcat 5



Hi,

>Using the regexp tag library I think it is still at version 1.0.

You mean http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html?

I wouldn't be surprised if this taglib didn't work on tomcat 5.  It's
designed and tested for a JSP 1.1/1.2 spec container, like tomcat 4.
Tomcat 5 as you know implements the JSP 2.0 spec, with its new
expression language and several changes to expression evaluation.  It'd
be almost shocking if the taglib worked without modification on tomcat
5.  Ask on taglibs-user
(http://jakarta.apache.org/taglibs/index.html#MailingLists).

Yoav Shapira



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 purpose of WEB-INF\classes ?

2004-03-02 Thread Justin Ruthenbeck
Just for historical accuracy (not that anyone cares)...  ;)

I looked back at the 2.2 spec and, as Yoav mentioned, it doesn't say 
anything about class loading order from the /classes and /lib 
directories.  Although WL61 is 2.3 non-final compliant, apparently the 
ordering clarification didn't make it into that release.

justin

At 05:58 AM 3/2/2004, you wrote:

Hi,

>WEB-INF/classes takes precedence over WEB-INF/lib in the servlet spec:
>2.3fcs, section "SRV.9.5 Directory Structure".
>If WebLogic 6.1 behaves differently then it's another spec violation ;)
WL6.1 is Servlet Specification 2.2-compliant, not 2.3.  I think that
loading order may have been a clarification in 2.3, though always
intended to be this way, so tomcat is (and has always been) correctly
implemented in this regard.
Yoav Shapira

>Justin Ruthenbeck wrote:
>>
>> To you (the end-user), there's no purpose for it other than
>> convenience.  One thing to keep in mind is that classes in the
/classes
>> directory take precedence over those in jars found in the /lib
directory
>> (in Tomcat -- is this a spec thing? I'm assuming not as WL61 at lease
>> doesn't do this), which is an important distinction that makes the
>> difference more useful.
>>
>> As for why it's useful, if you're developing an app and are
constantly
>> compiling and testing, why should you have to jar them up each time
you
>> compile the classes?  Just stick them in the /classes dir.  On the
other
>> hand, releasing and versioning code is much easier as a jar.  Give
>> people flexibility and they'll come up with new and wonderous
things...
>>
>> justin
>>
>>
>> At 05:45 PM 3/1/2004, you wrote:
>>
>>> This is not a question to fix a problem other then one in my head.
I
>>> am not sure what the difference is putting a jar in a \WEB-INF\lib
and
>>> setting up a \WEB-INF\classes.  Since a jar usually just includes
>>> class files if we put a jar in the webapp's \WEB-INF\lib what would
be
>>> the purpose of setting the tree of classes expanded in
WEB-INF\classes?
>>>
>>> Let me give an example.  In Tomcat 4.1.30 there is a server folder.
>>> Under this exists webapps.  And then under this are two folders
admin
>>> and manager.  Looking at the admin webapp you will find its WEB-INF
>>> and under that it has a lib and a classes folder.  The lib folder
>>> contains just one jar, ie: struts.jar.  But the classes folder
>>> contains the tree of what looks to me is the structure of a jar ie;
>>> org | apache | webapp | admin| ...  I am not sure if this is just an
>>> expanded struts.jar but it looks to be.  If not struts.jar then
likely
>>> some other jar.
>>>
>>> So my question is what is the purpose of having an extracted jar
>>> structure under a classes folder?  I have made my own webapp but I
do
>>> not have a classes folder under that because I have yet to come
across
>>> the purpose of when it is necessary?  Thanks.
>>>
>>> --
>>> George Hester
>>> __
>>>
>>>
>>>
-
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> __
>> Justin Ruthenbeck
>> Software Engineer, NextEngine Inc.
>> justinr - AT - nextengine DOT com
>> Confidential. See:
>> http://www.nextengine.com/confidentiality.php
>> __
>>
>>
>> -
>> 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]


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


site slow problems

2004-03-02 Thread Shantanu
Hello all,
I have a Mandrake 9.2 server with,
JBOSS-2.2.2
Tomcat-3.2.2
JDK 1.3

Now I have a page at http://192.168.1.1/Sbp/. When I click there I can see
 the directory listing which shows a folder jsp/
But when I click on the jsp folder it takes a hell lot of time to show me the
index page. The stranger part is that this happens only when I am connected
to the net. The moment I disconnect I am able to see the index page properly.
When not connected to net I see the index page in 5-10 secs but while I am
connected it takes around 5 mins.

What must be wrong here? Is this configuration issue with Tomcat or with
JBoss?

Infact, the same server versions with the same softwares and site was working
under RH 7.3

Thanks and eagerly waiting for some solution on this.
Cheers,
Shantanu


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



site slow problems

2004-03-02 Thread Shantanu
Hello all,
I have a Mandrake 9.2 server with,
JBOSS-2.2.2
Tomcat-3.2.2
JDK 1.3

Now I have a page at http://192.168.1.1/Sbp/. When I click there I can see the 
directory listing which shows a folder jsp/
But when I click on the jsp folder it takes a hell lot of time to show me the 
index page. The stranger part is that this happens only when I am connected 
to the net. The moment I disconnect I am able to see the index page properly.
When not connected to net I see the index page in 5-10 secs but while I am 
connected it takes around 5 mins.

What must be wrong here? Is this configuration issue with Tomcat or with 
JBoss?

infact, the same server versions with the same softwares and site was working 
under RH 7.3

Thanks and eagerly waiting for some solution on this.
Cheers,
Shantanu


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



Re: cross context include

2004-03-02 Thread Asim Alp
If indeed we need to put it on all pages, then yes, it's no problem.  
We do have a couple perl geniuses on staff :)  I'm sure we'll find a 
way to get around it.

My main concern right now is to to understand the reason of the problem 
first.  I read the bug report, but still can't understand why an extra 
session prevents our c:imports from working?

Asim

On Mar 2, 2004, at 1:46 PM, Mike Curwen wrote:

If you have a perl genius on staff, he can do ALL pages with a single
command.  Scary stuff, but cool when it works. :)
-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: cross context include
I guess we'll have to find a way of going over the 10,000+ pages.
Maybe we can write a small program to automate it.  I don't
like dirty
solutions :)  If this is indeed a bug in our software, it
should better
be fixed.
One last question though.  As much as I know, setting page session to
false only means that there is no need to create an
additional session.
  What's this have to do with c:imports?  Why does an
additional session
prevent our c:imports?
Asim

On Mar 2, 2004, at 1:15 PM, Remy Maucherat wrote:

Asim Alp wrote:

Thank you for your prompt replies.  I just read the bug, and
understood what the problem was.
Now, though, I have another question.  Is there a way of
setting page
session to false at a higher level.  For example somewhere
from the
server.xml file?  My problem is that we have over 100
websites with
tens of thousands of jsp pages.  Every single one of these
JSP pages
rely on these  line to each of them.  Can you think of an an
easier solution to my problem?
Yes, take advantage that this is OSS and patch your Tomcat
;) Or use
the replacement class (put in
server/classes/org/apache/catalina/core).
--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

-
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: cross context include

2004-03-02 Thread Mike Curwen
If you have a perl genius on staff, he can do ALL pages with a single
command.  Scary stuff, but cool when it works. :)

> -Original Message-
> From: Asim Alp [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 02, 2004 12:33 PM
> To: Tomcat Users List
> Subject: Re: cross context include
> 
> 
> I guess we'll have to find a way of going over the 10,000+ pages.  
> Maybe we can write a small program to automate it.  I don't 
> like dirty 
> solutions :)  If this is indeed a bug in our software, it 
> should better 
> be fixed.
> 
> One last question though.  As much as I know, setting page session to 
> false only means that there is no need to create an 
> additional session. 
>   What's this have to do with c:imports?  Why does an 
> additional session 
> prevent our c:imports?
> 
> Asim
> 
> On Mar 2, 2004, at 1:15 PM, Remy Maucherat wrote:
> 
> > Asim Alp wrote:
> >
> >> Thank you for your prompt replies.  I just read the bug, and
> >> understood what the problem was.
> >> Now, though, I have another question.  Is there a way of 
> setting page 
> >> session to false at a higher level.  For example somewhere 
> from the 
> >> server.xml file?  My problem is that we have over 100 
> websites with 
> >> tens of thousands of jsp pages.  Every single one of these 
> JSP pages 
> >> rely on these  >> manually go over each one of these jsp pages and add the <%@ page 
> >> session="false"%> line to each of them.  Can you think of an an 
> >> easier solution to my problem?
> >
> > Yes, take advantage that this is OSS and patch your Tomcat 
> ;) Or use 
> > the replacement class (put in 
> > server/classes/org/apache/catalina/core).
> >
> > --
> > x
> > Rémy Maucherat
> > Developer & Consultant
> > JBoss Group (Europe) SàRL
> > x
> >
> > 
> -
> > 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: java connection throught proxies

2004-03-02 Thread Armenio Pinto
Olá Edson,

   Check this and see if it solves your problem:

http://www.ideas2work.com/CoreJava6.html

Cumprimentos,
Arménio Pinto


-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 2 de Março de 2004 18:29
To: 'Tomcat-User List'
Subject: java connection throught proxies


Does anyone here knows if Java-1.4.2 can make Network connections
throught web-proxies? I´m using xercer to validade a xml file and i got

java.net.ConnectException: Connection timed out: connect


This isn´t a tomcat matter, but maybe somebody could tell how to
make my java environment understand M$ proxies.

Regards,
Edson


RE: RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
Thanks a lot. I will check into it further.



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: RegExp issues with Tomcat 5



Hi,

>Using the regexp tag library I think it is still at version 1.0.

You mean http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html?

I wouldn't be surprised if this taglib didn't work on tomcat 5.  It's
designed and tested for a JSP 1.1/1.2 spec container, like tomcat 4.
Tomcat 5 as you know implements the JSP 2.0 spec, with its new
expression language and several changes to expression evaluation.  It'd
be almost shocking if the taglib worked without modification on tomcat
5.  Ask on taglibs-user
(http://jakarta.apache.org/taglibs/index.html#MailingLists).

Yoav Shapira



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: problem with server.xml

2004-03-02 Thread Shapira, Yoav

Hi,

Both howto's say to backup the default server.xml and start from
scratch,

That's unfortunate, as you can clearly see the howto's are for tomcat4.
Class names, attributes, and other elements were changed in tomcat 5.
You should take supplied tomcat 5 server.xml and customize it as needed.

Yoav Shapira



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]



problem with server.xml

2004-03-02 Thread Dave Robbins
Hello All,

I'm trying to setup the mod_jk connector between tomcat 5.0.16 and apache
1.3.x on a linux box. I've got the connector compiled and installed in
apache and I can point a browser at www.mydomain.com/servlet/foo and I get
an error message from tomcat, not apache, saying resource not available,so
I believe the connector is sucsefully talking to tomcat.
The next step is to create a workers.properties and server.xml file for
tomcat. The howto's I'm looking at have sample files, workers.properties
looks pretty straight forward but I'm kinda confused about server.xml.
Both howto's say to backup the default server.xml and start from scratch,
I've pasted their template at the bottom. When I try using their
server.xml tomcat won't even start, when I run the startup script tomcat
fails without any error message, obviously I need to tweak some stuff. It
looks like I should change "your_domain" to my domain name and docBase to
where my application is but these changes don't fix things. Does anybody
see what I'm doing wrong?? I've looked in the log files but didn't see
anything helpful

Thanx
Dave






















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



problem with server.xml

2004-03-02 Thread Dave Robbins
Hello All,

I'm trying to setup the mod_jk connector between tomcat 5.0.16 and apache
1.3.x on a linux box. I've got the connector compiled and installed in
apache and I can point a browser at www.mydomain.com/servlet/foo and I get
an error message from tomcat, not apache, saying resource not available,so
I believe the connector is sucsefully talking to tomcat.
The next step is to create a workers.properties and server.xml file for
tomcat. The howto's I'm looking at have sample files, workers.properties
looks pretty straight forward but I'm kinda confused about server.xml.
Both howto's say to backup the default server.xml and start from scratch,
I've pasted their template at the bottom. When I try using their
server.xml tomcat won't even start, when I run the startup script tomcat
fails without any error message, obviously I need to tweak some stuff. It
looks like I should change "your_domain" to my domain name and docBase to
where my application is but these changes don't fix things. Does anybody
see what I'm doing wrong?? I've looked in the log files but didn't see
anything helpful

Thanx
Dave






















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



Re: cross context include

2004-03-02 Thread Asim Alp
I guess we'll have to find a way of going over the 10,000+ pages.  
Maybe we can write a small program to automate it.  I don't like dirty 
solutions :)  If this is indeed a bug in our software, it should better 
be fixed.

One last question though.  As much as I know, setting page session to 
false only means that there is no need to create an additional session. 
 What's this have to do with c:imports?  Why does an additional session 
prevent our c:imports?

Asim

On Mar 2, 2004, at 1:15 PM, Remy Maucherat wrote:

Asim Alp wrote:

Thank you for your prompt replies.  I just read the bug, and 
understood what the problem was.
Now, though, I have another question.  Is there a way of setting page 
session to false at a higher level.  For example somewhere from the 
server.xml file?  My problem is that we have over 100 websites with 
tens of thousands of jsp pages.  Every single one of these JSP pages 
rely on these  line to each of them.  Can you think of an an 
easier solution to my problem?
Yes, take advantage that this is OSS and patch your Tomcat ;)
Or use the replacement class (put in 
server/classes/org/apache/catalina/core).

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
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]


java connection throught proxies

2004-03-02 Thread Edson Alves Pereira
Does anyone here knows if Java-1.4.2 can make Network connections
throught web-proxies? I´m using xercer to validade a xml file and i got

java.net.ConnectException: Connection timed out: connect


This isn´t a tomcat matter, but maybe somebody could tell how to
make my java environment understand M$ proxies.

Regards,
Edson


Re: scope & order of initialization of variabes & includes

2004-03-02 Thread Marc Hughes
Ah.. figured it out...
<%  
 bandbg = "ok";  
%>

is like

<%  
bandbg =  new String("ok");  
%>

I wasn't setting a string, I was creating a new one... doh.

Thanks anyways!
-Marc
Marc Hughes wrote:

I have the following situation:

Page1.jsp:


<%   bandbg = "ok";   %>
First page: <%= bandbg %>

Page2.jsp:

Second page: <%= bandbg %>
Viewing page1.jsp I get the output:
First page: ok
Second page:
I thought I should get the output:
First page: ok
Second page: ok
I've tried with application & session scope too.

I'm assuming I'm just misunderstanding how things work.  Maybe tomcat 
starts processing includes before it processes the page or something?  
Any comments?

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


Re: cross context include

2004-03-02 Thread Remy Maucherat
Asim Alp wrote:

Thank you for your prompt replies.  I just read the bug, and understood 
what the problem was.

Now, though, I have another question.  Is there a way of setting page 
session to false at a higher level.  For example somewhere from the 
server.xml file?  My problem is that we have over 100 websites with tens 
of thousands of jsp pages.  Every single one of these JSP pages rely on 
these  line 
to each of them.  Can you think of an an easier solution to my problem?
Yes, take advantage that this is OSS and patch your Tomcat ;)
Or use the replacement class (put in 
server/classes/org/apache/catalina/core).

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: RegExp issues with Tomcat 5

2004-03-02 Thread Shapira, Yoav

Hi,

>Using the regexp tag library I think it is still at version 1.0.

You mean http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html?

I wouldn't be surprised if this taglib didn't work on tomcat 5.  It's
designed and tested for a JSP 1.1/1.2 spec container, like tomcat 4.
Tomcat 5 as you know implements the JSP 2.0 spec, with its new
expression language and several changes to expression evaluation.  It'd
be almost shocking if the taglib worked without modification on tomcat
5.  Ask on taglibs-user
(http://jakarta.apache.org/taglibs/index.html#MailingLists).

Yoav Shapira



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]



Re: scope & order of initialization of variabes & includes

2004-03-02 Thread Christopher Schultz
Marc,

I thought I should get the output:
First page: ok
Second page: ok
I think this is what's happening. (You can probably verify this by 
looking at the java source code generated by Tomcat from your JSP):

When you do a  and declare where the bean lives, the 
translator essentially converts that to this line of code:

String bandBg = (String)request.getAttribute("bandBg");

Then, later, you are using a scriptlet to do this:

bandBg = "ok";

In the other JSP, the same code executes:

String bandBg = (String)request.getAttribute("bandBg");

However, you never poked 'ok' back into the request, so it's still 
either null or blank or whatever it was when you started.

Setting the local reference bandBg in your Page1.jsp doesn't do anything 
outside of it. You'd have to do something like this in your scriptlet to 
make it work:

<% request.setAttribute("bandBg", "ok"); %>

If you're going to use , you probably shouldn't screw 
around with those variables inside of scriptlets. Try to stick with the 
bean tags only. That generally means that you'll have to write your own 
bean instead of using a string (so it can have a 'setValue' method or 
something).

Hope that helps.

-chris


signature.asc
Description: OpenPGP digital signature


RE: Deploying a simple servlet

2004-03-02 Thread Leydhershnayder, Leon A.
That was the last problem.  What I did was to remove the package statement
from my java code and the servlet ran with out a problem.

Thank you all for your assistance!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: Deploying a simple servlet



Hi,

>   TestingServlet

The servlet-class needs to match the fully-qualified class name of your
servlet.  So if TestingServlet.java has "package myApp;" at the top,
servlet-class is myApp.TestingServlet.

Yoav Shapira




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: RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
Using the regexp tag library I think it is still at version 1.0.

Because INSERT into tablename (field1) values ('I CAN'T DO THIS')
generates an error in SQL Server.

Karl

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:03 PM
To: Tomcat Users List
Subject: Re: RegExp issues with Tomcat 5


Karl,

> We upgraded tomcat running one of our applications from 4 to 5 this
past =
> Friday, March 27th. Since, one of our regular expressions is not =
> functioning properly. Here is the expression:
> 
> s/(\\|')/\\$1/g
> 
> Instead of escaping the apostrophe with another apostrophe for SQL =
> purposes, it is replacing the apostrophe with the literal '$1'. It was
=
> working with Tomcat 4 and that is the only thing that has changed.

What regex library are you using? Tomcat shouldn't have anything in it 
that would affect your regexs.

Not to open up too big of a can of worms, but if you're using JDBC, why 
do you have to escape your own SQL statements?

-chris

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



Re: cross context include

2004-03-02 Thread Asim Alp
Thank you for your prompt replies.  I just read the bug, and understood 
what the problem was.

Now, though, I have another question.  Is there a way of setting page 
session to false at a higher level.  For example somewhere from the 
server.xml file?  My problem is that we have over 100 websites with 
tens of thousands of jsp pages.  Every single one of these JSP pages 
rely on these  line to each of them.  Can you think of an an easier 
solution to my problem?

Thanks,

Asim

On Mar 2, 2004, at 12:40 PM, Remy Maucherat wrote:

Asim Alp wrote:
When I replace /hello.jsp with the following:
<%@ page session="false"%>
Hello World!
The output on Tomcat 5.0.19 becomes:
This is test.jsp
Hello World!
Isn't this weird?
No. See bug 27309.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
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: Deploying a simple servlet

2004-03-02 Thread Christopher Schultz
Leon,

I've set up a directory structure for this app exactly like the servlet
examples structure and after making changes to web.xml I'm recieving the
following root cause error:
java.lang.NoClassDefFoundError: TestingServlet (wrong name:
myApp/TestingServlet)
Is your TestingServlet class in a package? If so, you need to give the 
fully-qualified class name in your web.xml file.

If it's not in a package, I've heard many reports that it simply won't 
work :(

Try putting your servlet class into a package, updating your web.xml 
file and trying again.

-chris


signature.asc
Description: OpenPGP digital signature


RE: Deploying a simple servlet

2004-03-02 Thread Shapira, Yoav

Hi,

>   TestingServlet

The servlet-class needs to match the fully-qualified class name of your
servlet.  So if TestingServlet.java has "package myApp;" at the top,
servlet-class is myApp.TestingServlet.

Yoav Shapira




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]



RE: Deploying a simple servlet

2004-03-02 Thread Leydhershnayder, Leon A.
I've edited the web.xml file to contain the following:



http://java.sun.com/dtd/web-app_2_3.dtd";>



Testing
TestingServlet



Testing
/Testing





I've set up a directory structure for this app exactly like the servlet
examples structure and after making changes to web.xml I'm recieving the
following root cause error:

java.lang.NoClassDefFoundError: TestingServlet (wrong name:
myApp/TestingServlet)

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 11:57 AM
To: Tomcat Users List
Subject: Re: Deploying a simple servlet


Leon,

> I'm new to tomcat and am trying to run a very simple hello world type of
> servlet.  I've configured the web.xml to mimic a similar servlet in tomcat
> examples.  Still while all the example servlets from tomcat work mine
fails
> to run.
>
> I receive the following message:
>
> HTTP Status 404 - /MyApp/servlet/Testing
>
> I would greatly appreciate any advice.

In the newer versions of Tomcat, the 'invoker' servlet is disabled by
default. The best way to get your servlet running it to create a
 element in your web.xml and then use your mapped URL
to access the servlet (instead of using a URL like
/context/servlet/ClassName).

-chris


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



Re: cross context include

2004-03-02 Thread Remy Maucherat
Asim Alp wrote:
When I replace /hello.jsp with the following:
<%@ page session="false"%>
Hello World!
The output on Tomcat 5.0.19 becomes:
This is test.jsp
Hello World!
Isn't this weird?
No. See bug 27309.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cross context include

2004-03-02 Thread Remy Maucherat
Asim Alp wrote:
I found the reason of the previous error message.  However, I'm still 
having a problem.  This time my 

Here is my setup:

/test.jsp (context "")
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp

/hello.jsp (context /jsp-apps)
Hello World!
When I view /test.jsp, I only get:
This is test.jsp
In my browser.

I tried one more thing.  I replaced test.jsp with the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp
http://www.yahoo.com"; />
It worked!  I got a page that says "This is test.jsp" at the top 
followed by the frontpage of yahoo.com.

Any suggestions?
So I moved my test.jsp to the root folder, added a ROOT.xml context file 
with crossContext="true", and it still works.

Your response is committed. Look in the logs for the stack trace of the 
error.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cross context include

2004-03-02 Thread Asim Alp
I noticed something interesting.  I tried your example using 
/dates/date.jsp in the jsp-examples context.  It worked.

I opened date.jsp and noticed the line: <%@ page session="false"%> at 
the top of it.

I pasted this line in my hello.jsp and it worked.  Any idea why I need 
this line on Tomcat 5.0.19, but not on 5.0.18?

So, to clarify things:

/test.jsp in context "":
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp

/hello.jsp in context "jsp-apps":
Hello World!
The output of /test.jsp on Tomcat 5.0.18 is:
This is test.jsp
Hello World!
The output of the same file on Tomcat 5.0.19 is:
This is test.jsp
When I replace /hello.jsp with the following:
<%@ page session="false"%>
Hello World!
The output on Tomcat 5.0.19 becomes:
This is test.jsp
Hello World!
Isn't this weird?

Asim

On Mar 2, 2004, at 12:04 PM, Asim Alp wrote:

I found the reason of the previous error message.  However, I'm still 
having a problem.  This time my 

Here is my setup:

/test.jsp (context "")
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp

/hello.jsp (context /jsp-apps)
Hello World!
When I view /test.jsp, I only get:
This is test.jsp
In my browser.

I tried one more thing.  I replaced test.jsp with the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp
http://www.yahoo.com"; />
It worked!  I got a page that says "This is test.jsp" at the top 
followed by the frontpage of yahoo.com.

Any suggestions?

Asim

On Mar 2, 2004, at 11:45 AM, Remy Maucherat wrote:

Asim Alp wrote:
My application was running without any problems on Tomcat 5.0.18.   
After upgrading to Tomcat 5.0.19, I started having problems with my  
cross context includes.  I haven't changed a single line of code.   
Server.xml is the same as well.  Here is the host section on my  
server.xml:


   


In the "/" context, my index.jsp is as follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

.
I tried it and it works for me.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
Foo1

Foo2
Your context needs to be crossContext, of course.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
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: scope & order of initialization of variabes & includes

2004-03-02 Thread Asim Alp
I think you need to remove 

Asim

On Mar 2, 2004, at 12:09 PM, Marc Hughes wrote:

I have the following situation:

Page1.jsp:


<%   bandbg = "ok";   %>
First page: <%= bandbg %>

Page2.jsp:

Second page: <%= bandbg %>
Viewing page1.jsp I get the output:
First page: ok
Second page:
I thought I should get the output:
First page: ok
Second page: ok
I've tried with application & session scope too.

I'm assuming I'm just misunderstanding how things work.  Maybe tomcat 
starts processing includes before it processes the page or something?  
Any comments?

Thanks
-Marc
-
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: RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
We are using the regexp tag library in our jsp's. Yes, it worked fine with Tomcat 4. 
The rest of the application is working fine. Users just started noticing that where 
they are putting apostrophes and saving, when they bring the information back up it 
shows as $1. "Mary's purse" is being brought into the application as "Mary$1s purse". 
It is like it isn't interpreting the meaning of the $1 anymore.

Karl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 11:57 AM
To: Tomcat Users List
Subject: RE: RegExp issues with Tomcat 5



Hi,

>We upgraded tomcat running one of our applications from 4 to 5 this
past =
>Friday, March 27th. Since, one of our regular expressions is not =
>functioning properly. Here is the expression:
>
>s/(\\|')/\\$1/g
>
>Instead of escaping the apostrophe with another apostrophe for SQL =
>purposes, it is replacing the apostrophe with the literal '$1'. It was
=
>working with Tomcat 4 and that is the only thing that has changed.

So. What are you suggesting? ;)

The jakarta-regexp that tomcat uses to handle regular expressions has
not changed since September 2003, so many of the tomcat 4.1.x releases
have used it.  Did you use these tomcat 4 releases without a problem?

Alternatively, if you're referring to regexps directly used in your
application, and you're using JDK regexps (the java.util.regex package),
obviously tomcat has nothing to do with that.

Is the rest of your webapp functioning properly in tomcat5, or are there
other errors that perhaps make this regexp one come up?

Yoav Shapira



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]



scope & order of initialization of variabes & includes

2004-03-02 Thread Marc Hughes
I have the following situation:

Page1.jsp:


<%   bandbg = "ok";   %>
First page: <%= bandbg %>

Page2.jsp:

Second page: <%= bandbg %>
Viewing page1.jsp I get the output:
First page: ok
Second page:
I thought I should get the output:
First page: ok
Second page: ok
I've tried with application & session scope too.

I'm assuming I'm just misunderstanding how things work.  Maybe tomcat 
starts processing includes before it processes the page or something?  
Any comments?

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


Re: cross context include

2004-03-02 Thread Asim Alp
I found the reason of the previous error message.  However, I'm still 
having a problem.  This time my 

Here is my setup:

/test.jsp (context "")
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp

/hello.jsp (context /jsp-apps)
Hello World!
When I view /test.jsp, I only get:
This is test.jsp
In my browser.

I tried one more thing.  I replaced test.jsp with the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
This is test.jsp
http://www.yahoo.com"; />
It worked!  I got a page that says "This is test.jsp" at the top 
followed by the frontpage of yahoo.com.

Any suggestions?

Asim

On Mar 2, 2004, at 11:45 AM, Remy Maucherat wrote:

Asim Alp wrote:
My application was running without any problems on Tomcat 5.0.18.   
After upgrading to Tomcat 5.0.19, I started having problems with my  
cross context includes.  I haven't changed a single line of code.   
Server.xml is the same as well.  Here is the host section on my  
server.xml:


   


In the "/" context, my index.jsp is as follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

.
I tried it and it works for me.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
Foo1

Foo2
Your context needs to be crossContext, of course.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
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: RegExp issues with Tomcat 5

2004-03-02 Thread Christopher Schultz
Karl,

We upgraded tomcat running one of our applications from 4 to 5 this past =
Friday, March 27th. Since, one of our regular expressions is not =
functioning properly. Here is the expression:
s/(\\|')/\\$1/g

Instead of escaping the apostrophe with another apostrophe for SQL =
purposes, it is replacing the apostrophe with the literal '$1'. It was =
working with Tomcat 4 and that is the only thing that has changed.
What regex library are you using? Tomcat shouldn't have anything in it 
that would affect your regexs.

Not to open up too big of a can of worms, but if you're using JDBC, why 
do you have to escape your own SQL statements?

-chris


signature.asc
Description: OpenPGP digital signature


RE: Deploying a simple servlet

2004-03-02 Thread Leydhershnayder, Leon A.
The name of the servlet class is TestingServlet.class

Here are the contants of my web.xml file for this servlet.





http://java.sun.com/dtd/web-app_2_3.dtd";>



Testing
TestingServlet






-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 11:48 AM
To: Tomcat Users List
Subject: RE: Deploying a simple servlet



Hi,
If your servlet class name is com.yourcompany.YourServlet, add the
following to your web.xml:

  YourServlet
  com.yourcompany.YourServlet



  YourServlet
  /servlet/Testing


Make sure the compiled servlet class is under the appropriate directory
of your app's WEB-INF/classes directory or packaged in a jar in
WEB-INF/lib.  Restart tomcat.  If your app is named MyApp, you will be
able to access your servlet at
http://yourhost:yourport/MyApp/servlet/Testing

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Leydhershnayder, Leon A. [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 02, 2004 11:45 AM
>To: [EMAIL PROTECTED]
>Subject: Deploying a simple servlet
>
>I'm new to tomcat and am trying to run a very simple hello world type
of
>servlet.  I've configured the web.xml to mimic a similar servlet in
tomcat
>examples.  Still while all the example servlets from tomcat work mine
fails
>to run.
>
>I receive the following message:
>
>HTTP Status 404 - /MyApp/servlet/Testing
>
>I would greatly appreciate any advice.
>
>
>-
>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: tomcat on jdk1.5

2004-03-02 Thread James Black
Shapira, Yoav wrote:

I haven't spent time running tomcat on JDK 1.5 (I don't usually waste

time on running product X on unsupported platform Y [especially if Y is
alpha/beta]), so I can't help much there -- sorry ;(  I think Remy has
done this without any problems and even noticed a speed improvement, so
maybe he others can chime in here.
 

 I was confused because it has been running fine under jdk1.5. I 
noticed that the garbage collection improvements help out a lot, in 
keeping my application relatively small and it does seem to be faster 
than before.  Overall, jdk1.5 seems to work well, for running tomcat under.

--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]


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


RE: RegExp issues with Tomcat 5

2004-03-02 Thread Shapira, Yoav

Hi,

>We upgraded tomcat running one of our applications from 4 to 5 this
past =
>Friday, March 27th. Since, one of our regular expressions is not =
>functioning properly. Here is the expression:
>
>s/(\\|')/\\$1/g
>
>Instead of escaping the apostrophe with another apostrophe for SQL =
>purposes, it is replacing the apostrophe with the literal '$1'. It was
=
>working with Tomcat 4 and that is the only thing that has changed.

So. What are you suggesting? ;)

The jakarta-regexp that tomcat uses to handle regular expressions has
not changed since September 2003, so many of the tomcat 4.1.x releases
have used it.  Did you use these tomcat 4 releases without a problem?

Alternatively, if you're referring to regexps directly used in your
application, and you're using JDK regexps (the java.util.regex package),
obviously tomcat has nothing to do with that.

Is the rest of your webapp functioning properly in tomcat5, or are there
other errors that perhaps make this regexp one come up?

Yoav Shapira



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]



Re: Deploying a simple servlet

2004-03-02 Thread Christopher Schultz
Leon,

I'm new to tomcat and am trying to run a very simple hello world type of
servlet.  I've configured the web.xml to mimic a similar servlet in tomcat
examples.  Still while all the example servlets from tomcat work mine fails
to run.
I receive the following message:

HTTP Status 404 - /MyApp/servlet/Testing

I would greatly appreciate any advice.
In the newer versions of Tomcat, the 'invoker' servlet is disabled by 
default. The best way to get your servlet running it to create a 
 element in your web.xml and then use your mapped URL 
to access the servlet (instead of using a URL like 
/context/servlet/ClassName).

-chris


signature.asc
Description: OpenPGP digital signature


Re: Deploying a simple servlet

2004-03-02 Thread epyonne
Usually the problem is on your deployment descriptor.  Double-check it or
post it for help.

Thanks.


- Original Message -
From: "Leydhershnayder, Leon A." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 10:44 AM
Subject: Deploying a simple servlet


> I'm new to tomcat and am trying to run a very simple hello world type of
> servlet.  I've configured the web.xml to mimic a similar servlet in tomcat
> examples.  Still while all the example servlets from tomcat work mine
fails
> to run.
>
> I receive the following message:
>
> HTTP Status 404 - /MyApp/servlet/Testing
>
> I would greatly appreciate any advice.
>
>
> -
> 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: my problem of having a bad classpath is fixed

2004-03-02 Thread Shapira, Yoav

Hi,

>I just realized I had tomcat-coyote.jar in /usr/java/jre/lib/ext and
>that is what I think was causing the problem. I deleted it and it
starts
>up fine now.

Thanks for posting your solution, it's good to know as I'm sure others
will be or are trying to run on JDK 1.5 beta.

Yoav Shapira



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]



RE: can't find org/apache/tomcat/util/buf/ByteChunk.class

2004-03-02 Thread Shapira, Yoav

Howdy,

>  I am using JDK1.5.0beta and now I can't get tomcat to run.

I haven't spent time running tomcat on JDK 1.5 (I don't usually waste
time on running product X on unsupported platform Y [especially if Y is
alpha/beta]), so I can't help much there -- sorry ;(  I think Remy has
done this without any problems and even noticed a speed improvement, so
maybe he others can chime in here.

Yoav Shapira



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]



re: my problem of having a bad classpath is fixed

2004-03-02 Thread James Black
I just realized I had tomcat-coyote.jar in /usr/java/jre/lib/ext and 
that is what I think was causing the problem. I deleted it and it starts 
up fine now.

--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]


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


RE: 5.0.19 docs about new clustering config?

2004-03-02 Thread Filip Hanik \(lists\)
hi Ronald,
the docs are not yet up to date, gotta make sure I can pay rent first then
Tomcat docs :)

Filip

-Original Message-
From: Ronald Klop [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 1:53 AM
To: Tomcat Users List
Subject: 5.0.19 docs about new clustering config?



Hello,

Are there (up-to-date) docs about the new clustering config in 5.0.19?
Some attributes are not in the example config (like 'name') and the
documents arn't very clear if it's still needed or not.

Greetings,

Ronald.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004


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



Re: can't find org/apache/tomcat/util/buf/ByteChunk.class

2004-03-02 Thread James Black
Shapira, Yoav wrote:

Hola,

 

My tomcat server is failing to start up because it can't find this
class. What jar file should it be in?
   

For tomcat 5.0.19, it's in $CATALINA_HOME/server/lib/tomcat-util.jar.
 

 I am using JDK1.5.0beta and now I can't get tomcat to run.

 It couldn't find tomcat-util.jar, then I copied that from the location 
you mentioned to /usr/java/jre/lib/ext, then it complained that it can't 
find  org/apache/commons/logging/LogFactory, so it appears that 
server/lib is not being added to the classpath.

--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]


RE: Deploying a simple servlet

2004-03-02 Thread Shapira, Yoav

Hi,
If your servlet class name is com.yourcompany.YourServlet, add the
following to your web.xml:

  YourServlet
  com.yourcompany.YourServlet



  YourServlet
  /servlet/Testing


Make sure the compiled servlet class is under the appropriate directory
of your app's WEB-INF/classes directory or packaged in a jar in
WEB-INF/lib.  Restart tomcat.  If your app is named MyApp, you will be
able to access your servlet at
http://yourhost:yourport/MyApp/servlet/Testing

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Leydhershnayder, Leon A. [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 02, 2004 11:45 AM
>To: [EMAIL PROTECTED]
>Subject: Deploying a simple servlet
>
>I'm new to tomcat and am trying to run a very simple hello world type
of
>servlet.  I've configured the web.xml to mimic a similar servlet in
tomcat
>examples.  Still while all the example servlets from tomcat work mine
fails
>to run.
>
>I receive the following message:
>
>HTTP Status 404 - /MyApp/servlet/Testing
>
>I would greatly appreciate any advice.
>
>
>-
>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]



RegExp issues with Tomcat 5

2004-03-02 Thread Karl Coleman
We upgraded tomcat running one of our applications from 4 to 5 this past =
Friday, March 27th. Since, one of our regular expressions is not =
functioning properly. Here is the expression:

s/(\\|')/\\$1/g

Instead of escaping the apostrophe with another apostrophe for SQL =
purposes, it is replacing the apostrophe with the literal '$1'. It was =
working with Tomcat 4 and that is the only thing that has changed.

Thanks,
Karl

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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread rsequeira

With due respect to everyone's opinion on this thread, I really appreciate
it if this topic was taken offline. I think other than filling up people's
mailbox, I don't seem to see any technical knowledge being shared.
Just my 2 cents.

Thanks,
RS


   
   
  Christopher Schultz  
   
  <[EMAIL PROTECTED]To:   Tomcat Users List
 
  omcast.net>  <[EMAIL PROTECTED]> 
  
  cc:  
   
  03/02/2004 10:42 AM Subject:  Re: Virtual Hosts with 
Apache and Tomcat  
  Please respond to
   
  "Tomcat Users List"  
   
   
   
   
   




Kennan,

> I can agree partially to yours. But if you see him, he doesn't know about
> the impact of JVM and tuning parameters, as he mentioned in his email. Do
> you expect him to take a lead in fixing that? I have seen the projects
> losing its focus by the nature of peoples deviating to get their
interests
> fulfilled.

This is not a 'special' interest. This is a legitimate resource leak
that he wants them to fix. He can demonstrate the leak. That's all
that's necessary on his part. The rest is up to the developers. I'm not
suggesting that he fix the problem. Only to demonstrate it and get the
developers to fix the problem.

> I would appreciate, if the developer and sysadmin working together in
this
> problem (i doubt verymuch as sysadmin involvment, all he can do is give
> "top" or "sar" reports). Sysadmin has much knowledge in configuring
servers,
> architect the infrastructure, manage the network, backups etc.

Yes, but *this* sysadmin also has enpirical data that demonstrates the
resource leak. Forget sar and top. How about "the app locks up". That
should be motivating enough.

> I never seen any sysadmin trying to fine tune any Application Servers.

Actually, the sysadmin is the /perfect/ person to fine-tune app servers.
Most devs don't know jack about the app server they use. That's why they
deploy onto app servers with standard interfaces and services (Servlet
and JSP spec). The deployment and admin folks are the ones who should
know how to configure the app servers.

> If
> that is the case, then the project sucess will be in stake. Everyone has
to
> do their own roles. If I would be the sysadmin, then i would tell the
> developers to go these newsgroups. Dont you think that most of developers
> resolve their issues by newsgroups and websites for their problems.

Here's the problem: the devs refuse to admit there's a problem. They
won't go to the newsgroups to ask about a problem that they don't
believe exists. That's why the sysadmin is here. He wanted to get some
information on how to prove that there's a leak. He's gotton that
information. Let's wait for the devs to visit the group, now ;)

> He clearly mentioned that the developeers raised that questions and
trying
> to get the verification from the newsgroups. Dont you think that is the
part
> of communication gap between the developers and him. If he is very keen,
why
> not one of the developers responding his thread and get the issues fixed
for
> the project.

I think the problem is that the devs think the sysadmin is foolish and
wrong about the resource leak. Now that he can demonstrate the leak,
they will take him more seriously.

I believe that we have helped in this situation, and that the devs will
now address the problem instead of sticking their heads in the sand.

-chris
(See attached file: signature.asc)




This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.

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

RE: Automatic deployment in tomcat 5

2004-03-02 Thread Francois JEANMOUGIN


From: Remy Maucherat [mailto:[EMAIL PROTECTED] :
> Is this really needed ? Many (most) context related container
> configuration stuff can be put in context files.
> 
> Reloading server.xml is not supported without restarting the whole
> server, and there's the possibility of messing with the config and
> breaking things. These were the reasons why the context files were
> introduced in the first place.

Another way would be to use the Alias element, but how can I make different access 
logs for a different alias ? Is there a way to know that this request comes in for 
this specific alias ?

François.


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



RE: Tomcat 4.1.29 and Iona ASP 6.0

2004-03-02 Thread Shapira, Yoav

Hi,
Thanks for sharing this story.  Make sure to let the Iona folks know
they're doing a suboptimal packaging job ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Carolyn Gerrard [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 02, 2004 11:43 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.29 and Iona ASP 6.0
>
>
>We hit the following problem when trying to run tomcat 4.1.29
>and Iona Orbix ASP 6.0 in the same jvm.
>
>When the orbix jar file, asp-corba.jar, is included in the
>classpath that tomcat is started with this causes the tomcat jvm to
throw
>the
>following exception and terminate at startup
>
>ERROR reading /opt/hpws/tomcat/conf/server.xml
>At Line 18 /Server/Listener/
>className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
>
>Catalina.start: java.lang.ClassNotFoundException:
>org.apache.catalina.mbeans.ServerLifecycleListener
>java.lang.ClassNotFoundException:
>org.apache.catalina.mbeans.ServerLifecycleListener
>at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>at java.lang.Class.forName0(Native Method)
>at java.lang.Class.forName(Class.java:140)
>at
>org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
>at
>org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
>
>This turned out to be due to the iona versions of some tomcat jars
>under /opt/iona/lib/tomcat being loaded in favour of the installed
>version of tomcat.  This occurred because of the asp-corba.jar
>internally references all other jars (in excess of 500)
>in the iona installation area.
>
>The structuring of the jars in this way has the highly undesirable
side-
>effect
>that the inclusion of the asp-corba.jar may replace the versions that a
>user
>requires for other third-party software without the user even being
aware
>of it!
>
>To resolve this problem we have renamed the /opt/iona/lib/tomcat
>to avoid these jars being picked up.
>
>Note this relates to the following problem raised last year
>
>
>> Manifest, Class-Path attribute, NoClassDefFoundError
>>
>> Oliver Wulff Tomcat Users List" <[EMAIL PROTECTED]
>> Tue May 20 08:05:02 2003
>>
>>Previous message: How to use Custom Beans with Tomcat
>>Next message: Session management capabilities
>>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>
>>
>>
>>
>>
>> Hi all
>>
>> I've created a jar file and deployed to the lib directory of the web
>> application. The manifest of the jar file contains the attribute
>> Class-Path:
>> Manifest-Version: 1.0
>> Created-By: Apache Ant 1.5.1
>> Class-Path: ./../../../iona/asp60/asp/6.0/lib/asp-corba.jar
>>
>> Unfortunately, Tomcat can't resolve the classes
(NoClassDefFoundError)
>> which will be referenced in the asp-corba.jar (JDK 1.3.1). This jar
its=
>> elf
>> references a lot of jars. If I run the code outside of Tomcat, the
clas=
>> ses
>> in the references jar can be found.
>>
>> Oliver
>>
>> **
>> Oliver Wulff
>> Z=FCrich Versicherungs-Gesellschaft
>> IA4, CoC Middleware
>> Postfach, 8085 Z=FCrich
>> Telefon: +41- 1 628 58 07
>> Fax: +41 - 1 623 58 07
>> E-Mail: mailto:[EMAIL PROTECTED]
>>
>>
>
>Regards
>
>Carolyn
>
>-
>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]



Re: cross context include

2004-03-02 Thread Remy Maucherat
Asim Alp wrote:
My application was running without any problems on Tomcat 5.0.18.   
After upgrading to Tomcat 5.0.19, I started having problems with my  
cross context includes.  I haven't changed a single line of code.   
Server.xml is the same as well.  Here is the host section on my  
server.xml:



   




In the "/" context, my index.jsp is as follows:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

.
I tried it and it works for me.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
Foo1

Foo2
Your context needs to be crossContext, of course.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Deploying a simple servlet

2004-03-02 Thread Leydhershnayder, Leon A.
I'm new to tomcat and am trying to run a very simple hello world type of
servlet.  I've configured the web.xml to mimic a similar servlet in tomcat
examples.  Still while all the example servlets from tomcat work mine fails
to run.

I receive the following message:

HTTP Status 404 - /MyApp/servlet/Testing

I would greatly appreciate any advice.


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



Tomcat Version and Mod_jk2

2004-03-02 Thread Asif Chowdhary
Does Tomcat version 4.0.3 support mod_jk2?


Thanks
Asif 


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



Tomcat 4.1.29 and Iona ASP 6.0

2004-03-02 Thread Carolyn Gerrard

We hit the following problem when trying to run tomcat 4.1.29
and Iona Orbix ASP 6.0 in the same jvm.

When the orbix jar file, asp-corba.jar, is included in the 
classpath that tomcat is started with this causes the tomcat jvm to throw the
following exception and terminate at startup

ERROR reading /opt/hpws/tomcat/conf/server.xml
At Line 18 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 
This turned out to be due to the iona versions of some tomcat jars 
under /opt/iona/lib/tomcat being loaded in favour of the installed
version of tomcat.  This occurred because of the asp-corba.jar 
internally references all other jars (in excess of 500)
in the iona installation area.

The structuring of the jars in this way has the highly undesirable side-effect 
that the inclusion of the asp-corba.jar may replace the versions that a user 
requires for other third-party software without the user even being aware of it!

To resolve this problem we have renamed the /opt/iona/lib/tomcat
to avoid these jars being picked up.

Note this relates to the following problem raised last year


> Manifest, Class-Path attribute, NoClassDefFoundError 
> 
> Oliver Wulff Tomcat Users List" <[EMAIL PROTECTED] 
> Tue May 20 08:05:02 2003 
> 
>Previous message: How to use Custom Beans with Tomcat 
>Next message: Session management capabilities 
>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 
> 
> 
> 
> 
> 
> Hi all
> 
> I've created a jar file and deployed to the lib directory of the web
> application. The manifest of the jar file contains the attribute
> Class-Path:
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5.1
> Class-Path: ./../../../iona/asp60/asp/6.0/lib/asp-corba.jar
> 
> Unfortunately, Tomcat can't resolve the classes (NoClassDefFoundError)
> which will be referenced in the asp-corba.jar (JDK 1.3.1). This jar its=
> elf
> references a lot of jars. If I run the code outside of Tomcat, the clas=
> ses
> in the references jar can be found.
> 
> Oliver
> 
> **
> Oliver Wulff
> Z=FCrich Versicherungs-Gesellschaft
> IA4, CoC Middleware
> Postfach, 8085 Z=FCrich
> Telefon: +41- 1 628 58 07
> Fax: +41 - 1 623 58 07
> E-Mail: mailto:[EMAIL PROTECTED]
> 
> 

Regards

Carolyn

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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Christopher Schultz
Kennan,

I can agree partially to yours. But if you see him, he doesn't know about
the impact of JVM and tuning parameters, as he mentioned in his email. Do
you expect him to take a lead in fixing that? I have seen the projects
losing its focus by the nature of peoples deviating to get their interests
fulfilled.
This is not a 'special' interest. This is a legitimate resource leak 
that he wants them to fix. He can demonstrate the leak. That's all 
that's necessary on his part. The rest is up to the developers. I'm not 
suggesting that he fix the problem. Only to demonstrate it and get the 
developers to fix the problem.

I would appreciate, if the developer and sysadmin working together in this
problem (i doubt verymuch as sysadmin involvment, all he can do is give
"top" or "sar" reports). Sysadmin has much knowledge in configuring servers,
architect the infrastructure, manage the network, backups etc. 
Yes, but *this* sysadmin also has enpirical data that demonstrates the 
resource leak. Forget sar and top. How about "the app locks up". That 
should be motivating enough.

I never seen any sysadmin trying to fine tune any Application Servers.
Actually, the sysadmin is the /perfect/ person to fine-tune app servers. 
Most devs don't know jack about the app server they use. That's why they 
deploy onto app servers with standard interfaces and services (Servlet 
and JSP spec). The deployment and admin folks are the ones who should 
know how to configure the app servers.

If
that is the case, then the project sucess will be in stake. Everyone has to
do their own roles. If I would be the sysadmin, then i would tell the
developers to go these newsgroups. Dont you think that most of developers
resolve their issues by newsgroups and websites for their problems. 
Here's the problem: the devs refuse to admit there's a problem. They 
won't go to the newsgroups to ask about a problem that they don't 
believe exists. That's why the sysadmin is here. He wanted to get some 
information on how to prove that there's a leak. He's gotton that 
information. Let's wait for the devs to visit the group, now ;)

He clearly mentioned that the developeers raised that questions and trying
to get the verification from the newsgroups. Dont you think that is the part
of communication gap between the developers and him. If he is very keen, why
not one of the developers responding his thread and get the issues fixed for
the project. 
I think the problem is that the devs think the sysadmin is foolish and 
wrong about the resource leak. Now that he can demonstrate the leak, 
they will take him more seriously.

I believe that we have helped in this situation, and that the devs will 
now address the problem instead of sticking their heads in the sand.

-chris


signature.asc
Description: OpenPGP digital signature


RE: can't find org/apache/tomcat/util/buf/ByteChunk.class

2004-03-02 Thread Shapira, Yoav

Hola,

>  My tomcat server is failing to start up because it can't find this
>class. What jar file should it be in?

For tomcat 5.0.19, it's in $CATALINA_HOME/server/lib/tomcat-util.jar.

Yoav Shapira



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]



RE: Restrict to specific IP's

2004-03-02 Thread Shapira, Yoav

Hi,

>The errors IO was talking about are in the catalina.out. I was refering
to
>teh seperate entries of:
>
>Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
>SEVERE: Error filterStart
>Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
>SEVERE: Context startup failed due to previous errors

I didn't see them, strange.  Anyways, a filterStart error will make your
context unavailable and if it's the context where you're testing the
Valves, your tests are meaningless until you get the context to start up
correctly.

Yoav Shapira



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]



re: can't find org/apache/tomcat/util/buf/ByteChunk.class

2004-03-02 Thread James Black
Hello,
 My tomcat server is failing to start up because it can't find this 
class. What jar file should it be in?

 Thank you.

 I am using Tomcat 5.0.19

--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]


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


RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
The errors IO was talking about are in the catalina.out. I was refering to
teh seperate entries of:

Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

John



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 11:15 AM
To: Tomcat Users List
Subject: RE: Restrict to specific IP's



Hi,

>I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added
just
>theRemoteAddrValve  deny valve. Same thing, everyone can connect.
Attached
>is catalina.out from the startup. There are some errors. I looked on
the
>web
>and all I can find is to reload from scratch. This is a brand new
install.
>Nothing has been changed except for my one added line?

Very strange.   I didn't see any errors in your log (catalina.out).
Were you referring to a different log?

Yoav Shapira



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]



cross context include

2004-03-02 Thread Asim Alp
My application was running without any problems on Tomcat 5.0.18.   
After upgrading to Tomcat 5.0.19, I started having problems with my  
cross context includes.  I haven't changed a single line of code.   
Server.xml is the same as well.  Here is the host section on my  
server.xml:


	
			
	
	


In the "/" context, my index.jsp is as follows:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

.
In the "/jsp-apps" context /shared/header.jsp is just a simple JSP page.

Here is the error message I get:

javax.servlet.ServletException: /shared/header.jsp
 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont 
extImpl.java:867)
 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex 
tImpl.java:800)
org.apache.jsp.index_jsp._jspService(index_jsp.java:123)
 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja 
va:311)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
301)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause
javax.servlet.jsp.JspTagException: /shared/header.jsp
 
org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString( 
Unknown Source)
 
org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(Unkno 
wn Source)
 
org.apache.jsp.index_jsp._jspx_meth_c_import_0(index_jsp.java:142)
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja 
va:311)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
301)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Any ideas?

Asim

RE: Restrict to specific IP's

2004-03-02 Thread Shapira, Yoav

Hi,

>I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added
just
>theRemoteAddrValve  deny valve. Same thing, everyone can connect.
Attached
>is catalina.out from the startup. There are some errors. I looked on
the
>web
>and all I can find is to reload from scratch. This is a brand new
install.
>Nothing has been changed except for my one added line?

Very strange.   I didn't see any errors in your log (catalina.out).
Were you referring to a different log?

Yoav Shapira



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]



Re: Automatic deployment in tomcat 5

2004-03-02 Thread Remy Maucherat
Francois JEANMOUGIN wrote:
I think you should rely on Ant scripts for reloading of that kind
of relatively complex situations.
Unfortunately, my context is much more complicated. I can't use the
manager or ant (at this step of what I could guess) because they are
rewriting (sometimes) the server.xml without taking car of my
CoyoteConnector setup (which is hosted in an entity).
Is this really needed ? Many (most) context related container 
configuration stuff can be put in context files.

Reloading server.xml is not supported without restarting the whole 
server, and there's the possibility of messing with the config and 
breaking things. These were the reasons why the context files were 
introduced in the first place.

So...

Clearly, here, they are filtering virtual hosts through a single web
application. So, I don't want to have a auto-deploying context in al
the hosts because I don't know what would be the tomcat behaviour in
such a situation.
There's no concurrency when reloading webapps (by default, one thread 
per engine for all recurrent tasks, including reloading, auto 
deployment, session expiration, etc) so it could work well enough.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Kannan Sundararajan
Yes, But that doesn't mean that we can put and point on developers for any
problem.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 10:59 AM
To: Tomcat Users List
Subject: RE: Virtual Hosts with Apache and Tomcat


No that's not true, 

My colleges and me are doing both sides of the border 
(me being mainly a developer, others being mainly sysadmins
but we don't have any person that's not doing at least 20%
of the other side's job (It's a bit of pair sysadministration)

I don't like the notion of pure programmers and pure sys admins.
(If the the organsation gets big enough you need such roles, but
it's alway good to have some people in each group that know the 
other side well enough)

> -Original Message-
> From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 4:31 PM
> To: 'Tomcat Users List'
> Subject: RE: Virtual Hosts with Apache and Tomcat
> 
> Sysadmins are sysadmins AND developers are developers. No one 
> cannot cross the borderline or even compare. 
> 

-
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: Automatic deployment in tomcat 5

2004-03-02 Thread Francois JEANMOUGIN


From: Remy Maucherat [mailto:[EMAIL PROTECTED] :
> Sent: Tuesday, March 02, 2004 4:33 PM
[...]
> I think I would deploy your context in the same way that the manager is
> deployed, but I have a bit of trouble imagining your setup.

Exactly. It is the same way the manager would be deployed. How is it ? I mean, I talk 
abour dynamic context reload by adding a war file...

> I think you
> should rely on Ant scripts for reloading of that kind of relatively
> complex situations.

Unfortunately, my context is much more complicated. I can't use the manager or ant (at 
this step of what I could guess) because they are rewriting (sometimes) the server.xml 
without taking car of my CoyoteConnector setup (which is hosted in an entity).

So...

Clearly, here, they are filtering virtual hosts through a single web application. So, 
I don't want to have a auto-deploying context in al the hosts because I don't know 
what would be the tomcat behaviour in such a situation.

François.


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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Christopher Schultz
Stephen,

In fact, cap it at 10 and watch the app dring to a halt before it even
gets going. This is a pretty compelling example. If the pool is drying
up, they're definately screwing up.
Whoa there pardner:  I am not going to deliberately cripple a production box. 
The problem has been demonstated in test environments and that is as far as I 
will intentionally let it go.
Oh, I totally meant in a development setting. I would never suggest that 
you cripple a production box. You can easily demonstrate the problem. Do 
that in dev, and make them fix it. Then, deploy the fix as part of your 
regular deployment procedure.

-chris


signature.asc
Description: OpenPGP digital signature


RE: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Ralph Einfeldt
No that's not true, 

My colleges and me are doing both sides of the border 
(me being mainly a developer, others being mainly sysadmins
but we don't have any person that's not doing at least 20%
of the other side's job (It's a bit of pair sysadministration)

I don't like the notion of pure programmers and pure sys admins.
(If the the organsation gets big enough you need such roles, but
it's alway good to have some people in each group that know the 
other side well enough)

> -Original Message-
> From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 4:31 PM
> To: 'Tomcat Users List'
> Subject: RE: Virtual Hosts with Apache and Tomcat
> 
> Sysadmins are sysadmins AND developers are developers. No one 
> cannot cross the borderline or even compare. 
> 

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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Stephen Carville
On Monday March 01 2004 06:42 pm, Christopher Schultz wrote:

> >> Tried that.  Capped it at 35 and the webserver stopped servicing any
> >> DB request as soon as the pool reached 35.  This is why I believe the
> >> pool management is faulty and/or something is hogging all the
> >> connections.
> >
> > I share your belief. Let's try to prove it. Raise it to some other
> > figure, and see if the same happens again. Ask them how big should the
> > figure be.
>
> In fact, cap it at 10 and watch the app dring to a halt before it even
> gets going. This is a pretty compelling example. If the pool is drying
> up, they're definately screwing up.

Whoa there pardner:  I am not going to deliberately cripple a production box. 
The problem has been demonstated in test environments and that is as far as I 
will intentionally let it go.
 
That said, the information i've gathered here has been helpful.  I am a great 
sysadmin but not a great java programmer so I appreciate it to.

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that  
the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


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



RE: Tomcat users

2004-03-02 Thread Kannan Sundararajan
Hi Uma, 

If you tell the current setup of hardware, software and the estimation of
the users trying to get in. And the short note on the application intense
with the server. That can help in telling the server configuration. 

Regards, 
Kannan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:39 PM
To: Tomcat Users List
Subject: RE: Tomcat users






Hi Kannan,
Thank you for your reply.
May I know what kind of Hardware or Software configuration can improve the
performance of Tomcat please?

Thank you,
Best Regards,
Uma


-
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: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Kannan Sundararajan
Sysadmins are sysadmins AND developers are developers. No one cannot cross
the borderline or even compare. 

>>They are clowns.
I wouldn't call the developers or professionals like this. 

I can agree partially to yours. But if you see him, he doesn't know about
the impact of JVM and tuning parameters, as he mentioned in his email. Do
you expect him to take a lead in fixing that? I have seen the projects
losing its focus by the nature of peoples deviating to get their interests
fulfilled. 

I would appreciate, if the developer and sysadmin working together in this
problem (i doubt verymuch as sysadmin involvment, all he can do is give
"top" or "sar" reports). Sysadmin has much knowledge in configuring servers,
architect the infrastructure, manage the network, backups etc. 

I never seen any sysadmin trying to fine tune any Application Servers. If
that is the case, then the project sucess will be in stake. Everyone has to
do their own roles. If I would be the sysadmin, then i would tell the
developers to go these newsgroups. Dont you think that most of developers
resolve their issues by newsgroups and websites for their problems. 

>>This isn't about communication or a sysadmin whining to the devs about
something he doesn't understand. 
He clearly mentioned that the developeers raised that questions and trying
to get the verification from the newsgroups. Dont you think that is the part
of communication gap between the developers and him. If he is very keen, why
not one of the developers responding his thread and get the issues fixed for
the project. 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:49 PM
To: Tomcat Users List
Subject: Re: Virtual Hosts with Apache and Tomcat


Kannan,

> Being yourself as SYSADMIN for UNIX and Network, it would be nice that
> developers or professional should take a lead into get into this problem.

Easy for you to say.

Let's face it: these guys have a connection leak. Plain and simple. Your 
devs need to find their leak. It is demonstrable. It locks up the 
server. QED. Make them fix it.

This isn't about communication or a sysadmin whining to the devs about 
something he doesn't understand. This is a resource leak. It is 
apparently well-understood. He's done his homework. They are clowns.

-chris

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



tomcat clustering

2004-03-02 Thread shyam
Hi all,
I am trying to do the clustering . I have tomcat set up on two different
machines. Both these tomcats are joining the cluster. I have checked the
logs and everything looks fine. I tried load balancing with apache2. I
have apache set up on one machine. I have followed the instructions
posted on Jakarta site. The problem is I don't see any session
replication happening. I have checked the tomcat logs and apache logs.
Tomcat logs has a warning. ERROR IN REGISTERING REQUEST. And apache logs
has a error 
[error] ajp13.connect() failed ajp13:localhost:8009
[error] ajp13.service() failed to connect endpoint errno=61 Unknown
error
[error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[error] lb.service() worker failed ajp13:localhost:8009
[error] lb_worker.service() all workers in error or disabled state

Can somebody help me out in this. 
Thanks in advance
shyam

Software Engineer
Adamshand Inc
www.interviewexchange.com






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



Re: Automatic deployment in tomcat 5

2004-03-02 Thread Remy Maucherat
Francois JEANMOUGIN wrote:
Hi all,

Just a little (simple) question :

I have (from my well known so called developers) several web
applications. In additions to the web applications, I have several
virtual hosts. God.  Several Host are pointing to the same
context (same Context path, docBase, appBase). So, now, the question
is, how do I manage automatic deployment ? Can I only declare one of
these identical context as auto-deployable ? Should I do it for all
Host? What happens if all the Host find a new war, do they do
concurrencial deployment in the same application directory ? Should I
define this context in the META-INF directory, but, what happens to
the Host element in server.xml ?
As you can see, I am in trouble with it. Any tips welcome.
I think I would deploy your context in the same way that the manager is 
deployed, but I have a bit of trouble imagining your setup. I think you 
should rely on Ant scripts for reloading of that kind of relatively 
complex situations.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
No. The connection to the database server is internal to our firewall. The
setup now is:

All test PC's (2) and HP server attached to the same hub on the network.

John

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 10:22 AM
To: Tomcat Users List
Subject: Re: Restrict to specific IP's


Does everyone go through a  firewall/nat/proxy so from a server point of
view 
- every request is from the same IP address?

I think one of the files in one of the examples displays the client ip
address.

-Tim

[EMAIL PROTECTED] wrote:
> I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added just
> theRemoteAddrValve  deny valve. Same thing, everyone can connect. Attached
> is catalina.out from the startup. There are some errors. I looked on the
web
> and all I can find is to reload from scratch. This is a brand new install.
> Nothing has been changed except for my one added line?
> 
> John
> 
> 
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 9:11 AM
> To: Tomcat Users List
> Subject: RE: Restrict to specific IP's
> 
> 
> 
> Hi,
> 
> 
>>>deny="132.24.195.76"/>
>>RESULT: No one is denied access. User at 132.24.195.76 can get to
>>132.24.195.18:8080 and access manager
> 
> 
> Very strange: I can't reproduce what you're seeing.  On a brand new
> tomcat 5.0.19 installation, I just added a RemoteAddrValve to deny one
> of my PCs access, and restarted tomcat.  When I try to access the server
> from that PC (and no others), I get HTTP 403 (Forbidden), as designed
> and expected.  I haven't tested the allow functionality.
> 
> 
>>What am I doing wrong?
> 
> 
> I'm not sure.  Are there other errors in the startup logs that are
> preventing the server from processing the Valve directive, maybe?  You
> can also enable the AccessLogValve so you can see the response code: you
> should see 403s for denied requests.
> 
> Unfortunately the relevant code
> (http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
> share/org/apache/catalina/valves/RequestFilterValve.java?rev=1.3&view=ma
> rkup) doesn't seem to have much logging.  But if you're still having
> trouble, then you have the option of downloading the source, adding
> logging there, and rebuilding tomcat for your own debugging.
> 



-
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: Internationalization problem

2004-03-02 Thread Yansheng Lin
Hi, take a look at this thread.  
http://www.mail-archive.com/[EMAIL PROTECTED]/msg91815.html
Like Ralph Einfeldt said, you need to encode the JSP files, the request and the
response.  You've done the JSP part, now you want to define a filter for the
other two.  Btw, ISO-8859-1(Latin 1) covers most Western European Languages, it
should be able to handle the French characters.  

-Yan

-Original Message-
From: Evgeny Gesin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 7:33 AM
To: Tomcat Users List
Subject: RE: Internationalization problem


I see, so this
 JAVA_OPTS=-Dfile.encoding="UTF8"
is important to generate correct chars from hardcoded
strings if written directly in java files.
Thanks

Evgeny Gesin
Javadesk


--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> 
> You have to consider 3 different topics:
> - encoding of generated java files
>   This is defined by the file.encoding option of the
> jvm.
> 
> - encoding of the response
>   This is defined by the encoding tag of the jsp or
> by 
>   explicitly setting the encoding in the response
> 
> - encoding of the request
>   This is defined by explicitly setting the encoding
> 
>   for the request.
> 
> > -Original Message-
> > From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 02, 2004 2:27 PM
> > To: Tomcat Users List
> > Subject: RE: Internationalization problem
> > 
> > 
> > Some sources say to set in catalina.sh
> >  JAVA_OPTS=-Dfile.encoding="UTF8"
> > 
> > What is relation of that parameter and
> Web/JSP/i18n ?
> > 
> > Evgeny Gesin
> > Javadesk
> > 
> > --- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
> wrote:
> > > é is "é" in UTF-8.
> > > It means that your browser is returning UTF-8,
> and
> > > your servlet/JSP
> > > is expecting ISO-8859-1.
> > > Check how your JSP is configured to handle the
> > > character set.
> > > To use UTF-8 in your JSP :
> > > <%@ page contentType="text/html;charset=UTF-8"
> > > pageEncoding="UTF-8"  %>
> > > and make sure that the charset in your JSP/HTML
> is
> > > defined as UTF-8 : 
> > >  content="text/html;
> > > charset=UTF-8">
> > > 
> > > 
> > > -Message d'origine-
> > > De : Jonathan Abramsohn
> [mailto:[EMAIL PROTECTED]
> > > Envoyé : mardi 2 mars 2004 11:48
> > > À : Tomcat Users List
> > > Objet : Internationalization problem
> > > 
> > > 
> > > 
> > > I have problem with French special characters,
> like
> > > e with "accent" (é),
> > > When I get this character from user input,
> tomcat
> > > gets it as: é.
> > > Although I didn't check this in other languages
> I
> > > presume the same problems should also occur in
> > > German and Spanish and probably other languages.
> > > I'm working with tomcat 4.0.1 on Linux RH 9.0
> > > Anyone knows how to solve this?
> > > 
> > > 
> > > 
> > >
> >
>
-
> > > 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]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Search - Find what you're looking for
> faster
> > http://search.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]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.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]



Re: Restrict to specific IP's

2004-03-02 Thread Tim Funk
Does everyone go through a  firewall/nat/proxy so from a server point of view 
- every request is from the same IP address?

I think one of the files in one of the examples displays the client ip address.

-Tim

[EMAIL PROTECTED] wrote:
I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added just
theRemoteAddrValve  deny valve. Same thing, everyone can connect. Attached
is catalina.out from the startup. There are some errors. I looked on the web
and all I can find is to reload from scratch. This is a brand new install.
Nothing has been changed except for my one added line?
John



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 9:11 AM
To: Tomcat Users List
Subject: RE: Restrict to specific IP's


Hi,



RESULT: No one is denied access. User at 132.24.195.76 can get to
132.24.195.18:8080 and access manager


Very strange: I can't reproduce what you're seeing.  On a brand new
tomcat 5.0.19 installation, I just added a RemoteAddrValve to deny one
of my PCs access, and restarted tomcat.  When I try to access the server
from that PC (and no others), I get HTTP 403 (Forbidden), as designed
and expected.  I haven't tested the allow functionality.

What am I doing wrong?


I'm not sure.  Are there other errors in the startup logs that are
preventing the server from processing the Valve directive, maybe?  You
can also enable the AccessLogValve so you can see the response code: you
should see 403s for denied requests.
Unfortunately the relevant code
(http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
share/org/apache/catalina/valves/RequestFilterValve.java?rev=1.3&view=ma
rkup) doesn't seem to have much logging.  But if you're still having
trouble, then you have the option of downloading the source, adding
logging there, and rebuilding tomcat for your own debugging.


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


Automatic deployment in tomcat 5

2004-03-02 Thread Francois JEANMOUGIN
Hi all,

Just a little (simple) question :

I have (from my well known so called developers) several web applications. In 
additions to the web applications, I have several virtual hosts. God.  Several 
Host are pointing to the same context (same Context path, docBase, appBase). So, now, 
the question is, how do I manage automatic deployment ? Can I only declare one of 
these identical context as auto-deployable ? Should I do it for all Host? What happens 
if all the Host find a new war, do they do concurrencial deployment in the same 
application directory ? Should I define this context in the META-INF directory, but, 
what happens to the Host element in server.xml ?

As you can see, I am in trouble with it. Any tips welcome.

François.


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



Re: CLIENT-CERT login (5.0.19)

2004-03-02 Thread Remy Maucherat
Almaz Sharipov wrote:

Hi! I am newbie here.
I spent a lot of time discovering that:
1. CLIENT-CERT login works only with MemoryRealm, all
other predefined realms must be commented in
server.xml
I don't see how this is the case. I think you are making mistakes somewhere.

2. In tomcat-user.xml there must be presented the full
Subject DN of client certificate as username, instead
of CN, as mentioned in mail archive. The password
entered here has no meaning.
To get the sample of string containing subject DN from
certificate I switched off authorization and run this
simple JSP:
<%
X509Certificate[] certs = (X509Certificate [])
request.getAttribute("javax.servlet.request.X509Certificate");
X509Certificate clientCert = certs[0];
%>
<%=clientCert.getSubjectDN()%>
3. It is not true that only keystores in PKSC12 format
work as mentioned in mail archive. JKS is working
well.
4. To work CLIENT-CERT authorization using OpenSSL is
enough to import:
 a) CA cert. to JDK keystore
($JAVA_HOME/jre/lib/security/cacerts)
 b) CA cert. to Tomcat keystore, as described in mail
archive. You do not need to import client certificates
to the keystores.
That'all :)
Well, you should look at the authenticator.SSLAuthenticator code, as 
well as realm.RealmBase and other realm implementations.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added just
theRemoteAddrValve  deny valve. Same thing, everyone can connect. Attached
is catalina.out from the startup. There are some errors. I looked on the web
and all I can find is to reload from scratch. This is a brand new install.
Nothing has been changed except for my one added line?

John



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 9:11 AM
To: Tomcat Users List
Subject: RE: Restrict to specific IP's



Hi,

>deny="132.24.195.76"/>
>RESULT: No one is denied access. User at 132.24.195.76 can get to
>132.24.195.18:8080 and access manager

Very strange: I can't reproduce what you're seeing.  On a brand new
tomcat 5.0.19 installation, I just added a RemoteAddrValve to deny one
of my PCs access, and restarted tomcat.  When I try to access the server
from that PC (and no others), I get HTTP 403 (Forbidden), as designed
and expected.  I haven't tested the allow functionality.

>What am I doing wrong?

I'm not sure.  Are there other errors in the startup logs that are
preventing the server from processing the Valve directive, maybe?  You
can also enable the AccessLogValve so you can see the response code: you
should see 403s for denied requests.

Unfortunately the relevant code
(http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
share/org/apache/catalina/valves/RequestFilterValve.java?rev=1.3&view=ma
rkup) doesn't seem to have much logging.  But if you're still having
trouble, then you have the option of downloading the source, adding
logging there, and rebuilding tomcat for your own debugging.

Yoav Shapira



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]

Tue Mar  2 09:41:31 EST 2004
# cat catalina.out |more
Mar 2, 2004 9:41:03 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Mar 2, 2004 9:41:04 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3890 ms
Mar 2, 2004 9:41:04 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 2, 2004 9:41:04 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Mar 2, 2004 9:41:04 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 2, 2004 9:41:04 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Mar 2, 2004 9:41:04 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5
.0.19/conf/Catalina/localhost/admin.xml
Mar 2, 2004 9:41:07 AM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Mar 2, 2004 9:41:07 AM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Mar 2, 2004 9:41:08 AM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Mar 2, 2004 9:41:12 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5
.0.19/conf/Catalina/localhost/balancer.xml
Mar 2, 2004 9:41:12 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5
.0.19/conf/Catalina/localhost/manager.xml
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:/usr/local/jakar
ta-tomcat-5.0.19/webapps/ROOT
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:/us
r/local/jakarta-tomcat-5.0.19/webapps/jsp-examples
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL fil
e:/usr/local/jakarta-tomcat-5.0.19/webapps/servlets-examples
Mar 2, 2004 9:41:14 AM org.apache.catalina.core

  1   2   >