Re: local WEB-INF/web.xml

2002-11-25 Thread Kwok Peng Tuck
If I'm not mistaken you put the java source of the servlet into 
/WEB-INF/classes/, the directory takes class files not source files as 
per specification.
So you will need to compile the source first.

[EMAIL PROTECTED] wrote:

Hello
   Why when I add:


LoadMycompServletAtStartup
   

to a sparsely populated local web.xml file (webapps/mydir/WEB-INF/web.xml) 
does the system fail - 404 error?. Without this addition, the page loads.
The servlet 'LoadMycompServletAtStartup' is located: 
webapps/mydir/WEB-INF/classes/LoadMycompServletAtStartup.java. Must a 
specific path or URL to the file be defined? The syntax above is the only 
addition made since the installation of Tomcat. 

Thanks

paul.
 




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




Re: Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread Bill Barker
The charset support in 3.3.1 is actually very amazing, given the limitations
of the Servlet 2.2 Spec (the principal author is an iso-latin-2 person).

Firstly, Tomcat 3.3.1 will attempt to remember the last charset (in the
session) that was used for the last output page.  Since almost all browsers
will send back parameters using this encodings, this works in 99/100 cases.
When this fails, you can set the request attribute:
request.setAttribute("charset", "GB2312") before the request parameters are
parsed. (This works the same way as the 2.3 Spec
'request.setCharacterEncoding').

"John Z Yang" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> We are using Tomcat3.3.1 and Oracle on Linux.
> When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat
> turns the characters into 's.
>
> The only way we can get around this problem now is to set the IE browser
to
> check the temporary files everytime.
>
> Does anyone knows how to fix this problem?
>
> Many thanks.
>
> John





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




Re: Tomcat Connector JK2 + Apache + SSL

2002-11-25 Thread Bill Barker
This is a known bug in 4.1.12.  I believe that it is fixed since 4.1.13.

"SAG - Jose Antonio Tarifa" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello group.

I'm not able to configure Apache + SSL with Tomcat to make available to
servlets the SSL data, such like are returned by request.getRemoteUser()
function (always return NULL).

Apache runs correctly with HTTPS, but Tomcat no.

Any idea?



-
José Antonio Tarifa Lorenzo
Departamento de Desarrollo
Compañía Operadora del Mercado Español de Electricidad, S.A.
c/Alfonso XI, 6 4ª Planta. 28014 Madrid
email: [EMAIL PROTECTED] 

-







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




Re: Mod_jk Problem

2002-11-25 Thread Bill Barker
Without looking at the code, I believe that this is only caused when the
'JkWorkersFile' no longer points to the correct place in your httpd.conf (or
included file).  It can also be caused if the file can't be read from the
Apache user (On RedHat, defaults to 'apache', in the download defaults to
'nobody').

You are very brave to still be running Apache 1.3.9 :).

"Dayo Oliyide" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm currently having problems getting Apache to use load mod_jk, it keeps
giving this error "[emerg] Error while opening the workers". The
workers.properties file exists and has the right attributes. I'm using
Tomcat 3.3.1, Apache 1.3.9 and mod_jk-3.3-ap13-noeapi.so  with Sun's jdk
1.4(build 1.4.0_02-b02) on linux (2.2.12-20).
>
> Everything used to work okay the only change I've made is to Web app and
its logic, it used to run using Apache, tomcat and jonas but now uses just
Apache and tomcat. I can't understand how this could affect the mod_jk.
>
> Thanks for any help
>
> Dayo
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now





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




Re: tomcat sessions and webapp deployment

2002-11-25 Thread Ron Smits
Morning
> 
> Nope, Tomcat 4.1.x will hang onto the sessions.  And the even worse news is
> that Tomcat 3.3.2-dev will now hang onto the sessions across a
> context-reload :).

This is not the behaviour I see.Sessions are invalidated after an "ant
reload" on tomcat 4.1.12-LE on a semislackware install

Ron


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




Re: MBean server?

2002-11-25 Thread Bill Barker
I'm guessing that there is a more informative message in 'catalina.out', and
that the problem is that 4.1.12 doesn't work with xerces-2.2.x (other than
'nightly').  Replace the xerces jars in $CATALINA_HOME/common/endorsed with
the 2.1.0 version, and it should be fine.

"Shawn Wilson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have the following packages installed on a RedHat 7.3 box:
>
> tomcat4-4.1.12-full.2jpp
> tomcat4-admin-webapps-4.1.12-full.2jpp
>
> Tomcat starts up fine and I can log into the admin app without problem.
> However, the moment I try to do anything in the admin app I get a "HTTP
> Status 503 - Servlet action is currently unavailable" error, and I see
> this in my catalina.out log file:
>
> javax.servlet.UnavailableException: MBeanServer is not available
>  at
> org.apache.webapp.admin.ApplicationServlet.initServer(Unknown Source)
>  at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown
> Source)
>  at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown
> Source)
>  at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown
Source)
>  at
>
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va)
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java)
>  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
> Source)
> ...
> ...
>
> What does this exception mean, and what do I need to do to get the admin
> app running?
>
> Thanks,
> -shawn
>
> --
> 
> Shawn Wilson [[EMAIL PROTECTED]]
> Software Developer, ATMReports.com
> PH: 877-327-0873, FAX: 406-294-5806
> 





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




serverside include

2002-11-25 Thread Paul_Wallace
Hello,
Is there anyhting like a server side inlcude that is loaded into 
memory when the server starts, making variables specified in the include 
file accessible? 
Or is what I am trying to acheive (in previous posts) - session or 
application to be loaded when the server is started -  the nearest 
solution to this? I have seen documentation to have a 


local WEB-INF/web.xml

2002-11-25 Thread Paul_Wallace
Hello
Why when I add:

 
 LoadMycompServletAtStartup


to a sparsely populated local web.xml file (webapps/mydir/WEB-INF/web.xml) 
does the system fail - 404 error?. Without this addition, the page loads.
The servlet 'LoadMycompServletAtStartup' is located: 
webapps/mydir/WEB-INF/classes/LoadMycompServletAtStartup.java. Must a 
specific path or URL to the file be defined? The syntax above is the only 
addition made since the installation of Tomcat. 

Thanks

paul.


local WEB-INF/web.xml

2002-11-25 Thread Paul_Wallace
hello
Why when I add:

 
 LoadMycompServletAtStartup


to a sparsely populated local web.xml file (webapps/mydir/WEB-INF/web.xml) 
does the system fail? (404 error). Without this addition, the page loads.
The servlet 'LoadMycompServletAtStartup' is 
webapps/mydir/WEB-INF/classes/LoadMycompServletAtStartup.java. Must a 
specific URL to the file be defined? The syntax above is the only addition 
made since the installation of Tomcat.

Thanks

paul.


Re: problems with tomcat as rmi client

2002-11-25 Thread Bill Barker
I've never tried this, but probably you either want to set
"java.rmi.server.codebase" in the CATALINA_OPTS, or make certain that your
stub-classes all live within WEB-INF/lib.

"Vishal Zinjuvadia" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am trying to use a Tomcat webapp as a RMI client.
> For the test purposes, my RMI server
> resides on the same machine. When I use a Tomcat
> webapp as a client, I consistently get a
> ClassCastException, while if I use a plain java class
> for the client, it works flawlessly.
>
> Following is my client code used in the servlet and
> the plain java class.
>
> System.setProperty("java.rmi.server.codebase",
> "file:/path/to/stubfile/");
> try {
>//(line: 141)
>TestInterface testIf =
> (TestInterface)Naming.lookup("//localhost/Test");
>result = testIf.testMethod();
> } catch (Exception e) {
>servlet.log(e.getMessage());
>e.printStackTrace();
> }
>
> I am using:
> JDK-1.4
> tomcat-4.1.12
>
> From the stack it looks like the stub file is located,
> but it cannot relate it with the interface file. It
> looks like the interface file and the stub files are
> loaded with different class loaders and cannot be
> associated.
>
> java.lang.ClassCastException: Test_Stub
> at
> com.vishal.eg.TestAction.perform(TestAction.java:141)
> at
>
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1786)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.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(ApplicationFilterCh
ain.java:172)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
> at java.lang.Thread.run(Thread.java:536)
>
> Thanks in advance,
> Vishal
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com





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




Re: tomcat sessions and webapp deployment

2002-11-25 Thread Bill Barker

"Baker, Derek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> Tomcat 4.1.12, running with JBoss 3.0.4 on RedHat 8.0, seems to be holding
> onto sessions between deployments of a webapp. With the old version
> (3.something) the sessions would get killed when the app was redeployed.
But
> now I have to shutdown tomcat, redeploy the app, and then restart tomcat.
Is
> there anyway around this? Kind of slows down development.

Nope, Tomcat 4.1.x will hang onto the sessions.  And the even worse news is
that Tomcat 3.3.2-dev will now hang onto the sessions across a
context-reload :).

> Thanks.
> Derek





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




Re: I cannot make working SSL if I run tomcat as a service (NT)

2002-11-25 Thread Aurelio D'Amico
Thank you very much Anthony.
That was the right hint.

- Original Message -
From: "Anthony Mutiso 2" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 6:32 PM
Subject: RE: I cannot make working SSL if I run tomcat as a service (NT)


> Additionally you may want to make sure that the keystore file can be found
> by the user account that the tomcat service will run under.
>
> For my installation I do an explict:
>
> clientAuth="false" protocol="TLS"
>keystoreFile="conf/mykeystore.ks"
>/>
>
> In the SSL connector and make sure I have a the file "mykeystore.ks" in
the
> conf folder.
>
> Anthony
>
> -Original Message-
> From: Pae Choi [mailto:[EMAIL PROTECTED]]
> Sent: November 22, 2002 5:51 AM
> To: Tomcat Users List
> Subject: Re: I cannot make working SSL if I run tomcat as a service (NT)
>
>
> J2SDK 1.4.0_x has a bug in handling the security. Try
> it with J2SDK 1.4.1_x.
>
> Pae
>
>
> - Original Message -
> From: "Aurelio D'Amico" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 21, 2002 11:23 PM
> Subject: I cannot make working SSL if I run tomcat as a service (NT)
>
>
> > I have the following problem:
> > If I run tomcat using the provided batches I have no problem with SSL
but
> > when I run it as a service (what I need) I receive the 404 error.
> > There is someone that could help me?
> > I'm running tomcat 4.0.4 (standalone) in a window NT environment (SP6)
and
> > with java SDK 1.4.0_03
> >
> >
> > --
> > 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: 




newbiw. mysql connector problems

2002-11-25 Thread Evelin
Hi

I am a newbie and having problems with mysql connector. I 
download the mysql-connector-java-2.0.14-bin.jar and put 
the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme 
file instructed. But when I tried to run a jsp file with 
content:

<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
%>

I get the internal server error:
org.apache.jasper.JasperException: com.mysql.jdbc.Driver

Can anyone help me by telling me what I did wrong?

My system is Windows 2000 Professional system with Service 
Pack 3 and IE6(SP1) installed. I set the Tomcat to run at 
port 80 and having no problem viewing the site via 
http://localhost. The Tomcat version is 4.1.12.

Many thanks in advance.

Evelin

PS: I also tried following and got similar problems.
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("org.gjt.mm.mysql.Driver");
%>
===
Selama Bulan Suci Ramadhan, ikuti Netkuis Ramadhan, Lomba Design E-Card, Opini Berhadiah hanya di www.plasa.com
===

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



mysql connector problems

2002-11-25 Thread Evelin
Hi

I am a newbie and having problems with mysql connector. I 
download the mysql-connector-java-2.0.14-bin.jar and put 
the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme 
file instructed. But when I tried to run a jsp file with 
content:

<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
%>

I get the internal server error. Please see below. Can 
anyone help me by telling me what I did wrong?

My system is Windows 2000 Professional system with Service 
Pack 3 and IE6(SP1) installed. I set the Tomcat to run at 
port 80 and having no problem viewing the site via 
http://localhost. The Tomcat version is 4.1.12.

Many thanks in advance.

Evelin

PS: I also tried following and got similar problems.
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("org.gjt.mm.mysql.Driver");
%>





HTTP Status 500 - 



type Exception report

message 

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

exception 

org.apache.jasper.JasperException: com.mysql.jdbc.Driver
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: com.mysql.jdbc.Driver
	at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
	at org.apache.jsp.test_jsp._jspService(test_jsp.java:50)
	at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	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(StandardWrapperVal

apache and JServ

2002-11-25 Thread ranjit
Date:Mon Nov 25 15:20:04 GMT+00:00 2002
FROM: paul miller  <[EMAIL PROTECTED]>
To: Tomcat Users List  <[EMAIL PROTECTED]>
Subject: Re: apache and tomcat and a webapp

Hi Paul,

>We switched from JServ to tomcat about 2 months ago.

I would like to take this opportunity to discuss with you on JServ..

I am using JServ with apache_1.3.26 (static mode) to run my intranet
mailing system which is purely developed using java servlets. These
days it hangs very often saying 'service temporarily down' (I can
send you piece of my log, if you like to check the errors). One thing
what I observed is the number of users concurrently using the system
has increased, and so could be the problem of apache_Jserv going down. 

To get rid of the problem I thought, porting more number of Jservs 
with one apache would be help, but I don't know how to do it... can
you tell me if you have any such experience or any other suggestion if 
you have to solve this problem.

many thanks...
Ranjit.

-


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




Re: jasper.error.emptybodycontent.nonempty, MySQL

2002-11-25 Thread Eric Earnst
Hi,
Thanks for taking the time to reply.  I just got my MySQL cookbook in
the mail (has a JSP section) and combined with an O'Reilly JSP book I'm
going to try to tough it out over the Thanksgiving holiday.  I have less
documentation on your approach and it looks like even more to learn (Ant
for instance); I'm really a hardware guy who likes to play with software
;-}, I have better luck with assembler on 8 bit micros.  The JSP book is
by Bergsten and he really doesn't go into the web.xml file much, I think
I will attack that first.

Thanks again,
Eric

David Brown wrote:
> 
> Eric Earnst writes:
> 
> > Hi all,
> > I've read a lot of docs but over a long enough period of time that I
> > forget most of what I read, the recent over-age newbie really applies
> > here...
> >
> > I am putting together my first site and am getting the following error
> > message from Tomcat (4.1.12-LE-jdk14):
> > org.apache.jasper.JasperException: /pnDatabaseConnect.jsp(3,0)
> > jasper.error.emptybodycontent.nonempty
> >
> > Here is the top of the file in question:
> >
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> >
> > 
> >   var="PartNumDB" scope="application"
> >   driver="org.gjt.mm.mysql.driver"
> >   url="jdbc:mysql://localhost:3306/PartNumberMaster"
> >   user="Root"
> >   password=""
> > 
> >
> > 
> >   SELECT * FROM PartNumberMaster
> > 
> >
> > I don't have a web.xml file, every one I've come up with causes Tomcat
> > to not find my pages...  I've loaded the JSTL into:
> > C:\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\webapps\myapp\WEB-INF\lib
> > and the TLD files into the WEB-INF directory.
> >
> > Thanks,
> > Eric
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
> 
> 
> Hello Eric, i will have to admit that i'm using a tc version < 4.1.12 but i
> cannot fathom tc w/o a web.xml file. if u r a newbie then u r taking leaps
> that r too big. u have crammed a lot of functinality into a jsp using the
> tags. this is ok 4 someone w/ a lot of background but i personally don't
> recommend this approach. 4 the time being if u r interested in the
> functionality and not the implementation then allow me to suggest that u
> take a more "tiered" approach to make ur jdbc connection and sql query:
> 1) lay off the tags untill u r more experienced.
> 2) what i mean by "tier" is put ur jdbc connection and sql query in a
> separate class or "bean" away from ur web content directory. i use oracle
> and mysql all the time this way. get the class bean to execute standalone
> first b4 u put it into ur directory structure. an ascii directory tree
> follows.
> 3) inspect ur build process. using ant and bulid.xml is highly recommended.
> 4) if u get step two above to work (separating ur web content from ur
> process) then allow me to suggest introducing a third leg (in technogeek
> this is MVC: model-view-controller). this third piece is a servlet or better
> yet a "director" servlet that handles all requests from all of ur jsp's (1
> to serveral jsp's). case in point: ur jsp requests ur servlet for db info.
> the servlet requests info from ur class "bean". the servlet sends the db
> info and sql query results back to the jsp. in the long run much simpler and
> cleaner not to mention the ability to scale this "design pattern" (more
> technogeek). an example of my directory structure follows:
> 
> $TOMCAT_HOME
>   |
>   /webapps
>  |
>  /
>   /WEB-INF
>  |
>  /web.xml
> 
> $TOMCAT_HOME
>   |
>   /webapps
>  |
>  /
>   /WEB-INF
>  |
>  /classes
> |
> /
>  /\
> /  \
>/\
>  /web  /beans
> 
> this is just one director. i have the directory separated to show the
> different file contents: web.xml is always under /WEB-INF. under /web
> contains: jsp's, html's, css's, etc. and under /beans contains: ordinary
> class files w/ constructors and getter/setter methods 4 ur web objects.
> also, the /beans directory or yet another aply named directory could
> contained serialized classes 4 even more advance data movement.
> 
> this is the classic design pattern most developers have at least some
> familiarity: http://java.sun.com/blueprints/patterns/ or better yet just
> type: model-view-controler at the google prompt and start reading.
> 
> hope this helps, david.
> 
> --
> To unsubscribe, e-mail:   
> For additional comm

Re: apache and tomcat and a webapp

2002-11-25 Thread ranjit
Hi,

While compiling apache_1.3.27 with DSO support I am encountering the following 
problem, can anybody tell me what is wrong pls... 

./configure --prefix=/usr/apache --enable-module=most --enable-shared=max 
 ...
 ...
 <=== src/modules
gcc -c -I./os/unix -I./include -DIRIX -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite 
 `./apaci` modules.c 
gcc -c -I./os/unix -I./include -DIRIX -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite 
 `./apaci` buildmark.c 
 gcc -DIRIX -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` \ 
-o httpd buildmark.o modules.o modules/standard/libstandard.a main/libmain.a 
./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a 
ld32: FATAL 12: Expecting n32 objects: regex/libregex.a(regfree.o) is o32. 
 collect2: ld returned 4 exit status
 *** Error code 1 (bu21)
 *** Error code 1 (bu21)
 *** Error code 1 (bu21)

 The gcc version I am using is Thread model: single gcc version 3.0.4

 thanks,
 Ranjit.
-


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




RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-25 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find 
the jndi.properties file and 
thus connect to an external JBoss server.

Hardcoding the properties works, but is ugly since then your code is tied to the 
specific location of the JBoss 
server.and thus requries code changes and a recompile to deploy elsewhere.

Michael's suggestion of putting the jndi info into the web.xml file would work, but 
has the disadvantage of being yet 
another detail that is not standard that deployers would have to look into.

My workaround let's you put your jndi.properties file into /WEB-INF/classes as you 
would expectand that's all you 
need do.  The code is quite simple:

Properties props = new Properties();

props.load( servlet.getServletContext().getResourceAsStream( 
"/WEB-INF/classes/jndi.properties" ) );

InitialContext  ctx = new InitialContext( props );

All it requires is that you have a reference to the servlet so you can do the 
getServletContext() call.  That was a bit of 
a PITA for me...since the jmx-console code did not pass this into the class that 
needed the JNDI context...but that 
was pretty easily fixed.

I still think it should read the jndi.properties file without this workaround!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




Re: Why can't put weblogic.jar to classpath when using ant

2002-11-25 Thread David Brown
james writes: 

I did not put property name="classpath" in build.xml,
I just set the environmental variable"classpath". there are a lot of jar
files including msbase.jar, etc. coz I tested some other examples. 

James 

- Original Message -
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 3:55 PM
Subject: Re: Why can't put weblogic.jar to classpath when using ant 


james writes: 

> Hi,
>
> I have a question, when I use ant to compile some files, the following
error

> popped up, after tried a few times, I found if I delete weblogic.jar in

the

> classpath, it is OK! Why is that?
> Thanks in advance
>
> James
>
> java.lang.VerifyError: (class:
> org/apache/tools/ant/taskdefs/optional/Native2Asc
> ii, method: createMapper signature:

()Lorg/apache/tools/ant/types/Mapper;)

> Incom
> patible type for getting or setting field
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:115)
> at org.apache.tools.ant.Project.init(Project.java:163)
> at org.apache.tools.ant.Main.runBuild(Main.java:387)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
>
> --
> To unsubscribe, e-mail:



> For additional commands, e-mail:



> 




Hello, how r u defining property name="classpath" in ur build.xml? david 

--
To unsubscribe, e-mail:


For additional commands, e-mail:





 

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




Hello James, ant build ignores all reference to the environment CLASSPATH 
content. that's why the classpath property must be defined in the build.xml 
file properly. the environment CLASSPATH is inherently a problem. that is 
why ant was developed to circumvent the problems present in building 
projects in a much more consistent manner. let me suggest u create a small 
project or better yet begin w/ a fresh install of tc away from ur current 
work and re-build the tc /exampls and demos to get some more experience w/ 
ant. hope this helps, david. 

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



Re: Why can't put weblogic.jar to classpath when using ant

2002-11-25 Thread james
I did not put property name="classpath" in build.xml,
I just set the environmental variable"classpath". there are a lot of jar
files including msbase.jar, etc. coz I tested some other examples.

James

- Original Message -
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 3:55 PM
Subject: Re: Why can't put weblogic.jar to classpath when using ant


> james writes:
>
> > Hi,
> >
> > I have a question, when I use ant to compile some files, the following
error
> > popped up, after tried a few times, I found if I delete weblogic.jar in
the
> > classpath, it is OK! Why is that?
> > Thanks in advance
> >
> > James
> >
> > java.lang.VerifyError: (class:
> > org/apache/tools/ant/taskdefs/optional/Native2Asc
> > ii, method: createMapper signature:
()Lorg/apache/tools/ant/types/Mapper;)
> > Incom
> > patible type for getting or setting field
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:115)
> > at org.apache.tools.ant.Project.init(Project.java:163)
> > at org.apache.tools.ant.Main.runBuild(Main.java:387)
> > at org.apache.tools.ant.Main.main(Main.java:149)
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
>
>
>
>
> Hello, how r u defining property name="classpath" in ur build.xml? david
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




NoSuchMethodError

2002-11-25 Thread Abhijat Thakur

When i am trying to access a servlet through tomcat it gives me a 
java.lang.NoSuchMethodError. From the stack trace at LoginServlet.java:238(which is my 
servlet) all i am doing is that i have a handle to HttpSession object and i call the 
setAttribute method to bind an object with the session. Why do i get this error?

thanks 
abhijat


java.lang.NoSuchMethodError
at 
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1262)
at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
at com.bdna.pl.servlet.LoginServlet.doPostMethod(LoginServlet.java:238)
at com.bdna.pl.servlet.LoginServlet.service(LoginServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)


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




RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek

Oh, I didn't realize that you could use a RequestDispatcher within a Filter, but
now that I look at the Filter documentation again, I don't see any reason why 
not. Thanks, that's a good idea.
That also explains why my original subject line was "using a Filter to rewrite the
URL" -  I initially attempted to write a Filter which examined the request path
and took appropriate action but I could never work out how to then "forward" 
(all the Filter documentation talks about chaining instead). It never occured to me
to use a RequestDispatcher to do that, which is where you came in.

Thanks again for clarifying everything.

Stephen.


 

 "Cox, Charlie" <[EMAIL PROTECTED]> wrote:You can use a servlet or a filter. Filter 
mappings can overlap servlet
mappings if you need them to. You can map all requests, or you can only map
the specific paths for which you will use forward(). You probably want a
filter if you are going to map all requests.

glad to help :-)

Charlie


> -Original Message-
> From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:47 PM
> To: Tomcat Users List
> Subject: RE: help with multilingual JSP sites pls. using a Filter to
> rewri te the URL ?
> 
> 
> 
> Thanks Charlie.
> Genius. Another simple solution saves the day. 
> I presume you also mean that I should map all incoming requests to a
> servlet that then examines the PathInfo and issues the 
> requestDispatcher.
> Magnificent solution. Thank you indeed.
> Stephen.
> "Cox, Charlie" wrote:use 
> request.gePathInfo() to get the path. Then parse the string and use
> RequestDispatcher.forward("/products/Toys/index.jsp?myparam="+
> langString).
> The forward() will not be subject to further filter processing.
> 
> Charlie
> 
> > -Original Message-
> > From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 25, 2002 11:27 AM
> > To: Tomcat Users List
> > Subject: Re: help with multilingual JSP sites pls. using a Filter to
> > rewrite the URL ?
> > 
> > 
> > 
> > Sorry, I'm not making myself clear here. My JSPs do exactly 
> > as you suggest 
> > so that I have one JSP serving up French and English pages, 
> > depending on 
> > the language that the user selected on my site.
> > Here is the problem explained very simply. I have a sitemap 
> > as follows:
> > /en
> > --> /Products
> > --> Toys/index.jsp
> > --> Decoration/index.jsp
> > /fr
> > --> /Products
> > --> /Toys/index.jsp
> > --> /Decoration/index.jsp
> > 
> > As you can see, this is braindead. If I wish the 
> > functionality of the English section 
> > of the site to be the same as that of the French part of the 
> > site, then any change
> > to a JSP in the 'en' part must be repeated within the 'fr' 
> > site. This is not 
> > scalable and is tedious. 
> > 
> > Instead, it would be much better if I had one site structure 
> > which served up the
> > whole site.
> > 
> > /Products
> > --> /Toys/index.jsp
> > --> /Decoration/index.jsp
> > 
> > Any changes to functionality only have to be made in one 
> > place and both the
> > french viewers and english viewers will experience the same 
> > user experience, 
> > just in different languages. (I use the properties files as 
> > you suggest to 
> > serve up different languages).
> > 
> > The problem however is "how does /Products/Toys/index.jsp" 
> > know whether
> > the user is viewing in English or French ? The easy way would 
> > be to have the
> > user select a language on entering the site and then store 
> > the language 
> > preference in a cookie which I check before serving up pages. 
> > However, 
> > users may access the site from a search engine or from direct 
> > URLs due to
> > promotions. I would like a request for 
> > /en/Products/Toys/index.jsp to be 
> > sent to /Products/Toys/index.jsp but with a 'lang' parameter 
> > set to 'en'. 
> > Likewise for the french part of the site. 
> > 
> > Surely somebody has had to encounter this sort of problem in 
> > dealing with
> > pan-European sites ?
> > 
> > Stephen.




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



Re: Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread Stephen Riek

There are so many possible reasons for this. My advice,
1. Check that the data you send is being received as GB2312 or whatever. 
Easiest way to do this is to write it out to a text file. See the 
"Discrepancies..."
thread for my code to do just this.
2. Also in the "Discrepancies" thread, you'll probably find that the data is received
   as iso-1889_1 and stored in the database as such. 
3. Extracting from the database, you may need to do this,
  try {
   field1 = new String(rs.getBytes("field1"), "gb2312");
  }
  catch(java.io.UnsupportedEncodingException e) {
  field1 = rs.getString("field1");
  }
Hope that puts you in the right direction.
Stephen.
 Joel Rees <[EMAIL PROTECTED]> wrote:> Hi,
> We are using Tomcat3.3.1 and Oracle on Linux.
> When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat 
> turns the characters into 's.
> 
> The only way we can get around this problem now is to set the IE browser to 
> check the temporary files everytime.

I think I've seen this on the list, quite recently, in fact. Check the
archives. Look for "internationalization" and "multilingual" and words
like "properties". (In fact, I think there is a relevant current thread.)

You can find archives through the apache/jakarta site. I bookmarked marc
(http://marc.theaimsgroup.com, don't remember if tomcat-user is in the
jakarta group or the java group) but there are others, too.

(Sorry to not be much help today.)

-- 
Joel Rees 


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




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



Re: Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread Joel Rees
> Hi,
> We are using Tomcat3.3.1 and Oracle on Linux.
> When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat 
> turns the characters into 's.
> 
> The only way we can get around this problem now is to set the IE browser to 
> check the temporary files everytime.

I think I've seen this on the list, quite recently, in fact. Check the
archives. Look for "internationalization" and "multilingual" and words
like "properties". (In fact, I think there is a relevant current thread.)

You can find archives through the apache/jakarta site. I bookmarked marc
(http://marc.theaimsgroup.com, don't remember if tomcat-user is in the
jakarta group or the java group) but there are others, too.

(Sorry to not be much help today.)

-- 
Joel Rees <[EMAIL PROTECTED]>


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




Is there a secureCookie type of paramater for Tomcat 4.1.12?

2002-11-25 Thread Raiden
Hello,

Tomcat 3.3.2 has a secureCookie paramater that restores the old behavior
of not making the sessionId cookie a secure cookie if it was created
under https.  Is there such a parameter in 4.1.12?

I know there has been a thread debating the reasons as to why a
session that is created under https is not available to http pages.

However, I have an application that was designed for the old spec, in
which a session was available to both http and https pages, regardless of
which protocol the session was created under.

I have avoided the security problem of hijacked sessions by making sure
that sensitive pages are ALWAYS require https, and I drop a secure
cookie of my own when someone logs in (the login page is under https of
course), so that even if someone hijacks the http pages, they cannot
hijack the https pages without passing back that cookie (whose contents I
store in the session for verification).

However, since upgrading to 4.1.12, I have realized that my application
can no longer function, because I rely on people creating a session under
https... and then accessing non-sensitive pages under http.  But, in
4.1.12, the session is not available to subsequently accessed http
pages... and I really don't want to start encrypting these non-sensitive
pages.  (But, I do want the user logged in before they can access these
pages.)

Does something like the secureCookie parameter exist in 4.1.12?

Thanks,
Raiden



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




Re: Form-based authentication - can I get original URL?

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Matt Raible wrote:

> Date: Mon, 25 Nov 2002 17:02:21 -0700
> From: Matt Raible <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: Form-based authentication - can I get original URL?
>
> On Tomcat 4/5, I am able to use the following configuration in my
> web.xml:
>
> 
> FORM
> 
> /login.jsp
> /login.jsp?error=true
> 
> 
>
>
> However, I know that there are app servers out there that do not support
> this - the form-error-page MUST be a different JSP.  So I'm wondering,
> is there a value I can grab in my login.jsp that tells me the URL of the
> protected resource the user is trying to get to?
>
> I tried <%=request.getRequestURL()%>, but that gives me .../login.jsp -
> and I want mainMenu.do.
>
> I know iPlanet used to set a cookie and I could use that as specified
> at:
>
> http://husted.com/struts/resources/fb-auth.htm

There is no portable mechanism to acquire the request URL that was
originally requested, nor any guarantee that this is even possible.  All
you know is that the container has detected that a protected URL was
requested, and that there was no currently authenticated user.

>
> Thanks,
>
> Matt
>

Craig


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




RE: Tomcat or JBoss?

2002-11-25 Thread Schnitzer, Jeff
> From: Price, Erik [mailto:[EMAIL PROTECTED]]
> 
> If they are overkill for webapps, what sorts of situations would
benefit
> from them?
> (Not asking rhetorically, I'm honestly curious about when to use EJB
since
> I know nothing about them.)

Applications which are very transaction-oriented will benefit from the
convenience of declarative transactions - it's much easier to write
applications that don't have to manage transactions by hand.  This is a
compelling reason to use Session EJBs.

There are, IMHO, no compelling reasons to use Entity EJBs.  Entities are
poorly thought out and implemented even worse.  You are much, much
better off with any of the open-source O/R mechanisms (Hibernate, OJB,
Torque) or just simply hand-coding your JDBC.  We would all be better
off if Sun would just give up on this lousy idea and let that part of
the spec die out.

Jeff

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




Does Tomcat 4.1.12 create a process for every virtual host in server.xml?

2002-11-25 Thread Brandon Cruz
It seems that tomcat 4.1.12 is creating way too many processes when I start
it up in linux.  I am already running tomcat 3.2.4 with about 200 virtual
hosts with no problem.  When I try to start up tomcat 4.1.12 with the same
amount of virtual hosts it gives me an out of memory error saying it is
"unable to create a new native thread".

Is there something I need to do to minimize the amount of processes created.
Even if it would start, as more are created on my machine, the main java
process that monitors them ends up taking all the cpu.

Brandon


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




Form-based authentication - can I get original URL?

2002-11-25 Thread Matt Raible
On Tomcat 4/5, I am able to use the following configuration in my
web.xml:


FORM

/login.jsp
/login.jsp?error=true




However, I know that there are app servers out there that do not support
this - the form-error-page MUST be a different JSP.  So I'm wondering,
is there a value I can grab in my login.jsp that tells me the URL of the
protected resource the user is trying to get to?

I tried <%=request.getRequestURL()%>, but that gives me .../login.jsp -
and I want mainMenu.do.

I know iPlanet used to set a cookie and I could use that as specified
at: 

http://husted.com/struts/resources/fb-auth.htm

Thanks,

Matt



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




RE: Tomcat or JBoss?

2002-11-25 Thread Price, Erik


> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 3:08 PM
> To: Tomcat Users List
> Subject: RE: Tomcat or JBoss?
> 
> 
> >If they are overkill for webapps, what sorts of situations would
> benefit
> >from them?
> 
> 
> NEVER
> http://www.softwarereality.com/programming/ejb/index.jsp
> 
> 
> (Just kidding) ;)



Thanks, I will read this regardless.


Erik

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




Re: help with multilingual JSP sites pls. using a Filter to rewritethe URL ?

2002-11-25 Thread Kwok Peng Tuck
Why don't you look up on resource bundles instead?

Stephen Riek wrote:


Sorry, I'm not making myself clear here.  My JSPs do exactly as you suggest 
so that I have one JSP serving up French and English pages, depending on 
the language that the user selected on my site.
Here is the problem explained very simply. I have a sitemap as follows:
/en
--> /Products
 --> Toys/index.jsp
 --> Decoration/index.jsp
/fr
--> /Products
 --> /Toys/index.jsp
 --> /Decoration/index.jsp

As you can see, this is braindead. If I wish the functionality of the English section 
of the site to be the same as that of the French part of the site, then any change
to a JSP in the 'en' part must be repeated within the 'fr' site. This is not 
scalable and is tedious. 

Instead, it would be much better if I had one site structure which served up the
whole site.

/Products
  --> /Toys/index.jsp
   --> /Decoration/index.jsp

Any changes to functionality only have to be made in one place and both the
french viewers and english viewers will experience the same user experience, 
just in different languages. (I use the properties files as you suggest to 
serve up different languages).

The problem however is "how does /Products/Toys/index.jsp" know whether
the user is viewing in English or French ? The easy way would be to have the
user select a language on entering the site and then store the language 
preference in a cookie which I check before serving up pages. However, 
users may access the site from a search engine or from direct URLs due to
promotions.  I would like a request for /en/Products/Toys/index.jsp to be 
sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. 
Likewise for the french part of the site. 

Surely somebody has had to encounter this sort of problem in dealing with
pan-European sites ?

Stephen.



Triptpal Singh Lamba <[EMAIL PROTECTED]> wrote:One way you can do this is using property files.

Prop_ file name _ language code.properties

So for say abc.jsp , you have abc_en.properties and abc_fr.properties.

At comple time the JSP calls a class you write at server which gives say String languageCode  = ObjectName.getLaguageCode(param 1 ,param 2);  %>

Then all JSP elements are picked from there.
Thanks
Tript Singh





-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

 




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




Excessive Thread Count

2002-11-25 Thread Chris Massam
Hi all,

I was hoping someone would be able to assist me with debuging this problem.

Firstly, a bit of Setup background.

Tomcat 4.1.12 running with JDK1.3.1_04 (Sun Release), under Redhat Linux 
7.3.

The application consists of various JSP's and Servlets.

I've been noticing excessive thread pooling, what seems to happen is this.

- A POST is made to a Servlet - which runs a JavaBean, updating a DB.
- During this POST, 3 Additional threads are created by Tomcat.

Once this POST has finished, the thread count is never reduced, whats 
more of a problem is the next time the same Servlet is POST'd to, 
another 3 threads are created.

So, after a few hours we have a few hundred threads running, and after 
running it overnight, there can be over a thousand threads by morning, 
at which point Tomcat is unresponsive, and unstoppable (kill -9 works 
though).

The servlets/beans connected via Corba to a backend system, which has 
been running via in various implementations for a while.

I have checked the connector configuration, we are using Coyote1.1, 
below is the relevant config file section...

--


  port="8000" minProcessors="5" maxProcessors="75"
  enableLookups="false"
  acceptCount="10" debug="0" scheme="https" secure="true"
  useURIValidationHack="false">
  
clientAuth="false" protocol="TLS" keystorePass="" />


--

Any assistance, places too look, suggestions would be great.

Kind Regards
Chris Massam








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



Re: JDK is not enough. SDK is needed

2002-11-25 Thread Yandell Cacton
Hello,

I hope you don't get angry as easy as you get
frustrated.

> > According to this page, it references j2se which
> is the JRE, the runtime.
> If
> > you're using Tomcat binaries and not compiling any
> Java, you would think
> you
> > only need the runtime libraries and not the whole
> SDK.
> >
>
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#1
> >

Are you questioning that web page or questioning the
jakarta web site?

> > Also Jakarta's site is one of the worst sites I
> visited. The home page
> says
> > nothing about Jakarta upfront.
>No intro about
> jakarta and what it's about.
> > The first section is news. I mean what is Jakarta
> exactly? 

At the very top left of jakarta website, there is
bolded text called "About Jakarta", and it has some
sub menus. Well, if you read all those sub menus,
normal people would have grasp what Jakarta is all
about.

> The FAQ says
> > nothing about Tomcat.

Maybe it's "not yet" instead of "nothing".
You can of course find tons of Tomcat FAQs on the net,
one of them is http://www.jguru.com/faq/Tomcat.

>There's no 'requirements'
> section. Therefore I can't
> > find out what I need to run Tomcat.

This is unfortunately true. Well, you have to go
trough the documentation for each Tomcat version.
Requirements differ from version to version :(.

>For someone
> who just wants to use it,
> > the resources are hidden in the site. There's no
> search function and the
> > site is not easy to navigate.

Yep, a search function will be helpful. I tend to
search Google cache tho.

> I hope it wasn't
> developed by a developer.
> Web
> > developers do not necessarily design good web
> pages.

I hope you are not a designer who is lazy to think. :)
Oh well, jakarta website (and all apache) is designed
by developers for sure.

Cheers,
Yandell.

http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
- Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!

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




Running Tomcat 4.0.6 as a service and proividing parameters?

2002-11-25 Thread John Mattos

Hi

when I run Tomcat from a batch file, I supply the following parameters...

set CATALINA_OPTS="-Dindemand.env=C:\Tomcat4.0.6\conf\indemand_env_tomcat.properties"

How do I do that when I'm starting Tomcat as a service?



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Persistent Storage error

2002-11-25 Thread Jay Wright

I'm getting a persistent storage error that I've never seen before:

2002-11-25 15:13:10 StandardManager[/waf] Exception loading sessions from
persistent storage

Is there a way to turn this off?  Or a reason it's happening?  I don't want
to persist sessions, I'd rather they die and go away if there's any problems
on the server.  

I'm running tomcat 4.1.12 in dev and 4.0.4 in production and just today I've
started seeing it in both places for the first time.

Jay

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




Re: I think I broke jsp compiler

2002-11-25 Thread David Brown
Grinvald, Edward writes: 

Hello all,
I'm trying to swap out a jre/jdk (yes, I know the diff) on the fly from
tomcat 3.3a. All seems well with 1.3.1, but I'm getting problems with
1.4. It seems that the jsp simply don't get compiled (I get blank
screen). Since my error page is also a jsp, where would I see jsp
compilation errors (tool too recent or something), or how would I debug
this. 

Thank you, 

edward 

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





Hello Edvard, have u checked ur $TOMCAT_HOME/logs directory? thanx, david.

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




Re: Problems running Tomcat from command line

2002-11-25 Thread Manavendra Gupta
Did you try this by opening a new command window? (After you change the
comspec parameters, the changes take place only in a new window).

Manav.
- Original Message -
From: "Steve Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 4:09 AM
Subject: Re: Problems running Tomcat from command line


> ComSpec, I made a typo
>
> Steve
>
> At 04:09 AM 11/26/2002 +0530, you wrote:
> >Are you sure you modified ComSpec or ComSec (as you mentioned)?
> >
> >Manav.
> >- Original Message -
> >From: "Steve Russell" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, November 26, 2002 3:56 AM
> >Subject: RE: Problems running Tomcat from command line
> >
> >
> > > At 02:04 PM 11/25/2002 -0800, you wrote:
> > >
> > > >Steve Russell,
> > > >
> > > >Perhaps this link will help:
> > > >
> > > >http://www.google.com/search?q=out+of+environment+space+tomcat
> > > >
> > > >
> > > >Try to get that "out of environment space" error to go away, then
we'll
> > > >work on the absentee "servlet.jar" issue.
> > >
> > >
> > >
> > > Win 2000 does it differently.
> > >
> > > I went into control panel |  system |  advanced | environment
> > > and set
> > > ComSec to
> > > C:\WINNT\sysem32\cmd.exe /e:32768
> > >
> > > No effect
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> >
> > > For additional commands, e-mail:
> >
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>
> Steve Russell
> Applications Developer
>
> 301-251-1161 x 275
> [EMAIL PROTECTED]
>
> Emmes Corporation
> 401 N. Washington Street, Suite 700
> Rockville, MD 20850 - 1785
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Tomcat 4.1.12 Logs??

2002-11-25 Thread David Brown
Prashanth Pushpagiri writes: 

Hi: 

I am running Tomcat 4.1.12 alongside IIS 5.0. I have
no installation problems, but what I'd like to know
is how to set up my logs. In all previous versions of
Tomcat I observed Tomcat logging access details
(complete HTTP requests made) in files like
localhost_accesslog_***.txt, but in 4.1.x I havent
seen these files being created in
$CATALINA_HOME/logs.
Do we need to set it up? If so how? If not where are
these logs? 

Thanks
Prashanth
  

 

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com 

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





Hello Prashanth, i thought these logs were set up in server.xml within a 
context definition. hope this helps, david.

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



RE: virtual machine option

2002-11-25 Thread srinath narasimhan
I have used it and it seems to work. Can you send in your full tomcat.exe command with 
the options.



-Original Message-
From: Dave Roberts [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 17:35
To: [EMAIL PROTECTED]
Subject: virtual machine option


I am trying to get tomcat to pass options to the java virtual machine (i.e. -Xss800m). 
I cannot find a definative solution on the web, let alone one that actually works. I 
have tried the JAVA_OPTS environment variable to no avail, editing the registry key 
(couldn't find it), and passing the jvm_options switch to tomcat.exe. I am using 
Tomcat 4.0.6 on Windows 2000 Professional addition with jdk 1.4.0.
Thanks in advance for any suggestions.
 
-Dave


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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
ComSpec, I made a typo

Steve

At 04:09 AM 11/26/2002 +0530, you wrote:

Are you sure you modified ComSpec or ComSec (as you mentioned)?

Manav.
- Original Message -
From: "Steve Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 3:56 AM
Subject: RE: Problems running Tomcat from command line


> At 02:04 PM 11/25/2002 -0800, you wrote:
>
> >Steve Russell,
> >
> >Perhaps this link will help:
> >
> >http://www.google.com/search?q=out+of+environment+space+tomcat
> >
> >
> >Try to get that "out of environment space" error to go away, then we'll
> >work on the absentee "servlet.jar" issue.
>
>
>
> Win 2000 does it differently.
>
> I went into control panel |  system |  advanced | environment
> and set
> ComSec to
> C:\WINNT\sysem32\cmd.exe /e:32768
>
> No effect
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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


Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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




virtual machine option

2002-11-25 Thread Dave Roberts
I am trying to get tomcat to pass options to the java virtual machine (i.e. -Xss800m). 
I cannot find a definative solution on the web, let alone one that actually works. I 
have tried the JAVA_OPTS environment variable to no avail, editing the registry key 
(couldn't find it), and passing the jvm_options switch to tomcat.exe. I am using 
Tomcat 4.0.6 on Windows 2000 Professional addition with jdk 1.4.0.
Thanks in advance for any suggestions.
 
-Dave



Re: Problems with Tomcat 4.1.12 and FORM based authentication

2002-11-25 Thread David Brown
Quenten Van Egeren writes: 

Here is my app directory structure under Tomcat : 

$TOMCAT_HOME
  webapps
myApp
  WEB-INF
 
The files I want secured are /do (instead of X.do, the
files appear as /do/X). 

The other thing I'm seeing, as well as the login
issues mentioned previously, is the fact that if I
successfully login the first time into the site, close
my browser, and then try to authenticate with invalid
data, it logs me in correctly with the previous
attributes. 

For example, say my valid login is
validLogin/validPass.  If I try to auth the first time
into the site with validLogin/validPass it
authenticates correctly.  However, if I close my
browser and try to go back in and authenticate with
garbagelogin/garbagepass (which doesn't exist in my
DB), it still authenticates me as
validLogin/validPass.  This is not correct, and is
another symptom of something I'm doing incorrectly.   

Has anyone else seen this type of behavior? 

Dave, it seems like changing 
/do/* 
to 
* 
will make everything secure, which isn't the outcome I
am looking for... 

Thanks for any info... 

Quenten 


--- David Brown <[EMAIL PROTECTED]> wrote:
Quenten Van Egeren writes:  

> I'm having the following problem when using FORM
based
> authentication with Tomcat 4.1.12 : 
> 
> When I bring up a new browser window, and go to a
> protected page (under /do/) I am redirected to the
> login.jsp as I should be.  If I enter the correct
> username / password, I am logged in correctly and
> forwarded back to the page I was trying to access. 

> This all works correctly. 
> 
> However, if I enter garbage for a username and
> password, I am redirected to the error.jsp page,
which
> is also correct.  I then click the link on the
> error.jsp page that takes me back to the login.jsp
> page and try to login again with a valid
> username/password combo, and it instantly
redirects me
> back to the error.jsp page.  This isn't correct
(as
> far as I can tell) since it should have
successfully
> authed me the second time into the page. 
> 
> I was wondering if anyone else had run into this
> issue, or if there was something I was missing in
one
> of the config files or my web.xml file. 
> 
> I am also using struts, but I don't think that has
> anything to do with this error, since it appears
to be
> a j_security_check setup issue somehow. 
> 
> Any help would be greatly appreciated. 
> 
> Thanks, 
> 
> Quenten 
> 
> Here is my code : 
> 
> + my application web.xml +
> 
> Security Constraint
> 
> Protected
Area
> /do/*
> GET
> POST
> PUT
> 
> 
> eadmin
> member
> 
>  
> 
> 
> FORM
> My JDBCRealm
> 
> /login.jsp 
 
> /error.jsp
> 
> /login-config> 
> 
> 
> admin role.
> eadmin
> 
> 
> member role.
> member
>  
> 
> + tomcat server.xml + 
> 
>  className="org.apache.catalina.realm.JDBCRealm"
> debug="50"   
> driverName="org.postgresql.Driver" 
> 

connectionURL="jdbc:postgresql://localhost:5432/mydb?user=postgres:password=postgres"

>  userTable="members" userNameCol="login"
> userCredCol="password"
> userRoleTable="member_roles_view"
> roleNameCol="user_role" /> 
> 
> + my login.jsp +
> 
> 
> Login Page for Examples
> 
> 
>   
> 
>   Username:
>   
> name="j_username">
> 
> 
>   Password:
>   
> name="j_password">
> 
> 
>   
> value="Log In">
>   
> 
>   
> 
> 
>  
> 
> + my error.jsp +
> 
> 
> Error Page For Examples
> 
> 
> Invalid username and/or password, please try
> again.
> 
>  
> 
>  
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus – Powerful. Affordable. Sign up
now.
> http://mailplus.yahoo.com 
> 
> --
> To unsubscribe, e-mail:  

> For additional commands, e-mail:
 
> 
  


Hello Quenten, if ur web.xml is:
$TOMCAT_HOME
  |
  /webapps
 |
 /do
   |
   /WEB-INF  

then change ur web.xml tag:

 /do/*  

to only:  


*  

hope this helps, david. 

--
To unsubscribe, e-mail:  

For additional commands, e-mail:
 

 

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com 

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



Hello Quenten, look at the directory tree again. if ur webapp is being built 
correctly then u should have a different web.xml for each app u build. thus, 
making each webapp directory unique and therefore using: 
* only makes everything secure below this point 
in the directory tree: 

$TOMCAT_HOME
 |
 /webapps
|
/do <- security starts here
  |
  /WEB-INF/web.xml 

let me contrast this: 

$TOMCAT_HOME
 |
 /webapps

Re: Problems running Tomcat from command line

2002-11-25 Thread Manavendra Gupta
Are you sure you modified ComSpec or ComSec (as you mentioned)?

Manav.
- Original Message -
From: "Steve Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 3:56 AM
Subject: RE: Problems running Tomcat from command line


> At 02:04 PM 11/25/2002 -0800, you wrote:
>
> >Steve Russell,
> >
> >Perhaps this link will help:
> >
> >http://www.google.com/search?q=out+of+environment+space+tomcat
> >
> >
> >Try to get that "out of environment space" error to go away, then we'll
> >work on the absentee "servlet.jar" issue.
>
>
>
> Win 2000 does it differently.
>
> I went into control panel |  system |  advanced | environment
> and set
> ComSec to
> C:\WINNT\sysem32\cmd.exe /e:32768
>
> No effect
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Does web.xml inherit?

2002-11-25 Thread Ben Ricker
I am running Tomcat 4.0.6 on Solaris. We are getting complaints of
session timeouts from users. Looking around I found the "Default Session
Configuration" section of the web.xml in the /conf directory. The app is
in its own context defined by its own web.xml.

So my question is: does the web.xml inherit the values from the web.xml
in the /conf directory (let us call it the "main" web.xml)? Or are the
default values listed in the main web.xml the default values for ALL
other contexts if they are not explicitely changed in the other
contexts?

Thanks,

Ben Ricker
Wellinx.com




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




RE: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
At 02:04 PM 11/25/2002 -0800, you wrote:


Steve Russell,

Perhaps this link will help:

http://www.google.com/search?q=out+of+environment+space+tomcat


Try to get that "out of environment space" error to go away, then we'll 
work on the absentee "servlet.jar" issue.



Win 2000 does it differently.

I went into control panel |  system |  advanced | environment
and set
ComSec to
C:\WINNT\sysem32\cmd.exe /e:32768

No effect


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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
Right clicking on the startup.bat icon, going to properties I get

Target : C:\TOMCAT\bin\startup.bat

Start In: C:\TOMCAT\bin

Steve

At 02:11 PM 11/25/2002 -0800, you wrote:

As you probably know, the icon shows what command it actually issues in 
the "properties" dialogue (right-click on it) along with a "directory to 
start in" property.  What are these poperties?

Julius Davies wrote:
Steve Russell,
Perhaps this link will help:
http://www.google.com/search?q=out+of+environment+space+tomcat

Try to get that "out of environment space" error to go away, then we'll 
work on the absentee "servlet.jar" issue.

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385


-Original Message-
From: Steve Russell [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:55 PM
To: Tomcat Users List
Subject: Re: Problems running Tomcat from command line


Hi;

I'm reposting this, hoping  that this version is more clear.
--

I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ).

I can start tomcat by double clicking the startup.bat file in
C:\TOMCAT\bin.

However, I can't start tomcat programmatically by typing "startup.bat"
or "startup" ( without quotes ) from a dos prompt that is in
C:\TOMCAT\bin

I have tried running C:\TOMCAT\bin directly.  It complains that it is
out of environment space ( how do you set that in win 2000 )AND
that it cant find C:\TOMCAT\lib\servlet.jar

Its there.

Here are the Windows 2000 environmental variables I have set for
"system":


CLASSPATH:
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\
lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:
JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR
OGRA~1\ULTRAE~1;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Thanks in advance for any clues

Steve


--
To unsubscribe, e-mail:

For additional commands, e-mail: 


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



--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.


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


Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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




Problem finding HttpJspBase

2002-11-25 Thread David Howard
I am new to Tomcat and am using Tomcat 4.1. I have installed it and
everything seems to be working including the example programs.
 
When I setup and run my application, I am getting the following error
when ever I try and run my java application.  I looked into why this
might occur.  Supposedly, this would occur if the jasper-runtime.jar is
not in the CLASSPATH.  I have checked and jasper-runtime.jar it is in
the tomcat/common/lib directory.  From reading the documentation all the
jars in that directory are automatically added to the Tomcat CLASSPATH.

 
Am I misreading the documentation?
Is there something else I need to configure?
 
ERROR>>>
 

HTTP Status 500 - 

  _  


type Exception report

message 

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

exception 

javax.servlet.ServletException: org/apache/jasper/runtime/HttpJspBase

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(Applica
tionFilterChain.java:247)

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

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

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

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)

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

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)

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

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

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

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

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

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

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.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:380)

at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:533)

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



root cause 

java.lang.NoClassDefFoundError: org/apache/jasper/runtime/HttpJspBase

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:509)

at java.lang.ClassLoader.defineClass(ClassLoader.java:438)

at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215)

at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)

at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
504)

at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:145)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:189)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)

at
org.apache.catalina.core.Application

Re: Problems running Tomcat from command line

2002-11-25 Thread Manavendra Gupta
Hi,

All your problems stem from the lack of environment space. If you run this
on '95/98 you'd get the same error.

While running tomcat, do you really need to have such a long path (as
specified)? You could write a small batch file to keep the path to the bare
minimum - this way you'd have more space for initialization of tomcat. this
is a temporary solution - since most of the jar files you'd come across
force you to include them in the classpath.

Manav.
- Original Message -
From: "Steve Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 3:25 AM
Subject: Re: Problems running Tomcat from command line


> Hi;
>
> I'm reposting this, hoping  that this version is more clear.
> --
>
> I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ).
>
> I can start tomcat by double clicking the startup.bat file in
> C:\TOMCAT\bin.
>
> However, I can't start tomcat programmatically by typing "startup.bat"
> or "startup" ( without quotes ) from a dos prompt that is in
> C:\TOMCAT\bin
>
> I have tried running C:\TOMCAT\bin directly.  It complains that it is
> out of environment space ( how do you set that in win 2000 )AND
> that it cant find C:\TOMCAT\lib\servlet.jar
>
> Its there.
>
> Here are the Windows 2000 environmental variables I have set for
> "system":
>
>
> CLASSPATH:
>
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.ja
r
>
> PATH:
>
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\s
ystem32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuE
macs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program
> Files\Microsoft SQL Server\80\Tools\BINN;
>
> JAVA_HOME:
> C:\JDK
>
> TOMCAT_HOME
> C:\TOMCAT
>
> Thanks in advance for any clues
>
> Steve
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Setting up an environment variable in Tomcat 4.1

2002-11-25 Thread John Mattos
As a follow up question, how would I set this up if I'm using Tomcat as a Service?
On the command line, I use...

set CATALINA_OPTS="-Dindemand.env=C:\Tomcat4.0.6\conf\indemand_env_tomcat.properties"

 
 Re: Setting up an environment variable in Tomcat 4.1
-

   From: Craig R. McClanahan 
   Subject: Re: Setting up an environment variable in Tomcat 4.1 
   Date: Thu, 31 Oct 2002 12:06:13 -0800 

-

On Thu, 31 Oct 2002, John Mattos wrote:> Date: Thu, 31 Oct 2002 12:00:56 -0800 (PST)> 
From: John Mattos <[EMAIL PROTECTED]>> Reply-To: Tomcat Users List 
<[EMAIL PROTECTED]>,>  [EMAIL PROTECTED]> To: Tomcat Users List 
<[EMAIL PROTECTED]>> Subject: Re: Setting up an environment variable in 
Tomcat 4.1>>> So how would I set up "indemand.env" as a system property? Also, yes, 
that's how I'm >gettng it in code.Same way you set system property values for any 
other Java application -include them on the command line that starts Tomcat.  You can 
do that bydefining an environment variable named CATALINA_OPTS that contains 
thecommand line options you want to pass to the JVM.set 
CATALINA_OPTS="-Dindemand.env=..."Note that this is global to all webapps, and you'll 
need to restart Tomcatin order to change it.Craig--To unsubscribe, e-mail:   
For additional commands, 
e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Problems running Tomcat from command line

2002-11-25 Thread Christopher Mark Balz
As you probably know, the icon shows what command it actually issues in 
the "properties" dialogue (right-click on it) along with a "directory to 
start in" property.  What are these poperties?

Julius Davies wrote:
Steve Russell,

Perhaps this link will help:

http://www.google.com/search?q=out+of+environment+space+tomcat


Try to get that "out of environment space" error to go away, then we'll work on the absentee "servlet.jar" issue.


Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385




-Original Message-
From: Steve Russell [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:55 PM
To: Tomcat Users List
Subject: Re: Problems running Tomcat from command line


Hi;

I'm reposting this, hoping  that this version is more clear.
--

I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ).

I can start tomcat by double clicking the startup.bat file in
C:\TOMCAT\bin.

However, I can't start tomcat programmatically by typing "startup.bat"
or "startup" ( without quotes ) from a dos prompt that is in
C:\TOMCAT\bin

I have tried running C:\TOMCAT\bin directly.  It complains that it is
out of environment space ( how do you set that in win 2000 )AND
that it cant find C:\TOMCAT\lib\servlet.jar

Its there.

Here are the Windows 2000 environmental variables I have set for
"system":


CLASSPATH:
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\
lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:
JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR
OGRA~1\ULTRAE~1;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Thanks in advance for any clues

Steve


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.


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




tomcat sessions and webapp deployment

2002-11-25 Thread Baker, Derek
Hello,
Tomcat 4.1.12, running with JBoss 3.0.4 on RedHat 8.0, seems to be holding
onto sessions between deployments of a webapp. With the old version
(3.something) the sessions would get killed when the app was redeployed. But
now I have to shutdown tomcat, redeploy the app, and then restart tomcat. Is
there anyway around this? Kind of slows down development.
Thanks.
Derek

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




RE: Problems running Tomcat from command line

2002-11-25 Thread Julius Davies

Steve Russell,

Perhaps this link will help:

http://www.google.com/search?q=out+of+environment+space+tomcat


Try to get that "out of environment space" error to go away, then we'll work on the 
absentee "servlet.jar" issue.


Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385


> -Original Message-
> From: Steve Russell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 1:55 PM
> To: Tomcat Users List
> Subject: Re: Problems running Tomcat from command line
> 
> 
> Hi;
> 
> I'm reposting this, hoping  that this version is more clear.
> --
> 
> I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ).
> 
> I can start tomcat by double clicking the startup.bat file in
> C:\TOMCAT\bin.
> 
> However, I can't start tomcat programmatically by typing "startup.bat"
> or "startup" ( without quotes ) from a dos prompt that is in
> C:\TOMCAT\bin
> 
> I have tried running C:\TOMCAT\bin directly.  It complains that it is
> out of environment space ( how do you set that in win 2000 )AND
> that it cant find C:\TOMCAT\lib\servlet.jar
> 
> Its there.
> 
> Here are the Windows 2000 environmental variables I have set for
> "system":
> 
> 
> CLASSPATH:
> ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\
> lib\servlet.jar
> 
> PATH:
> %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
> %SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:
> JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR
> OGRA~1\ULTRAE~1;C:\Program
> Files\Microsoft SQL Server\80\Tools\BINN;
> 
> JAVA_HOME:
> C:\JDK
> 
> TOMCAT_HOME
> C:\TOMCAT
> 
> Thanks in advance for any clues
> 
> Steve
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Tomcat 4.1.12 Logs??

2002-11-25 Thread Prashanth Pushpagiri
Hi:

I am running Tomcat 4.1.12 alongside IIS 5.0. I have
no installation problems, but what I'd like to know
is how to set up my logs. In all previous versions of
Tomcat I observed Tomcat logging access details
(complete HTTP requests made) in files like
localhost_accesslog_***.txt, but in 4.1.x I havent
seen these files being created in
$CATALINA_HOME/logs.
Do we need to set it up? If so how? If not where are
these logs?

Thanks
Prashanth
 



__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Why can't put weblogic.jar to classpath when using ant

2002-11-25 Thread David Brown
james writes: 

Hi, 

I have a question, when I use ant to compile some files, the following error
popped up, after tried a few times, I found if I delete weblogic.jar in the
classpath, it is OK! Why is that?
Thanks in advance 

James 

java.lang.VerifyError: (class:
org/apache/tools/ant/taskdefs/optional/Native2Asc
ii, method: createMapper signature: ()Lorg/apache/tools/ant/types/Mapper;)
Incom
patible type for getting or setting field
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at org.apache.tools.ant.Project.init(Project.java:163)
at org.apache.tools.ant.Main.runBuild(Main.java:387)
at org.apache.tools.ant.Main.main(Main.java:149) 


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





Hello, how r u defining property name="classpath" in ur build.xml? david

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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
Hi;

I'm reposting this, hoping  that this version is more clear.
--

I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ).

I can start tomcat by double clicking the startup.bat file in
C:\TOMCAT\bin.

However, I can't start tomcat programmatically by typing "startup.bat"
or "startup" ( without quotes ) from a dos prompt that is in
C:\TOMCAT\bin

I have tried running C:\TOMCAT\bin directly.  It complains that it is
out of environment space ( how do you set that in win 2000 )AND
that it cant find C:\TOMCAT\lib\servlet.jar

Its there.

Here are the Windows 2000 environmental variables I have set for
"system":


CLASSPATH:
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Thanks in advance for any clues

Steve


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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
Yes I am literally typing "startup.bat" ( without quotes ) at the dos 
prompt in the appropiate directory.  It works for other *.bat files.

I also tried literally typing just "startup" ( without quotes ).  No 
difference.

Tomcat will still start by clicking on the icon for startup.bat in 
explorer, but it will not start by typing the name of the bat file at the 
Windows 2000 command line.

Thanks in advance

Steve


At 04:25 PM 11/25/2002 -0500, you wrote:
  Steve, are you typing (literally) "startup.bat" at the DOS command line 
to start Tomcat?? If so, you should just type in "startup"--one word--and 
that should quickly activate it to your satisfaction!! If it still 
doesn't, get back to me "at the speed of light" and I will go on with 
trying to help you!
*

 On Mon 11/25, Steve Russell  wrote:From: Steve Russell [mailto: 
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Mon, 25 Nov 
2002 16:18:37 -0500Subject: Re: Problems running Tomcat from command 
lineAt 12:41 PM 11/25/2002 -0800, you wrote:
>  Ya, Christopher Balz is "right on the money" with his solid judgement
> that all of
>the various slashes in BOTH the path and the classpath env. variables should
>definitely point in just one direction only!!!

This isn't an issue.   As I wrote in my post I had two sets of output.  One
I got when trying to run tomcat from dos which only gave me "bad command or
file name".

The second set of output is from cygwin, a unix emulator that mixes up/
takes care of slashes of different directions.  I included that output
because it gave a little bit more information.

My apologies if it gave anyone the mistaken impression that I had mixed
slash types in my Windows 2000 environmental variables.

I could still use some help.  Clicking on startup.bat gets tomcat
running.  typing "startup.bat" at a dos prompt in
C:\TOMCAT\bin does nothing.

Here are the enviromental variables for Windows 2000 I set under "system":

CLASSPATH:
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program 

Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Any ideas?  Please? :)

Steve



>

Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve R. Burrus
  Steve, are you typing (literally) "startup.bat" at the DOS command line to start 
Tomcat?? If so, you should just type in "startup"--one word--and that should quickly 
activate it to your satisfaction!! If it still doesn't, get back to me "at the speed 
of light" and I will go on with trying to help you!
*

 On Mon 11/25, Steve Russell  wrote:From: Steve Russell [mailto: 
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Mon, 25 Nov 2002 16:18:37 
-0500Subject: Re: Problems running Tomcat from command lineAt 12:41 PM 11/25/2002 
-0800, you wrote:
>  Ya, Christopher Balz is "right on the money" with his solid judgement 
> that all of
>the various slashes in BOTH the path and the classpath env. variables should
>definitely point in just one direction only!!!

This isn't an issue.   As I wrote in my post I had two sets of output.  One 
I got when trying to run tomcat from dos which only gave me "bad command or 
file name".

The second set of output is from cygwin, a unix emulator that mixes up/ 
takes care of slashes of different directions.  I included that output 
because it gave a little bit more information.

My apologies if it gave anyone the mistaken impression that I had mixed 
slash types in my Windows 2000 environmental variables.

I could still use some help.  Clicking on startup.bat gets tomcat 
running.  typing "startup.bat" at a dos prompt in
C:\TOMCAT\bin does nothing.

Here are the enviromental variables for Windows 2000 I set under "system":

CLASSPATH:
..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program
 
Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Any ideas?  Please? :)

Steve



>

Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
At 12:41 PM 11/25/2002 -0800, you wrote:

 Ya, Christopher Balz is "right on the money" with his solid judgement 
that all of
the various slashes in BOTH the path and the classpath env. variables should
definitely point in just one direction only!!!

This isn't an issue.   As I wrote in my post I had two sets of output.  One 
I got when trying to run tomcat from dos which only gave me "bad command or 
file name".

The second set of output is from cygwin, a unix emulator that mixes up/ 
takes care of slashes of different directions.  I included that output 
because it gave a little bit more information.

My apologies if it gave anyone the mistaken impression that I had mixed 
slash types in my Windows 2000 environmental variables.

I could still use some help.  Clicking on startup.bat gets tomcat 
running.  typing "startup.bat" at a dos prompt in
C:\TOMCAT\bin does nothing.

Here are the enviromental variables for Windows 2000 I set under "system":

CLASSPATH:
.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar

PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\Microsoft SQL Server\80\Tools\BINN;

JAVA_HOME:
C:\JDK

TOMCAT_HOME
C:\TOMCAT

Any ideas?  Please? :)

Steve






Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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




problems with tomcat as rmi client

2002-11-25 Thread Vishal Zinjuvadia
Hi,

I am trying to use a Tomcat webapp as a RMI client.
For the test purposes, my RMI server
resides on the same machine. When I use a Tomcat
webapp as a client, I consistently get a
ClassCastException, while if I use a plain java class
for the client, it works flawlessly.

Following is my client code used in the servlet and
the plain java class.

System.setProperty("java.rmi.server.codebase",
"file:/path/to/stubfile/");
try {
   //(line: 141)
   TestInterface testIf =
(TestInterface)Naming.lookup("//localhost/Test");
   result = testIf.testMethod();
} catch (Exception e) {
   servlet.log(e.getMessage());
   e.printStackTrace();
}

I am using:
JDK-1.4
tomcat-4.1.12

>From the stack it looks like the stub file is located,
but it cannot relate it with the interface file. It
looks like the interface file and the stub files are
loaded with different class loaders and cannot be
associated.

java.lang.ClassCastException: Test_Stub
at
com.vishal.eg.TestAction.perform(TestAction.java:141)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance,
Vishal

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve R Burrus
 Ya, Christopher Balz is "right on the money" with his solid judgement that all of
the various slashes in BOTH the path and the classpath env. variables should
definitely point in just one direction only!!! Listen, can someone please tell me
how I start to package up a WAR file and then in what folder I stick it to run a 
JSP/Servlet??!

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




jspc error

2002-11-25 Thread colas
Hi 

I'm unable to use jspc 
I use tomcat 4.1.12 and jstl (jakarta-taglibs-standard-1.0.1)

/usr/local/tomcat/bin#./jspc.sh -webapp ../webapp/myapp
2002-11-25 03:10:07 - ERROR-the file '/test.jsp' generated the following general 
exception: java.lang.NullPointerException
error:null

sbdy have a solution or an alternative to jspc ?

thks




Does the number of vhosts limit tomcat 4.1.12 scalability

2002-11-25 Thread Brandon Cruz
Does Tomcat 4.1.12 need more file handlers or available threads when
starting than tomcat 3.2.4?

When upgrading from tomcat 3.2.4 to tomcat 4.1.12, I get a
java.lang.OutOfMemoryError: unable to create new native thread exception
when trying to start.

The configuration is the exact same as with tomcat 3.2.4.  There are about
160 hosts with the "" context and two others for each host.  With tomcat
3.2.4, it seemed that it needed about one thread for each host and context,
but Craig said this is not the case.

So...do I need to have more available file handlers for each host and
context I have configured within server.xml for tomcat 4.1.12?

Thanks!

Brandon



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




RE: Tomcat or JBoss?

2002-11-25 Thread Shapira, Yoav
Hi,

>If they are overkill for webapps, what sorts of situations would
benefit
>from them?


NEVER
http://www.softwarereality.com/programming/ejb/index.jsp


(Just kidding) ;)

Yoav Shapira
Millennium ChemInformatics

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




RE: Tomcat or JBoss?

2002-11-25 Thread Price, Erik


> -Original Message-
> From: Steve Lewis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:33 AM
> To: Tomcat Users List
> Subject: RE: Tomcat or JBoss?
> 
> 
> We're currently running on WebLogic and are looking
> into "retreating" to Tomcat.  Tyrex makes Tomcat
> pretty compelling.  I think a lot of people are
> finding out that EJBs are overkill for web-based apps.

If they are overkill for webapps, what sorts of situations would benefit from them?
(Not asking rhetorically, I'm honestly curious about when to use EJB since I know 
nothing about them.)


Erik

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




RE: IIS on W2k + tomcat 4.1.12

2002-11-25 Thread srinath narasimhan
The IISHowTo is not upto date .
I referred to the instructions in InstallHowTo.xml that comes along with the
zip file. That worked.
Thanks.




-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 08:59
To: [EMAIL PROTECTED]
Subject: Re: IIS on W2k + tomcat 4.1.12


I didn't have too much trouble getting the 2.01 filter to work with
Tomcat 4.1.12 and IIS 5.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.htm
l

I don't think you need urimapworkers.properties. In addition to the
ISAPI dll, all I'm using is workers2.properties and jk2.properties.

I think the source for the jk2 connector contains all of the sample
properties and reg files and some additional info:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v
2.0.1/src/


>>> [EMAIL PROTECTED] 11/24/02 10:58PM >>>

Was anybody successful in integrating IIS with tomcat 4.1.12.
I downloaded the isapi_redirector2.dll.
I was able to find the workers2.properties but I am not able to find
the
urimapworkers.properties. It is not available along with the
workers2.properties file.

After trying to add the ISAPI filter I get a error in event viewer
saying
unable to open the key
Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0.
The How To document (
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v
2.0.
1/doc/jk/iishowto.html ) says the key as
Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0

Looks like the How to document is not up to date with software changes.


Any Ideas.

Thanks.




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




Re: newbie . catalina.out

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, mc wrote:

> Date: Mon, 25 Nov 2002 14:12:51 -0500
> From: mc <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: newbie . catalina.out
>
> Hi
>
> Is it possible to redirect system.out elsewhere than in
> $CATALINA_HOME/logs/catalina.out ?
> For exemple, one file per context ?, per host ?
>

In Tomcat 4.1, you can capture per-webapp output by using the
swallowOutput attribute on the  element.  It will send System.err
and System.out output to the same place that ServletContext.log() calls
go.  See the config docs for more details:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

under "Standard Implementation Attributes".

> thks
>

Craig


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




RE: Newbie Problems

2002-11-25 Thread p niemandt
Just going to take a stab at it, but it looks like you are trying to
combine the apache configuration and the tomcat configuration into one
file.

basic xml dictates ...

1. Comments are the same as html comments, meaning  and not #
2. Attributes are followed by an = sign and quotes,  does not make sense for XML. {In apache it does!!} 

So, in your apache.conf file it would be {like you have it}






But this will NOT work in the tomcat server.xml or web.xml.

Hope this helps.

On Mon, 2002-11-25 at 18:45, Bob Tilley wrote:
> The FreeBSD box is on an intranet in our office that does not link to the
> outside world, but I'll try to communicate the errors:
> 
>   PARSE error at line 55, column 23 of ... server.xml
>   org.xml.sax.SAXParseException:  Attribute name "IfModule must be followed 
>   by the '=' character."
> 
> Then more errors cascade from the one above.  Here is the relevant line from
> the server.xml file:
> 
>   # Tomcat 4 Webapp Warp
>   
>   ...
>   
> 
> Any ideas?
> 
> -Original Message-
> From: Andoni [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 1:18 PM
> To: Tomcat Users List
> Subject: Re: Newbie Problems
> 
> 
> What do the error messages say?
> 
> I.e.: can you paste them into a message (and maybe your server.xml also)
> then we could tell you what each one means.
> 
> Andoni.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
p niemandt <[EMAIL PROTECTED]>


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




MBean server?

2002-11-25 Thread Shawn Wilson
I have the following packages installed on a RedHat 7.3 box:

   tomcat4-4.1.12-full.2jpp
   tomcat4-admin-webapps-4.1.12-full.2jpp

Tomcat starts up fine and I can log into the admin app without problem. 
However, the moment I try to do anything in the admin app I get a "HTTP 
Status 503 - Servlet action is currently unavailable" error, and I see 
this in my catalina.out log file:

javax.servlet.UnavailableException: MBeanServer is not available
at 
org.apache.webapp.admin.ApplicationServlet.initServer(Unknown Source)
at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown 
Source)
at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown 
Source)
at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown Source)
at 
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
...
...

What does this exception mean, and what do I need to do to get the admin 
app running?

Thanks,
-shawn

--

Shawn Wilson [[EMAIL PROTECTED]]
Software Developer, ATMReports.com
PH: 877-327-0873, FAX: 406-294-5806



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



newbie . catalina.out

2002-11-25 Thread mc
Hi 

Is it possible to redirect system.out elsewhere than in 
$CATALINA_HOME/logs/catalina.out ?
For exemple, one file per context ?, per host ?

thks









RE: Discrepancies between servlets and JSP on tomcat in handlingUTF-8 ?

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, Bodycombe, Andrew wrote:

> Date: Mon, 25 Nov 2002 15:29:29 +
> From: "Bodycombe, Andrew" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Discrepancies between servlets and JSP on tomcat in handling
> UTF-8 ?
>
> Interesting. I have encountered a similiar problem.
>
> I have a servlet that connects to an XML application. The response from the
> application is read using a SAX reader, and I encountered an error if the
> response contained any non-ASCII characters (ü and ß in particular, as I am
> currently working in Germany)
>
> I did a little investigation, and found that the content type was text/xml;
> charset=ISO-5591-1 and the xml tag was
>
> 
>
> Now the XML I received in my servlet was ISO-5591-1 and not UTF-8, so I have
> contacted the application developers to say "Please fix your application
> because the XML I receive is not encoded as UTF-8, it is ISO-5591-1."
>
> I have a work-round, where I read the input using an ISO-8859-1
> InputStreamReader, and get the SAXReader to use this as the input. This is
> working fine as a temporary measure.
>
> The original message in this thread suggests to me that this could actually
> be a tomcat problem and not necessarily a problem with the application I
> connect to. There is clearly a discrepancy between the "encoding" type and
> the "charset", and the SAX reader is using the value of the encoding
> attribute to read the text.
>
> Is tomcat doing something with the HTTP text, possibly converting it from
> UTF-8 into ISO-5591-1?
>

Yes.

The Servlet and JSP specs require that the character encoding (if you are
writing a character-based response) default to ISO-8859-1 unless you
explicitly tell the container otherwise.

To set the character encoding in a servlet, you add the charset modifier
to the content type:

  response.setContentType("text/html;charset=UTF-8");

In a JSP page, you set the character encoding of the response in the <%@
page %> directive:

  <%@ page contentType="text/html;charset=UTF-8" %>

In JSP 2.0, you'll have the ability to declare (in a global configuration
file) that "pages that match this URL pattern have this encoding".  For
JSP 1.2 (i.e. Tomcat 4.x) you do not have that option, and must declare it
inside the page itself.

> I confess, I've not tried this servlet out in other servlet containers, just
> tomcat version 4.1.12, running on Windows
>
> Andy
>

Craig


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




Why can't put weblogic.jar to classpath when using ant

2002-11-25 Thread james
Hi,

I have a question, when I use ant to compile some files, the following error
popped up, after tried a few times, I found if I delete weblogic.jar in the
classpath, it is OK! Why is that?
Thanks in advance

James

java.lang.VerifyError: (class:
org/apache/tools/ant/taskdefs/optional/Native2Asc
ii, method: createMapper signature: ()Lorg/apache/tools/ant/types/Mapper;)
Incom
patible type for getting or setting field
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at org.apache.tools.ant.Project.init(Project.java:163)
at org.apache.tools.ant.Main.runBuild(Main.java:387)
at org.apache.tools.ant.Main.main(Main.java:149)


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




RE: Newbie Problems

2002-11-25 Thread Bob Tilley
The FreeBSD box is on an intranet in our office that does not link to the
outside world, but I'll try to communicate the errors:

  PARSE error at line 55, column 23 of ... server.xml
  org.xml.sax.SAXParseException:  Attribute name "IfModule must be followed 
  by the '=' character."

Then more errors cascade from the one above.  Here is the relevant line from
the server.xml file:

  # Tomcat 4 Webapp Warp
  
  ...
  

Any ideas?

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:18 PM
To: Tomcat Users List
Subject: Re: Newbie Problems


What do the error messages say?

I.e.: can you paste them into a message (and maybe your server.xml also)
then we could tell you what each one means.

Andoni.

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




Re: thanx for helping with TomCat query.. another problem..plz. help..

2002-11-25 Thread james
would you forward your q to me?
Thanks,

James

- Original Message -
From: "runu rathi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 12:56 PM
Subject: thanx for helping with TomCat query.. another problem..plz. help..


> Hi,
>  Thanks for helping with my previous query regarding
> Beans. I have another problem which I have posted
> earlier (dated 22nd Nov) on the users mailing list.
> plz. suggest about the possible cause.
> Thanks,
> Runu
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Cox, Charlie
You can use a servlet or a filter. Filter mappings can overlap servlet
mappings if you need them to. You can map all requests, or you can only map
the specific paths for which you will use forward(). You probably want a
filter if you are going to map all requests.

glad to help :-)

Charlie


> -Original Message-
> From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:47 PM
> To: Tomcat Users List
> Subject: RE: help with multilingual JSP sites pls. using a Filter to
> rewri te the URL ?
> 
> 
> 
> Thanks Charlie.
> Genius. Another simple solution saves the day. 
> I presume you also mean that I should map all incoming requests to a
> servlet that then examines the PathInfo and issues the 
> requestDispatcher.
> Magnificent solution. Thank you indeed.
> Stephen.
>  "Cox, Charlie" <[EMAIL PROTECTED]> wrote:use 
> request.gePathInfo() to get the path. Then parse the string and use
> RequestDispatcher.forward("/products/Toys/index.jsp?myparam="+
> langString).
> The forward() will not be subject to further filter processing.
> 
> Charlie
> 
> > -Original Message-
> > From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 25, 2002 11:27 AM
> > To: Tomcat Users List
> > Subject: Re: help with multilingual JSP sites pls. using a Filter to
> > rewrite the URL ?
> > 
> > 
> > 
> > Sorry, I'm not making myself clear here. My JSPs do exactly 
> > as you suggest 
> > so that I have one JSP serving up French and English pages, 
> > depending on 
> > the language that the user selected on my site.
> > Here is the problem explained very simply. I have a sitemap 
> > as follows:
> > /en
> > --> /Products
> > --> Toys/index.jsp
> > --> Decoration/index.jsp
> > /fr
> > --> /Products
> > --> /Toys/index.jsp
> > --> /Decoration/index.jsp
> > 
> > As you can see, this is braindead. If I wish the 
> > functionality of the English section 
> > of the site to be the same as that of the French part of the 
> > site, then any change
> > to a JSP in the 'en' part must be repeated within the 'fr' 
> > site. This is not 
> > scalable and is tedious. 
> > 
> > Instead, it would be much better if I had one site structure 
> > which served up the
> > whole site.
> > 
> > /Products
> > --> /Toys/index.jsp
> > --> /Decoration/index.jsp
> > 
> > Any changes to functionality only have to be made in one 
> > place and both the
> > french viewers and english viewers will experience the same 
> > user experience, 
> > just in different languages. (I use the properties files as 
> > you suggest to 
> > serve up different languages).
> > 
> > The problem however is "how does /Products/Toys/index.jsp" 
> > know whether
> > the user is viewing in English or French ? The easy way would 
> > be to have the
> > user select a language on entering the site and then store 
> > the language 
> > preference in a cookie which I check before serving up pages. 
> > However, 
> > users may access the site from a search engine or from direct 
> > URLs due to
> > promotions. I would like a request for 
> > /en/Products/Toys/index.jsp to be 
> > sent to /Products/Toys/index.jsp but with a 'lang' parameter 
> > set to 'en'. 
> > Likewise for the french part of the site. 
> > 
> > Surely somebody has had to encounter this sort of problem in 
> > dealing with
> > pan-European sites ?
> > 
> > Stephen.
> > 
> > 
> > 
> > Triptpal Singh Lamba wrote:One way you 
> > can do this is using property files.
> > 
> > Prop_ file name _ language code.properties
> > 
> > So for say abc.jsp , you have abc_en.properties and 
> abc_fr.properties.
> > 
> > At comple time the JSP calls a class you write at server 
> > which gives say String languageCode = 
> > ObjectName.getLaguageCode(param 1 ,param 2); %>
> > 
> > Then all JSP elements are picked from there.
> > Thanks
> > Tript Singh
> > 
> > 
> > 
> > 
> > 
> > -
> > With Yahoo! Mail you can get a bigger mailbox -- choose a 
> > size that fits your needs
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> 
> -
> With Yahoo! Mail you can get a bigger mailbox -- choose a 
> size that fits your needs
> 

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




Re: TagLibs in Tomcat3.3.1

2002-11-25 Thread Craig R. McClanahan


On Sun, 24 Nov 2002, Bill Barker wrote:

> Date: Sun, 24 Nov 2002 23:31:27 -0800
> From: Bill Barker <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: TagLibs in Tomcat3.3.1
>
>
> "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >
> > On Sat, 23 Nov 2002, Laxmikanth M.S. wrote:
> >
> > > Date: Sat, 23 Nov 2002 14:41:11 +0530
> > > From: Laxmikanth M.S. <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: Tomcat Users List <[EMAIL PROTECTED]>
> > > Subject: TagLibs in Tomcat3.3.1
> > >
> > > Hi all,
> > > Is it possible to write TagLibs in Tomcat3.3.1 version.
> >
> > Yes, as long as your tags conform to the JSP 1.1 specification that Tomcat
> > 3.3.1 implements.
>
> I must have been tranported into some alternative universe ;-).  Like, Craig
> never answers 3.3 questions (but, thanks anyway :).  Craig's answer is
> correct.

Finally found a 3.3 question that I could answer correctly.  :-)

>  It's a bit of a pain not having access to IterationTags (which
> first appeared in JSP/1.2), but my JSP/1.1 TagLibs work really well under
> Tomcat 3.3.1 (and in some cases, better than they do in 4.x, but I'm working
> on it).
>

I fully trust that Bill's efforts in this regard, along with the other
folks working on Jasper, will be successful.

> >
> > > thanks
> > > laxmikanth
> >
> > Craig
>

Craig


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




Re: Newbie Problems

2002-11-25 Thread Andoni
What do the error messages say?

I.e.: can you paste them into a message (and maybe your server.xml also)
then we could tell you what each one means.

Andoni.


- Original Message -
From: "Bob Tilley" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 6:03 PM
Subject: Newbie Problems


> Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed
> results.  Apache can be brought up and down with the normal 'apachectl
> start|stop'.  Tomcat can be started normally via the startup.sh script but
> when the shutdown-sh script is run there is a burst of error messages from
> the parsing of server.xml.
>
> I am confused as to how no errors occur when I "./startup.sh" the Tomcat
> server but the shutdown.sh script has problems with server.xml format.
> Don't both scripts actually deal with the same server.xml?
>
> Bob Tilley
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Problems running Tomcat from command line

2002-11-25 Thread Steve Russell
I have a CLASSPATH set for the system:

.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes

basically the immediate directory and my home directory.

I also have tools.jar  in TOMCAT_HOME/lib,  JAVA_HOME/jre/lib/ext

Like I said its an interesting problem in that it works if I doulbe click 
on the icon from explorer, but I can not get tomcat to start from a command 
line

Steve

At 10:05 AM 11/25/2002 -0800, you wrote:
You should set CLASSPATH as a Windows environment variable.  I always make 
sure that the slashes in the CLASSPATH value should all point the same 
direction.

 - CB

Steve Russell wrote:

Hi;
I just started a new job.  The company is using MS Windows 2000 and 
Tomcat 3.2.4 ( not my choice - peace! ).
I am able to start tomcat by going to C:\Tomcat\bin and double clicking 
startup.bat in explorer.
However, I am not able to start tomcat from a command line.
When I try it from dos I get "bad command or filename"
When I try startup.sh from my cygwin I get


Using classpath: 
C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/tools.jar:C:\TOMCAT/lib/webserver.jar:C:\JDK/lib/tools.jar:.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes 

stever@STEVER c:/TOMCAT/bin
$ Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tomcat/s
tartup/Tomcat
==
When I have tried starting C:\Tomcat\bin directly, in dos I get the error 
message that  %TOMCAT_HOME%/lib/servet.jar does not exist.
It exists at that location.  TOMCAT_HOME is set properly at C:\Tomcat,
output statements I put in tomcat.bat reflect that.
It seems like windows is not TOMCAT_HOME/lib
I'm not a windows expert, can anyone give me a clue?
Here is my system PATH:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\Microsoft SQL Server\80\Tools\BINN;
I have a JAVA_HOME and a JDK_HOME set, and those work.
Steve


--
To unsubscribe, e-mail:

For additional commands, e-mail: 


--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.


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


Steve Russell
Applications Developer

301-251-1161 x 275
[EMAIL PROTECTED]

Emmes Corporation
401 N. Washington Street, Suite 700
Rockville, MD 20850 - 1785


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




Newbie Problems

2002-11-25 Thread Bob Tilley
Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed
results.  Apache can be brought up and down with the normal 'apachectl
start|stop'.  Tomcat can be started normally via the startup.sh script but
when the shutdown-sh script is run there is a burst of error messages from
the parsing of server.xml.

I am confused as to how no errors occur when I "./startup.sh" the Tomcat
server but the shutdown.sh script has problems with server.xml format.
Don't both scripts actually deal with the same server.xml?

Bob Tilley

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




Re: Problems running Tomcat from command line

2002-11-25 Thread Christopher Mark Balz
You should set CLASSPATH as a Windows environment variable.  I always 
make sure that the slashes in the CLASSPATH value should all point the 
same direction.

 - CB

Steve Russell wrote:


Hi;

I just started a new job.  The company is using MS Windows 2000 and 
Tomcat 3.2.4 ( not my choice - peace! ).

I am able to start tomcat by going to C:\Tomcat\bin and double clicking 
startup.bat in explorer.

However, I am not able to start tomcat from a command line.

When I try it from dos I get "bad command or filename"

When I try startup.sh from my cygwin I get



Using classpath: 
C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/tools.jar:C:\TOMCAT/lib/webserver.jar:C:\JDK/lib/tools.jar:.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes 


stever@STEVER c:/TOMCAT/bin
$ Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tomcat/s
tartup/Tomcat
==

When I have tried starting C:\Tomcat\bin directly, in dos I get the 
error message that  %TOMCAT_HOME%/lib/servet.jar does not exist.

It exists at that location.  TOMCAT_HOME is set properly at C:\Tomcat,  
output statements I put in tomcat.bat reflect that.

It seems like windows is not TOMCAT_HOME/lib

I'm not a windows expert, can anyone give me a clue?

Here is my system PATH:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\Microsoft SQL Server\80\Tools\BINN;

I have a JAVA_HOME and a JDK_HOME set, and those work.

Steve




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.


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




Problems running Tomcat from command line

2002-11-25 Thread Steve Russell


Hi;

I just started a new job.  The company is using MS Windows 2000 and Tomcat 
3.2.4 ( not my choice - peace! ).

I am able to start tomcat by going to C:\Tomcat\bin and double clicking 
startup.bat in explorer.

However, I am not able to start tomcat from a command line.

When I try it from dos I get "bad command or filename"

When I try startup.sh from my cygwin I get



Using classpath: 
C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/tools.jar:C:\TOMCAT/lib/webserver.jar:C:\JDK/lib/tools.jar:.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes

stever@STEVER c:/TOMCAT/bin
$ Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tomcat/s
tartup/Tomcat
==

When I have tried starting C:\Tomcat\bin directly, in dos I get the error 
message that  %TOMCAT_HOME%/lib/servet.jar does not exist.

It exists at that location.  TOMCAT_HOME is set properly at 
C:\Tomcat,  output statements I put in tomcat.bat reflect that.

It seems like windows is not TOMCAT_HOME/lib

I'm not a windows expert, can anyone give me a clue?

Here is my system PATH:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\Microsoft SQL Server\80\Tools\BINN;

I have a JAVA_HOME and a JDK_HOME set, and those work.

Steve




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



Re: Problems with Tomcat 4.1.12 and FORM based authentication

2002-11-25 Thread Quenten Van Egeren
Here is my app directory structure under Tomcat :

$TOMCAT_HOME
  webapps
myApp
  WEB-INF
 
The files I want secured are /do (instead of X.do, the
files appear as /do/X).

The other thing I'm seeing, as well as the login
issues mentioned previously, is the fact that if I
successfully login the first time into the site, close
my browser, and then try to authenticate with invalid
data, it logs me in correctly with the previous
attributes.

For example, say my valid login is
validLogin/validPass.  If I try to auth the first time
into the site with validLogin/validPass it
authenticates correctly.  However, if I close my
browser and try to go back in and authenticate with
garbagelogin/garbagepass (which doesn't exist in my
DB), it still authenticates me as
validLogin/validPass.  This is not correct, and is
another symptom of something I'm doing incorrectly.  

Has anyone else seen this type of behavior?

Dave, it seems like changing 
/do/* 
to 
* 
will make everything secure, which isn't the outcome I
am looking for...

Thanks for any info...

Quenten


--- David Brown <[EMAIL PROTECTED]> wrote:
> Quenten Van Egeren writes: 
> 
> > I'm having the following problem when using FORM
> based
> > authentication with Tomcat 4.1.12 : 
> > 
> > When I bring up a new browser window, and go to a
> > protected page (under /do/) I am redirected to the
> > login.jsp as I should be.  If I enter the correct
> > username / password, I am logged in correctly and
> > forwarded back to the page I was trying to access.
> 
> > This all works correctly. 
> > 
> > However, if I enter garbage for a username and
> > password, I am redirected to the error.jsp page,
> which
> > is also correct.  I then click the link on the
> > error.jsp page that takes me back to the login.jsp
> > page and try to login again with a valid
> > username/password combo, and it instantly
> redirects me
> > back to the error.jsp page.  This isn't correct
> (as
> > far as I can tell) since it should have
> successfully
> > authed me the second time into the page. 
> > 
> > I was wondering if anyone else had run into this
> > issue, or if there was something I was missing in
> one
> > of the config files or my web.xml file. 
> > 
> > I am also using struts, but I don't think that has
> > anything to do with this error, since it appears
> to be
> > a j_security_check setup issue somehow. 
> > 
> > Any help would be greatly appreciated. 
> > 
> > Thanks, 
> > 
> > Quenten 
> > 
> > Here is my code : 
> > 
> > + my application web.xml +
> > 
> > Security Constraint
> > 
> > Protected
> Area
> > /do/*
> > GET
> > POST
> > PUT
> > 
> > 
> > eadmin
> > member
> > 
> >  
> > 
> > 
> > FORM
> > My JDBCRealm
> > 
> > /login.jsp 
>  
> > /error.jsp
> > 
> > /login-config> 
> > 
> > 
> > admin role.
> > eadmin
> > 
> > 
> > member role.
> > member
> >  
> > 
> > + tomcat server.xml + 
> > 
> >  > className="org.apache.catalina.realm.JDBCRealm"
> > debug="50"   
> > driverName="org.postgresql.Driver" 
> >
>
connectionURL="jdbc:postgresql://localhost:5432/mydb?user=postgres:password=postgres"
> >  userTable="members" userNameCol="login"
> > userCredCol="password"
> > userRoleTable="member_roles_view"
> > roleNameCol="user_role" /> 
> > 
> > + my login.jsp +
> > 
> > 
> > Login Page for Examples
> > 
> > 
> >   
> > 
> >   Username:
> >> name="j_username">
> > 
> > 
> >   Password:
> >> name="j_password">
> > 
> > 
> >> value="Log In">
> >   
> > 
> >   
> > 
> > 
> >  
> > 
> > + my error.jsp +
> > 
> > 
> > Error Page For Examples
> > 
> > 
> > Invalid username and/or password, please try
> > again.
> > 
> >  
> > 
> >  
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus – Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com 
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
>  
> > 
>  
> 
> 
> Hello Quenten, if ur web.xml is:
> $TOMCAT_HOME
>   |
>   /webapps
>  |
>  /do
>|
>/WEB-INF 
> 
> then change ur web.xml tag:
> 
>  /do/* 
> 
> to only: 
> 
> 
> * 
> 
> hope this helps, david.
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




thanx for helping with TomCat query.. another problem..plz. help..

2002-11-25 Thread runu rathi
Hi, 
 Thanks for helping with my previous query regarding
Beans. I have another problem which I have posted
earlier (dated 22nd Nov) on the users mailing list.
plz. suggest about the possible cause.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek

Thanks Charlie.
Genius. Another simple solution saves the day. 
I presume you also mean that I should map all incoming requests to a
servlet that then examines the PathInfo and issues the requestDispatcher.
Magnificent solution. Thank you indeed.
Stephen.
 "Cox, Charlie" <[EMAIL PROTECTED]> wrote:use request.gePathInfo() to get the path. Then 
parse the string and use
RequestDispatcher.forward("/products/Toys/index.jsp?myparam="+langString).
The forward() will not be subject to further filter processing.

Charlie

> -Original Message-
> From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: help with multilingual JSP sites pls. using a Filter to
> rewrite the URL ?
> 
> 
> 
> Sorry, I'm not making myself clear here. My JSPs do exactly 
> as you suggest 
> so that I have one JSP serving up French and English pages, 
> depending on 
> the language that the user selected on my site.
> Here is the problem explained very simply. I have a sitemap 
> as follows:
> /en
> --> /Products
> --> Toys/index.jsp
> --> Decoration/index.jsp
> /fr
> --> /Products
> --> /Toys/index.jsp
> --> /Decoration/index.jsp
> 
> As you can see, this is braindead. If I wish the 
> functionality of the English section 
> of the site to be the same as that of the French part of the 
> site, then any change
> to a JSP in the 'en' part must be repeated within the 'fr' 
> site. This is not 
> scalable and is tedious. 
> 
> Instead, it would be much better if I had one site structure 
> which served up the
> whole site.
> 
> /Products
> --> /Toys/index.jsp
> --> /Decoration/index.jsp
> 
> Any changes to functionality only have to be made in one 
> place and both the
> french viewers and english viewers will experience the same 
> user experience, 
> just in different languages. (I use the properties files as 
> you suggest to 
> serve up different languages).
> 
> The problem however is "how does /Products/Toys/index.jsp" 
> know whether
> the user is viewing in English or French ? The easy way would 
> be to have the
> user select a language on entering the site and then store 
> the language 
> preference in a cookie which I check before serving up pages. 
> However, 
> users may access the site from a search engine or from direct 
> URLs due to
> promotions. I would like a request for 
> /en/Products/Toys/index.jsp to be 
> sent to /Products/Toys/index.jsp but with a 'lang' parameter 
> set to 'en'. 
> Likewise for the french part of the site. 
> 
> Surely somebody has had to encounter this sort of problem in 
> dealing with
> pan-European sites ?
> 
> Stephen.
> 
> 
> 
> Triptpal Singh Lamba wrote:One way you 
> can do this is using property files.
> 
> Prop_ file name _ language code.properties
> 
> So for say abc.jsp , you have abc_en.properties and abc_fr.properties.
> 
> At comple time the JSP calls a class you write at server 
> which gives say String languageCode = 
> ObjectName.getLaguageCode(param 1 ,param 2); %>
> 
> Then all JSP elements are picked from there.
> Thanks
> Tript Singh
> 
> 
> 
> 
> 
> -
> With Yahoo! Mail you can get a bigger mailbox -- choose a 
> size that fits your needs
> 

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




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



How to specify path when executing CGI in Tomcat?

2002-11-25 Thread B W
Hi,

I try to implement CGI in Tomcat(win2k,tomcat4.15).  I
follow the instruction to make a simple CGI work. 
However when I test a more complicated cgi file
written using c++, 

I get a problem like "xxx.exe -Unable to Locate DLL"

The dynamic link library orasql.dll cound not found in
specified path
D:\tomcat\webapps\test\WEB-INF\cgi;.;c:\WINNT\System32;c:\WINNT\System;c:\WINNT;

Apparently it can't find the system property "path". 
So how to specify path for cgi in tomcat?

If anyone can tell me how to fix this problem, I will
really appreciate it.

Thanks,
Bin

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek

Thanks for the reply Ron,
I've heard of people using Accept-Language before but have my own doubts about
that. For example, using Tomcat's example servlet to examine the request.
( http://127.0.0.1:8080/examples/servlet/RequestHeaderExample ) I find that 
accept-language is always "en-us" on my system. That doesn't necessarily 
mean that the person using my PC wants to read English. I can just as easily
read French or asian languages on my PC.

As for your other question, no, I don't keep all content in properties files.
The bulk of it is database generated since it's a shopping catalog.
Storing all site content in properties files would drive me insane.
Thanks for your help.
Stephen.
 Ron Smits <[EMAIL PROTECTED]> wrote:
The browser can tell you the language that the system is setup for:

Accept-Language: en-us, en;q=0.50

This is from my Mozilla setup All modern browsers will return an Accept
Language string

Another question related to this, Are you telling me that all your jsp
pages have the actual content stored in several properties files? I
wonder what that would look like

Ron


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





-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



Re: Tomcat 3.2 and 4.1 coexist?

2002-11-25 Thread Carsten Ziegert
I performed your taskk without any trouble.
3.2 is running on port 8080, 4.1. on 8090. You just
have to change the file server.xml to define the new port.
Both versions are running in parallel. They've been
installed in /usr/local/tomcat3 and /usr/local/tomcat4

Carsten

Am Montag, 25.11.02, um 18:19 Uhr (Europe/Berlin) schrieb jimmy:


Hello Folks,

Is it possible to install Tomcat 3.2 and 4.1 on the
same server? Are there any side effects? Which path
needs to be followed to install 4.1 on a system that
has 3.2 installed?

The build list is rather long and complicated along
with references and dependancies to many packages.
Therefore any assistance would be appreciated from
someone who has already accomplished a similiar task.

Thanks for your time!

Tom Jerry

__
Do you Yahoo!?
Yahoo! Mail Plus ñ Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




RE: I cannot make working SSL if I run tomcat as a service (NT)

2002-11-25 Thread Anthony Mutiso 2
Additionally you may want to make sure that the keystore file can be found
by the user account that the tomcat service will run under.

For my installation I do an explict:



In the SSL connector and make sure I have a the file "mykeystore.ks" in the
conf folder.

Anthony

-Original Message-
From: Pae Choi [mailto:[EMAIL PROTECTED]]
Sent: November 22, 2002 5:51 AM
To: Tomcat Users List
Subject: Re: I cannot make working SSL if I run tomcat as a service (NT)


J2SDK 1.4.0_x has a bug in handling the security. Try
it with J2SDK 1.4.1_x.

Pae


- Original Message -
From: "Aurelio D'Amico" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 11:23 PM
Subject: I cannot make working SSL if I run tomcat as a service (NT)


> I have the following problem:
> If I run tomcat using the provided batches I have no problem with SSL but
> when I run it as a service (what I need) I receive the 404 error.
> There is someone that could help me?
> I'm running tomcat 4.0.4 (standalone) in a window NT environment (SP6) and
> with java SDK 1.4.0_03
>
>
> --
> 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: Applet from servlet

2002-11-25 Thread Andreas Probst
Hello David!


On 25 Nov 2002 at 9:25, David Brown wrote:

> Andreas Probst writes: 
> 
> > Hi David, 
> > 
> > don't put the class files and jars, which you need for an
> > applet, below WEB-INF. Tomcat won't serve these files to the
> > user's browser. Just put these files in your webapp's
> > directory. If you need the same classes also on the server,
> > than you need to have two copies of them. 
> > 
> > Hope this solves your problem. 
> > 
> > Andreas 
> > 

older messages deleted

> 
> 
> Hello Andreas, thanx 4 the accurate and speedy reply. i (on a
> hunch) put my applet class under /webapps and can now load which
> ur message confirms (thanx). the history of this applet started
> out as a java standalone which works perfectly from any remote
> client. however to avoid downloads and client compiles i decided
> to convert the standalone to an applet. the applet depends on
> classes12.jar (or classes12.zip if on windoz). again, class not
> found exception because of classes found in classes12.jar. again,
> on a hunch, i unpacked the jar under /webapss along w/ the applet
> class (i know this is a poor solution but it helped throw light).
> when the applet loads i can see that i completes some of the
> init() but eventually hangs w/ the following: Exception:
> java.util.MissingResourceException: Can't find bundle for
> basename Connection.locale en_US 
> 
> i know the best solution is for the applet to find the packed jar
> and then all should be ok but how? i have put the jar everywhere:
> classpath, build.xml property, $TOMCAT_HOME/lib,
> $TOMCAT_HOME/common/lib, etc.. any and all ideas, references,
> rants and raves welcomed. david.
> 

I think this sounds like an applet problem, which has nothing to 
do with Tomcat. You should now design your application to run 
as a normal applet. Package it and put every resource that it 
needs where I had described before.

I don't know, whether I've understood you right. In case you 
only need to provide an applet without associated servlets, you 
won't need Tomcat. A normal web server, which serves static 
content, will be enough and probably the better performing 
solution.

Regards,
Andreas



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




Re: Multiple instanceq

2002-11-25 Thread Andreas Probst
Hi Hari,

this has been discussed several times. Try to search the 
archive.

Andreas


On 25 Nov 2002 at 11:36, Hari Venkatesan wrote:

> 
> 
> Have anybody tried creating multiple tomcat instances. Is there
> any documentation that explains this step by step?
> 
> Hari
> 
> --
> To unsubscribe, e-mail:  
>  For
> additional commands, e-mail:
> 
> 



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




Re: ldap authenitcation

2002-11-25 Thread Charlene Mitchell
Hi,

No success so far :-(

Surely I can't be the only person trying to do
something so fundamental?

How can I guarantee that I see even a failure in the
log files? Seeing nothing at all seems very weird.

Thanks

Charlene

 --- Charlene Mitchell <[EMAIL PROTECTED]>
wrote: > Hi,
> 
> How do I authenticate against an LDAP directory
> using
> TomCat 4.1.2?
> 
> In my web.xml I have a resource that requires form
> authentication as follows:
>
> FORM
>
> java:/jaas/LDAPLogin
> 
> 
>
> /login
>
> /login-fail
>   
> 
> 
> I have read the JNDI Realm how-to and added the
> following few lines to my server.xml file.
>className="org.apache.catalina.realm.JNDIRealm"
> debug="99"
> connectionURL="ldap://ldapmachine:389";
> userPattern="uid={0},ou=Users,o=myOrg.com"
> roleBase="ou=Groups,0=myOrg.com"
> roleName="cn"
> roleSearch="(uniqueMember={0})"/>
> 
> When I access a restricted URL the login page
> appears
> and I type in my credentials, but when I submit (to:
> j_security_check) 
> I automatically get redirected to my login-fail page
> in a matter of nano-seconds (this in itself suggests
> that it is not working!).
> 
> When I look in the TomCat log files I cannot see any
> references to any attempts to contact my LDAP
> directory.
> And when I look in the LDAP access log I cannot see
> any attempt to be contacted either.
> 
> What step have I missed out or got wrong?
> 
> Many thanks in advance
> 
> Charlene
> 
> __
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Ron Smits
The browser can tell you the language that the system is setup for:

Accept-Language: en-us, en;q=0.50

This is from my Mozilla setup All modern browsers will return an Accept
Language string

Another question related to this, Are you telling me that all your jsp
pages have the actual content stored in several properties files? I
wonder what that would look like

Ron


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




Tomcat 3.2 and 4.1 coexist?

2002-11-25 Thread jimmy
Hello Folks,

Is it possible to install Tomcat 3.2 and 4.1 on the
same server? Are there any side effects? Which path
needs to be followed to install 4.1 on a system that
has 3.2 installed?

The build list is rather long and complicated along
with references and dependancies to many packages.
Therefore any assistance would be appreciated from
someone who has already accomplished a similiar task.

Thanks for your time!

Tom Jerry

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: reloadable [bayes][adr]

2002-11-25 Thread james
Hi, Raja:

I am using Tomcat 4.1, it doesn't work for me.
Did you change anything? Thanks for you help.

James

- Original Message -
From: "Raja Nasrallah" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 9:32 AM
Subject: RE: reloadable [bayes][adr]


Hello,

Thanks you, it works

raja

-Original Message-
From: Jon Eaves [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 10:28 PM
To: Tomcat Users List
Subject: Re: reloadable [bayes][adr]
Importance: Low

Hi Raja,

The default behaviour setting for the class reloading is a touch
on the slow side, so include a  in the  that
looks like this one:





And you'll find that it will now check every second, rather than
the default 15 seconds.

Cheers,
-- jon

Raja Nasrallah wrote:
> Hello,
>
> I set the attribute reloadable to true in a sample context
tag(
> in the sever.xml) to monitor the the "WEB-INF/classes".
>
> But it didn't affect. I make change in a sample class and the server
> don't load this class again.
>
> I am using jakarta-tomcat-4.0.6 in winow2000 server.
>
> Should I have to do other setting to make the reloadable work.
>
> Thanks,
> raja
>

--
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/


--
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: Multiple instanceq

2002-11-25 Thread Rafael Angarita
   In this URL I found instructions for tomcat 3.2.x:
http://www.andreasklimke.de/webdev/misc.html#4.2.2


Hari Venkatesan wrote:


Have anybody tried creating multiple tomcat instances. Is there any
documentation that explains this step by step?

Hari

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



 


--

Rafael Angarita
Systems Administrator
(+58212)(2009765)




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




Progress bar in html

2002-11-25 Thread Zsolt Koppany
Hi,

does anybody know a code (JSP tag) that produces a progress bar in html 
format?

Zsolt

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




Mod_jk Problem

2002-11-25 Thread Dayo Oliyide

I'm currently having problems getting Apache to use load mod_jk, it keeps giving this 
error "[emerg] Error while opening the workers". The workers.properties file exists 
and has the right attributes. I'm using Tomcat 3.3.1, Apache 1.3.9 and 
mod_jk-3.3-ap13-noeapi.so  with Sun's jdk 1.4(build 1.4.0_02-b02) on linux (2.2.12-20).

Everything used to work okay the only change I've made is to Web app and its logic, it 
used to run using Apache, tomcat and jonas but now uses just Apache and tomcat. I 
can't understand how this could affect the mod_jk.

Thanks for any help

Dayo



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Multiple instanceq

2002-11-25 Thread Hari Venkatesan


Have anybody tried creating multiple tomcat instances. Is there any
documentation that explains this step by step?

Hari

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




I think I broke jsp compiler

2002-11-25 Thread Grinvald, Edward
Hello all,
I'm trying to swap out a jre/jdk (yes, I know the diff) on the fly from
tomcat 3.3a. All seems well with 1.3.1, but I'm getting problems with
1.4. It seems that the jsp simply don't get compiled (I get blank
screen). Since my error page is also a jsp, where would I see jsp
compilation errors (tool too recent or something), or how would I debug
this.

Thank you,

edward

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




RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Cox, Charlie
use request.gePathInfo() to get the path. Then parse the string and use
RequestDispatcher.forward("/products/Toys/index.jsp?myparam="+langString).
The forward() will not be subject to further filter processing.

Charlie

> -Original Message-
> From: Stephen Riek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: help with multilingual JSP sites pls. using a Filter to
> rewrite the URL ?
> 
> 
> 
> Sorry, I'm not making myself clear here.  My JSPs do exactly 
> as you suggest 
> so that I have one JSP serving up French and English pages, 
> depending on 
> the language that the user selected on my site.
> Here is the problem explained very simply. I have a sitemap 
> as follows:
> /en
> --> /Products
>   --> Toys/index.jsp
>   --> Decoration/index.jsp
> /fr
> --> /Products
>   --> /Toys/index.jsp
>   --> /Decoration/index.jsp
> 
> As you can see, this is braindead. If I wish the 
> functionality of the English section 
> of the site to be the same as that of the French part of the 
> site, then any change
> to a JSP in the 'en' part must be repeated within the 'fr' 
> site. This is not 
> scalable and is tedious. 
> 
> Instead, it would be much better if I had one site structure 
> which served up the
> whole site.
> 
> /Products
>--> /Toys/index.jsp
> --> /Decoration/index.jsp
> 
> Any changes to functionality only have to be made in one 
> place and both the
> french viewers and english viewers will experience the same 
> user experience, 
> just in different languages. (I use the properties files as 
> you suggest to 
> serve up different languages).
> 
> The problem however is "how does /Products/Toys/index.jsp" 
> know whether
> the user is viewing in English or French ? The easy way would 
> be to have the
> user select a language on entering the site and then store 
> the language 
> preference in a cookie which I check before serving up pages. 
> However, 
> users may access the site from a search engine or from direct 
> URLs due to
> promotions.  I would like a request for 
> /en/Products/Toys/index.jsp to be 
> sent to /Products/Toys/index.jsp but with a 'lang' parameter 
> set to 'en'. 
> Likewise for the french part of the site. 
> 
> Surely somebody has had to encounter this sort of problem in 
> dealing with
> pan-European sites ?
> 
> Stephen.
> 
>  
> 
>  Triptpal Singh Lamba <[EMAIL PROTECTED]> wrote:One way you 
> can do this is using property files.
> 
> Prop_ file name _ language code.properties
> 
> So for say abc.jsp , you have abc_en.properties and abc_fr.properties.
> 
> At comple time the JSP calls a class you write at server 
> which gives say String languageCode  = 
> ObjectName.getLaguageCode(param 1 ,param 2);  %>
> 
> Then all JSP elements are picked from there.
> Thanks
> Tript Singh
> 
> 
> 
> 
> 
> -
> With Yahoo! Mail you can get a bigger mailbox -- choose a 
> size that fits your needs
> 

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




RE: Tomcat or JBoss?

2002-11-25 Thread Steve Lewis
We're currently running on WebLogic and are looking
into "retreating" to Tomcat.  Tyrex makes Tomcat
pretty compelling.  I think a lot of people are
finding out that EJBs are overkill for web-based apps.

Plus, it's cheaper!
Steve

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




  1   2   >