RE: Multiple Realms and JSP tags

2002-09-19 Thread Miguel Angel Mulero Martinez

Include the  inside the context of each webapp.

-Mensaje original-
De: Jean-Baptiste Onofré (Nanthrax) [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 20 de septiembre de 2002 9:12
Para: [EMAIL PROTECTED]
Asunto: Multiple Realms and JSP tags

Hello all,

i have two questions :

- how can i define a Realm foreach webapps ? Example :
i have a PostgreSQL JDBC Realm used by webapp A
i would like to have another MySQL JDBC Realm used by webapp
B
- where can i find documentation about all standard JSP tags
(jsp:include, etc) ?

Best regards
--
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://lug-beziers.org
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




AW: How can I achieve thread safe for context attributes?

2002-09-19 Thread Ralph Einfeldt


synchronized (cxt) {
  CurrentUsers cs = 
(CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
  String user = (String)session.getAttribute(WebKeys.UserID);
  cs.remove(user); // or other modification
  // cxt.setAttribute(WebKeys.CurrentUsers, cs); 
  // This one is not needed, as cs is just a reference to 
  // the object that is stored in the context.
  // You only need this if you want to replace an object in 
  // the context with a different object. 
}

> -Ursprüngliche Nachricht-
> Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. September 2002 23:27
> An: [EMAIL PROTECTED]
> Betreff: How can I achieve thread safe for context attributes?
> 
> 
> 
> I have an attribute stored in the servlet context scope. 
> Various sessions can access it at any giving moment. It must be 
> thread safe. How can achieve thread safe?
> 
>   CurrentUsers cs = 
> (CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
>   String user = (String)session.getAttribute(WebKeys.UserID);
>   cs.remove(user); // or other modification
>   cxt.setAttribute(WebKeys.CurrentUsers, cs);
>  
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




AW: Multiple Realms and JSP tags

2002-09-19 Thread Ralph Einfeldt


http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html

> -Ursprüngliche Nachricht-
> Von: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 20. September 2002 09:12
> An: [EMAIL PROTECTED]
> Betreff: Multiple Realms and JSP tags
> 
> - where can i find documentation about all standard JSP tags
>   (jsp:include, etc) ?
> 

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




Multiple Realms and JSP tags

2002-09-19 Thread Jean-Baptiste Onofré

Hello all,

i have two questions :

- how can i define a Realm foreach webapps ? Example :
i have a PostgreSQL JDBC Realm used by webapp A
i would like to have another MySQL JDBC Realm used by webapp B
- where can i find documentation about all standard JSP tags
(jsp:include, etc) ?

Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://lug-beziers.org
[EMAIL PROTECTED]

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




AW: two instances of tomcat (in diferent ports) on the same machi ne

2002-09-19 Thread Ralph Einfeldt

We install different versions of tomcat like this:

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.1.10

For each site we have something like this:

/www/online/
  /log
dirctory for the log file
  /conf
web.xml
server.xml
  and other files that contain the site specific setup for tomcat
  (tailored versions of the files that are provided by 
   tomcat)
  make shure that the combination of IP and port are unique for
  each instance of tomcat. 
...
  /work
Directory where tomcat stores the genared files and classes
  /webapps
 Directories for the contexts
  /bin
start.sh
  Script that calls the tomcat version that we want to use 
  for this site with the environment for this site:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-4.0.3
  CATALINA_BASE=/www/online/



> -Ursprüngliche Nachricht-
> Von: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. September 2002 23:58
> An: 'Tomcat Users List'
> Betreff: RE: two instances of tomcat (in diferent ports) on the same
> machi ne
> 
> 
> On Thu, 2002-09-19 at 14:52, Turner, John wrote:
> > 
> > Yes, this is absolutely possible.  I have 13 instances 
> (Tomcat 3.1) running
> > on a single server at the moment.
> > 
> > You will need a different server.xml for each, a different 
> work directory
> > for each, and each must be on its own connector port 
> (whichever connector
> > you choose to use).  At least, that is how it is set up on 
> my server.
> > 
> > John
> 
> How do you have multiple server.xmls? Do you use the same startup
> script?  Did you use a specific How-To?
> 
> Thanks,
> 
> Ben Ricker
> Wellinx.com
>  
> > > -Original Message-
> > > From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, September 19, 2002 3:48 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: two instances of tomcat (in diferent ports) on the 
> > > same machine
> > > 
> > > 
> > > How can I achieve this? Is it possible?
> > >  
> > > .:| Christian J. Dechery
> > > .:| FINEP - Depto. de Sistemas
> > > .:| [EMAIL PROTECTED]
> > > .:| (21) 2555-0332
> > > 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 

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




Re: installing and running tomcat 4.1 on linux

2002-09-19 Thread Kwok Peng Tuck

Yeah, there is a start up script in /etc/init.d/ , but on some systems 
it doesn't add itself using chkconfig.
You can check if it has done so using /sbin/chkconfig --list | more
Look for tomcat4.
If you want it to autostart during bootup,  do this /sbin/chkconfig 
--add tomcat4
then start it for runlevel 3,4,5 using : /sbin/chkconfig --345 tomcat4 on
This make sure tomcat starts up at the runlevels. I'm not sure if run 
level 2 should be included but it works for me.
0,1,6 is reserved.
I can't  remember where tomcat dumped its stuff, but you can take a look 
at /etc/init.d/tomcat4 to see where it is the binaries are located.
Good luck




Ben Walding wrote:

> I haven't used 4.1 as an RPM, but with 4.0 it was just a matter of
>
> service tomcat4 start
>
> Most of the files live in /var/tomcat4 if I remember correctly.
> Check out /etc/init.d/tomcat4 for more details
> Mark Vovsi wrote:
>
>> Hi all,
>>
>> I've installed and used Tomcat on Windows for a couple of years now 
>> with no problems, but now I'm trying to run Tomcat on Linux and 
>> really have no clue as to what to do. I'm a Linux newbie. I've 
>> installed Tomcat on my box using the RPM manager, and don't really 
>> know what to do next. The tomcat4 user was created, but I can't 
>> located the startup.sh files. Where am I supposed to look? To my 
>> surprise I couldn't find documentation anywhere on how to run Tomcat 
>> 4.1 on Linux. I'm using jdk1.4. Thanks in advance.
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>
>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>



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




RE: Dumb Question ../servlet/com.justatest.test.MyServlet error

2002-09-19 Thread Miguel Angel Mulero Martinez

Maybe the InitSnoop.java don't start with "package com.justatest.test;"


-Mensaje original-
De: John-Paul Delaney [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 20 de septiembre de 2002 12:43
Para: [EMAIL PROTECTED]
Asunto: Dumb Question ../servlet/com.justatest.test.MyServlet error

Hello List...

I've created the directory path:
 webapps/jat/WEB-INF/classes/com/justatest/test/

but I get an error when I try to run the oreilly servlet from URL:
http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop


The same servlet will run ok from URL:
http://localhost:8080/jat/servlet/InitSnoop

The exception is:
Cannot allocate servlet instance for
path /jat/servlet/com.justatest.test.InitSnoop

cause:
lang.NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name:
InitSnoop)

Any suggestions on what I'm doing wrong would be appreciated,

thanks
/j-p.


JUSTATEST Art Online
www.justatest.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Dumb Question ../servlet/com.justatest.test.MyServlet error

2002-09-19 Thread John-Paul Delaney

Hello List...

I've created the directory path:
 webapps/jat/WEB-INF/classes/com/justatest/test/

but I get an error when I try to run the oreilly servlet from URL:
http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop


The same servlet will run ok from URL:
http://localhost:8080/jat/servlet/InitSnoop

The exception is:
Cannot allocate servlet instance for 
path /jat/servlet/com.justatest.test.InitSnoop

cause:
lang.NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name: InitSnoop)

Any suggestions on what I'm doing wrong would be appreciated,

thanks
/j-p.


JUSTATEST Art Online
www.justatest.com

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




SSL ApacheServer-Tomcat

2002-09-19 Thread Günter Kukies

Hi,

I have a Apache Server 1.3.20 and a Tomcat 4.03 and mod_jk from Johns HowTo running on 
the same box. Open_SSL and mod_jk is setup for Apache Server. For Tomcat a keystore 
with a Testcertificate is available. If tomcat is running alone :8443 the SSL 
connection to my webapp is running well. I cant get ApacheServer serving over :443 my 
webapp. Apache Server serves my webapp over :80 well. Is it possible to let know 
Apache Server the keystore from tomcat? I'm using an auto mod_jk.conf generated by 
Tomcat - Listener. I know that the sekret should be in the mod_jk.conf. How to setup 
the server.xml to generate a auto mod_jk.conf with SSL information about my webapp.

Thanks

Günter kukies



error page for jsp

2002-09-19 Thread Dmitry Melekhov

Hello!

I can't  understand how works directive error-page in web.xml for
jsps.

I added following in web.xml:

  
java.lang.NullPointerException
/is/errorpge.jsp
  

I case of exception IE says that page is not found, i.e. there ie no 
redirect to error page.


If I add page errorPage = ..  to .jsp file, all work OK.

Could someone explain me what I'm doing wrong ?
Do I need to add errorPage to every jsp?
I'd like to write this in web.xml :-)



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




Re: Building Tomcat from source

2002-09-19 Thread Bill Barker

Assuming that Jakarta-Ant has already been downloaded, and $ANT_HOME/bin is
in your PATH, then all you need to do is:

$ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co
jakarta-tomcat-4.0
$ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r
tomcat_4_branch jakarta-tomcat-jasper
$ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co
jakarta-tomcat-connectors
$ cd jakarta-tomcat-4.0
$ ant download
$ ant


"Fenlason, Josh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm trying to build Tomcat 4.1.11 from the source in cvs.  I tried following
BUILDING.txt, but I managed to mess it up.  What all do I need to checkout
from cvs?  I'm not very familiar with cvs.  Is there anything special I need
to with cvs?  Any help would be greatly appreciated.  Thanks in advance.
,
Josh.





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




RE: Native parts of connectors ?

2002-09-19 Thread Chakradhar Tallam

have a look in this link

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

-Original Message-
From: Vjeran Marcinko [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 September 2002 3:37 PM
To: [EMAIL PROTECTED]
Subject: Native parts of connectors ?


Hi.
Can someone point me to place where one can find compiled native parts of
Tomcat connectors for Linux/Win ? I'm mostly intrerested in jk and jk2
connector. I noticed jakarta-tomcat-connectors folder, but it has been empty
for months.

Thanx,
Vjeran



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Native parts of connectors ?

2002-09-19 Thread Vjeran Marcinko

Hi.
Can someone point me to place where one can find compiled native parts of Tomcat 
connectors for Linux/Win ? I'm mostly intrerested in jk and jk2 connector. I noticed 
jakarta-tomcat-connectors folder, but it has been empty for months.

Thanx,
Vjeran



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




Re: Tomcat performance problems after a while

2002-09-19 Thread Bill Barker

Well, half right :-).

The 3.2.x line is known to have memory leaks.  Upgrading to Tomcat 3.3.1 is
probably enough.  For web-apps that don't require the Servlet-2.3/JSP-1.2
features, it is usually at least as fast as TC 4.0.x.  TC 4.1.x has
optimizations in the JSP compiler that are unlikely to be back-ported to the
3.3 line, so heavy JSP sites will win here.

As always, your mileage may very depending on what your web-app actually
does.  There is no such thing as one-size-fits-all.

"Kwok Peng Tuck" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Consider moving to tomcat 4, it is faster than tomcat 3. I believe
> tomcat 4 was redesigned for better performance. Also maybe there is some
> code segement in the jsp that is eating up a lot of time, so maybe you
> could get someone (if you're not the author of the page) to check it out.
>
> Rafael Angarita wrote:
>
> >My webserver is stopping  answering requests or answers too slowly
> > after a while running.
> >If  a http request is sent  to tomcat directly it's answered
> > quickly but the same request to apache takes a lot of time to be
> > answered (request a .jsp file).
> >If  the tomcat process is  stopped and started again (the apache is
> > not stopped), the requests to apache are answered quickly.
> >It looks like something is happening inside the java process that
> > produces a poor performance after a while, but I have no clue, how to
> > look inside the java, it could be a configuration issue or  an
> > application issue  but all  I  can see  is not helpful to establish
> > the main reason
> >Any suggestion?
> >The environment:
> >- Solaris 8
> >- Apache 1.3.26
> >- tomcat 3.2.4
> >- java 1.2
> >- TheadPool Max = 600
> >
> >Thanks is advance,
> >





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




Ref: Bugzilla Bug 12384 JasperException with nested iterate tags

2002-09-19 Thread Chakradhar Tallam

Is this bug fixed yet! Looks like it is not with the release available at
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/

Please make the latest binary available at the above site.

-
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED]
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference




RE: JSP Help

2002-09-19 Thread Sexton, George

The solution I found was to flush() the print writer on the included servlet
but not close it.

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 5:50 PM
To: Tomcat Users List
Subject: JSP Help


This might not be the correct forum - but I am porting my application from
Tomcat 3 to Tomcat 4 and I am having trouble with the
requestDispatch.include ( r, r ) method.  What happens is thet the
includedjsp file gets included above the output from the parent jsp page.

The parent jsp creates the HTML  with a servlet action handler
and the include directive inserts the HTML controls that are appropriate for
the situation into the surrounding HTML form.

As the page is rendered by Tomcat 4, the HTML controls are not within the
scope of the HTML  and the application no longer works.

Any help would be appreciated.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Regarding Resources across contexts

2002-09-19 Thread shanmugampl

All my jar files are in the CATALINA_HOME/common/lib directory. The 
problem is in putting the TLD files in position.Say i have two contexts 
A and B. In both i use the same set of tags. Currently i have the tld 
files in both the contexts and the corresponding uri mapping in the 
web.xml file present in the context.  The way i would like to have this 
is such that i have my tld files at only one place (in A or B or at a 
common place) and access it in both the contexts. Is there a  way to do 
this.We have a global web.xml file in tomcat. Can i add my uri mapping 
there. If yes to which context will the mapping be resolved. Are there 
other ways by which i can achieve this

Thanks
Shanmugam.PL

Miguel Angel Mulero Martinez wrote:

>The common files to all applications must be at CATALINA_HOME/lib
>
>
>-Mensaje original-
>De: shanmugampl [mailto:[EMAIL PROTECTED]]
>Enviado el: jueves, 19 de septiembre de 2002 14:14
>Para: [EMAIL PROTECTED]
>Asunto: Regarding Resources across contexts
>
>Dear All,
>
>I am using Tomcat 4.1.10. I am in the process of developing jsp
>pages using custom tags. For this i have copied the required jars into
>my application context and put the tld files in the META-INF directory.
>Everything works fine. Similar to this application I have other
>applications that use the same custom tags. The problem here is i have
>to duplicate the tld files and the jar files in all my applications. I
>have moved the jar files to the /common/lib/ directory to
>avoid duplication. Is there a way by which i can have my tld files at a
>common place and access it across my context/application?. Can i have my
>tld files in one of the context and give the corresponding mapping in
>the web.xml file present in the /conf/web.xml and use this
>mapping across all contexts?. If yes can any one suggest the way to
>achieve it.
>
>Thanks
>Shanmugam.PL
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>



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




Problems with HttpServeletRequest.getParameter()

2002-09-19 Thread Jerry Seutter

Hello,

I have a problem relating to the HttpServeletRequest object in JSP's.
I tried searching the archives but the search function there sucks
dead bunnies.  Gritty details afterwards, but first the gist of the
problem:

I have a JSP that I thought was working but I left it alone for a few
weeks and now it doesn't want to work.

Here is the jsp code:

<%
String temp = request.getParameter("user"); //Offending line of code.
out.println(request.getCharacterEncoding());
out.println(request.getPathInfo());
%>
<%
//Test.test1(out);
  out.println("Hello there");
//GalleryViewBuilder.buildView(out, pi); 
%>

Now, if I run with the first line of code in, I get an http error code 500,
Internal Server Error page.  If I comment it out the page will run just
fine.  Why can't I call the getParameter() method on the HttpServeletRequest
object?

Accompanying information:
Tomcat version 4.0.4
j2sdk version 1.4.0
j2sdkee version 1.3.1
Debian Linux

Log information:

2002-09-19 14:31:48 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 
exception
javax.servlet.ServletException: org/apache/jasper/runtime/JspException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
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.access$000(ApplicationFilterChain.java:98)
at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at org.apache.jsp.GalleryViewPage$jsp._jspService(GalleryViewPage$jsp.java:105)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

Re: installing and running tomcat 4.1 on linux

2002-09-19 Thread Ben Walding

I haven't used 4.1 as an RPM, but with 4.0 it was just a matter of

service tomcat4 start

Most of the files live in /var/tomcat4 if I remember correctly.
Check out /etc/init.d/tomcat4 for more details
Mark Vovsi wrote:

> Hi all,
>
> I've installed and used Tomcat on Windows for a couple of years now 
> with no problems, but now I'm trying to run Tomcat on Linux and really 
> have no clue as to what to do. I'm a Linux newbie. I've installed 
> Tomcat on my box using the RPM manager, and don't really know what to 
> do next. The tomcat4 user was created, but I can't located the 
> startup.sh files. Where am I supposed to look? To my surprise I 
> couldn't find documentation anywhere on how to run Tomcat 4.1 on 
> Linux. I'm using jdk1.4. Thanks in advance.
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




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




installing and running tomcat 4.1 on linux

2002-09-19 Thread Mark Vovsi

Hi all,

I've installed and used Tomcat on Windows for a couple of years now with 
no problems, but now I'm trying to run Tomcat on Linux and really have 
no clue as to what to do. I'm a Linux newbie. I've installed Tomcat on 
my box using the RPM manager, and don't really know what to do next. The 
tomcat4 user was created, but I can't located the startup.sh files. 
Where am I supposed to look? To my surprise I couldn't find 
documentation anywhere on how to run Tomcat 4.1 on Linux. I'm using 
jdk1.4. Thanks in advance.


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




Re: IE browser doesn't give error

2002-09-19 Thread Robert Sanders

Actual, in IE go to Tools > Internet Options > Advanced .  Find and 
uncheck the boxes that say "Show friendly HTTP error messages" and "Show 
friendly URLs".  

For a different solution, setup Tomcat to use a custom error page.  Then 
ensure that the error page inserts a lot of "garbage" text (can be in an 
HTML comment), there is some magic value, I think something like 512 
bytes or such, if the page is bigger than this it will tend to over ride 
IE's not so friendly error messages.

David Cassidy wrote:

> flippant answer but ...
>
> Don't use IE :)
>
> unless you have the source code of IE you're a little buggered
>
> David
>
>
> randie ursal wrote:
>
>> hi,
>>
>>   sorry for asking about this but i still haven't found a solution on 
>> why this is happening.
>>
>>   i try to make an abnormal scenario on my web application, here it is:
>>
>>   I first access my web application and do some operation, then in 
>> the middle of my
>>   transaction i disconnect the network cable to see if an error would 
>> be displayed by IE
>>   browser if i click on a link that needs to request to my servlet. 
>> This doesn't seem
>>   to work normally, because if i'm going to click on a button which 
>> is basically an HTML
>>   Formthe IE browser wont display its error page like  display 
>> that network is down or
>>   DNS unavailable.   But if i click on links that is using "href" to 
>> point to its server
>>resource that IE browser can give the error message.
>>
>>   any idea about this, and any possible solution?
>>
>>   p.s  really need it as soon as possible.
>>
>> thanks a lot in advance
>> randie
>>
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>> tsdok
>>
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>  
>>
>
>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>
>





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




Re: Tomcat performance problems after a while

2002-09-19 Thread Kwok Peng Tuck

Consider moving to tomcat 4, it is faster than tomcat 3. I believe 
tomcat 4 was redesigned for better performance. Also maybe there is some 
code segement in the jsp that is eating up a lot of time, so maybe you 
could get someone (if you're not the author of the page) to check it out.

Rafael Angarita wrote:

>My webserver is stopping  answering requests or answers too slowly 
> after a while running.
>If  a http request is sent  to tomcat directly it's answered 
> quickly but the same request to apache takes a lot of time to be 
> answered (request a .jsp file).
>If  the tomcat process is  stopped and started again (the apache is 
> not stopped), the requests to apache are answered quickly.
>It looks like something is happening inside the java process that 
> produces a poor performance after a while, but I have no clue, how to 
> look inside the java, it could be a configuration issue or  an 
> application issue  but all  I  can see  is not helpful to establish 
> the main reason
>Any suggestion? 
>The environment:
>- Solaris 8
>- Apache 1.3.26
>- tomcat 3.2.4
>- java 1.2
>- TheadPool Max = 600
>
>Thanks is advance,
>



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




jasper with tomcat 4.0.3 Vs jasper with tomcat 4.1.10

2002-09-19 Thread Chakradhar Tallam

hi all,

jasper with tomcat 4.0.3 executes the following code properly when there is
an iterate inside iterate

 
 
 
 
 <%= seqCount %>
 
 
 "
styleClass="entryField" styleId="title" onkeypress="checkEnter(event);">
 <% String titleKey; %>
 
 <% titleKey = "Title." + titleOption; %>
 
 
 
 
 
 <% seqCount = seqCount + 1; %>
 
 

where as rewritten jasper with tomcat 4.1.10 gives an error

Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\TN\Book_jsp.java:544: _jspx_titleOption_1 is
already defined in
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSer
vletResponse)
  java.lang.Object _jspx_titleOption_1 =
titleOption;
  ^

Is this a bug in new jasper or do i need to use the iterate tags in some
other way.

Thanks in advance.
-
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED]
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference




JSP Help

2002-09-19 Thread Ray Madigan

This might not be the correct forum - but I am porting my application from
Tomcat 3 to Tomcat 4 and I am having trouble with the
requestDispatch.include ( r, r ) method.  What happens is thet the
includedjsp file gets included above the output from the parent jsp page.

The parent jsp creates the HTML  with a servlet action handler
and the include directive inserts the HTML controls that are appropriate for
the situation into the surrounding HTML form.

As the page is rendered by Tomcat 4, the HTML controls are not within the
scope of the HTML  and the application no longer works.

Any help would be appreciated.


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




Re: two instances of tomcat (in diferent ports) on the samemachine

2002-09-19 Thread Matthew Hannigan

On Thu, Sep 19, 2002 at 01:06:40PM -0700, Dan Lipofsky wrote:
> We have several developers using the same Solaris machine.
> Each has their own install of tomcat in their home directory,
> and of course their own setting for CATALINA_HOME
> in their .profile file.  We have no problems with it.
> - Dan
> 
> >
> > I tried that... but I get some kind of conflict with CATALINA_HOME...


How to do this in the docs.  You don't use CATALINE_HOME,
you use CATALINA_BASE.

And have your own conf, logs, temp, webapps, work
under CATALINA_BASE.

Mat

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




Re: integrate tomcat with IIS (using JK2) and share user authentication information?

2002-09-19 Thread Matthew Hannigan

On Thu, Sep 19, 2002 at 02:10:58PM -0400, Alvin Wang wrote:
> Or thinking the other way around, if we use tomcat to do the authentication,
> is there a way that we can prevent IIS from loading some document until
> login has been authenticated by tomcat?

Only have the sensitive stuff served up by tomcat.

Let IIS do the static and uninteresting stuff only.

Matt

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




AW: AW: : Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Stefan Groschupf

>>From the files listed in my last email, do you mena to say it is not
proper
>combination...? Please clarify.

Not all, but this depends on your ejb application.
When I have to port a application in to jboss. I normal copy the hole
default/deploy directory. Delete the content and start try to copy the old
files back in the deploy folder.
Start with tomcat & ejb & database stuff and of curse your ear and war file.
start -> trace log -> add needed services -> start ...
Again, if it's a production system please read the jboss quick start guide.
I can tell you exactly what you need and _how to config_ until I don't know
you ejb application.

Stefan




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




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread John Moore


Milt,

I posted earlier (9/12) about a problem that we ran into with 
Apache/Tomcat having one user login and get another user's data.   Look 
for "Killing Apache Processes Connected to Tomcat via mod_jk (Ajp13)" 
for a little background.  

In the logs we found the error where USER1 called a jsp via POST that 
validated and redirected to a different servlet (GET).   The parameters 
on the GET URL were not for the person that just logged in but USER2 who 
had logged in earlier and was still on the system performing other 
requests.To say the least my world was rocked  (in a bad way).   
They are SSL connections through different ISP's so I'm throwing out 
caching proxies.

The USER1 didn't have jsessionid attached to his URL on this POST (we 
have cookies=false and encodeURL everywhere but it still happened).  So 
now we added a hard coded ;jsessionid= on the first page to ensure it's 
there.  I hadn't put too much thought into session hijacking.Now I 
am just hope and pray that I don't get another incident.   I have asked 
over and over and have never had anyone respond or appear to have a 
similar problem.  

We are on Apache 1.3.26 w/ ajp13 and TC 4.0.4 and had been killing off 
apache processes that get stuck in a 'W' state.

John Moore


Milt Epstein wrote:

>On Thu, 19 Sep 2002, Jason Koeninger wrote:
>
>>I've been doing multi-threaded code for a long time, and while I'm
>>not going to say there's no way I made a mistake, I am going to say
>>that it's unlikely it's a threading issue.  In this particular
>>application, I do session management in a single servlet, and all I
>>do is log the user on and place the user object in the session.
>>
>>I'll double-check it, but that's how it was originally written.  Any
>>other thoughts?
>>
>
>I did say "could be" -- it is the most obvious thing that comes to
>mind.
>
>Similarly, it could be something wrong with those versions of Tomcat
>and/or mod_jk, but by the same token, if there were some such
>obvious/basic problem with it, you'd think it'd be pretty well known.
>But you might check the archives of this list to see if others have
>reported such problems with them.
>
>Is that the latest version of the 3.3 branch?  If not, you could try
>to upgrade.
>
>In fact, if feasible, you might just upgrade to an entirely new
>version, and see if the problem persists.  There's a 4.0 branch (up to
>4.0.4) and a 4.1 (up to 4.1.11 already or soon).  Both those versions
>implement the latest servlet/jsp specs (2.3/1.2) (3.2 and 3.3
>implement 2.2/1.1).  And the ajp12 protocol (I think that means
>version 1.2 of the AJP protocol) has been replaced by ajp13 (likewise,
>version 1.3 of the AJP protocol).
>
>
>>On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:
>>
>>>On Thu, 19 Sep 2002, Jason Koeninger wrote:
>>>
Has anyone seen sessions move between users running Tomcat 3.3.1?
I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
the ajp12 protocol, and it sounds from user reports as if sessions
are moving between users.  At first, I thought it had something to
do with proxies caching the pages, but the last report I got rules
out a proxy as the users were on totally independent networks.

>>>This could be a multi-threading issue -- i.e. some of your code may
>>>not be thread-safe.
>>>
>>>Milt Epstein
>>>Research Programmer
>>>Integration and Software Engineering (ISE)
>>>Campus Information Technologies and Educational Services (CITES)
>>>University of Illinois at Urbana-Champaign (UIUC)
>>>[EMAIL PROTECTED]
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>
>Milt Epstein
>Research Programmer
>Integration and Software Engineering (ISE)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



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




javax.servlet.request.cipher_suite and javax.servlet.request.key_size attributes not being set on HTTPS connection?

2002-09-19 Thread Jonathan Eric Miller

It used to be the case that javax.servlet.request.cipher_suite and
javax.servlet.request.key_size attributes would be set by Tomcat to
something similar to the following for HTTPS connections. I just noticed
that this no longer seems to be the case?

javax.servlet.request.cipher_suite: SSL_RSA_WITH_RC4_128_MD5
javax.servlet.request.key_size: 128

I'm using Tomcat 4.1.10 (with CoyoteConnector) with J2SE 1.4.1.

Jon


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




HEAD request to JSP stuck in a 'W' state

2002-09-19 Thread John Moore



How does a HEAD request get stuck in a 'W' state for over 2000 seconds. 
  Running Sun Solaris 8, Apache 1.3.26, mod_jk (4.0.4), Tomcat 4.0.4, 
jvm 1.3.1_04-b2.   This call is from the load balancer to confirm that 
the app is still available.Subsequent (and prior) requests were 
successfully handled and released.  

from /server-status
Srv PID Acc   M CPU SSReq  Conn Child Slot  Host  VHost 
 Request
2-0 899 0/1/1 W 0.07 2395 0   0.00.01  0.01 192.168.62.4 
webstaff.pdsi-software.com HEAD /webstaff/login.jsp HTTP/1.0


Thanks,
John Moore



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




RE: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Dmitry Letin

Hi Robert,

In my config files I of course use real domains.
I did try to use only workers2.properties files for configuration.
It seems that virtual host part is ignored, so that these are the same when
jk2 selects worker:



# The virtual host part seems to be ignored anyway
# [uri:www.vhost1.com:80/*.jsp] - not working as well
[uri:www.vhost1.com/*.jsp]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
# [uri:www.vhost2.com:80/*.jsp] - not working as well
[uri:www.vhost2.com/*.jsp]
worker=ajp13:localhost:8013


My problem comes from the fact that the virtual host part in uri seems to be ignored
when jk2 selects a worker, and only url path is cheched by jk2 code. Because that part 
is the same
it is dispached to the same tomcat instance.

I do have proper entries in my /etc/hosts file (I'm on Linux) and I did try this as 
well

[uri:142.54.3.10:80]
alias=www.vhost1.com:80

It did not help.

I promise to write a how-to on this if I manage to solve this problem :-)
But I have doubts I can solve it :-(


Dmitry




-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 6:32 PM
To: Tomcat Users List
Subject: Re: mod_jk2, virtual hosts, JkUriSet

Forgot to mention,

Here's a snip from the default workers2.properties file from the src

[uri:127.0.0.1:8003]
info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
test it
alias=myVirtualHost:8003

On a windows machine the hosts file is in c:\WinNT\system32\drivers\etc
You'll also have to define the connector in the server.xml file.






"Robert L Sowders" <[EMAIL PROTECTED]>
09/19/2002 02:48 PM
Please respond to "Tomcat Users List"


To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject:Re: mod_jk2, virtual hosts, JkUriSet

H,

looks like you got some funny domains for those VirtualHosts as well as
some nonstandard JkUriSet statements.  You probably have a problem with
one or both.

Others have been successful.
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg66171.html

Make your virtual hosts as fully qualified domains and make your JkUriSet
commands like the example.  Leave the port selection up to the
workers2.properties file.

Regardless of how you do it, after you are successful a nice step by step
How To would be appreciated by all.

rls





"Dmitry Letin" <[EMAIL PROTECTED]>
09/19/2002 01:24 PM
Please respond to "Tomcat Users List"


To: <[EMAIL PROTECTED]>
cc:
Subject:mod_jk2, virtual hosts, JkUriSet

Hi,

Has anybody managed to successfully connect apache virtual hosts to
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives

and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start
when
I need to connect to two separate instances.

I did check docs in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I
found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all?

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker
ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



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





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





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

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




Re: default servlet?

2002-09-19 Thread Jacob Kjome

Hello Jonathan,

The container provides the default servlet for your webapp.  In fact,
the default servlet is what is responsible for returning static files
such as .xml, .html, and .png files (to name just a few).

You would have to set up a servlet mapping of something like "/*" in
order to have your own servlet be the default servlet.  I think that
is legal, but it isn't overly useful.  Let the container manage those
kinds of details and create a mapping to something like "/myservlet"
or map your servlet to a suffix such as "*.srv" (or whatever you
want).  That way, you don't impose on all the other static files and
JSP's and anything else that exists in a standard webapp.

Jake

Thursday, September 19, 2002, 4:07:26 PM, you wrote:

JS> The 2.3 API says :

JS> A string containing only the '/' character denotes the default servlet.
JS> The servlet path is the request URI minus the context. 

JS> I cannot find any other mention of "default servlet"

JS> I have many servlets. How do I make one of them the default for my application?

JS> jonathan

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: AW: : Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Manoj Kithany

Hi Stefan,

Thanks again.

I am using Apache as Web Server, Tomcat as Application Server (for 
JSP/Servlets) and JBoss for EJB Container.

>From the files listed in my last email, do you mena to say it is not proper 
combination...? Please clarify.

THANKS for your time!

Manoj G. Kithany




>From: "Stefan Groschupf" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: AW: : Simple Question on (Tomcat+JBoss) and Apache
>Date: Fri, 20 Sep 2002 00:33:35 +0200
>
> >counter-service.xml
>
>auto keys
> >ejb-management.jar
>enterprice beans, you some?
>
> >hsqldb-service.xml
>you use hypersonic sql?
>
> >jboss-local-jdbc.rar
> >jboss-xa.rar
> >jbossmq-destinations-service.xml
> >jbossmq-service.xml
> >jca-service.xml
>Jboss security.
> >jms-ra.rar
> >jms-service.xml
>you use jms?
> >jmx-ejb-adaptor.jar
>you use ejbs?
> >jmx-ejb-connector-server.sar
> >jmx-html-adaptor.sar
>you want that someone can remote config xour machine on port 8082?
> >jmx-rmi-adaptor.sar
>or via rmi?
>
> >mail-service.xml
>you send mails?
>
> >properties-service.xml
>jboss application property service
> >scheduler-service.xml
>..
>
>tomcat4-service.jar
>tomcat4-service.xml
> >tomcat4-service.xml.save
>delete it!
> >user-service.xml
>
>If that's is a production system, please read the jboss beginner pdf @
>sourceforge.net
>Htht
>Stefan
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Short, Dave

Thanks, I'll give it a try and report back.

-Original Message-
From: Dmitry Letin [mailto:[EMAIL PROTECTED]]
Sent: September 19, 2002 3:31 PM
To: Tomcat Users List
Subject: RE: mod_jk2, virtual hosts, JkUriSet


The TOMCAT_1 Connector uses port 8009 of cource - copied from wrong place.

-Original Message-
From:   Dmitry Letin
Sent:   Thu 19/09/2002 6:25 PM
To: Tomcat Users List
Cc: 
Subject:RE: mod_jk2, virtual hosts, JkUriSet
Hi Dave,
I use something like this:

Relevent parts of config files.

***

TOMCAT_1:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8009
channelSocket.maxPort=8009


# end of jk2.properties

***

Tomcat_2:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8013
channelSocket.maxPort=8013

# end of jk2.properties

***

httpd.conf (I use apache2 - for apache1.3 - you'll need AddModule mod_jk2.c
as well):

LoadModule jk2_module modules/mod_jk2.so

***

workers2.properties:

#
# workers2.properties
[logger]
level=INFO

# Alternate file logger
[logger.file:0]
level=INFO
file=/usr/local/apache2/logs/jk2.log

# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache2/logs/jk2.shm
size=1048576

[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=Second load balancer.
debug=0

[lb:lb_2]
info=Third load balancer.
debug=0


# vhost1 socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
debug=0
tomcatId=localhost:8009
group=lb_1

# vhost2 socket channel, explicitly set port and host.
[channel.socket:localhost:8013]
port=8013
host=127.0.0.1
debug=0
tomcatId=localhost:8013
group=lb_2


[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[ajp13:localhost:8013]
channel=channel.socket:localhost:8013


# Announce a "status" worker
[status:status]

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

# The virtual host part seems to be ignored anyway
#[uri:www.vhost1.com:80/service/en/servlet/*]  might use port as well
[uri:www.vhost1.com/service/en/servlet/*]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
# [uri:www.vhost1.com:80/*.jsp] - not working as well
[uri:www.vhost1.com/*.jsp]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
[uri:www.vhost2.com/*.jsp]
worker=ajp13:localhost:8013


My problem comes from the fact that the "www.vhost2.com" seems to be egnored
when and only /*.jsp is cheched by jk2 code. Because that part is the same
it is dispached to the same tomcat instance.

Dmitry

-Original Message-
From:   Short, Dave [mailto:[EMAIL PROTECTED]]
Sent:   Thu 19/09/2002 5:30 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: mod_jk2, virtual hosts, JkUriSet
Dmitry,

I'm having problems with this as well.  Although, it sounds like you have my
problems figured out (I'm not trying to go to two Tomcats from Apache
virtual hosts, I'm trying to go to just one Tomcat).  So, would you mind
posting your httpd.conf, workers.properties, server.xml and jk2.properties
files?

I'd appreciate it you wouldn't mind.

Thanks

-Original Message-
From: Dmitry Letin [mailto:[EMAIL PROTECTED]]
Sent: September 19, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2, virtual hosts, JkUriSet


Hi,

Has anybody managed to successfully connect apache virtual hosts to
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives
and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), '

AW: : Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Stefan Groschupf

>counter-service.xml

auto keys
>ejb-management.jar
enterprice beans, you some?

>hsqldb-service.xml
you use hypersonic sql?

>jboss-local-jdbc.rar
>jboss-xa.rar
>jbossmq-destinations-service.xml
>jbossmq-service.xml
>jca-service.xml
Jboss security.
>jms-ra.rar
>jms-service.xml
you use jms?
>jmx-ejb-adaptor.jar
you use ejbs?
>jmx-ejb-connector-server.sar
>jmx-html-adaptor.sar
you want that someone can remote config xour machine on port 8082?
>jmx-rmi-adaptor.sar
or via rmi?

>mail-service.xml
you send mails?

>properties-service.xml
jboss application property service
>scheduler-service.xml
..

tomcat4-service.jar
tomcat4-service.xml
>tomcat4-service.xml.save
delete it!
>user-service.xml

If that's is a production system, please read the jboss beginner pdf @
sourceforge.net
Htht
Stefan



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




Re: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Robert L Sowders

Forgot to mention,

Here's a snip from the default workers2.properties file from the src

[uri:127.0.0.1:8003]
info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to 
test it
alias=myVirtualHost:8003

On a windows machine the hosts file is in c:\WinNT\system32\drivers\etc
You'll also have to define the connector in the server.xml file.






"Robert L Sowders" <[EMAIL PROTECTED]>
09/19/2002 02:48 PM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:Re: mod_jk2, virtual hosts, JkUriSet

H,

looks like you got some funny domains for those VirtualHosts as well as 
some nonstandard JkUriSet statements.  You probably have a problem with 
one or both.

Others have been successful. 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg66171.html

Make your virtual hosts as fully qualified domains and make your JkUriSet 
commands like the example.  Leave the port selection up to the 
workers2.properties file.

Regardless of how you do it, after you are successful a nice step by step 
How To would be appreciated by all.

rls





"Dmitry Letin" <[EMAIL PROTECTED]>
09/19/2002 01:24 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:mod_jk2, virtual hosts, JkUriSet

Hi,

Has anybody managed to successfully connect apache virtual hosts to 
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives 

and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start 
when
I need to connect to two separate instances.

I did check docs in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I 
found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker 
ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



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





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





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




RE: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Dmitry Letin

The TOMCAT_1 Connector uses port 8009 of cource - copied from wrong place.

-Original Message-
From:   Dmitry Letin
Sent:   Thu 19/09/2002 6:25 PM
To: Tomcat Users List
Cc: 
Subject:RE: mod_jk2, virtual hosts, JkUriSet
Hi Dave,
I use something like this:

Relevent parts of config files.

***

TOMCAT_1:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8009
channelSocket.maxPort=8009


# end of jk2.properties

***

Tomcat_2:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8013
channelSocket.maxPort=8013

# end of jk2.properties

***

httpd.conf (I use apache2 - for apache1.3 - you'll need AddModule mod_jk2.c as well):

LoadModule jk2_module modules/mod_jk2.so

***

workers2.properties:

#
# workers2.properties
[logger]
level=INFO

# Alternate file logger
[logger.file:0]
level=INFO
file=/usr/local/apache2/logs/jk2.log

# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache2/logs/jk2.shm
size=1048576

[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=Second load balancer.
debug=0

[lb:lb_2]
info=Third load balancer.
debug=0


# vhost1 socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
debug=0
tomcatId=localhost:8009
group=lb_1

# vhost2 socket channel, explicitly set port and host.
[channel.socket:localhost:8013]
port=8013
host=127.0.0.1
debug=0
tomcatId=localhost:8013
group=lb_2


[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[ajp13:localhost:8013]
channel=channel.socket:localhost:8013


# Announce a "status" worker
[status:status]

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

# The virtual host part seems to be ignored anyway
#[uri:www.vhost1.com:80/service/en/servlet/*]  might use port as well
[uri:www.vhost1.com/service/en/servlet/*]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
# [uri:www.vhost1.com:80/*.jsp] - not working as well
[uri:www.vhost1.com/*.jsp]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
[uri:www.vhost2.com/*.jsp]
worker=ajp13:localhost:8013


My problem comes from the fact that the "www.vhost2.com" seems to be egnored
when and only /*.jsp is cheched by jk2 code. Because that part is the same
it is dispached to the same tomcat instance.

Dmitry

-Original Message-
From:   Short, Dave [mailto:[EMAIL PROTECTED]]
Sent:   Thu 19/09/2002 5:30 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: mod_jk2, virtual hosts, JkUriSet
Dmitry,

I'm having problems with this as well.  Although, it sounds like you have my
problems figured out (I'm not trying to go to two Tomcats from Apache
virtual hosts, I'm trying to go to just one Tomcat).  So, would you mind
posting your httpd.conf, workers.properties, server.xml and jk2.properties
files?

I'd appreciate it you wouldn't mind.

Thanks

-Original Message-
From: Dmitry Letin [mailto:[EMAIL PROTECTED]]
Sent: September 19, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2, virtual hosts, JkUriSet


Hi,

Has anybody managed to successfully connect apache virtual hosts to
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives
and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end a

Re[2]: Context path

2002-09-19 Thread Jacob Kjome

Hello rsequeira,

I think you are mistaking getServletContext with getRealPath("/").
The servlet context object is too important to *ever* return null.  It
is only file system operations that will not work when the context is
deployed in a .war file.

Jake

Thursday, September 19, 2002, 1:29:21 PM, you wrote:


rtc> Place an environment entry in the web.xml. This way you can access this
rtc> parameter anywhere, anytime. Don't depend on getContext or
rtc> getServletContext methods. If you had a war file, a getServletContext
rtc> returns null.

rtc> RS



   

rtc>   "Andreas Probst"
 
rtc>  bst.de>   <[EMAIL PROTECTED]>  
 
rtc>cc:
 
rtc>   09/19/02 07:23 AMSubject:  Context path 
 
rtc>   Please respond to   
 
rtc>   "Tomcat Users   
 
rtc>   List"   
 
   

   





rtc> Hi all,

rtc> I need to know the context path of my web app. If I have a

rtc> HttpServletRequest req, I can get
rtc> String contextPath = req.getContextPath();

rtc> Now, what can I do within init()? I havn't got a
rtc> HttpServletRequest there. How do I get the context path?

rtc> Thanks in advance.

rtc> Andreas


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







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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Dmitry Letin

Hi Dave,
I use something like this:

Relevent parts of config files.

***

TOMCAT_1:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8009
channelSocket.maxPort=8009


# end of jk2.properties

***

Tomcat_2:

server.xml:




jk2.properties:

# jk2.properties

[logger]
level=ERROR

# list of needed handlers.
handler.list=apr,channelSocket,request

# Set the default port for the channelSocket
channelSocket.port=8013
channelSocket.maxPort=8013

# end of jk2.properties

***

httpd.conf (I use apache2 - for apache1.3 - you'll need AddModule mod_jk2.c as well):

LoadModule jk2_module modules/mod_jk2.so

***

workers2.properties:

#
# workers2.properties
[logger]
level=INFO

# Alternate file logger
[logger.file:0]
level=INFO
file=/usr/local/apache2/logs/jk2.log

# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache2/logs/jk2.shm
size=1048576

[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=Second load balancer.
debug=0

[lb:lb_2]
info=Third load balancer.
debug=0


# vhost1 socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
debug=0
tomcatId=localhost:8009
group=lb_1

# vhost2 socket channel, explicitly set port and host.
[channel.socket:localhost:8013]
port=8013
host=127.0.0.1
debug=0
tomcatId=localhost:8013
group=lb_2


[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[ajp13:localhost:8013]
channel=channel.socket:localhost:8013


# Announce a "status" worker
[status:status]

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

# The virtual host part seems to be ignored anyway
#[uri:www.vhost1.com:80/service/en/servlet/*]  might use port as well
[uri:www.vhost1.com/service/en/servlet/*]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
# [uri:www.vhost1.com:80/*.jsp] - not working as well
[uri:www.vhost1.com/*.jsp]
worker=ajp13:localhost:8009

# The virtual host part seems to be ignored anyway
[uri:www.vhost2.com/*.jsp]
worker=ajp13:localhost:8013


My problem comes from the fact that the "www.vhost2.com" seems to be egnored
when and only /*.jsp is cheched by jk2 code. Because that part is the same
it is dispached to the same tomcat instance.

Dmitry

-Original Message-
From:   Short, Dave [mailto:[EMAIL PROTECTED]]
Sent:   Thu 19/09/2002 5:30 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: mod_jk2, virtual hosts, JkUriSet
Dmitry,

I'm having problems with this as well.  Although, it sounds like you have my
problems figured out (I'm not trying to go to two Tomcats from Apache
virtual hosts, I'm trying to go to just one Tomcat).  So, would you mind
posting your httpd.conf, workers.properties, server.xml and jk2.properties
files?

I'd appreciate it you wouldn't mind.

Thanks

-Original Message-
From: Dmitry Letin [mailto:[EMAIL PROTECTED]]
Sent: September 19, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2, virtual hosts, JkUriSet


Hi,

Has anybody managed to successfully connect apache virtual hosts to
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives
and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker
ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



--
To unsubscribe, e-mail:

For additio

500 Err with no info

2002-09-19 Thread Mike Brodhead


I am in the process of moving a large app from Tomcat 3.2.2 to 4.1.10.
When I try to hit one of my servlets, my browser sees a 500 error with
no stack trace or other information.  Looking through Tomcat's logs, I
don't see any errors reported at all.  I've got verbosity set to 4.

What am I missing?  How can I get some diagnostic output so that
I can troubleshoot this?

Thanks,

--mkb



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




Re: : Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Manoj Kithany

Thanks Stefan,

My /jboss/server/default/deploy directory has following files:
counter-service.xml
ejb-management.jar
hsqldb-service.xml
jboss-local-jdbc.rar
jboss-xa.rar
jbossmq-destinations-service.xml
jbossmq-service.xml
jca-service.xml
jms-ra.rar
jms-service.xml
jmx-ejb-adaptor.jar
jmx-ejb-connector-server.sar
jmx-html-adaptor.sar
jmx-rmi-adaptor.sar
mail-service.xml
properties-service.xml
scheduler-service.xml
tomcat4-service.jar
tomcat4-service.xml
tomcat4-service.xml.save
user-service.xml

Thanks

Manoj G. Kithany


#>From: "Stefan Groschupf" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: AW: Simple Question on (Tomcat+JBoss) and Apache
>Date: Fri, 20 Sep 2002 00:10:43 +0200
>
> >When I start JBOSS, is Tomcat also started or do we have to explicity 
>start
> >Ctatalina...?
>
>So far your catalina service archive is in the jboss deploy directory its
>start with jboss.
>trace the start output!
>Hth,
>Stefan


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: url patterns

2002-09-19 Thread Jacob Kjome

Hello adi,

You are close.

Try this:


default1
/admin/*


Now if you go to something like:

http://localhost:8080/mycontext/admin/this/will/show/up/as/path/info/to/this/document.txt

if you call HttpServletRequest#getPathInfo() it will return:
"/this/will/show/up/as/path/info/to/this/document.txt"

Or you can do HttpServletRequest#getPathTranslated() which returns the
system path to the file (assuming it exists).

Jake


Thursday, September 19, 2002, 7:50:34 AM, you wrote:

a> Hello,

a> Does anybody know the valid url patterns for servlet mappings?

a> is there a pattern for all subdirectories of a certain directory?

a> something like: 
a>  
a> default1
a> /admin/**/
a>   

a> Thanks,
a> Adi
a> ---
a> Outgoing mail is certified Virus Free.
a> Checked by AVG anti-virus system (http://www.grisoft.com).
a> Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Problem compiling JSP in Tomcat

2002-09-19 Thread Giancarlo Gallardo

Hi guys!
I was working developing an intranet application using JDeveloper 9.0.2,
everything worked fine at testing (It works with the OC4J application
server). Now I've tried to move the app to Tomcat 4 and everything goes
absolutely wrong! Servlets work fine, but JSP's don't! They can't even
compile!
I have no clue about it.  Now, I'm trying to compile the JSP's on Forte4j
(CE 4 but using JDK 1.3.1, and an internal Tomcat server) and I get this
error:

JSP/Administracion/MisProyectos.jsp [-1:-1]
Errors compiling MisProyectos.


How is possible to get a position -1:-1 for an error?
Here is the header of MisProyectos.jsp

<%@ page contentType="text/html"
import="org.dai.infogeneral.databean.*,java.util.*,java.net.*,org.dai.comun.
*" %>
<%@ taglib uri="/WEB-INF/webdai.tld" prefix="webdai"%>

when I get out the taglib (line 2), It compiles, but It's useless without
the tags!!!(obviously tags inside don't work)
My Web.xml file is alright I think, just like the webdai.tld so I'm in
really big problems!!! Any help please!

web.xml (reduced!)


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

  
administracion

org.dai.administracion.accion.Administracion
10
  
  
30
  
  
index.jsp
  
  
/WEB-INF/webdai.tld
/WEB-INF/webdai.tld
  


and my webdai.tld (reduced also)


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

1.0
1.2
webdai
/WEB-INF/webdai.tld
webdai
webdai taglib
   
  errores
org.dai.comun.tags.TagErrores
EMPTY
Maneja los errores capturados
   




thanks in advance!!!

regards
gianca



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




Re: Page grab inside a textbox

2002-09-19 Thread Dan Lipofsky

If I understand your question you can just use
java.net.URL.getContent()

- Original Message - 
I'm trying to capture the page source of a remote web page trought a
JSP file and display it into a textbox. 



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




AW: Tomcat 4.0 & SUN JDK 1.4

2002-09-19 Thread Stefan Groschupf

Yes, I test both, the same. Something wrong with "green threads"?
Whats that?

Thanks
stefan


-Ursprüngliche Nachricht-
Von: Nome real [mailto:[EMAIL PROTECTED]]
Gesendet: 19 September 2002 23:42
An: Tomcat Users List
Betreff: Re: Tomcat 4.0 & SUN JDK 1.4

Did you tried 1.4.0_02 ? There is also a 1.4.1 on Sun website's ( I haven't
tried though )

On Thu, 19 Sep 2002 23:33:02 +0200, "Stefan Groschupf" <[EMAIL PROTECTED]>
escreveu :

> De: "Stefan Groschupf" <[EMAIL PROTECTED]>
> Data: Thu, 19 Sep 2002 23:33:02 +0200
> Para: "Tomcat Users List" <[EMAIL PROTECTED]>
> Assunto: Tomcat 4.0 & SUN JDK 1.4
>
> Hi guys,
> i run since some time a tomcat under a ibm jdk 1.3 very success full under
> big traffic.
> I try to update the jdk to the sun jdk 1.4. But I get trouble.
> The systems sometimes crash (only killall- 9 java, get it down), without
any
> error message. ;-(
> Had some one a idea what it could be?
>
> Thanks
> Stefan
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




AW: Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Stefan Groschupf

>When I start JBOSS, is Tomcat also started or do we have to explicity start
>Ctatalina...?

So far your catalina service archive is in the jboss deploy directory its
start with jboss.
trace the start output!
Hth,
Stefan



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




Simple Question on (Tomcat+JBoss) and Apache

2002-09-19 Thread Manoj Kithany

Hi,

I am using Apache 1.3.26 + Tomcat 4.0.4 (Catalina) which is embedded with 
JBoss.

When I start JBOSS, is Tomcat also started or do we have to explicity start 
Ctatalina...?

Any information is appreciated.

THANKS!

Manoj G. Kithany

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: two instances of tomcat (in diferent ports) on the same machi ne

2002-09-19 Thread Ben Ricker

On Thu, 2002-09-19 at 14:52, Turner, John wrote:
> 
> Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1) running
> on a single server at the moment.
> 
> You will need a different server.xml for each, a different work directory
> for each, and each must be on its own connector port (whichever connector
> you choose to use).  At least, that is how it is set up on my server.
> 
> John

How do you have multiple server.xmls? Do you use the same startup
script?  Did you use a specific How-To?

Thanks,

Ben Ricker
Wellinx.com
 
> > -Original Message-
> > From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: two instances of tomcat (in diferent ports) on the 
> > same machine
> > 
> > 
> > How can I achieve this? Is it possible?
> >  
> > .:| Christian J. Dechery
> > .:| FINEP - Depto. de Sistemas
> > .:| [EMAIL PROTECTED]
> > .:| (21) 2555-0332
> > 




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




Page grab inside a textbox

2002-09-19 Thread Sébastien Dui



Hi all, 


I just hope that this question won't be off topic, as it seems that
a lot of threads are directly regarding to Tomcat configuration . 


I'm trying to capture the page source of a remote web page trought a
JSP file and display it into a textbox. 

Does anybody have an idea about how to achieve this?


Regards, 


Sébastien Dui
[EMAIL PROTECTED]

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




Re: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Robert L Sowders

H,

looks like you got some funny domains for those VirtualHosts as well as 
some nonstandard JkUriSet statements.  You probably have a problem with 
one or both.

Others have been successful. 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg66171.html

Make your virtual hosts as fully qualified domains and make your JkUriSet 
commands like the example.  Leave the port selection up to the 
workers2.properties file.

Regardless of how you do it, after you are successful a nice step by step 
How To would be appreciated by all.

rls





"Dmitry Letin" <[EMAIL PROTECTED]>
09/19/2002 01:24 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:mod_jk2, virtual hosts, JkUriSet

Hi,

Has anybody managed to successfully connect apache virtual hosts to 
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives 
and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start 
when
I need to connect to two separate instances.

I did check docs in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I 
found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker 
ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



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





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




Anyway to configure authenticators... ??

2002-09-19 Thread Jeff Wishnie

Is there anyway to configure Tomcat to use a different Authenticator class for a given 
authentication method OTHER than un-jar'ing
catalina.jar and editing org/apache/catalina/startup/Authenticators.properties ??

Thanks,

Jeff


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




Re: tomcat security

2002-09-19 Thread Jean-Francois Arcand

The Tomcat site contains the following:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.html

and

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

The security manager is probably the first place to start.

-- Jeanfrancois

Steven Garrett wrote:

>Hi,
>
>I'm relatively new to admining tomcat and have been looking for some ways to
>secure tomcat.  I haven't found much of anything useful.  Are there any docs
>on known security issues with tomcat, or any howto's when configuring
>security?  We're running tomcat 4.0.3, apache 1.3.26 and mod_jk.
>
>Thanks in advance,
>
>steve
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>


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




Re: Tomcat 4.0 & SUN JDK 1.4

2002-09-19 Thread Nome real

Did you tried 1.4.0_02 ? There is also a 1.4.1 on Sun website's ( I haven't tried 
though )

On Thu, 19 Sep 2002 23:33:02 +0200, "Stefan Groschupf" <[EMAIL PROTECTED]> escreveu :

> De: "Stefan Groschupf" <[EMAIL PROTECTED]>
> Data: Thu, 19 Sep 2002 23:33:02 +0200
> Para: "Tomcat Users List" <[EMAIL PROTECTED]>
> Assunto: Tomcat 4.0 & SUN JDK 1.4
> 
> Hi guys,
> i run since some time a tomcat under a ibm jdk 1.3 very success full under
> big traffic.
> I try to update the jdk to the sun jdk 1.4. But I get trouble.
> The systems sometimes crash (only killall- 9 java, get it down), without any
> error message. ;-(
> Had some one a idea what it could be?
> 
> Thanks
> Stefan
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 

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




Tomcat 4.0 & SUN JDK 1.4

2002-09-19 Thread Stefan Groschupf

Hi guys,
i run since some time a tomcat under a ibm jdk 1.3 very success full under
big traffic.
I try to update the jdk to the sun jdk 1.4. But I get trouble.
The systems sometimes crash (only killall- 9 java, get it down), without any
error message. ;-(
Had some one a idea what it could be?

Thanks
Stefan



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




Listener directive in Host conrtainer ???

2002-09-19 Thread achana

Hi All.
My last question tonight...
In the johnturner.com/howto write up, John said "... in the Host
container add the following Listener directive... )
The only Host entry in CATALINA_HOME/conf/server.xml is for defining the
default virtual host :


Soo I am not sure that this is where I should enter

because it will be on a different box ???

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




BindException while calling a servlet.

2002-09-19 Thread George Jegadesh

Dear everyone,

I use a servlet for transferring files from client to
server. The client calls the servlet using URLConnection.
Then it gets the output stream using URLConnection.get-
OutputStream() - and then send the file to be transferred
using this stream. You get the idea! (Please see the code
below.)

This works fine 99% of the time. Sometimes it fails this way:
The call URLConnection.getOutputStream() throws this exception:
java.net.BindException: Address already in use: connect

Even here, it doesn't have any trouble getting the URLConnection,
though. And this problem happens only 1% of the time.

Anyone have any clues about this problem? I am baffled about
why a client while calling a servlet would try to bind to a
port.

Thanks a lot in advance for your help!
George

codes:

 URL serverURL = new URL(servletURL);
 URLConnection serverCon = serverURL.openConnection();

 // a bunch of connection setup related things.
 serverCon.setDoInput(true);
 serverCon.setDoOutput(true);

 // Don't use a cached version of URL connection.
 serverCon.setUseCaches (false);
 serverCon.setDefaultUseCaches (false);

 // set headers and their values.
 serverCon.setRequestProperty("Content-Type",
  "application/octet-stream");

 // create file stream and write stream to write file data.
 FileInputStream fis = new FileInputStream(fileToUpload);
 OutputStream os = serverCon.getOutputStream();

 // transfer the file in byte chunks...




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




How can I achieve thread safe for context attributes?

2002-09-19 Thread Vernon Wu


I have an attribute stored in the servlet context scope. Various sessions can access 
it at any giving moment. It must be 
thread safe. How can achieve thread safe?

CurrentUsers cs = (CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
String user = (String)session.getAttribute(WebKeys.UserID);
cs.remove(user); // or other modification
cxt.setAttribute(WebKeys.CurrentUsers, cs);
 




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




RE: mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Short, Dave

Dmitry,

I'm having problems with this as well.  Although, it sounds like you have my
problems figured out (I'm not trying to go to two Tomcats from Apache
virtual hosts, I'm trying to go to just one Tomcat).  So, would you mind
posting your httpd.conf, workers.properties, server.xml and jk2.properties
files?

I'd appreciate it you wouldn't mind.

Thanks

-Original Message-
From: Dmitry Letin [mailto:[EMAIL PROTECTED]]
Sent: September 19, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2, virtual hosts, JkUriSet


Hi,

Has anybody managed to successfully connect apache virtual hosts to
different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives
and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker
ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: default servlet?

2002-09-19 Thread Jeff Wishnie

Use the following servlet-mapping in your web.xml:


My Servlet
/


Any request that does not match all other mappings will go to 'My Servlet'

-Jeff

- Original Message - 
From: "Jonathan Soons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 2:07 PM
Subject: default servlet?


The 2.3 API says :

A string containing only the '/' character denotes the default servlet.
The servlet path is the request URI minus the context. 

I cannot find any other mention of "default servlet"

I have many servlets. How do I make one of them the default for my application?

jonathan

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



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




TAGLIBS: sorry

2002-09-19 Thread Felipe Schnack

  Ok, I found that I should use request taglib, from Jakarta.
  Anyway, why this throws the error in the browser? I thought it should
just print an URL 





-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




Re: Jasper 2, production configuration, problem with development=false

2002-09-19 Thread Glenn Nielsen

I found this bug last week after Tomcat 4.1.10 was released.  The bug fix
will be available in the Tomcat 4.1.11 release or you can get it from the
nightly build.

Regards,

Glenn

Erick Todd wrote:

> I am trying to follow the docs for the production configuration of
> jasper 2.
> 
> In the web.xml I have:
> 
> 
> 
> jsp
>
> org.apache.jasper.servlet.JspServlet
> 
> logVerbosityLevel
> WARNING
> 
> 
> development
> false
> 
> 3
> 
> 
> Where I just added the development=false param.
> 
> 
> Then I get this stack trace:
> 
> Ideas??
> 
> javax.servlet.ServletException
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>   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:2397)
>   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:171)
>   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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>   at java.lang.Thread.run(Thread.java:536)
> 
> root cause
> 
> java.lang.StackOverflowError
>   at java.security.AccessController.doPrivileged(Native Method)
>   at sun.io.Converters.getDefaultEncodingName(Converters.java:66)
>   at java.lang.StringCoding.encode(StringCoding.java:366)
>   at java.lang.String.getBytes(String.java:603)
>   at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>   at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:125)
>   at java.io.File.exists(File.java:679)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:370)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
>   at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
>   at
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:496)
>   at
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:385)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
>   at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
>   at
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:496)
>   at
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:385)
>   at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
>   at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
>   at
> org.apache

default servlet?

2002-09-19 Thread Jonathan Soons

The 2.3 API says :

A string containing only the '/' character denotes the default servlet.
The servlet path is the request URI minus the context. 

I cannot find any other mention of "default servlet"

I have many servlets. How do I make one of them the default for my application?

jonathan

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




TAGLIBS: request attributes

2002-09-19 Thread Felipe Schnack

  I'm a little confused about standard taglibs.
  How I can iterate thru all attributes of the request?
(request.getAttribute())
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: IIS and security constraints

2002-09-19 Thread Alvin Wang

Hi! So is there a way for tomcat to share (or retrieve) the authentication
information with IIS?

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 11:21 AM
To: Tomcat Users List
Subject: RE: IIS and security constraints



I think you need to have IIS authenticate the users for you, then you can
handle the authenticated user as you wish in your webapplication.

hope it helps
[EMAIL PROTECTED]


> -Original Message-
> From: Sean Dillon [mailto:[EMAIL PROTECTED]]
> Sent: 26. júní 2002 15:17
> To: [EMAIL PROTECTED]
> Subject: IIS and security constraints
>
>
> I developed a site for a client who needs to deploy it on an existing
> IIS server.  I found docs on the web that describe using the
> redirector
> dll, etc., and have gotten IIS to successfully redirect urls to my JSP
> site.  My problem is that the security constraints that work so well
> when running Tomcat standalone or even on the IIS machine via
> port 8080,
> do not work when accessing the site through IIS - there is never any
> login dialog presented by the browser; instead, Tomcat
> redirects to the
> site's 404 error page.
>
> So what do I need to do to use container-managed security while
> deploying Tomcat through IIS?
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Apache2 and Tomcat4 on different boxes

2002-09-19 Thread Raj Mettai

Hi Vincent,

I am running tomcat under root user, do you think it has anything to do
for the configuration not to work..


again here are my latest mod_jk.log..

[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Thu Sep 19 15:28:02 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (88)]: Into wc_open
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (228)]: build_worker_map,
creating worker ajp13
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (162)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Thu Sep 19 15:28:02 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (171)]: wc_create_worker, about
to validate and init ajp13
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1178)]: Into
jk_worker_t::validate
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1198)]: In
jk_worker_t::validate for worker ajp13 contact is
neptune.broward.edu:8009
[Thu Sep 19 15:28:02 2002]  [jk_ajp_common.c (1226)]: Into
jk_worker_t::init
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (238)]: build_worker_map,
removing old ajp13 worker 
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (250)]: build_worker_map, done
[Thu Sep 19 15:28:02 2002]  [jk_worker.c (111)]: wc_open, done 1


thanks a lot

-Raj
>>> [EMAIL PROTECTED] 09/19/02 03:58AM >>>
Sorry I look at your config files, but I see nothing bad (as you I think
;-) )

In your mod_jk logs, we can see that the ajp13 worker is not found first
then it's running and found by Apache. And then, it's closed during
request
processing.
That's a strange beaviours.

You run this configuration :
Apache/2.0.39 (Unix)
mod_ssl/2.0.39
OpenSSL/0.9.6g
mod_jk/1.2.0

What have you compile by your self?
If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40)
without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because
it'is so strange...
Try to restart your test in a clean environement. Save your config
files,
they seem to me not bad.
Try to do a working configuration without mod_ssl.

That's poor help... Sorry. But at this step, I don't see anything.

-Message d'origine-
De : Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoy? : mercredi 18 septembre 2002 22:12
? : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


These are yesterday logs...I dont see anything for today..

[Tue Sep 17 09:58:27 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Tue Sep 17 09:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/error/HTTP_NOT_FOUND.html.var'
[Tue Sep 17 09:58:27 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (118)]: Into wc_close
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (199)]: close_workers got -1
workers to destroy
[Tue Sep 17 10:09:01 2002]  [jk_worker.c (120)]: wc_close, done
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Tue Sep 17 10:09:01 2002]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close

apache error logs...
—-

[Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39
OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations


thanks vincent..

-Raj






: Raj Mettai [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 18 septembre 2002 17:44
A : [EMAIL PROTECTED]
Objet : RE: Apache2 and Tomcat4 on different boxes


yes, I have tried both( name and Ip)  http://10.103.2.4/examples  and
http://morpheus.broward.edu/exampels  , for both of them I am getting
http 400 - Bad Request(it's not 404)

Raj



>>> [EMAIL PROTECTED] 09/18/02 11:41AM >>>
When you test, you enter this URL?
http://10.103.2.4/examples
  -Message d'origine-
  De : Raj Mettai [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 18 septembre 2002 16:42
  A : [EMAIL PROTECTED]
  Objet : RE: Apache2 and Tomcat4 on different boxes


  Hi Vincent,

  I had a typo in my servername and Ip address...

  apache server 10.103.2.4
  tomcat server 10.103.2.30

  and attached are my latest conf files

  I am getting 400 Bad request

Setup a context for Tomcat 4.0.3

2002-09-19 Thread Chiming Huang

Hi, I would like to put my webapp out side of ~\tomcat\webapps directory.  I know I 
need to setup a context in the ~\tomcat\conf\server.xml to point to my webapp 
directory.  And it is working fine. Base on the environment stated above, is there a 
way to configure Tomcat so that I don't need to modify the ~/tomcat\conf\server.xml to 
add a context for my app? Thanks.Chiming


-
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Venkat Reddy Valluri

Thanks Mike
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 3:18 PM
To: Tomcat Users List
Cc: 
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on 
diffrent machines with mod_jk
Venkat,

Yes, I will give you more details, however, I've got higher priority things
to do at this moment, so it will take me a few hours before I can document
the details.

-Mike Schulz


-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 12:54 PM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml  and
how to generate mod_jk.conf manually
Thks in advance
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 12:23 PM
To: Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed
on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
>   include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thu 9/19/2002 11:46 AM
> To:   Tomcat Users List
> Cc:
> Subject:  RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 10:47 AM

mod_jk2, virtual hosts, JkUriSet

2002-09-19 Thread Dmitry Letin

Hi,

Has anybody managed to successfully connect apache virtual hosts to different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives and
a bit of source code but could not make a working solution.

I have no problem connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


>From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does it work properly at all? 

In my case I have:


 
JkUriSet worker ajp13:localhost:8009
 



 
JkUriSet worker ajp13:localhost:8013
 


But in the end all requests (even from vh1) are routed to worker ajp13:localhost:8013
But I expected them to be routed to ajp13:localhost:8009

Looks like a bug to me.


Thanks,
Dmitry Letin



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




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

On Thu, 19 Sep 2002 15:02:59 -0500 (CDT), Milt Epstein wrote:

>On Thu, 19 Sep 2002, Jason Koeninger wrote:
>
>I did say "could be" -- it is the most obvious thing that comes to
>mind.

It would be nice if it was just a bone-headed threading issue, but I'm 
afraid I'm not seeing one.  I was hoping I had accidentally made a 
class variable in the servlet, but I didn't find one.

>Is that the latest version of the 3.3 branch?  If not, you could try
>to upgrade.

Doubtful.  Previous upgrades caused some painful problems.  You'll 
find my ajp13 issues on Tomcat 3.3.1 in the archives.  

>In fact, if feasible, you might just upgrade to an entirely new
>version, and see if the problem persists.  There's a 4.0 branch (up to
>4.0.4) and a 4.1 (up to 4.1.11 already or soon).  Both those versions
>implement the latest servlet/jsp specs (2.3/1.2) (3.2 and 3.3
>implement 2.2/1.1).  And the ajp12 protocol (I think that means
>version 1.2 of the AJP protocol) has been replaced by ajp13 (likewise,
>version 1.3 of the AJP protocol).

Actually, I went running back to ajp12 after my last experience with 
ajp13.  This is, in fact, a similar problem to my last ajp13 experience 
in which you could get results from old requests.  Odd problem and 
difficult to describe, and it made you think you were insane when  you
hit reload and all was better.  

I think I'll try bypassing Apache and going straight to Tomcat for now.
If that doesn't work, it looks like we'll try the 4.x branch finally.

Thanks for the help.

Best Regards,

Jason

>
>
>> On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:
>>
>> >On Thu, 19 Sep 2002, Jason Koeninger wrote:
>> >
>> >> Has anyone seen sessions move between users running Tomcat 3.3.1?
>> >> I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
>> >> the ajp12 protocol, and it sounds from user reports as if sessions
>> >> are moving between users.  At first, I thought it had something to
>> >> do with proxies caching the pages, but the last report I got rules
>> >> out a proxy as the users were on totally independent networks.
>> >
>> >This could be a multi-threading issue -- i.e. some of your code may
>> >not be thread-safe.
>> >
>> >Milt Epstein
>> >Research Programmer
>> >Integration and Software Engineering (ISE)
>> >Campus Information Technologies and Educational Services (CITES)
>> >University of Illinois at Urbana-Champaign (UIUC)
>> >[EMAIL PROTECTED]
>> >
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> For additional commands, e-mail: 
>>
>
>Milt Epstein
>Research Programmer
>Integration and Software Engineering (ISE)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>




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




Re: two instances of tomcat (in diferent ports) on the same machine

2002-09-19 Thread Padhu Vinirs


You have to set CATALINA_HOME for each instance. A batch/shell script 
can export/set parent directory ( assuming you are in bin directory ) as 
CATALINA_HOME and then call startup/shutdown.

-- padhu



Christian J. Dechery wrote:

>I tried that... but I get some kind of conflict with CATALINA_HOME...
> 
>.:| Christian J. Dechery
>.:| FINEP - Depto. de Sistemas
>.:| [EMAIL PROTECTED]
>.:| (21) 2555-0332
>
>  
>
[EMAIL PROTECTED] 09/19 4:52 pm >>>


>
>Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1)
>running
>on a single server at the moment.
>
>You will need a different server.xml for each, a different work
>directory
>for each, and each must be on its own connector port (whichever
>connector
>you choose to use).  At least, that is how it is set up on my server.
>
>John
>
>  
>
>>-Original Message-
>>From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] 
>>Sent: Thursday, September 19, 2002 3:48 PM
>>To: [EMAIL PROTECTED] 
>>Subject: two instances of tomcat (in diferent ports) on the 
>>same machine
>>
>>
>>How can I achieve this? Is it possible?
>> 
>>.:| Christian J. Dechery
>>.:| FINEP - Depto. de Sistemas
>>.:| [EMAIL PROTECTED] 
>>.:| (21) 2555-0332
>>
>>
>>
>
>--
>To unsubscribe, e-mail:  
>
>For additional commands, e-mail:
>
>
>
>
>  
>




Re: two instances of tomcat (in diferent ports) on the samemachine

2002-09-19 Thread Dan Lipofsky

We have several developers using the same Solaris machine.
Each has their own install of tomcat in their home directory,
and of course their own setting for CATALINA_HOME
in their .profile file.  We have no problems with it.
- Dan

>
> I tried that... but I get some kind of conflict with CATALINA_HOME...
>



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




Tomcat performance problems after a while

2002-09-19 Thread Rafael Angarita

My webserver is stopping  answering requests or answers too slowly 
after a while running.
If  a http request is sent  to tomcat directly it's answered quickly 
but the same request to apache takes a lot of time to be answered 
(request a .jsp file).
If  the tomcat process is  stopped and started again (the apache is 
not stopped), the requests to apache are answered quickly.
It looks like something is happening inside the java process that 
produces a poor performance after a while, but I have no clue, how to 
look inside the java, it could be a configuration issue or  an 
application issue  but all  I  can see  is not helpful to establish the 
main reason
Any suggestion?  

The environment:
- Solaris 8
- Apache 1.3.26
- tomcat 3.2.4
- java 1.2
- TheadPool Max = 600

Thanks is advance,

-- 

Rafael Angarita




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




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, Jason Koeninger wrote:

> I've been doing multi-threaded code for a long time, and while I'm
> not going to say there's no way I made a mistake, I am going to say
> that it's unlikely it's a threading issue.  In this particular
> application, I do session management in a single servlet, and all I
> do is log the user on and place the user object in the session.
>
> I'll double-check it, but that's how it was originally written.  Any
> other thoughts?

I did say "could be" -- it is the most obvious thing that comes to
mind.

Similarly, it could be something wrong with those versions of Tomcat
and/or mod_jk, but by the same token, if there were some such
obvious/basic problem with it, you'd think it'd be pretty well known.
But you might check the archives of this list to see if others have
reported such problems with them.

Is that the latest version of the 3.3 branch?  If not, you could try
to upgrade.

In fact, if feasible, you might just upgrade to an entirely new
version, and see if the problem persists.  There's a 4.0 branch (up to
4.0.4) and a 4.1 (up to 4.1.11 already or soon).  Both those versions
implement the latest servlet/jsp specs (2.3/1.2) (3.2 and 3.3
implement 2.2/1.1).  And the ajp12 protocol (I think that means
version 1.2 of the AJP protocol) has been replaced by ajp13 (likewise,
version 1.3 of the AJP protocol).


> On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:
>
> >On Thu, 19 Sep 2002, Jason Koeninger wrote:
> >
> >> Has anyone seen sessions move between users running Tomcat 3.3.1?
> >> I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
> >> the ajp12 protocol, and it sounds from user reports as if sessions
> >> are moving between users.  At first, I thought it had something to
> >> do with proxies caching the pages, but the last report I got rules
> >> out a proxy as the users were on totally independent networks.
> >
> >This could be a multi-threading issue -- i.e. some of your code may
> >not be thread-safe.
> >
> >Milt Epstein
> >Research Programmer
> >Integration and Software Engineering (ISE)
> >Campus Information Technologies and Educational Services (CITES)
> >University of Illinois at Urbana-Champaign (UIUC)
> >[EMAIL PROTECTED]
> >
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Tomcat 4.0.4 - Error 500

2002-09-19 Thread Natarajan, Raj

How would I do that ? Is it a setting in Tomcat ?

-Original Message-
From: Padhu Vinirs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 3:57 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.4 - Error 500



You might have to print the full stack of the NullPointerException to 
find out which class could be creating this exception.

-- padhu




Natarajan, Raj wrote:

>I have approx 25 applications deployed on a stand-alone Tomcat 4.0.4
>instance. These apps retrieve data from a DB2 database via jsp's using a
set
>of custom tags. 
>
>I have had three instances so far since the apps went live on 8/28 when all
>the apps start returning a 500 Error with this message. 
>
>java.lang.NullPointerException
>at java.lang.String.equals(String.java(Compiled Code))
>
>The only log entry I found is in the localhost_log.2002-09-19.txt
>
>StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
>java.lang.NullPointerException
>at java.lang.String.equals(String.java(Compiled Code))
>
>Restarting Tomcat fixes the problem.
>
>I would greatly appreciate any pointers that would help me resolve this
>problem.
>
>Thanks
>Raj
>
>
>---
---
>This electronic mail and any files transmitted with it are confidential and
are intended solely for the use of individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible
for delivering the electronic mail to the intended recipient, be advised
that you have received this electronic mail in error and that any use,
dissemination, forwarding, printing, or copying of this electronic mail is
strictly prohibited. If you have received this electronic mail in error,
please immediately notify the sender by return mail.
>
>===
===
>
>  
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:





RE: two instances of tomcat (in diferent ports) on the samemachine

2002-09-19 Thread Christian J. Dechery

I tried that... but I get some kind of conflict with CATALINA_HOME...
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

>>> [EMAIL PROTECTED] 09/19 4:52 pm >>>

Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1)
running
on a single server at the moment.

You will need a different server.xml for each, a different work
directory
for each, and each must be on its own connector port (whichever
connector
you choose to use).  At least, that is how it is set up on my server.

John

> -Original Message-
> From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 19, 2002 3:48 PM
> To: [EMAIL PROTECTED] 
> Subject: two instances of tomcat (in diferent ports) on the 
> same machine
> 
> 
> How can I achieve this? Is it possible?
>  
> .:| Christian J. Dechery
> .:| FINEP - Depto. de Sistemas
> .:| [EMAIL PROTECTED] 
> .:| (21) 2555-0332
> 

--
To unsubscribe, e-mail:  

For additional commands, e-mail:






Re: Tomcat 4.0.4 - Error 500

2002-09-19 Thread Padhu Vinirs


You might have to print the full stack of the NullPointerException to 
find out which class could be creating this exception.

-- padhu




Natarajan, Raj wrote:

>I have approx 25 applications deployed on a stand-alone Tomcat 4.0.4
>instance. These apps retrieve data from a DB2 database via jsp's using a set
>of custom tags. 
>
>I have had three instances so far since the apps went live on 8/28 when all
>the apps start returning a 500 Error with this message. 
>
>java.lang.NullPointerException
>at java.lang.String.equals(String.java(Compiled Code))
>
>The only log entry I found is in the localhost_log.2002-09-19.txt
>
>StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
>java.lang.NullPointerException
>at java.lang.String.equals(String.java(Compiled Code))
>
>Restarting Tomcat fixes the problem.
>
>I would greatly appreciate any pointers that would help me resolve this
>problem.
>
>Thanks
>Raj
>
>
>--
>This electronic mail and any files transmitted with it are confidential and are 
>intended solely for the use of individual or entity to whom they are addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>electronic mail to the intended recipient, be advised that you have received this 
>electronic mail in error and that any use, dissemination, forwarding, printing, or 
>copying of this electronic mail is strictly prohibited. If you have received this 
>electronic mail in error, please immediately notify the sender by return mail.
>
>==
>
>  
>



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




RE: two instances of tomcat (in diferent ports) on the same machine

2002-09-19 Thread Turner, John


Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1) running
on a single server at the moment.

You will need a different server.xml for each, a different work directory
for each, and each must be on its own connector port (whichever connector
you choose to use).  At least, that is how it is set up on my server.

John

> -Original Message-
> From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: two instances of tomcat (in diferent ports) on the 
> same machine
> 
> 
> How can I achieve this? Is it possible?
>  
> .:| Christian J. Dechery
> .:| FINEP - Depto. de Sistemas
> .:| [EMAIL PROTECTED]
> .:| (21) 2555-0332
> 

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




two instances of tomcat (in diferent ports) on the samemachine

2002-09-19 Thread Christian J. Dechery

How can I achieve this? Is it possible?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332



RE: problem with connecting Apache2.0.40 and Tomcat4.0.4installed on diffrent machines with mod_jk

2002-09-19 Thread Raj Mettai

I have been fighting to get this configuration work for weeks, I can't
wait to see howto for this..

-Raj

>>> [EMAIL PROTECTED] 09/19/02 03:18PM >>>
Venkat,

Yes, I will give you more details, however, I've got higher priority
things
to do at this moment, so it will take me a few hours before I can
document
the details.

-Mike Schulz


-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 12:54 PM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml 
and
how to generate mod_jk.conf manually
Thks in advance
Venkat


-Original Message-
From:Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:Thu 9/19/2002 12:23 PM
To:Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed
on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send.
(:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
> include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From:Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent:Thu 9/19/2002 11:46 AM
> To:Tomcat Users List
> Cc:
> Subject:RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 10:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> > installed
> > on diffrent mach

Tomcat 4.0.4 - Error 500

2002-09-19 Thread Natarajan, Raj

I have approx 25 applications deployed on a stand-alone Tomcat 4.0.4
instance. These apps retrieve data from a DB2 database via jsp's using a set
of custom tags. 

I have had three instances so far since the apps went live on 8/28 when all
the apps start returning a 500 Error with this message. 

java.lang.NullPointerException
at java.lang.String.equals(String.java(Compiled Code))

The only log entry I found is in the localhost_log.2002-09-19.txt

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at java.lang.String.equals(String.java(Compiled Code))

Restarting Tomcat fixes the problem.

I would greatly appreciate any pointers that would help me resolve this
problem.

Thanks
Raj


--
This electronic mail and any files transmitted with it are confidential and are 
intended solely for the use of individual or entity to whom they are addressed. If you 
are not the intended recipient or the person responsible for delivering the electronic 
mail to the intended recipient, be advised that you have received this electronic mail 
in error and that any use, dissemination, forwarding, printing, or copying of this 
electronic mail is strictly prohibited. If you have received this electronic mail in 
error, please immediately notify the sender by return mail.

==



Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

I've been doing multi-threaded code for a long time, and while I'm not 
going to say there's no way I made a mistake, I am going to say 
that it's unlikely it's a threading issue.  In this particular application, I 
do session management in a single servlet, and all I do is log the user 
on and place the user object in the session.  

I'll double-check it, but that's how it was originally written.  Any other 
thoughts?

Thanks,

Jason Koeninger
J&J Computer Consulting


On Thu, 19 Sep 2002 14:40:39 -0500 (CDT), Milt Epstein wrote:

>On Thu, 19 Sep 2002, Jason Koeninger wrote:
>
>> Has anyone seen sessions move between users running Tomcat 3.3.1?
>> I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
>> the ajp12 protocol, and it sounds from user reports as if sessions
>> are moving between users.  At first, I thought it had something to
>> do with proxies caching the pages, but the last report I got rules
>> out a proxy as the users were on totally independent networks.
>
>This could be a multi-threading issue -- i.e. some of your code may
>not be thread-safe.
>
>Milt Epstein
>Research Programmer
>Integration and Software Engineering (ISE)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>[EMAIL PROTECTED]
>




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




Re: tomcat security

2002-09-19 Thread Nome real

Take a look on Running Tomcat with SecurityManager. I'm sure you can find a lot of 
docs on the net.


On Thu, 19 Sep 2002 15:23:09 -0400, Steven Garrett <[EMAIL PROTECTED]> escreveu 
:

> De: Steven Garrett <[EMAIL PROTECTED]>
> Data: Thu, 19 Sep 2002 15:23:09 -0400
> Para: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Assunto: tomcat security
> 
> Hi,
> 
> I'm relatively new to admining tomcat and have been looking for some ways to
> secure tomcat.  I haven't found much of anything useful.  Are there any docs
> on known security issues with tomcat, or any howto's when configuring
> security?  We're running tomcat 4.0.3, apache 1.3.26 and mod_jk.
> 
> Thanks in advance,
> 
> steve
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 

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




Re: Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Milt Epstein

On Thu, 19 Sep 2002, Jason Koeninger wrote:

> Has anyone seen sessions move between users running Tomcat 3.3.1?
> I'm using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using
> the ajp12 protocol, and it sounds from user reports as if sessions
> are moving between users.  At first, I thought it had something to
> do with proxies caching the pages, but the last report I got rules
> out a proxy as the users were on totally independent networks.

This could be a multi-threading issue -- i.e. some of your code may
not be thread-safe.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Jasper 2, production configuration, problem with development=false

2002-09-19 Thread Erick Todd

I am trying to follow the docs for the production configuration of
jasper 2.

In the web.xml I have:



jsp
   
org.apache.jasper.servlet.JspServlet

logVerbosityLevel
WARNING


development
false

3


Where I just added the development=false param.


Then I get this stack trace:

Ideas??

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
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:2397)
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:171)
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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at sun.io.Converters.getDefaultEncodingName(Converters.java:66)
at java.lang.StringCoding.encode(StringCoding.java:366)
at java.lang.String.getBytes(String.java:603)
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:125)
at java.io.File.exists(File.java:679)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:370)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:496)
at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:385)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:496)
at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:385)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:335)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:496)


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




RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk

2002-09-19 Thread Michael Schulz

Venkat,

Yes, I will give you more details, however, I've got higher priority things
to do at this moment, so it will take me a few hours before I can document
the details.

-Mike Schulz


-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 12:54 PM
To: Tomcat Users List
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk


Hi Michael,
Can you pl be more specific abou how to configure tomcat server.xml  and
how to generate mod_jk.conf manually
Thks in advance
Venkat


-Original Message-
From:   Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent:   Thu 9/19/2002 12:23 PM
To: Tomcat Users List
Cc:
Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed
on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o)
-Mike


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
installed on diffrent machines with mod_jk



Any thoughts of compiling a HOWTO, by chance? Hint, hint. :)

John


> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 12:18 PM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> I *just* completed a successful configuration of Apache
> 2.0.40 and Tomcat
> 4.0.4 using the mod_jk.so connector (provided by John Turner,
> thanks John)
> on RedHat Linux 7.3 where Apache and Tomcat are running on separate
> machines.
>
> If Apache is not connecting to tomcat, then you should look
> on the Apache
> box for the cause (assuming that the Tomcat box is running! ).
>
> In your httpd.conf file, there should be two directives, JkLogFile and
> JkLogLevel.  Set the JkLogLevel value to "debug" and restart
> Apache.  Then
> when you make a request, you should be able to see what is
> happening via the
> log file.
>
> Note: If you followed John's instructions for configuring the
> system, you
> will have a problem because those instructions depend on the
> Tomcat listener
> (ApacheConfig) to generate the mod_jk.conf file.  This won't
> work if tomcat
> and apache are on separate boxes, so you'll have to do that
> part manually
> (or copy the generated file from the tomcat box to the apache box).
>
> If your httpd.conf file contains this directive:
>
>   include /usr/local/tomcat/conf/auto/mod_jk.conf
>
> then you will have problems, because tomcat is not on the apache box.
>
>
> -Mike Schulz
>
>
>
> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:56 AM
> To: Tomcat Users List
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
> Even though I didn't copy, Atleast Apche should have
> connected to tomcat and
> I should have executed jsp pages existed on tomcat box, here apache is
> serving some static files which are existing on apache boxe,
> but when I
> tried to execute http://www.xxx.com/examples/(in mod_jk.conf  jkmount
> /examples/* ajp13) it is supposed to connect to tomcat box and execute
> jsp's, but it is not recognising them, because it is not even
> connected to
> tomcat
>
>
> -Original Message-
> From: Michael Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thu 9/19/2002 11:46 AM
> To:   Tomcat Users List
> Cc:
> Subject:  RE: problem with connecting Apache2.0.40 and
> Tomcat4.0.4 installed
> on diffrent machines with mod_jk
>
> If you want to put Apache and Tomcat on separate boxes, and
> still run the
> Tomcat examples, you will have to copy the static (.html)
> files from the
> tomcat box to the apache box so that apache can serve them.
>
> -Mike Schulz
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4
> installed on diffrent machines with mod_jk
>
>
>
> The lines like "tomcat_home" etc. in workers.properties are optional.
> (thanks Milt!)  You only need the worker definitions (like
> port number,
> etc).
>
> I'm not sure about the Alias /manager question, that is a
> good question.
>
> You don't need mod_jk.so on the Tomcat box, its an Apache module.
>
> John
>
>
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 10:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4
> > installed
> > on diffrent machines with mod_jk
> >
> >
> > Hi,
> >I installed Apache 2.0.40 and Tomcat 4.0.4 on different
> > Linux(RedHat) servers and tried to make apache connect

Tomcat 3.3.1 - Sessions Migrating Between Users

2002-09-19 Thread Jason Koeninger

Has anyone seen sessions move between users running Tomcat 3.3.1?  I'm 
using Apache 1.3.26 connecting to Tomcat 3.3.1 with mod_jk using the 
ajp12 protocol, and it sounds from user reports as if sessions are moving 
between users.  At first, I thought it had something to do with proxies 
caching the pages, but the last report I got rules out a proxy as the users 
were on totally independent networks.

Thanks,

Jason Koeninger
J&J Computer Consulting




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




tomcat security

2002-09-19 Thread Steven Garrett

Hi,

I'm relatively new to admining tomcat and have been looking for some ways to
secure tomcat.  I haven't found much of anything useful.  Are there any docs
on known security issues with tomcat, or any howto's when configuring
security?  We're running tomcat 4.0.3, apache 1.3.26 and mod_jk.

Thanks in advance,

steve

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




SSL support in 4.1.10

2002-09-19 Thread John Hughes

I'm using 4.1.10 to perform SSL - with client authentication - using JSSE
1.0.3.

The documentaion descibes how to configure to use TLS using the protocol=
keyword.  What if I want to use either:

SSLv3

or SSLv2



John


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




Checking JAVA platform... forced JAVA 1

2002-09-19 Thread achana

Hi All !
In my attempt to build mod_jk, I ran following :
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-java-home=$JAVA_HOME
Do I have a problem with the following  lines :
...
building connector for "apache-2.0"
...
no apache given
...
checking for JDK location (please wait)... /usr/java/j2sdk1.4.0_02
...
checking JAVA platform ... forced JAVA1
...
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile 
creating apache-2.0/Makefile.apxs
Should I be worried that ./configure says "no apache given" and then
created 2 sets, one set for apache1.3 and another for 2.0 ???
Also it forced JAVA1, wouldn't a recent version of JAVA be more
appropriate e.g. JAVA2 ???

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




tomcat to iPlanet woes

2002-09-19 Thread Schneider, Eric

Hi,

We've developed a J2EE web application on tomcat to be deployed on iPlanet.
We are quickly learning that iPlanet doesn't seem to be J2EE compliant,
compatible, , etc. 

The classloader in iPlanet is really bizarre and I believe it's the root of
our problems.  Any references to classes in 3rd party packages (specifically
apache jars) in our WEB-INF directory throws a NoClassDefFoundError.  The
only way we've been able to get around this is to add the jar files
(commons-collections, commons-logging, commons-digester) to iPlanet's
jre/lib/ext folder.   I'd put all of my 3rd party jars in this directory,
but unfortunately, one of our frameworks dynamically instaniates objects at
runtime that aren't available to the system classloader.

I've read some really vague stuff about the way apache jars use their own
classloaders.   For whatever reason, this causes a security issue/error that
iPlanet masquerades as a NoClassDefinition exception.  There wasn't much
more information on the topic.

Hopefully someone has had some similar experiences and can shed some light?

Thanks,
Eric


**
This message, including any attachments, contains confidential information intended 
for a specific individual and purpose, and is protected by law.  If you are not the 
intended recipient, please contact sender immediately by reply e-mail and destroy all 
copies.  You are hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**

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




ServletException, NoSuchMethodError : Trying JSP Examples in 4.1.10

2002-09-19 Thread shailg .

Hi,

I am a new user of Tomcat, first time I installed v4.1.10. I am getting 
following error when trying to invole some JSP Examples (Numberguess, 
Forward, JSP-Servlet-JSP, Simple custom tage and XML Syntax), other examples 
and all Servlet examples works fine :

-
HTTP Status 500 -

The server encountered an internal error () that prevented it from 
fulfilling this request.

javax.servlet.ServletException
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.numguess_jsp._jspService(numguess_jsp.java:102)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
.
.
.
.
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:479)
Root cause is; java.lang.NoSuchMethodError
at 
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1262)
.
.
.
.
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:479)

--

I have following environment :
OS : Win2K
Tomcat : v4.1.10 (installed in d:\tomcat4110 directory)
JDK: 1.3.1_03

JAVA_HOME : c:\jdk1.3.1_03

CATALINA_HOME : d:\tomcat4110

CLASSPATH=D:\iAS902\j2ee\home\oc4j.jar;D:\iAS902\j2ee\home\lib\ojsp.jar;D:\iAS902\jlib\zrclient.jar;D:\iAS902\reports\jlib\rwrun.jar;C:\9iDSR2\jlib\bigraphbean.jar;C:\9iDSR2\jlib\LW_PfjBean.jar;C:\9iDSR2\jlib\bigraphbean-nls.zip;D:\iAS902\jlib\bigraphbean.jar;D:\iAS902\jlib\LW_PfjBean.jar;D:\iAS902\jlib\bigraphbean-nls.zip

As I said I can access all other examples successfully, also /tomcat-docs 
and /manager works fine but get the same error for /admin too.

I also tried to deploy one of my application but getting same error there 
too.

Any pointer/comment/suggestion would be much appreciated.

Regards
Shail

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: "/WEB-INF/web.xml not found" when deploying WAR within Tomcat4 on Debian ...

2002-09-19 Thread Ian Stevens

> I have a WAR file which is built by JBuilder6.  This WAR file 
> deploys fine under Tomcat4 on Windows2000 when I copy it to 
> the webapps directory and restart Tomcat.  However, when I do 
> the same on a Debian Linux system running Tomcat4, I get the 
> following in the log files:

Just as a follow-up, everything works fine if I manually unzip the WAR
file into the webapps directory and restart Tomcat.  Deploying using the
manager or by placing the WAR file in the webapps directory does not
work, however.

ian.


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




Re: Context path

2002-09-19 Thread rsequeira


Place an environment entry in the web.xml. This way you can access this
parameter anywhere, anytime. Don't depend on getContext or
getServletContext methods. If you had a war file, a getServletContext
returns null.

RS



   

  "Andreas Probst" 

 <[EMAIL PROTECTED]>   

   cc: 

  09/19/02 07:23 AMSubject:  Context path  

  Please respond to

  "Tomcat Users

  List"

   

   





Hi all,

I need to know the context path of my web app. If I have a

HttpServletRequest req, I can get
String contextPath = req.getContextPath();

Now, what can I do within init()? I havn't got a
HttpServletRequest there. How do I get the context path?

Thanks in advance.

Andreas


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







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




Re: Shut down IIS and replace w/standalone Tomcat --consequences?

2002-09-19 Thread craig franke

You don't have to shut down IIS completely.  I have IIS and Apache both running on my 
W2K domain controller. All I did was go to Internet Services Manager and Stop the 
Default Website and the Administration Website.  Once you do that, port 80 is free and 
you can run tomcat on that port.

Craig

>>> [EMAIL PROTECTED] 09/19/02 12:07PM >>>
Is it "OK" to shut down IIS entirely on a computer running Windows 2000
Server and run ONLY Tomcat (bound to port 80) in "standalone" configuration
as a service?  The question might seem patently ridiculous to anyone who
runs Unix, but I've gotten the definite impression that there are several
fundamental system services (Active Directory being one of them) that depend
upon having IIS up and running for their own operation.

About a year and a half ago, I experimented with shutting down IIS using the
service control panel. ActiveDirectory failed almost immediately, and
Windows rapidly went into meltdown as service after service failed before
ending on a BSOD. Fortunately, I hadn't changed the IIS startup from
"Automatic" to "Manual", so rebooting put things back to normal.
Nevertheless, it was a sobering experience that's left me quite hesitant to
disable or try to replace IIS with ANYTHING -- especially in a way that's
semi-permanent and would survive a reboot should it kill the OS.

On the other hand, I know that lots of people seem to successfully run
Apache under Windows 2000 Server. My suspicion is that the Windows version
of Apache might actually implement one or more Microsoft-specified class
interfaces and take on additional responsibilities that the Unix version
doesn't -- assuming the role of IIS and delegating requests that go beyond
Apache's own scope to the original IIS .dll libraries. Either that, or
Apache users just don't run ActiveDirectory or any other services that
depend upon IIS to run.

In any case, the impression I've gotten is that trying to disable IIS to
give port 80 to Tomcat 4 is a Bad Idea likely to cause FAR more problems
than it solves. Is that accurate? Or is it possible to shut down IIS
entirely and replace it only with Tomcat 4 without compromising the rest of
the OS?



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



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




Struts 1.0.2 Examples busted in new Tomcat 4.1.10, fine in 4.0.4

2002-09-19 Thread Patrick Dockhorn

Hi,

I recently upgraded my Tomcat Installation from 4.0.4 to 4.1.10 and now
the Struts 1.0.2 Examples (i.e. the struts-
example webapp) fail to run.

It seems that TomCat is not able to find the taglibs specified in the
index.jsp - all works fine with the 4.0.4 version.

Has anyone else come across this problem?

I'd rather stay on 4.1.10 as the (struts based!) manager app is really
nice and so are some of the other features.

Your help is highly appreciated.

Best Regards,

Patrick Dockhorn


cto/skex

global support services
33 ames ave
carnegie vic 3163
australia

m +61 421 064517
p +61 3 95044870
e [EMAIL PROTECTED]
w http://www.skex.com.au


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




Context path

2002-09-19 Thread Andreas Probst

Hi all,

I need to know the context path of my web app. If I have a 

HttpServletRequest req, I can get 
String contextPath = req.getContextPath();

Now, what can I do within init()? I havn't got a 
HttpServletRequest there. How do I get the context path?

Thanks in advance.

Andreas


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




how to prevent JSP getting compiled at runtime

2002-09-19 Thread Bayi Peng

Hi, there,

I 've precompiled JSPs using jspc, and included them in web.xml. Most of
precompiled JSPs work fine. Only when a JSP(A) is called(/included) by
another JSP(B) from a subdirectory(or a different dir). The JSP(A) is
recompiled by Tomcat, and  the java and class files is put to 'work'
directory.

If a servlet(even in different directory) gets the request dispatch of
the JSP(A) and forword the JSP, it works OK. No java or class is
created.

Any way to prevent the JSP(A) compiled if called by another JSP(B).

Thanks

Michael


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




RE: Antw: RE: Cant get 4.1.10 to run on Win2K

2002-09-19 Thread Miguel Angel Mulero Martinez

Hi,

The way to mount drives like units it's simple. Only works for 2000/XP,
(sorry if isn't exact, but mi windows is in spanish):
- Go to control panel, administratives tools.
- Disk Management
- Right click in a drive, "change letter and path to the drive"
- Select NTFS drive (you must have NTFS file system).

That's all!

Miguel
-Mensaje original-
De: Andre Schild [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 16 de septiembre de 2002 14:20
Para: [EMAIL PROTECTED]
Asunto: Antw: RE: Cant get 4.1.10 to run on Win2K

>Ok! The drive installation can help. Here, I use drive D:, and fails,
at
>home I use another drive, but I have mounted it like a folder of C: ,
so
>it's like if it was on C:.

I which way do you have mounted the drive D:
I know of two ways:

1. subst command.
 I'm not sure if this still works under 2000/XP etc.
2. Via network share.
 Services DON'T have access to network resources, since:
 a) They run a system account and this one does not have the required
privileges. So you would have to assign a real user account ot the
tomcat service.
 b) The drive-map isn't existent in the service when you are not logged
in, and if you are logged in, a) might be the problem.

André

So, you must be in the correct way: the drive of installation could
give
problems.

Can anybody with tomcat 4.1.10 installed like a service of windows,
tell us
with drive uses and if it works well?

Thanks!!

-Mensaje original-
De: Christopher Watson [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 16 de septiembre de 2002 13:21
Para: Tomcat Users List
Asunto: RE: Cant get 4.1.10 to run on Win2K

Hi Miguel,

See interleaved below

> -Original Message-
> From: Miguel Angel Mulero Martinez
> [mailto:[EMAIL PROTECTED]]
> Sent: 16 September 2002 11:25
> To: Tomcat Users List
> Subject: RE: Cant get 4.1.10 to run on Win2K
>
>
> Hi Chris!
>
> Sorry, adding the user.dir option didn't work for me :-(
>
> Maybe it can be that I have spaces too in the path (also for
> catalina.home).

I have verified that user.dir works for me when using a directory name
with
spaces in it,
specifically when I installed it to
d:\jakarta tomcat\Tomcat 4.1

> When I change the path installation of tomcat, I will try another
time. Is
> strange, at home I have got it exactly in the same place and with the
same
> parameters (but under Windows XP) and it works great.

I had a similar situation.
I'm pretty sure it works 'out of the box'
if you install it onto the system drive (i.e. the one with
\WINNT\system32
on it)
but not if you put it onto any other drive ??

Is this the same for you?

BTW I am using jdk1.3.1 and the non-LE version, but I think that's
probably
irrelevant

Christopher

>
> Miguel
>
> -Mensaje original-
> De: Christopher Watson [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes, 16 de septiembre de 2002 11:56
> Para: Tomcat Users List; Miguel Angel Mulero Martinez
> Asunto: RE: Cant get 4.1.10 to run on Win2K
>
> Miguel, List
>
> I seem to have fixed this by adding the following string value to
the
> registry key for the tomcat service
> which on my system is one of the entries in
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
> 4.1\Parameters
>
> NameValue
> JVM Option Number n -Duser.dir=v:\jakarta-tomcat
>
> where n is one higher than the greatest JVM Option Number already
there
> and I also increased the value of JVM Option Count by one
>
> v:\jakarta-tomcat is my tomcat home directory
> which I note was already set up as the string value which reads
>
> JVM Option Number 1 -Dcatalina.home=v:\jakarta-tomcat
>
> As to WHY the catalina.home wasn't doing the trick, I have no idea
>
> Also, I haven't tested further than getting JSP to work, so I
> don't know if
> this fixes/breaks anything else.
>
> HTH
>
> Christopher Watson


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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

tsdok

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




RE: Cant get 4.1.10 to run on Win2K

2002-09-19 Thread Robert L Sowders

Next time you suspect confusion between JDK versions you can inspect this 
registry key for correctness

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4.0_01]
"JavaHome"="where_ever_you_put_it"
"MicroVersion"="0"

In the same area you can find keys for the JRE also.

rls





"Mike Warne" <[EMAIL PROTECTED]>
09/13/2002 02:20 PM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Cant get 4.1.10 to run on Win2K

Thanks Nicholas,

It works now. I removed some older JDK's (except 1.3, I still need for 
testing other stuff).
I also removed JAVA_HOME from my environment.  Installer looks for it, and 
suggests using it..
Removing JAVA_HOME forced the install to find the 1.4 jdk.

Thanks for the help.

Mike.

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 3:44 PM
To: 'Tomcat Users List'
Subject: RE: Cant get 4.1.10 to run on Win2K


Sounds to me like you have done something wrong.

This is all you need to do to get it to work on win2k pro

1. Remove both Tomcat and Java using add/remove programs
2. Download and install J2SE SDK from here ->
http://java.sun.com/j2se/1.4/download.html make sure you get "Windows (all
languages, including English) SDK"
3. Download and install Tomcat from here ->
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/ and
get jakarta-tomcat-4.1.10.exe
3. a) Check install as service, just makes things easier.

If you just click "next" in both of these installs you will have a working
Tomcat install.  Just do this first and if it works then you can go about
customising it to where and what you want.

Nicholas Orr

-Original Message-
From: Mike Warne [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 13 September 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: Cant get 4.1.10 to run on Win2K


Hi I have tried unsuccessfully to get Tomcat to run under win2K

1st try was using j2re1.4 and installing the LE .exe.

The install program pauses at the point where it says copying to:
tomcat4.1/common/lib and then says:  copy failed.

However the install then completes.  When I open the browser to
localhost:8080  I get a org.apache.jasper.JasperException: Unable to 
compile
class for JSP An error occurred at line: -1 in the jsp file: null

Same goes for any of the WAR examples etc.

2nd then tried the FULL edition (not the LE) -- same problem. :(

3rd I tried installing the full edition again using JDK1.3.  This time the
copy does not fail.  But now I have this error:
---
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\index_jsp.java:266:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
  if (pageContext != null) pageContext.handlePageException(t);
  ^
1 error


 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:120)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
 at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
 at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)

Any Ideas?

Thanks, 
Mike.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:++61 7 3833 8000
Support Centre e-mail:   [EMAIL PROTECTED]
Support Centre phone:Australia 1800500646
 International ++61 7 38338042
**


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


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





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

tsdok

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




RE: Problem getting latest Tomcat source

2002-09-19 Thread Craig R. McClanahan



On Thu, 19 Sep 2002, Fenlason, Josh wrote:

> Date: Thu, 19 Sep 2002 13:58:53 -0400
> From: "Fenlason, Josh" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Problem getting latest Tomcat source
>
> Thanks for the pointer.  I've looked through the manual there, but I'm
> still lost.  I'm probably stupid and missing something obviously.  It
> seems like I should be specifying the -r option, but I don't know what
> the right syntax is for the branch name.  Am I way off?  I don't suppose
> I could get you to give me an example?  I would be very grateful.
> Thanks again. , Josh.
>

If you don't specify a "-r" option, you get the HEAD branch of each
repository.  Yesterday, that would have been the correct answer because
4.1.11 had not been tagged yet.  Today, you would use "TOMCAT_4_1_11" as
your tag value if you want exactly that code (or just wait for the source
and binary bundles to be posted).

In general, to get the latest and greatest code, just omit the branch tag
completely and you'll get the HEAD branch.

Craig


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




  1   2   3   >