Odd exception

2001-10-04 Thread Brian Richards

2001-10-04 02:45:40 - Ctx() : Exception in R(  + /index.jsp + null) -
java.lang.NullPointerException
 at java.io.Writer.write(Writer.java:129)
 at
org.apache.tomcat.modules.loggers.AccessLogInterceptor.beforeCommit(AccessLo
gInterceptor.java:241)
 at
org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:184)
 at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
 at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
 at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
 at org.apache.tomcat.core.Response.finish(Response.java:271)
 at
org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java:
331)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:836)
 at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:193)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:517)
 at java.lang.Thread.run(Thread.java:484)


What causes that?

Thanks,

Brian

Apache 1.3.6/Tomcat 3.3rc1/Windows 2000/jdk1.3.1




Re: Odd exception

2001-10-04 Thread Byju P.Nair

I have been facing similar problems with tomacat3.2. I have an 
application whose jsp and html are in in a context say test. 
These pages send requests to servlets with URL's like 
/servlet/servletname (notice that it doesn't have a context name 
preceding the URL /contextname/servlet/servletname).

The /servlet URL works fine when i use them directly in the location 
bar of browser, however the below excpetion is reported for servlet 
when request is sent from a context-sensitive jsp page. So does it 
mean tomcat3.2 is strictly context-sensitive. The same setup runs 
well in tomcat3.1. Also if the above servlet dispatches request to 
any context-sensitive jsp, i get the below exception.



 2001-10-04 02:45:40 - Ctx() : Exception in R(  + /index.jsp + null) -
 java.lang.NullPointerException
  at java.io.Writer.write(Writer.java:129)
  at
 org.apache.tomcat.modules.loggers.AccessLogInterceptor.beforeCommit(AccessLo
 gInterceptor.java:241)
  at
 org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:184)
  at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
  at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
  at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
  at org.apache.tomcat.core.Response.finish(Response.java:271)
  at
 org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java:
 331)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:836)
  at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
 erceptor.java:193)
  at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:517)
  at java.lang.Thread.run(Thread.java:484)
 
 
 What causes that?
 
 Thanks,
 
 Brian
 
 Apache 1.3.6/Tomcat 3.3rc1/Windows 2000/jdk1.3.1
 


Byju P.Nair
Software Engineer,
Coas India,174,Road No. 72,
Prasashan Nagar,Jubilee Hills,
Hyderabad, India



Re: Odd exception

2001-10-04 Thread Manu KY

Hi,
please paste the offending code.
Manu
2001-10-04 02:45:40 - Ctx() : Exception in R(  + /index.jsp + null) -
java.lang.NullPointerException
  at java.io.Writer.write(Writer.java:129)
  at
org.apache.tomcat.modules.loggers.AccessLogInterceptor.beforeCommit(AccessLo
gInterceptor.java:241)
  at
org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:184)
  at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
  at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
  at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
  at org.apache.tomcat.core.Response.finish(Response.java:271)
  at
org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java:
331)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:836)
  at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:193)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:517)
  at java.lang.Thread.run(Thread.java:484)


What causes that?

Thanks,

Brian

Apache 1.3.6/Tomcat 3.3rc1/Windows 2000/jdk1.3.1


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Driver fails to load on two webapps

2001-10-04 Thread Brian Richards

Ok I found _A_ solution but I don't really like it.  Basically I had the
db2java.jar file in the lib directory for both webapps.
I moved the jar to only reside in TOMCAT_HOME\lib and updated the
wrapper.properties file.  Now it's magically delicious.  What would be a
better way to resolve this (Something with classloaders?) so that each web
app can have it's own copy of the jar?

Thanks

Brian
- Original Message -
From: Brian Richards [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 12:53 AM
Subject: Driver fails to load on two webapps


 Ok I am running two applications that use the IBM DB2 appdriver to connect
 to two different databases.  The problem is this when i start up tomcat
only
 one of the applications can access the database.  The first one to have a
 request made wins and the other app gets a No Suitable Driver exception.
 They both work independtly as long as it's the first one requested.  My
 theory is that the Class.forName(driver) being called twice is mucking
 things up the code at fault is:

 The obeject that owns this code is instatiated in in jspInit() and load is
 called only once.

 Any other theories?

 Thanks

 Brian

 ps
 I'm using Tomcat 3.3, jdk1.3.1 WIN2k. and Apace 1.3.6
 and the two applications are in two different virtual hosts

 Context path=/ docBase=E:/csc/513/htdocs debug=0 reloadable=true
 trusted=false/

 Host name=dafs.dyndns.org 
 Context path=/messages docBase=webapps/jive debug=0
 reloadable=false trusted=false/
 /Host

 but i get teh same error when they are both in the same host.



 public Connection driverManager()
  throws SQLException
  {
   return  DriverManager.getConnection(getURL(), getUserID(),
getPassword());
  }

  public boolean load(Properties prop)
  {
   if (prop!=null) {
try {
 driver = (String)prop.get(driver);
 password = (String)prop.get(password);
 URL = (String)prop.get(url);
 userID = (String)prop.get(user);
 dataSourceName = (String)prop.get(datasource);
 try {
  Class.forName(getDriver());
 } catch (ClassNotFoundException cnfe) {
  System.err.println(getDriver()+ could not be found.);
 }
} catch (NullPointerException npe) {
 return false;
}
   }
   return true;
  }











## What is the different of keystore and keypass!?

2001-10-04 Thread Sam

Hi all,
What is the difference?
keystore is the CA file
keypass??? what is the function?
thanks.





Re: Session Problems

2001-10-04 Thread Marc Ponschab

Hi,

Byju P.Nair wrote:
 Tomcat is creating 2 different sessions when another browser 
 window is opened from a main window.

Try to send the Request via the target-Attribute (A or FORM) to the new 
Window, you can open a customized window with onclick.

Example:

a onClick=getArticleWindow();
href=blabla.jsp
target=articleWindow
   link
/a

var articleWindow = null;
function getArticleWindow()
{
 if (!articleWindow || articleWindow.closed)
 {
 articleWindow = window.open(/void.html,
 articleWindow,
 
status=0,toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=480);
 }
 if (articleWindow) articleWindow.focus();
}

Marc




Re: Session Problems

2001-10-04 Thread simon


- Original Message - 
From: Byju P.Nair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 2:33 PM
Subject: Session Problems


 Hi,
 
 Tomcat is creating 2 different sessions when another browser 
 window is opened from a main window. For instance, i have an 
 application, in which the first jsp page sends a request to a servlet 
 which inturn places a session object using 
 request.getSession().putValue(name1,value1);
 
 The servlet then dispatches the request to another jsp page, which 
 opens another jsp page in a new dependent window with the js call,
 
 window.open(/sqlplus/ShowScript.jsp,'wmSelectBaseClass','depe
 ndent=yes,width=700,height=380,left=210,top=240');

Does:

 HttpServletResponse.encodeURL(/sqlplus/ShowScript.jsp) 

help?  This should encode the session id into the URL.
(But if the browser has cookies enabled maybe it wont)


 
 In ShowScript.jsp window, a new session is created thereby it is 
 not able to get access to name1 session object stored in the 
 original session. 
 
 I didn't find any such problems when using jswdk. As also it is not 
 related to browser as i tested it in both IE and Netscape.
 
 Could anyone please help me out to ensure only one session is 
 created for all browser windows opened from the main window.
 
 With Best Regards,
 
 Byju P.Nair
 Software Engineer,
 Coas India,174,Road No. 72,
 Prasashan Nagar,Jubilee Hills,
 Hyderabad, India
 




Re: Session Problems

2001-10-04 Thread Byju P.Nair

Yes Simon, you are right. Since the browser has cookie enabled, 
the above statement doesn't encode the sessionID into URL :-(


 
  Hi,
  
  Tomcat is creating 2 different sessions when another browser 
  window is opened from a main window. For instance, i have an 
  application, in which the first jsp page sends a request to a servlet 
  which inturn places a session object using 
  request.getSession().putValue(name1,value1);
  
  The servlet then dispatches the request to another jsp page, which 
  opens another jsp page in a new dependent window with the js call,
  
  window.open(/sqlplus/ShowScript.jsp,'wmSelectBaseClass','depe
  ndent=yes,width=700,height=380,left=210,top=240');
 
 Does:
 
  HttpServletResponse.encodeURL(/sqlplus/ShowScript.jsp) 
 
 help?  This should encode the session id into the URL.
 (But if the browser has cookies enabled maybe it wont)
 
 
  
  In ShowScript.jsp window, a new session is created thereby it is 
  not able to get access to name1 session object stored in the 
  original session. 
  
  I didn't find any such problems when using jswdk. As also it is not 
  related to browser as i tested it in both IE and Netscape.
  
  Could anyone please help me out to ensure only one session is 
  created for all browser windows opened from the main window.
  
  With Best Regards,
  
  Byju P.Nair
  Software Engineer,
  Coas India,174,Road No. 72,
  Prasashan Nagar,Jubilee Hills,
  Hyderabad, India
  
 


Byju P.Nair
Software Engineer,
Coas India,174,Road No. 72,
Prasashan Nagar,Jubilee Hills,
Hyderabad, India



## Keystore Keytool problem!

2001-10-04 Thread Sam

Hi all,
I try to make CA keystore file,

==
Enter keystore password:  changit
keytool error: KeyPairGenerator not available
==

What is the message mean?
thanks all!





deployment problem with ant: jar files in lib not found

2001-10-04 Thread maurice . szmurlo

hi,

I came across the folowing problem:
as long as I developped my own classes (in src/package/Myclass.java)
the build process went ok. However, when I tryed to integrate forein
libraries, actually xml jars (in lib/*.jar), the compilation fails
whenever Myclass uses classes from these jars:

jboss@garfield ./build.sh all
Searching for build.xml ...
Buildfile: /home/jboss/dev/eai/webapp/build.xml

clean:
   [delete] Deleting directory /home/jboss/tomcat/webapps/eai

prepare:
[mkdir] Created dir: /home/jboss/tomcat/webapps/eai
 [copy] Copying 7 files to /home/jboss/tomcat/webapps/eai
[mkdir] Created dir: /home/jboss/tomcat/webapps/eai/WEB-INF
 [copy] Copying 1 files to /home/jboss/tomcat/webapps/eai/WEB-INF
[mkdir] Created dir: /home/jboss/tomcat/webapps/eai/WEB-INF/classes
[mkdir] Created dir: /home/jboss/tomcat/webapps/eai/WEB-INF/lib
 [copy] Copying 3 files to /home/jboss/tomcat/webapps/eai/WEB-INF/lib
** The jars are copied to WEB-INF/lib here
*
[mkdir] Created dir: /home/jboss/tomcat/webapps/eai/javadoc

compile:
[javac] Compiling 2 source files to
/home/jboss/tomcat/webapps/eai/WEB-INF/classes
[javac]
/home/jboss/dev/eai/webapp/src/com/orange/eai/presentation/Menu.java:44:
cannot resolve symbol
[javac] symbol  : class XMLReader  
[javac] location: class com.orange.eai.presentation.Menu
[javac] XMLReader xmlReader = null;
[javac] ^
[javac] 1 error

the compile target in build.xml looks like:


  target name=compile depends=prepare
javac srcdir=src 
   destdir=${deploy.home}/WEB-INF/classes
   classpath=${deploy.home}/WEB-INF/classes
   debug=on 
   optimize=off 
   deprecation=off/
copy  todir=${deploy.home}/WEB-INF/classes
  fileset dir=src includes=**/*.properties/
/copy
  /target

I tried to add {deploy.home}/WEB-INF/lib to the classpath attribute before
or after
${deploy.home}/WEB-INF/classes but the result is the same...

any help would be greatly appreciated.

maurice

---
Maurice Szmurlo --- ORANGE France --- SG/DSI/SIMBAD/ATP 
65-67, Avenue Vladimir Illich Lénine, 94110 ARCUEIL






Changin Content-type header for JSP pages

2001-10-04 Thread stephanos.piperoglou

I'm developing an application using Tomcat 3.2 (and Struts 1.0).

The problem I'm facing is that the Content-type HTTP header for all my
JSP pages is always set to text/html;charset=ISO-8859-1, but all my
JSP pages use UTF-8 encoding and I often expect to receive and send
non-Latin characters. I've used META HTTP-EQUIV=...  in my pages to
specify this, but the HTTP header takes precedence so it's no use.

Is there a way to change this value to either
text/html;charset=UTF-8 or failing that just plain text/html,
short of mucking around with the source? Can I configure the media
type for JSP pages somewhere? If not, does this qualify as a bug? Is
this a Tomcat issue or maybe a Struts or Jasper one?

Any help would be appreciated.

-- 
Stephanos Piperoglou [EMAIL PROTECTED]
bolero.nethttp://www.bolero.net/




Problem in solaris

2001-10-04 Thread Héctor Garcia Peris

Hello list,

I'm using tomcat 3.2.3 with apache in a solaris 2.7. I have downloaded the
source code of tomcat 3.2.3 and compile it in the solaris 2.7. I have other
computer with tomcat in a debian linux. The version of tomcat is the binary
file of the 3.2.2. The problem is that I have a servlet that gets
information from an oracle database and returns a table with the results.
When I run this servlet in the linux machine there isn't any problem, but
when I run it in the solaris the conexion to the oracle database downs after
aproximately one hour (I don't know exactly the time).
Why happens this? Is possible that the dispose of the servlet in the solaris
doesn't work fine?

Any help?

Thanks.
-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--





Re: Using mod_jk with Apache-Tomcat

2001-10-04 Thread RahulKrishna Gupta

Nathan Pfrimmer wrote:

I don't think my Apache-Tomcat connection is working.

If I add the line:
Include d:\jakarta-tomcat-3.2.3\conf\tomcat.conf

to the Apache/conf/httpd.conf file (as directed by the documentation), and
then try to start the Apache server I get an error pop-up box:

Microsoft Management Console - Could not start the Apache service on Local
Computer.  The service did not return an error.  This could be an internal
Windows error or an internal service error.  If the problem persists,
contact your system administrator.

Platform:
Windows 2000
Apache 1.3
Tomcat 3.2.3

Nathan Pfrimmer
Co-op Student
Professional Services, Central Europe
Open Text Corporation
Munich, Germany


You will have to start Tomcat before starting Apache. Did you do that?

-RKG





Re: Changin Content-type header for JSP pages

2001-10-04 Thread Marc Ponschab

[EMAIL PROTECTED] wrote:
 Is there a way to change this value to either
 text/html;charset=UTF-8 or failing that just plain text/html,

see
javax.servlet.ServletResponse.setContentType(
 java.lang.String type)

in your JSP use something like
response.setContentType(text/html; charset=UTF-8);

Marc




Re: Character decoding in form data

2001-10-04 Thread Gregor Kovaè

Hi!

I had the same problem and I solved it using Tomcat 3.3 (I think it was 
beta 1). If you are using database make sure that you create a database 
using your character set.

My example:
I had some data in ISO8859-2 character set in the database. The database 
was MySQL with defaulot character set set to Latin2 (you can set this 
charater set in your my.cnf file; default-character-set=latin2). I didn't 
have to use any code like you specify below. Just make sure that you have a 
%@page contentType=text/html; charset=windows-1250%. A customer user 
only Internet Explorer and so I had to use windows-1250 charset.

I can tell you that this is working with MySQL, DB2 and Interbase. But if 
you are using Interbase then you specify character set in meta http  
tags in JSP pages and don't use %@page contentType ..%

I hope this help a bit.


Best regards,
 Kovi

At 16:06 3.10.2001 +0200, you wrote:
Hi!

Is there anybody who knows what version of Tomcat support character sets 
other than ISO8859_1, if any?

I use the ISO8859_2 character set, and my form decoding now looks like:

 if(name!=null) customer.setName( new 
 String(name.getBytes(ISO8859_1),ISO8859_2));
 if(contact!=null) customer.setContact( new 
 String(contact.getBytes(ISO8859_1),ISO8859_2));
 ...

I hate this, and I would like to use the simple one row tag:

 jsp:setProperty name=customer property=*/

I sent this problem as a bug report nearly one year ago, and now I have 
found a relevant message in the mail
archive 
(http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg05727.html) 
dated February 22,
but trying the new Tomcat 4.0 version I can not see the changes.

Thank for any help,
Laszlo Palmai

Interware Ltd.
1132 Budapest, Victor Hugo u. 18-22.
Tel: +36 1 3506892, Fax: +36 1 3506417
E-mail:[EMAIL PROTECTED]  -  http://www.interware.hu




Re: Session Problems

2001-10-04 Thread Marc Ponschab

Hi,


Byju P.Nair wrote:
 Yes Simon, you are right. Since the browser has cookie enabled, 
 the above statement doesn't encode the sessionID into URL :-(

See server.xml:

!-- Session interceptor will extract the session id from cookies and
  deal with URL rewriting ( by fixing the URL ).  If you wish to
  suppress the use of cookies for session identifiers, change the
  noCookies attribute to true
   --
RequestInterceptor
 className=org.apache.tomcat.request.SessionInterceptor
 noCookies=true /

Hi,

Tomcat is creating 2 different sessions when another browser 
window is opened from a main window. For instance, i have an 
application, in which the first jsp page sends a request to a servlet 
which inturn places a session object using 
request.getSession().putValue(name1,value1);

The servlet then dispatches the request to another jsp page, which 
opens another jsp page in a new dependent window with the js call,

window.open(/sqlplus/ShowScript.jsp,'wmSelectBaseClass','depe
ndent=yes,width=700,height=380,left=210,top=240');

Does:

 HttpServletResponse.encodeURL(/sqlplus/ShowScript.jsp) 

help?  This should encode the session id into the URL.
(But if the browser has cookies enabled maybe it wont)




Re: Session Problems

2001-10-04 Thread Byju P.Nair

I did exactly as mentioned below, but it is helping the issue. Having 
suppressed the cookie usage, do i have to explicitly use URL 
rewriting by using response.encodeURL(...) to encode the 
sessionID?


 
 See server.xml:
 
 !-- Session interceptor will extract the session id from cookies and
   deal with URL rewriting ( by fixing the URL ).  If you wish to
   suppress the use of cookies for session identifiers, change the
   noCookies attribute to true
--
 RequestInterceptor
  className=org.apache.tomcat.request.SessionInterceptor
  noCookies=true /
 
 Hi,
 
 Tomcat is creating 2 different sessions when another browser 
 window is opened from a main window. For instance, i have an 
 application, in which the first jsp page sends a request to a servlet 
 which inturn places a session object using 
 request.getSession().putValue(name1,value1);
 
 The servlet then dispatches the request to another jsp page, which 
 opens another jsp page in a new dependent window with the js call,
 
 window.open(/sqlplus/ShowScript.jsp,'wmSelectBaseClass','depe
 ndent=yes,width=700,height=380,left=210,top=240');
 
 Does:
 
  HttpServletResponse.encodeURL(/sqlplus/ShowScript.jsp) 
 
 help?  This should encode the session id into the URL.
 (But if the browser has cookies enabled maybe it wont)
 


Byju P.Nair
Software Engineer,
Coas India,174,Road No. 72,
Prasashan Nagar,Jubilee Hills,
Hyderabad, India



Re: getparameter

2001-10-04 Thread Michele Cerioni

Dmitri Colebatch wrote:
 
 works fine for me on java 1.3 from sun.
 
 On Wed, 3 Oct 2001, Roberto B. wrote:
 
  I use linux (debian), T3.2.3 and jsdk 1.4 ...and your code works!
  Try to upgrade to jsdk 1.4
 
  R.
 
  - Original Message -
  From: Michele Cerioni [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, October 03, 2001 6:38 PM
  Subject: getparameter
 
 
   Hi,
   I use jakarta-tomcat-3.2.3 and jdk1.3.1_01 apache1.3.19 on Linux 2.2.19.
  
   I created a file  prova.jsp
  
   html
  head
 title Prova /title
  /head
 body
%
 out.println(bCiao:  + request.getParameter(user) +
   /b);
 out.println(bbrCiao:  + request.getMethod() + /b);
%
 /body
   /html
  
   when I call the URL  prova.jsp?user=pippo I get this page:
  
   Ciao: null
   Ciao: GET
  
   if I call prova.jsp using POST method I get the value pippo for the
   parameter user.
  
   Why GET method dosn't work?
  
   Michele
 
 

I tried j2re1.4 but it dosn't work.

Anyone have any ideas as to why this happens?

Michele



Re: getparameter

2001-10-04 Thread Dmitri Colebatch

how are you calling it?  I literally cut and pasted it into a file
(attached) in and saved it in the examples context of a normal install -
worked fine.

cheers
dim



On Thu, 4 Oct 2001, Michele Cerioni wrote:

 Dmitri Colebatch wrote:
  
  works fine for me on java 1.3 from sun.
  
  On Wed, 3 Oct 2001, Roberto B. wrote:
  
   I use linux (debian), T3.2.3 and jsdk 1.4 ...and your code works!
   Try to upgrade to jsdk 1.4
  
   R.
  
   - Original Message -
   From: Michele Cerioni [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, October 03, 2001 6:38 PM
   Subject: getparameter
  
  
Hi,
I use jakarta-tomcat-3.2.3 and jdk1.3.1_01 apache1.3.19 on Linux 2.2.19.
   
I created a file  prova.jsp
   
html
   head
  title Prova /title
   /head
  body
 %
  out.println(bCiao:  + request.getParameter(user) +
/b);
  out.println(bbrCiao:  + request.getMethod() + /b);
 %
  /body
/html
   
when I call the URL  prova.jsp?user=pippo I get this page:
   
Ciao: null
Ciao: GET
   
if I call prova.jsp using POST method I get the value pippo for the
parameter user.
   
Why GET method dosn't work?
   
Michele
  
  
 
 I tried j2re1.4 but it dosn't work.
 
 Anyone have any ideas as to why this happens?
 
 Michele
 


html
head
   title Prova /title
/head
   body
  %
   out.println(bCiao:  + request.getParameter(user) + /b);
   out.println(bbrCiao:  + request.getMethod() + /b);
  %
   /body
 /html



Re: getparameter

2001-10-04 Thread simon


It seems to be working fine for everyone else so it's probably not a JDK version 
problem.

What happens it you add another parameter:

 html
head
   title Prova /title
/head
   body
  %
   out.println(bCiao:  + request.getParameter(user) + /b);
   out.println(bCiao:  + request.getParameter(hogehoge) + /b);
   out.println(bbrCiao:  + request.getMethod() + /b);
  %
  /body
 /html

prova.jsp?user=pippohogehoge=dinkum

??

- Original Message - 
From: Michele Cerioni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 7:37 PM
Subject: Re: getparameter


 Dmitri Colebatch wrote:
  
  works fine for me on java 1.3 from sun.
  
  On Wed, 3 Oct 2001, Roberto B. wrote:
  
   I use linux (debian), T3.2.3 and jsdk 1.4 ...and your code works!
   Try to upgrade to jsdk 1.4
  
   R.
  
   - Original Message -
   From: Michele Cerioni [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, October 03, 2001 6:38 PM
   Subject: getparameter
  
  
Hi,
I use jakarta-tomcat-3.2.3 and jdk1.3.1_01 apache1.3.19 on Linux 2.2.19.
   
I created a file  prova.jsp
   
html
   head
  title Prova /title
   /head
  body
 %
  out.println(bCiao:  + request.getParameter(user) +
/b);
  out.println(bbrCiao:  + request.getMethod() + /b);
 %
  /body
/html
   
when I call the URL  prova.jsp?user=pippo I get this page:
   
Ciao: null
Ciao: GET
   
if I call prova.jsp using POST method I get the value pippo for the
parameter user.
   
Why GET method dosn't work?
   
Michele
  
  
 
 I tried j2re1.4 but it dosn't work.
 
 Anyone have any ideas as to why this happens?
 
 Michele
 




Reloading JSP's not working

2001-10-04 Thread Martin van Dijken

Hi guys,

In the server.xml file, I've created a context for my web application. I've
put there that reloadable=true. I read that this should assure that my JSP
source files are version-checked every time they are requested, and
recompiled if the version that is there is newer than the compiled version
that I've got stored. This is my context declaration:

 Host name=www.sunsear.mad
 Context path=
 docBase=/shares/sunsear.mad
 crossContext=false
 debug=1
 reloadable=true 
 /Context
 /Host

However, this does not seem to do much of anything, since I am forced to
restart Tomcat everytime I have changed something in my JSP's. Am I missing
or misunderstanding something? 

I'm running SUSE linux 7.0 with apache 1.3.12 and tomcat 3.2.2 using mod_jk
as my connector between apache and tomcat.

Please tell me whether or not it is possible at all to do what I want, since
it's quite annoying to have to reboot Tomcat all the time. Thanks in
advance,

Martin van Dijken



Re: Session Problems

2001-10-04 Thread Marc Ponschab

Byju P.Nair wrote:
 Having 
 suppressed the cookie usage, do i have to explicitly use URL 
 rewriting by using response.encodeURL(...) to encode the 
 sessionID?

Yes, shure.

Marc

See server.xml:

!-- Session interceptor will extract the session id from cookies and
  deal with URL rewriting ( by fixing the URL ).  If you wish to
  suppress the use of cookies for session identifiers, change the
  noCookies attribute to true
   --
RequestInterceptor
 className=org.apache.tomcat.request.SessionInterceptor
 noCookies=true /

Hi,

Tomcat is creating 2 different sessions when another browser 
window is opened from a main window. For instance, i have an 
application, in which the first jsp page sends a request to a servlet 
which inturn places a session object using 
request.getSession().putValue(name1,value1);

The servlet then dispatches the request to another jsp page, which 
opens another jsp page in a new dependent window with the js call,

window.open(/sqlplus/ShowScript.jsp,'wmSelectBaseClass','depe
ndent=yes,width=700,height=380,left=210,top=240');


Does:

HttpServletResponse.encodeURL(/sqlplus/ShowScript.jsp) 

help?  This should encode the session id into the URL.
(But if the browser has cookies enabled maybe it wont)





Re: getparameter

2001-10-04 Thread Michele Cerioni

simon wrote:
 
 It seems to be working fine for everyone else so it's probably not a JDK version 
problem.
 
 What happens it you add another parameter:
 
  html
 head
title Prova /title
 /head
body
   %
out.println(bCiao:  + request.getParameter(user) + /b);
out.println(bCiao:  + request.getParameter(hogehoge) + /b);
out.println(bbrCiao:  + request.getMethod() + /b);
   %
   /body
  /html
 
 prova.jsp?user=pippohogehoge=dinkum
 
 ??
 


Ciao: null Ciao: null
Ciao: GET

I made several  examples test  with different names for the parameters,
but the problem was the same.

Michele



Webapp multiple connections

2001-10-04 Thread Alex Sanderson

Hello,

Has anyone sucessfully run mod_webapp with multiple connections to different
tomcat's?
I can define three connectors connA connB and connC and apache is happy.  If I
deploy something with connA it works perfectly.
If I comment out the connA deploy and deploy something with connB, connB works
perfectly.
If I try to run the two at once, one of them fails with an [error] Cannot
deploy application that loops forever in apache hanging apache.

I have searched all the docs I can find on webapp.  In the webapp cvs docs it
says that no connections can have the same name which suggests that webapp can
handle more than one connection.  I cannot find any examples using two or more
connectors though.

Alex




Re: getparameter

2001-10-04 Thread Michele Cerioni

Dmitri Colebatch wrote:
 
 how are you calling it?  I literally cut and pasted it into a file
 (attached) in and saved it in the examples context of a normal install -
 worked fine.
 
 cheers
 dim
 

I put the file in the correct directory and then I call it with the
browser
at the URL 
http://www.poggiodiclo.com/poggiodiclo/prova.jsp?user=eee

I made a html page to call prova.jsp with POST method and it works.
this page is at 

http://www.poggiodiclo.com/poggiodiclo/prova.htm



With TOMCAT I tried some examples

http://www.poggiodiclo.com/examples/servlet/

and the scripts whith GET METHOD don't work

Michele



Re: mod_webapp connector on linux - HELP!

2001-10-04 Thread James Williamson

 Actually, I am not setting up virtual hosts like you are, so the
 mod_webapp result of application deployment *should* be localhost
 (what's set as my ServerName), right?


David,

You have to define your context(s) within VirtualHost directives.

Regards,

James


 My apache error_log looks like this on startup:

 [Wed Oct  3 13:22:25 2001] [warn] Loaded DSO modules/mod_webapp.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
 [Wed Oct  3 13:22:25 2001] [error] Connection conn cannot connect
 [Wed Oct  3 13:22:25 2001] [error] Cannot open connection conn
 [Wed Oct  3 13:22:25 2001] [error] Connection conn cannot connect
 [Wed Oct  3 13:22:25 2001] [error] Cannot open connection conn
 [Wed Oct  3 13:22:25 2001] [error] Connection conn cannot connect
 [Wed Oct  3 13:22:25 2001] [error] Cannot open connection conn
 [Wed Oct  3 13:22:25 2001] [error] Connection conn cannot connect
 [Wed Oct  3 13:22:25 2001] [error] Cannot open connection conn
 [Wed Oct  3 13:22:25 2001] [error] Connection conn cannot connect
 [Wed Oct  3 13:22:25 2001] [error] Cannot open connection conn






-- http 405, can not execute servlet

2001-10-04 Thread Sam

Hi everybody

I can execute Servlet Exaxmple follow the command,
http://localhost:8080/servlet/SnoopServlet

I try to make a html file
FORM ACTION=/servlet/SnoopServlet METHOD=post
INPUT TYPE=SUBMIT VALUE=submit
/FORM

The Server can not accept the request.
REPLY: (405 Server does not support requested method)

However after I RELOAD the page, it is work well.
Why?? why RELOAD is necessary.

--Sam




Performance.

2001-10-04 Thread Jacob FanChiang \(\)

What's the limited of users when using Apache-Tomcat.
I need Apache-Tomcat to serve 500 users concurrently.

Platform: RedHat Linux 7.1
  Tomcat 4.0
  Apache 1.2.30
Computer: IBM xSeries 230 
RAM 512M
Disk: 34G Raid 0


Jacob FanChiang

Assoiciate Researcher
Customer Care and Billing System Dept.
Telecommunication Laboratories
Chunghwa Telecom Co., Ltd.
Tel: +886 2 3707 1098
Fax +886 2 2325 5844
Email: [EMAIL PROTECTED]




RE: -- http 405, can not execute servlet

2001-10-04 Thread Paul Foxton

change the method in your form tag:

FORM ACTION=/servlet/SnoopServlet METHOD=get

 -Original Message-
 From: Sam [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2001 11:04
 To: [EMAIL PROTECTED]
 Subject: -- http 405, can not execute servlet
 
 
 Hi everybody
 
 I can execute Servlet Exaxmple follow the command,
 http://localhost:8080/servlet/SnoopServlet
 
 I try to make a html file
 FORM ACTION=/servlet/SnoopServlet METHOD=post
 INPUT TYPE=SUBMIT VALUE=submit
 /FORM
 
 The Server can not accept the request.
 REPLY: (405 Server does not support requested method)
 
 However after I RELOAD the page, it is work well.
 Why?? why RELOAD is necessary.
 
 --Sam
 



RE: -- http 405, can not execute servlet

2001-10-04 Thread Paul Foxton

By the way, check the URL displayed in your browser after the first
unsuccessful request - you'll see the URL of the servlet, so when you
refresh you send a new request directly to the servlet, which is by default
a 'get' request instead of a 'post'.
this is why it works when you refresh it.

 -Original Message-
 From: Paul Foxton [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2001 10:44
 To: '[EMAIL PROTECTED]'
 Subject: RE: -- http 405, can not execute servlet
 
 
 change the method in your form tag:
 
 FORM ACTION=/servlet/SnoopServlet METHOD=get
 
  -Original Message-
  From: Sam [mailto:[EMAIL PROTECTED]]
  Sent: 04 October 2001 11:04
  To: [EMAIL PROTECTED]
  Subject: -- http 405, can not execute servlet
  
  
  Hi everybody
  
  I can execute Servlet Exaxmple follow the command,
  http://localhost:8080/servlet/SnoopServlet
  
  I try to make a html file
  FORM ACTION=/servlet/SnoopServlet METHOD=post
  INPUT TYPE=SUBMIT VALUE=submit
  /FORM
  
  The Server can not accept the request.
  REPLY: (405 Server does not support requested method)
  
  However after I RELOAD the page, it is work well.
  Why?? why RELOAD is necessary.
  
  --Sam
  
 



Re: Unable to compile JSPs in Tomcat 4

2001-10-04 Thread Jiger Java

Hi all,
   Ok so finally I have been able to solve my Tomcat Problem. I am 
writing this for others to not waste 2 days in future.The Problem was 
related to Class Loading. Although I was setting javax.xml.parsers.* 
properties in catalina.bat  my Utilities were working irrespetive of this 
setting(because I have them set using System.setProperty in those classes 
itself. The main problem was related to the way Jasper loads the Xml Parser 
to parse JSPs.
  I followed the instructions of using various XML parser in Tomcat4  lo  
behold eveything worked nicely incl. Apache SOAP which is notoriouse of 
working only with old xerces parser i.e xerces 1.2 or before.


Bye,
Jiger



From: Jiger Java [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Unable to compile JSPs in Tomcat 4
Date: Wed, 03 Oct 2001 18:39:14 +0530

Hi Friends,
I am working on Tomcat 4 Final Release. The scenerio is like
this.
  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 1.4.3
since older Xerces were creating problems. I put the latest Xerces.jar file
in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes 
in
a InitServlet to initialize some properties read from XML file. Till this
everything is working fine. No Exception.
  Then I try to access my context containing index.jsp
then it gives me the following error.


A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
   at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown
Source)
   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown 
Source)
   at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
   at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
   at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown 
Source)
   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
   at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.connector.http.HttpProcessor.process(Unknown 
Source)
   at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:539)

Root Cause:
java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
   at

Re: Unable to compile JSPs in Tomcat 4

2001-10-04 Thread Jiger Java

One more thing, can Tomcat gurus explain what exactly is the way the 
Classloading of tomcat works,  what was causing problem. In my case I had 
latest Xerces 1.4.3 in common/lib(for tomcat)  in mycontext/WEB-INF/lib for 
my apps use. Why was it creating problem.

Gurus please explain.
Bye,
Jiger


From: Jiger Java [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Unable to compile JSPs in Tomcat 4
Date: Thu, 04 Oct 2001 17:02:48 +0530

Hi all,
   Ok so finally I have been able to solve my Tomcat Problem. I am
writing this for others to not waste 2 days in future.The Problem was
related to Class Loading. Although I was setting javax.xml.parsers.*
properties in catalina.bat  my Utilities were working irrespetive of this
setting(because I have them set using System.setProperty in those classes
itself. The main problem was related to the way Jasper loads the Xml Parser
to parse JSPs.
  I followed the instructions of using various XML parser in Tomcat4  lo 
behold eveything worked nicely incl. Apache SOAP which is notoriouse of
working only with old xerces parser i.e xerces 1.2 or before.


Bye,
Jiger



From: Jiger Java [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Unable to compile JSPs in Tomcat 4
Date: Wed, 03 Oct 2001 18:39:14 +0530

Hi Friends,
I am working on Tomcat 4 Final Release. The scenerio is like
this.
  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 
1.4.3
since older Xerces were creating problems. I put the latest Xerces.jar 
file
in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes
in
a InitServlet to initialize some properties read from XML file. Till this
everything is working fine. No Exception.
  Then I try to access my context containing index.jsp
then it gives me the following error.


A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
  at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown
Source)
  at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
Source)
  at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
  at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
  at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
  at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
  at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at 

Re: Character decoding in form data

2001-10-04 Thread Laszlo Palmai

All of my jsp pages and forms in ISO8859-2 and starts like:

%@ page contentType=text/html; charset=ISO-8859-2 %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleIW2000/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
...

I have not only Windows users but Linux and others.
(I am ready to use UTF8 instead of ISO-8859-2 but my tests give the same results.)

Thanks,
Laszlo

- Original Message -
From: Gregor Kovaè [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 10:14 AM
Subject: Re: Character decoding in form data


 Hi!

 I had the same problem and I solved it using Tomcat 3.3 (I think it was
 beta 1). If you are using database make sure that you create a database
 using your character set.

 My example:
 I had some data in ISO8859-2 character set in the database. The database
 was MySQL with defaulot character set set to Latin2 (you can set this
 charater set in your my.cnf file; default-character-set=latin2). I didn't
 have to use any code like you specify below. Just make sure that you have a
 %@page contentType=text/html; charset=windows-1250%. A customer user
 only Internet Explorer and so I had to use windows-1250 charset.

 I can tell you that this is working with MySQL, DB2 and Interbase. But if
 you are using Interbase then you specify character set in meta http 
 tags in JSP pages and don't use %@page contentType ..%

 I hope this help a bit.


 Best regards,
  Kovi

 At 16:06 3.10.2001 +0200, you wrote:
 Hi!
 
 Is there anybody who knows what version of Tomcat support character sets
 other than ISO8859_1, if any?
 
 I use the ISO8859_2 character set, and my form decoding now looks like:
 
  if(name!=null) customer.setName( new
  String(name.getBytes(ISO8859_1),ISO8859_2));
  if(contact!=null) customer.setContact( new
  String(contact.getBytes(ISO8859_1),ISO8859_2));
  ...
 
 I hate this, and I would like to use the simple one row tag:
 
  jsp:setProperty name=customer property=*/
 
 I sent this problem as a bug report nearly one year ago, and now I have
 found a relevant message in the mail
 archive
 (http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg05727.html)
 dated February 22,
 but trying the new Tomcat 4.0 version I can not see the changes.
 
 Thank for any help,
 Laszlo Palmai
 
 Interware Ltd.
 1132 Budapest, Victor Hugo u. 18-22.
 Tel: +36 1 3506892, Fax: +36 1 3506417
 E-mail:[EMAIL PROTECTED]  -  http://www.interware.hu





tomcat 4 rmi problem

2001-10-04 Thread manav

hi all,

i am getting the following error any sol.


plus why do i need web.xml file in earlier version i was not using that and
what to right in web.xml.

2000-10-04 17:50:31 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPimport
javax.rmi.PortableRemoteObject;
   ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Unknown Source)




Problem in solaris

2001-10-04 Thread Héctor Garcia Peris

Hello list,

I'm using tomcat 3.2.3 with apache in a solaris 2.7. I have downloaded the
source code of tomcat 3.2.3 and compile it in the solaris 2.7. I have other
computer with tomcat in a debian linux. The version of tomcat is the binary
file of the 3.2.2. The problem is that I have a servlet that gets
information from an oracle database and returns a table with the results.
When I run this servlet in the linux machine there isn't any problem, but
when I run it in the solaris the conexion to the oracle database downs after
aproximately one hour (I don't know exactly the time).
Why happens this? Is possible that the dispose of the servlet in the solaris
doesn't work fine?

Any help?

Thanks.
-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--





RE: IIS and Tomcat 3.2.3 w isapi_redirect.dll, RC 200

2001-10-04 Thread Cox, Charlie

note the line:
jk_open_socket, connect() failed errno = 61

it appears that your workers are not configured on the same port in
workers.properties and server.xml

Charlie

 -Original Message-
 From: Vara Prashanth [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 11:16 AM
 To: [EMAIL PROTECTED]
 Subject: RE: IIS and Tomcat 3.2.3 w isapi_redirect.dll, RC 200
 
 
 Hi
 I am not 100% sure i what I am going to say will be the right 
 approach or
 notbut here's what happened to me when I was trying to 
 set up tomcat on
 my machine. The manual for setting up tomcat says that we should make
 registry entries for the the isapi redirector and the same in Internet
 service manager console. When I did that I could not invoke 
 the dll(same as
 you). I was then told by someone that we dont need to have 
 the redirector in
 the ISAPI filters of the Internet service manager console. So 
 just try and
 removing this entry and test it out.
 
 This is my first posting to someone else's problem...i just hope I was
 right!
 All the best
 Prashanth
 
 -Original Message-
 From: Johan Hellstrom [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 11:49 AM
 To: [EMAIL PROTECTED]
 Subject: IIS and Tomcat 3.2.3 w isapi_redirect.dll, RC 200
 
 
 Dear Sirs,
 
 Am trying to configure IIS under Windows 2000 Server to use 
 TomCat 3.2.3 as
 a servlet engine. Since it doesn't work very well, after reading and
 following the advice in you your howto file, I would 
 appreciate if you had
 any input in the matter.
 
 Everything is registered properly. The isapi.log file is created, the
 redictor green up arrow is there and the PWS log file 
 entries show up
 nicely. Since I get a 200 error in this log file (as can be 
 seen below) I
 took a second look at the /jakarta virtual directory, which 
 has all proper
 authorities applied (actually *all* permissions ;-)).
 
 Can you see anything weird from the following output?
 Would be grateful for any input.
 
 Regards
 
 Johan Hellstrom
 
 --
 --
 
 
 From the Tomcat CMD Window:
 
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-10-03 10:00:47 - ContextManager: Adding context Ctx(  )
 2001-10-03 10:00:47 - ContextManager: Adding context Ctx( /test )
 2001-10-03 10:00:48 - PoolTcpConnector: Starting 
 HttpConnectionHandler on
 8080
 2001-10-03 10:00:48 - PoolTcpConnector: Starting 
 Ajp12ConnectionHandler on
 8007
 2001-10-03 10:01:09 - Ctx(  ): 404 R(  + 
 /jakarta/isapi_redirect.dll + null)
 null
 2001-10-03 10:06:37 - Ctx(  ): 404 R(  + 
 /jakarta/isapi_redirect.dll + null)
 null
 
 --
 --
 
 
 From the PWS log:
 
 2001-10-03 08:51:25 127.0.0.1 - 127.0.0.1 80 GET 
 /jakarta/isapi_redirect.dll
 - 200 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)
 
 
 --
 --
 
 
 From the isapi.log:
 
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters
 
 
 
 _
 Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: Problem in solaris

2001-10-04 Thread Alex Sanderson

Hello Hector

Is the database running on the same machine as the tomcat engine?
If they are not on the same machine are the two machines on the same network?
Many routers/gateways etc.. will cut a tcp connection that has been inactive
for a period of time. Oracle may also have a timeout for a connection but I am
not sure about that.  Maybe you should try opening/closing the connection each
time you use it or at least checking to see if it is still there before using
it.

Alex
- Original Message -
From: Héctor Garcia Peris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 2:15 PM
Subject: Problem in solaris


Hello list,

I'm using tomcat 3.2.3 with apache in a solaris 2.7. I have downloaded the
source code of tomcat 3.2.3 and compile it in the solaris 2.7. I have other
computer with tomcat in a debian linux. The version of tomcat is the binary
file of the 3.2.2. The problem is that I have a servlet that gets
information from an oracle database and returns a table with the results.
When I run this servlet in the linux machine there isn't any problem, but
when I run it in the solaris the conexion to the oracle database downs after
aproximately one hour (I don't know exactly the time).
Why happens this? Is possible that the dispose of the servlet in the solaris
doesn't work fine?

Any help?

Thanks.
-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--








[tomcat3.2] some questions

2001-10-04 Thread Christian Ribeaud

Hi,

I have been working for a few months with tomcat and I am very satisfied with it.
I have been arrived at the point where I would like to understand this software more 
and I have got 
3 questions:
1) I noticed that if you use ServletContext.setAttribute() in the servlet's init() 
function, this Object
   will not be reachable in the same servlet's service() function. Why this?
2) In one servlet context you could have more than one instance of the same servlet, 
couldn't you?
   Will the function init() be called for every instance?
3) If I define the value of a static class variable in the init() function,
   will this variable always have the same value, I mean for every instance of the 
class?
I would be very grateful if someone could answer me. Have a nice day.
Cheers,

christian




RE: [tomcat3.2] some questions

2001-10-04 Thread Randy Layman



 -Original Message-
 From: Christian Ribeaud [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 8:56 AM
 To: [EMAIL PROTECTED]
 Subject: [tomcat3.2] some questions
 
 
 Hi,
 
 I have been working for a few months with tomcat and I am 
 very satisfied with it.
 I have been arrived at the point where I would like to 
 understand this software more and I have got 
 3 questions:
 1) I noticed that if you use ServletContext.setAttribute() in 
 the servlet's init() function, this Object
will not be reachable in the same servlet's service() 
 function. Why this?
I've never used this and don't know - it seems like the setAttribute
should set for the service method of the same servlet.

 2) In one servlet context you could have more than one 
 instance of the same servlet, couldn't you?
Will the function init() be called for every instance?
Yes, init will be called for each instance (perhaps this is the problem
with #1?)

 3) If I define the value of a static class variable in the 
 init() function,
will this variable always have the same value, I mean for 
 every instance of the class?
For each instance loaded by the same classloader.  If you are using two
different class loaders (for instance, two different web apps), the static
values don't cross.

 I would be very grateful if someone could answer me. Have a nice day.
 Cheers,
 
 christian
 



mod_webapp: Server name

2001-10-04 Thread Nikola Milutinovic

Hi all.

I managed to compile mod_webapp.so on Tru64. Now, Apache bugs out if I don't specify 
ServerName.

This works:
--
LoadModule webapp_module  libexec/mod_webapp.so
AddModule mod_webapp.c



IfModule mod_webapp.c
ServerName Legba.ev.co.yu
WebAppConnection tomcat4 warp Legba.ev.co.yu:8008
WebAppDeploy examples tomcat4 http://Legba.ev.co.yu/examples/
/IfModule
--

Also, using localhost in the first line or just /examples/ in the second line works, 
as well.

Q1: Why do I have to specify server name? I'm not using virtual hosts.
Q2: If I do have a couple of virtual hosts, do I connect in each one of them or just 
deploy?

In other words:

VirtualHost 192.168.61.18:80
ServerName Legba.ev.co.yu
...
WebAppConnection tomcat4 warp Legba.ev.co.yu:8008
WebAppDeploy examples tomcat4 http://Legba.ev.co.yu/examples/
/VirtualHost
VirtualHost 192.168.61.18:80
ServerName Test.ev.co.yu
...
WebAppConnection tomcat4 warp Test.ev.co.yu:8008
WebAppDeploy examples tomcat4 http://Legba.ev.co.yu/examples/
/VirtualHost

I know and understand that WebAppDeply should be virtual-host-specific, but what about 
WebAppConnect?

Nix.

 smime.p7s


RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights

Are all the sql related class files for each webapp in the respective
webapps lib or classes directories?

If not you might try that. (And if it works please report back.)

HTH

 -Original Message-
 From: Brian Richards [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 9:54 PM
 To: [EMAIL PROTECTED]
 Subject: Driver fails to load on two webapps


 Ok I am running two applications that use the IBM DB2
 appdriver to connect
 to two different databases.  The problem is this when i start
 up tomcat only
 one of the applications can access the database.  The first
 one to have a
 request made wins and the other app gets a No Suitable Driver
 exception.
 They both work independtly as long as it's the first one
 requested.  My
 theory is that the Class.forName(driver) being called twice is mucking
 things up the code at fault is:






Tomcat 4.0 - HttpSessionListener lockup in sessionDestroyed()

2001-10-04 Thread Scott Ahten

I'm noticing some strange behaviour with a class that implements 
HttpSessionListener and is registered in my apps webapp.xml file as a 
listener.

When I call session.getAttribute(xxx) on a session passed into 
sessionDestroyed() the thread seems to lock.

I've simplified my class as a test case and it never makes it to the 
System.out.println(attribute shown) statement.

I'm running tomcat 4.0 final on windows 2k. I've received the same 
results on both jdk 1.3.1 and 1.4 beta.

My test includes two JSP pages: one sets a value in the session, another 
calls session.invalidate().

output from stdout.log and class definition are included bellow.

Thanks in advance

~Scott

output from stdout.log

Create Catalina server
Starting service Tomcat-Standalone
Apache Tomcat/4.0
ServletContext Initialized
Starting service Tomcat-Apache
Apache Tomcat/4.0
Session Created -- click on populateSession.jsp
attribute added
Session Destroyed - click on invalidateSession.jsp
 - execution stops before showing attribute 
value




import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class LoggingController implements ServletContextListener, 
HttpSessionListener
{
 
public LoggingController()
{
// System.out.println(LoggingController constructed);
}

public void contextInitialized(ServletContextEvent sce)
{
System.out.println(ServletContext Initialized);
}

public void contextDestroyed(ServletContextEvent sce)
{
System.out.println(ServletContext Destroyed);
}

public void sessionCreated(HttpSessionEvent hse)
{
System.out.println(Session Created);

HttpSession session = hse.getSession();
session.setAttribute(name, scott);

// execution makes it here ok
System.out.println(attribute added);
}


public void sessionDestroyed(HttpSessionEvent hse)
{
System.out.println(Session Destroyed);

HttpSession session = hse.getSession();

// seems to hang up on the following line
System.out.println(session.getAttribute(name));

   System.out.println(attribute shown);
}
}






Re: Odd exception

2001-10-04 Thread Brian Richards

Don't look too hard i assure you it's not the jsp but instead something to
do with tomcat setup.

-brian

/ index.jsp /
%@ page import=java.io.*,java.util.*,java.sql.* %

%!

 public final boolean debug=true;
 public final String propertiesPath =
E:\\csc\\513\\htdocs\\WEB-INF\\classes\\animeDB.properties;
private Properties properties;//properties for sql and news letter
mappings
private DataConnectionBean dbBean;

 public void debugMsg(String msg,JspWriter out) throws IOException{
  if (debug) {
   out.println(msg);
  }
 }

public void jspInit(){
properties = new Properties();
dbBean = new DataConnectionBean();
try {
properties.load(new FileInputStream(propertiesPath));
dbBean.load(properties);
} catch (IOException ioe) {
System.err.println(could not load sql properties file);
ioe.printStackTrace(System.err);
}
}
private Connection openConnection()
throws SQLException
{
return dbBean.getPooledConnection();
}

 public void closeConnection(Connection conn)
 {
if (conn!=null) {
try {
conn.close();
   } catch (SQLException sqle) {
System.err.println(dbBean);
sqle.printStackTrace(System.err);
   }
  }
 }
%
!doctype html public -//w3c//dtd html 4.0 transitional//en
html
head
titlelt; The Animatrix /title
link rel=stylesheet href=/style.css type=text/css
/head
body

center
table BORDER=0 WIDTH=800 
tr
td
center
img src=/pics/logo.jpg ALT=logo width=650
height=150br
br
font color=#00CC00 size=2[ a class=toolbar
href=index.jspHome/a ] nbsp;
[ a class=toolbar
href=dbz.jspDragonballZ/a ] nbsp; [ a class=toolbar
href=ranma.jspRanma
font
size=-1sup1/sup/sub2/sub/font/a ] nbsp; [ a class=toolbar
href=slayers.jspThe
Slayers/a ] nbsp; [ a class=toolbar
href=order.jspOrder/a ]/font

hr noshade
/center
/td
/tr
tr
td


center
Welcome to The Animatrix!
/center
br
br
Here we offer newest and best products based on every FanBoy'strade;
favorite
anime series. Just follow the links to get to the individual products.br
br
center
The Animatrixbr
12345 Geek Lnbr
Silicon Valley, CA 90210
/td
/tr
tr
td
hr noshade /
/td
/tr
/table
/center
/body
/html

/ end index.jsp ***/
- Original Message -
From: Manu KY [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 3:17 AM
Subject: Re: Odd exception


 Hi,
 please paste the offending code.
 Manu
 2001-10-04 02:45:40 - Ctx() : Exception in R(  + /index.jsp + null) -
 java.lang.NullPointerException
   at java.io.Writer.write(Writer.java:129)
   at

org.apache.tomcat.modules.loggers.AccessLogInterceptor.beforeCommit(AccessL
o
 gInterceptor.java:241)
   at
 org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:184)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
   at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
   at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
   at org.apache.tomcat.core.Response.finish(Response.java:271)
   at

org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java
:
 331)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:836)
   at

org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13In
t
 erceptor.java:193)
   at

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

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
 a:517)
   at java.lang.Thread.run(Thread.java:484)
 
 
 What causes that?
 
 Thanks,
 
 Brian
 
 Apache 1.3.6/Tomcat 3.3rc1/Windows 2000/jdk1.3.1


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com







RE: ## What is the different of keystore and keypass!?

2001-10-04 Thread pero

keypass is the passwort that protects entries in the keystore. for a
normal tomcat ca this would be changeit

 -Original Message-
 From: Sam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 9:05 AM
 To: [EMAIL PROTECTED]
 Subject: ## What is the different of keystore and keypass!?


 Hi all,
 What is the difference?
 keystore is the CA file
 keypass??? what is the function?
 thanks.







Re: Session Problems

2001-10-04 Thread Marco Schmalz

 request.getSession().putValue(name1,value1);


btw, the putValue()-method is deprecated since servlet2.2
you should use setAttribute(String key, Object value) instead.
have a look at the javadoc.

marco





Re: Driver fails to load on two webapps

2001-10-04 Thread Brian Richards

Yes all the classes are in the correct place I sent another email saying
that I solved the problem by putting the db2java.jar ONLY in TOMCAT_HOME\lib
instead of WEB-INF lib for each webapp.  This takes care of the problem.
The other think Ought to mention is that they both work fine seperately as
long as it's the webapp loaded before the other one.

-brian

Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ?


- Original Message -
From: Brett Knights [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 9:12 AM
Subject: RE: Driver fails to load on two webapps


 Are all the sql related class files for each webapp in the respective
 webapps lib or classes directories?

 If not you might try that. (And if it works please report back.)

 HTH

  -Original Message-
  From: Brian Richards [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 03, 2001 9:54 PM
  To: [EMAIL PROTECTED]
  Subject: Driver fails to load on two webapps
 
 
  Ok I am running two applications that use the IBM DB2
  appdriver to connect
  to two different databases.  The problem is this when i start
  up tomcat only
  one of the applications can access the database.  The first
  one to have a
  request made wins and the other app gets a No Suitable Driver
  exception.
  They both work independtly as long as it's the first one
  requested.  My
  theory is that the Class.forName(driver) being called twice is mucking
  things up the code at fault is:
 








Can anyone please guide me with Tomcat4.0?

2001-10-04 Thread Jose Escobar

I just wanted to know if anyone could tell me how to configure tomcat to
work for different Virtual Hosts on IIS.

Also, what do I need to edit on the configuration files in order for it to
work.


Where to store the Servlets and JSP pages, etc.

Thanx
Jose




mod_webapp and binary contents

2001-10-04 Thread Ulrich Knecht

Hello,

I'm currently trying to migrate my project from tomcat 3.2.3 to tomcat
4.0. We're using Apache 1.3.20 as frontend. So far we've used mod_jk
with ajp13 to connect apache and tomcat. Our server is a Linux x86
machine running Suse 7.2, kernel 2.4.5. We're using jdk 1.3.1_01 from
sun. I have sucessfully built and installed mod_webapp and everything
seems to work okay except for two servlets that receive large amounts of
data via HTTP POST: One is retrieving multipart form messages which are
being parsed with the MultipartParser class from the com.oreilly.servlet
package (thanks to Jason Hunter ;-) ), the other talks to an applet and
retrieves a serialized java object via an ObjectInputStream. 

 Both servlets work fine, as long as the data being retrieved just
contains printable characters. However, if I try to send binary data
(gifs, jpegs, M$-Excel files e.g.), the communication fails with an
exception on the server side. I had a similar problem with a previous
version of ajp13 which seems to be solved since tomcat 3.2.3 (this one
is also documented in Jason Hunter's bugs faq on www.servlets.com). 

 I would really be thankful for any help on this topic.

Ulrich Knecht



Further details:

The servlet using multipart forms fails when reading a file part. The
code fragment in question and the exception I get are, respectively (The
parameter that gets passed as 'is' is the output of
FilePart.getInputStream()):

public void  getDataContent(InputStream is)
throws IOException
{
contents = new byte[131071];
long bytes_read  = 0;
int  length  = 0;

while(-1 != (bytes_read = is.read(contents, 
  length, 
  contents.length - length)))  // - line 141
{
  length += bytes_read;

  if(length = contents.length)
  {
// Speicherplatz erweitern
byte[] buffer = new byte[contents.length + 131071];

for(int j = 0; j  length; j++)
{
  buffer[j] = contents[j];
}

contents = buffer;
  }
}

file_size = length;
}

2001-09-28 15:45:54 ASKMessageServlet: java.io.IOException: unexpected
end of part
java.io.IOException: unexpected end of part
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at java.io.IOException.init(IOException.java:49)
at
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
at
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)
at
de.thales.paddialog.entity.ASKAttachment.getDataContent(ASKAttachment.java:141)
at
de.thales.paddialog.servlet.ASKMessageServlet.storeMessageMultipart(ASKMessageServlet.java:723)
at
de.thales.paddialog.servlet.ASKMessageServlet.doHandle(ASKMessageServlet.java:163)
at
de.thales.paddialog.servlet.PADWMUserSessionServlet.handle(PADWMUserSessionServlet.java:182)
at org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:269)
at org.webmacro.servlet.WMServlet.doPost(WMServlet.java:220)
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(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at 

Tomcat NSAPI redirector and AJP13?

2001-10-04 Thread Wesley Gamble

All,

Does the Netscape redirector for Tomcat 3.2.3 support ajp13?  If so, are
there binaries available or do I need to build the DLL myself?

Thanks for any help,
Wes Gamble
[EMAIL PROTECTED]





Implementing a Certificate Authority server using Tomcat

2001-10-04 Thread hische





Hi all,

Is there anybody who could point me in the right direction, when I would like to
setup a certification process for issuing SSL client certificates to browsers,
preferably using Tomcat standalone?

I really appreciate any help on this, this area is quite new to me.

- Wilko






Re: Problem in solaris

2001-10-04 Thread Héctor Garcia Peris

At 14:26 04/10/01 +0200, you wrote:
Hello Hector

Is the database running on the same machine as the tomcat engine?
If they are not on the same machine are the two machines on the same network?
Many routers/gateways etc.. will cut a tcp connection that has been inactive
for a period of time. Oracle may also have a timeout for a connection but I am
not sure about that.  Maybe you should try opening/closing the connection each
time you use it or at least checking to see if it is still there before using
it.

The database is running in a third database and there are in the same
network. Is there any way to say oracle that the connexion is still active?

-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--





Re: Problem in solaris

2001-10-04 Thread Alex Sanderson

Oracle probably has a connection time limit.  Maybe you should shut the db
connection when you are finished with it and reopen it when you need it again.
If you are worried about performance then you should be using a database pool.
Tomcat 4 comes with tyrex which can do that for you.

- Original Message -
From: Héctor Garcia Peris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 4:09 PM
Subject: Re: Problem in solaris


At 14:26 04/10/01 +0200, you wrote:
Hello Hector

Is the database running on the same machine as the tomcat engine?
If they are not on the same machine are the two machines on the same network?
Many routers/gateways etc.. will cut a tcp connection that has been inactive
for a period of time. Oracle may also have a timeout for a connection but I am
not sure about that.  Maybe you should try opening/closing the connection each
time you use it or at least checking to see if it is still there before using
it.

The database is running in a third database and there are in the same
network. Is there any way to say oracle that the connexion is still active?

-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--








missing mod_jk.conf-auto

2001-10-04 Thread Brett Crossley

I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine and
works ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs say
you don't have to set any params to get this to work. Any ideas? I have a
mod_jk.conf, but did not know if I needed to modify it.
Also, I downloaded the mod_jk.dll, but that seems to go in the apache
modules directory.
Any help is apreciated.
Brett





Re: Problem in solaris

2001-10-04 Thread Héctor Garcia Peris

At 16:17 04/10/01 +0200, you wrote:
Oracle probably has a connection time limit.  Maybe you should shut the db
connection when you are finished with it and reopen it when you need it again.
If you are worried about performance then you should be using a database pool.
Tomcat 4 comes with tyrex which can do that for you.

And, could be for any compilation parameter? Maybe the tomcat engine 
doesn't run the destroy method of the servlet at time. Maybe the oracle 
timeout occurs before that the tomcat runs the destroy method.

-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--





Re: missing mod_jk.conf-auto

2001-10-04 Thread Craig Tataryn

Hi Brett, I asked this questions yesterday, except my system was Linux. 
 Here is the answer I got:

Brian Richards wrote:

try running tomcat.sh run jkconf

-brian


So try going into your bin directory and running:

tomcat.bat run jkconf


Craig.

Brett Crossley wrote:

I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine and
works ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs say
you don't have to set any params to get this to work. Any ideas? I have a
mod_jk.conf, but did not know if I needed to modify it.
Also, I downloaded the mod_jk.dll, but that seems to go in the apache
modules directory.
Any help is apreciated.
Brett









AW: mod_webapp and binary contents

2001-10-04 Thread Ralph Einfeldt

To find out if this is a pure tomcat problem or 
a problem of the connector you might try to
use apj 13 with tc 4.0 as described in:

http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

I havn't tried it, so don't ask me about details.

BTW.:
Does PU, ParCo, Prompt mean something to you ?
If not, just forget it.

 -Ursprüngliche Nachricht-
 Von: Ulrich Knecht [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 4. Oktober 2001 16:01
 An: [EMAIL PROTECTED]
 Betreff: mod_webapp and binary contents
 
snip/



Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Mapoteca Rio

Hi,

I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3 and
mod_jk. When a running
/host/examples/jsp/numberguess.jsp in port 8080
this aplication works and when I run in port 80, I see
this page with the code. I think that tomcat doesn't 
compile this page. Can anyone help me?  

Thanks

mapoteca-rio
 

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



RE: missing mod_jk.conf-auto

2001-10-04 Thread Brett Crossley

I tried tomcat.bat run jkconf, but it complains that 'run' is not a valid
option:

 start screen print 
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\bintomcat.bat run jkconf
Including all jars in I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib in your
CLASSPATH.

Using CLASSPATH:
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\classes;I:\JBoss-2.4.1_Tomca
t-3.2.3\tomcat\lib\ant.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jasper.jar
;I:\
JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jaxp.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tom
cat\
lib\parser.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\servlet.jar;I:\JBoss-2
.4.1
_Tomcat-3.2.3\tomcat\lib\webserver.jar;;c:\opt\TRANSA~1\Classes\CTGCLI~1.JAR
;C:\
IBM Connectors\classes;.;I:\jdk1.3.1\lib\tools.jar

Usage: java org.apache.tomcat.startup.Tomcat {options}
  Options are:
-config file (or -f file)  Use this file instead of server.xml
-help (or help)Show this usage report
-home dir (or -h dir)  Use this directory as tomcat.home
-stop  Shut down currently running Tomcat

 end screen print 
-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: missing mod_jk.conf-auto


Hi Brett, I asked this questions yesterday, except my system was Linux.
 Here is the answer I got:

Brian Richards wrote:

try running tomcat.sh run jkconf

-brian


So try going into your bin directory and running:

tomcat.bat run jkconf


Craig.

Brett Crossley wrote:

I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine and
works ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs
say
you don't have to set any params to get this to work. Any ideas? I have a
mod_jk.conf, but did not know if I needed to modify it.
Also, I downloaded the mod_jk.dll, but that seems to go in the apache
modules directory.
Any help is apreciated.
Brett











Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Sriram Narayanan

Umm.. perhaps that's apache returning the contents of the page ? 

I guess Tomcat's responding on port 8080, and Apache's respoding on port 80, and 
somehow Apache is not making use of Tomcat.

Please have a look at the Apache console, and check whether the mod_jk has been loaded.

Regards,

Sriram

10/4/01 8:03:58 PM, Mapoteca Rio [EMAIL PROTECTED] wrote:

Hi,

I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3 and
mod_jk. When a running
/host/examples/jsp/numberguess.jsp in port 8080
this aplication works and when I run in port 80, I see
this page with the code. I think that tomcat doesn't 
compile this page. Can anyone help me?  

Thanks

mapoteca-rio
 

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: AW: mod_webapp and binary contents

2001-10-04 Thread Ulrich Knecht

Hi Ralph,

 To find out if this is a pure tomcat problem or
 a problem of the connector you might try to
 use apj 13 with tc 4.0 as described in:

 http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

  I shall try that tomorrow. Meanwhile thanks for 
the hint. I thought, tomcat 4.0 just works with
mod_webapp.












 BTW.:
 Does PU, ParCo, Prompt mean something to you ?
 If not, just forget it.

 Ja Ralph, tut es! Schön, von Dir zu lesen ;-)
kannst Dich ja mal direkt melden, würd' mich
drüber freuen,

Ulrich



Re: missing mod_jk.conf-auto

2001-10-04 Thread Craig Tataryn

Hey Brett, do you have IISConfig noRoot=true/ directive in your 
server.xml file?

Craig.

Brett Crossley wrote:

I tried tomcat.bat run jkconf, but it complains that 'run' is not a valid
option:

 start screen print 
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\bintomcat.bat run jkconf
Including all jars in I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib in your
CLASSPATH.

Using CLASSPATH:
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\classes;I:\JBoss-2.4.1_Tomca
t-3.2.3\tomcat\lib\ant.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jasper.jar
;I:\
JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jaxp.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tom
cat\
lib\parser.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\servlet.jar;I:\JBoss-2
.4.1
_Tomcat-3.2.3\tomcat\lib\webserver.jar;;c:\opt\TRANSA~1\Classes\CTGCLI~1.JAR
;C:\
IBM Connectors\classes;.;I:\jdk1.3.1\lib\tools.jar

Usage: java org.apache.tomcat.startup.Tomcat {options}
  Options are:
-config file (or -f file)  Use this file instead of server.xml
-help (or help)Show this usage report
-home dir (or -h dir)  Use this directory as tomcat.home
-stop  Shut down currently running Tomcat

 end screen print 
-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: missing mod_jk.conf-auto


Hi Brett, I asked this questions yesterday, except my system was Linux.
 Here is the answer I got:

Brian Richards wrote:

try running tomcat.sh run jkconf

-brian


So try going into your bin directory and running:

tomcat.bat run jkconf


Craig.

Brett Crossley wrote:

I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine and
works ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs

say

you don't have to set any params to get this to work. Any ideas? I have a
mod_jk.conf, but did not know if I needed to modify it.
Also, I downloaded the mod_jk.dll, but that seems to go in the apache
modules directory.
Any help is apreciated.
Brett















Please help

2001-10-04 Thread Jose Escobar

Can anyone please tell me where to look for information or what document on
jakarta's webpage to read for information on how to implement tomcat on iis.

Thank You
Jose




Writing to files from Servlets

2001-10-04 Thread Timothy Fisher

I have a servlet in which I save some data to a file.
I open the file just using the file name, with no path
information.

By default, I notice the file is being put into the
TOMCAT_HOME/bin directory.

How can I change the default working directory to be
that of the current web application?

Thanks,
Tim




AW: Please help

2001-10-04 Thread Dieter Kaltenbach

hi, here are two links depending on the tomcat version.

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

Dieter.

-Ursprüngliche Nachricht-
Von: Jose Escobar [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 4. Oktober 2001 18:01
An: [EMAIL PROTECTED]
Betreff: Please help


Can anyone please tell me where to look for information or what document
on
jakarta's webpage to read for information on how to implement tomcat on
iis.

Thank You
Jose




Re: Quick question?

2001-10-04 Thread Craig R. McClanahan



On Thu, 4 Oct 2001, James Turner wrote:

 Date: Thu, 4 Oct 2001 00:14:17 -0400
 From: James Turner [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Quick question?

 Do you happen to know what directory Turbine tries to load
 TurbineResources.properties from if you specify . as the path in new
 TurbineConfig?


If it is using file I/O to read the config file (don't have a clue ... ask
the Turbine list) then it will try to resolve this against the current
working directory of the servlet container.  In other words, this will
vary depending on which container (and which version of the container) you
are using.  It also depends on whether you used the standard startup
scripts or not, and whether you had the TOMCAT_HOME or CATALINA_HOME
environment variable preset or not ...

Webapps that want to be portable should read config files using
ServletContext.getResource() instead.

 Thanks,
 James


Craig McClanahan




RE: Netscape-tomcat redirector help

2001-10-04 Thread Sunil Thakker

Hi Wesley,

What version of tomcat did u configure with netscape
6.0? I have downloaded and installed netscape 6.0 and
now trying to install tomcat ...

Thanks
Sunil

--- Wesley Gamble [EMAIL PROTECTED] wrote:
 Sunil,
 
 I successfully got Tomcat working with iPlanet 6.0
 by using the 
 nsapi_redirect.dll file from the Tomcat 3.1.x
 download site.  I'm sure 
 it will probably work with NES 3.61.
 
 Wes
 
 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: Problem in solaris

2001-10-04 Thread Alex Sanderson

There is no specific time that tomcat will run the destroy method of a servlet.
I am sorry but I do not know enough about oracle configuration to help you with
connection timeouts in oracle.
- Original Message -
From: Héctor Garcia Peris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 4:24 PM
Subject: Re: Problem in solaris


At 16:17 04/10/01 +0200, you wrote:
Oracle probably has a connection time limit.  Maybe you should shut the db
connection when you are finished with it and reopen it when you need it again.
If you are worried about performance then you should be using a database pool.
Tomcat 4 comes with tyrex which can do that for you.

And, could be for any compilation parameter? Maybe the tomcat engine
doesn't run the destroy method of the servlet at time. Maybe the oracle
timeout occurs before that the tomcat runs the destroy method.

-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--








Re: Tomcat 4.0 - HttpSessionListener lockup in sessionDestroyed()

2001-10-04 Thread Craig R. McClanahan

In order to avoid this problem report getting lost, *please* report it in
our bug tracking system:

  http://nagoya.apache.org/bugzilla/

Craig McClanahan


On Thu, 4 Oct 2001, Scott Ahten wrote:

 Date: Thu, 04 Oct 2001 10:14:21 -0400
 From: Scott Ahten [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0 - HttpSessionListener lockup in sessionDestroyed()

 I'm noticing some strange behaviour with a class that implements
 HttpSessionListener and is registered in my apps webapp.xml file as a
 listener.

 When I call session.getAttribute(xxx) on a session passed into
 sessionDestroyed() the thread seems to lock.

 I've simplified my class as a test case and it never makes it to the
 System.out.println(attribute shown) statement.

 I'm running tomcat 4.0 final on windows 2k. I've received the same
 results on both jdk 1.3.1 and 1.4 beta.

 My test includes two JSP pages: one sets a value in the session, another
 calls session.invalidate().

 output from stdout.log and class definition are included bellow.

 Thanks in advance

 ~Scott

 output from stdout.log
 
 Create Catalina server
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0
 ServletContext Initialized
 Starting service Tomcat-Apache
 Apache Tomcat/4.0
 Session Created -- click on populateSession.jsp
 attribute added
 Session Destroyed - click on invalidateSession.jsp
  - execution stops before showing attribute
 value
 



 import java.util.*;
 import javax.servlet.*;
 import javax.servlet.http.*;

 public class LoggingController implements ServletContextListener,
 HttpSessionListener
 {

 public LoggingController()
 {
 // System.out.println(LoggingController constructed);
 }

 public void contextInitialized(ServletContextEvent sce)
 {
 System.out.println(ServletContext Initialized);
 }

 public void contextDestroyed(ServletContextEvent sce)
 {
 System.out.println(ServletContext Destroyed);
 }

 public void sessionCreated(HttpSessionEvent hse)
 {
 System.out.println(Session Created);

 HttpSession session = hse.getSession();
 session.setAttribute(name, scott);

 // execution makes it here ok
 System.out.println(attribute added);
 }


 public void sessionDestroyed(HttpSessionEvent hse)
 {
 System.out.println(Session Destroyed);

 HttpSession session = hse.getSession();

 // seems to hang up on the following line
 System.out.println(session.getAttribute(name));

System.out.println(attribute shown);
 }
 }








Re: Writing to files from Servlets

2001-10-04 Thread Alexandre Victoor

You can use the property tomcat.home to build an absolute path that 
correspond to your working directory. You can also try to use the static 
method Class.getLocation()

Alex


At 08:06 04/10/2001 -0700, you wrote:
I have a servlet in which I save some data to a file.
I open the file just using the file name, with no path
information.

By default, I notice the file is being put into the
TOMCAT_HOME/bin directory.

How can I change the default working directory to be
that of the current web application?

Thanks,
Tim






RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights

Sorry, I hadn't read your subsequent post.

Are you using a connection pool? If so what happens when you try to use
connections where you try to connect from each web app as a different user?

Also what do you see when you set a LogWriter for the DriverManager? It
should show you the drivers that it tries to load for each getConnection
request. That may help.

 -Original Message-
 From: Brett Knights [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 6:13 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Driver fails to load on two webapps


 Are all the sql related class files for each webapp in the respective
 webapps lib or classes directories?

 If not you might try that. (And if it works please report back.)

 HTH

  -Original Message-
  From: Brian Richards [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 03, 2001 9:54 PM
  To: [EMAIL PROTECTED]
  Subject: Driver fails to load on two webapps
 
 
  Ok I am running two applications that use the IBM DB2
  appdriver to connect
  to two different databases.  The problem is this when i start
  up tomcat only
  one of the applications can access the database.  The first
  one to have a
  request made wins and the other app gets a No Suitable Driver
  exception.
  They both work independtly as long as it's the first one
  requested.  My
  theory is that the Class.forName(driver) being called twice
 is mucking
  things up the code at fault is:





RE: missing mod_jk.conf-auto

2001-10-04 Thread Brett Crossley

I did not. I added it under the server tag, but it did not make a
difference. Is that IIS as in Internet Information Server? (microsoft?) I am
running apache.

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: missing mod_jk.conf-auto


Hey Brett, do you have IISConfig noRoot=true/ directive in your
server.xml file?

Craig.

Brett Crossley wrote:

I tried tomcat.bat run jkconf, but it complains that 'run' is not a valid
option:

 start screen print 
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\bintomcat.bat run jkconf
Including all jars in I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib in your
CLASSPATH.

Using CLASSPATH:
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\classes;I:\JBoss-2.4.1_Tomca
t-3.2.3\tomcat\lib\ant.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jasper.ja
r
;I:\
JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jaxp.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\to
m
cat\
lib\parser.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\servlet.jar;I:\JBoss-
2
.4.1
_Tomcat-3.2.3\tomcat\lib\webserver.jar;;c:\opt\TRANSA~1\Classes\CTGCLI~1.JA
R
;C:\
IBM Connectors\classes;.;I:\jdk1.3.1\lib\tools.jar

Usage: java org.apache.tomcat.startup.Tomcat {options}
  Options are:
-config file (or -f file)  Use this file instead of server.xml
-help (or help)Show this usage report
-home dir (or -h dir)  Use this directory as tomcat.home
-stop  Shut down currently running Tomcat

 end screen print 
-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: missing mod_jk.conf-auto


Hi Brett, I asked this questions yesterday, except my system was Linux.
 Here is the answer I got:

Brian Richards wrote:

try running tomcat.sh run jkconf

-brian


So try going into your bin directory and running:

tomcat.bat run jkconf


Craig.

Brett Crossley wrote:

I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine and
works ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs

say

you don't have to set any params to get this to work. Any ideas? I have a
mod_jk.conf, but did not know if I needed to modify it.
Also, I downloaded the mod_jk.dll, but that seems to go in the apache
modules directory.
Any help is apreciated.
Brett

















How to develop custom user authentication for Tomcat based onSecurityCheck ?

2001-10-04 Thread Thierry Delaitre


Hello,

We have developed a JSP based application based on tomcat 3.2.3. This
application requires different level of administration and requires users
to login. We would like to develop a custom authentication module for
authenticating users against NIS login/password database. I've already
developed a C program which checks if a given login/password is correct
but it is not clear how to integrate this C program with tomcat. This C
program runs as root (setuid !) and takes the login name and password in
input using a pipe and returns true or false if the login/password pair is
correct or not.

We have had a look at extending the SecurityCheck class but it seems that
the SecurityCheck class does not exist anymore in tomcat 3.2.3 ? Has a new
class superseded the SecurityCheck class and is there some kind of
documentation about this new class ? I would be grateful for any
information !

Thanks !

Thierry  Mathilde.




Multiple WEB-INF

2001-10-04 Thread Brent Johnson

I saw some posts in the mailing list archives about this but haven't
really found the solution.

I've got a development location and a staging location where I keep
all my JSP files (and XML using Cocoon).  I've then got virtual host
entries for both sites.  The problem is, I'd like to separate the
WEB-INF/classes for both (right now I've got the staging WEB-INF in my
CLASSPATH so any imports inside JSP come from that directory).

Ideally, I'd like to have both WEB-INF directories be separate, the
class com.whatever.MyClass comes from the dev class file in
development, and staging class file in staging.  I've got both vhosts
running just fine (by adding to the server.xml directory and such).
That's all running great.

(I'm using Tomcat 3.2.3 - also, should I go ahead and upgrade to 3.3???)

Thanks,

- Brent



Re: Tomcat 4.0 - HttpSessionListener lockup in sessionDestroyed()

2001-10-04 Thread pixel

Will do

Being somewhat green to Tomcat and the new Servlet API, I just wanted to 
make sure I wasn't missing something obvious before officially 
considering this as a 'bug'

Craig R. McClanahan wrote:

In order to avoid this problem report getting lost, *please* report it in
our bug tracking system:

  http://nagoya.apache.org/bugzilla/

Craig McClanahan


On Thu, 4 Oct 2001, Scott Ahten wrote:






clientAuth problems

2001-10-04 Thread Phil Spencer

I'm having difficulty with client authorisation.
Actually I suppose thse are two separate problems.

Problem 1
=
With tomcat 3.x (various versions) I can enable SSL
without clientAuth and everything works fine. However
when I enable clientAuth the web browser (Netscape
Navigator 4.07) says I have no client certificate.
which not true - see problem 2)

Problem 2
=
In one of many attempts to find a solution to problem 1,
I installed Tomcat 4. I was pleasantly surprised when
I simply edited the server.xml file, started it, and it
worked with clientAuth immediately. I checked I can run
the examples and create a simple servlets myself and all
is fine so far. The problem is that I need to create a
servlet as a subclass of a framework class which is in
turn a a subclass of HttpServlet. When I try this, I get
the exception shown below.

I've tried just about everthing I can think of but I seem
to have reached a dead-end. A solution or suggestion for
a way forward with either of these problems would be most
appeciated

TIA

Phil

javax.servlet.ServletException: Class com.csfs.spencer.phil.GetRemoteUser is not a 
Servlet
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.ClassCastException: com.csfs.spencer.phil.GetRemoteUser
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 

Problem accessing servlets on Netscape

2001-10-04 Thread Kiran

Hi
  I'm pretty new to Tomcat and so would really
appreciate some help.
  I have an application consisting of java servlets
running on Apache/tomcat. It works fine on IE but when
i try accessing the servlets from Netscape it brings
up the contents of the original file!
  Can anyone please help me with this...
 Thanks in advance
 Kiran 

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: Chaning location of initial web page

2001-10-04 Thread Yoav Shapira

Hi,
You can always use HTML or JSP forwarding, along the lines of:

html
head
meta http-equiv=REFRESH content=0; URL=/miiq/index.html
/head
/html

Or something like
html
head
titleJSP Forwarder/title
/head
body
jsp:forward page=/miiq/index.html
/body
/html

Good luck,

Yoav

Ryan Brown wrote:

 We are having a alot of trouble changing the location of the first page that
 displays on Tomcat 3.2.3 server.  If i start the server and then point my
 browser to http://localhost:8080/ it brings up the following file:
 d:\jakarta-tomcat-3.2.3\webapps\root\index.html
 how do I change this so that it brings up an index.html in a different
 directory on my harddrive:
 d:\webdevelopment\miiq\index.html
 I have searched all of the documentation and the mailing list archive and I
 have only gotten more confused.  We have all of our development for our site
 in the above directory and need it to be the default directory when we are
 working.

 Thanks,

 Ryan Brown
 MI-Assistant Software
 Email: [EMAIL PROTECTED]




RE: Problem accessing servlets on Netscape

2001-10-04 Thread Phil Spencer

I had this problem once. In my case it turned out
to be slightly incorrect syntax for a stylesheet.
IE thought it was OK, Netscape belched.

Try writing the offending page content to a file
and opening it locally. A binary chop on the content
of the file should isolate the problem quickly

Phil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: Problem accessing servlets on Netscape


Hi
  I'm pretty new to Tomcat and so would really
appreciate some help.
  I have an application consisting of java servlets
running on Apache/tomcat. It works fine on IE but when
i try accessing the servlets from Netscape it brings
up the contents of the original file!
  Can anyone please help me with this...
 Thanks in advance
 Kiran 

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Changing Tomcat Port 8080

2001-10-04 Thread Benjamin Bostow

There is a confliced between programs on port 8080. I need to change Tomcat to listen 
to another port other than 8080. The other aplication requires Apache to use port 
8080. Can anyone tell me how to change the port number that Tomcat uses?



RE: Changing Tomcat Port 8080

2001-10-04 Thread Brett Crossley

Look for the following in your server.xml file. That file will be in
[TOMCAT_HOME]/conf

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler

value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port
value=8080/
/Connector

change the 8080 to the port you want.
Brett.

-Original Message-
From: Benjamin Bostow [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 1:16 PM
To: [EMAIL PROTECTED]
Subject: Changing Tomcat Port 8080


There is a confliced between programs on port 8080. I need to change Tomcat
to listen to another port other than 8080. The other aplication requires
Apache to use port 8080. Can anyone tell me how to change the port number
that Tomcat uses?





Re: Changing Tomcat Port 8080

2001-10-04 Thread Héctor Garcia Peris

At 13:16 04/10/01 -0400, you wrote:
There is a confliced between programs on port 8080. I need to change 
Tomcat to listen to another port other than 8080. The other aplication 
requires Apache to use port 8080. Can anyone tell me how to change the 
port number that Tomcat uses?

Look at the server.xml file in $TOMCAT_HOME/conf

-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (IVIE)
C/ Guardia Civil, 22 esc-2 primero 46020 - Valencia ( Spain )
Tfno.: +34 - 963930816 Fax.: +34 - 963930856
e-mail: [EMAIL PROTECTED]
--





Re: clientAuth problems

2001-10-04 Thread Craig R. McClanahan



On Thu, 4 Oct 2001, Phil  Spencer wrote:


 javax.servlet.ServletException: Class com.csfs.spencer.phil.GetRemoteUser
   is not a Servlet

99% of the time this is caused by having a servlet.jar or j2ee.jar
file in your Java system extensions directory ($JAVA_HOME/jre/lib/ext).
This messes up Tomcat execution.

Craig McClanahan




RE: Driver fails to load on two webapps

2001-10-04 Thread Brett Knights


 Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ?

Wouldn't work. Jars are only loaded from the lib directory.


As you did I ended up with my driver jar file in a common directory
(lib/common for tc3.3)
I have a connection pool manager (bitmechanic) and I keep its jar in the
WEB-INF/lib file for my web apps.

Everything seems to work properly.

It's odd that the everything-in-its-webapp-lib-directory approach doesn't
work though.
The DriverManager is supposed to be ClassLoader aware. What happens when you
call DriverManager.getDriver(url) from a simple servlet in each webapp? What
about calling DriverManager.registerDriver() in a load-on-startup servlet in
each webapp?

hth

 -Original Message-
 From: Brian Richards [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 6:52 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Driver fails to load on two webapps


 Yes all the classes are in the correct place I sent another
 email saying
 that I solved the problem by putting the db2java.jar ONLY in
 TOMCAT_HOME\lib
 instead of WEB-INF lib for each webapp.  This takes care of
 the problem.
 The other think Ought to mention is that they both work fine
 seperately as
 long as it's the webapp loaded before the other one.

 -brian






Question

2001-10-04 Thread Jose Escobar

If I have a client that wants to run servlets, what do I need to do in order
for his servlets to work?

Thanx,
Jose

PD: I'm using Tomcat 4.0




still missing mod_jk.conf-auto

2001-10-04 Thread Brett Crossley

Still no luck. Does this work for everyone else when doing the default
install?
Am I looking for the mod_jk.conf-auto in the right place? I assumed it would
just show up in my conf directory after the server started. I am starting
Tomcat under JBoss, does that make a difference?
[Brett Crossley]

[EMAIL PROTECTED]
-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 11:59 AM
To: [EMAIL PROTECTED]
Subject: Re: missing mod_jk.conf-auto


Ahhh, ok try:

ApacheConfig noRoot=true/

I think this should be somewhere inbetween the ContextManager
workDir=work tag.

Craig.

Brett Crossley wrote:

I did not. I added it under the server tag, but it did not make
adifference. Is that IIS as in Internet Information Server? (microsoft?) I
amrunning apache.-Original Message-From: Craig Tataryn
[mailto:[EMAIL PROTECTED]]Sent: Thursday, October 04, 2001 10:53
AMTo: [EMAIL PROTECTED]: Re: missing mod_jk.conf-autoHey
Brett, do you have IISConfig noRoot=true/ directive in yourserver.xml
file?Craig.Brett Crossley wrote:
I tried tomcat.bat run jkconf, but it complains that 'run' is not a
validoption: start screen print
I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\bintomcat.bat run jkconfIncluding all
jars in I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib in yourCLASSPATH.Using
CLASSPATH:I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\classes;I:\JBoss-2.4.1_Tomcat-3
.2.3\tomcat\lib\ant.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jasper.ja
r
;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\jaxp.jar;I:\JBoss-2.4.1_Tomcat-3.2.3
\to
m
cat\lib\parser.jar;I:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\servlet.jar;I:\JBo
ss-
2
.4.1_Tomcat-3.2.3\tomcat\lib\webserver.jar;;c:\opt\TRANSA~1\Classes\CTGCLI~1
.JA
R
;C:\IBM Connectors\classes;.;I:\jdk1.3.1\lib\tools.jarUsage: java
org.apache.tomcat.startup.Tomcat {options} Options are:   -config file
(or -f file)  Use this file instead of server.xml   -help (or help)
Show this usage report   -home dir (or -h dir)  Use this directory as
tomcat.home   -stop  Shut down currently running
Tomcat end screen print -Original Message-From: Craig Tataryn
[mailto:[EMAIL PROTECTED]]Sent: Thursday, October 04, 2001 10:34
AMTo: [EMAIL PROTECTED]: Re: missing mod_jk.conf-autoHi
Brett, I asked this questions yesterday, except my system was Linux.Here is
th
e answer I got:Brian Richards wrote:try running tomcat.sh run jkconf-brianSo
try going into your bin directory and running:   tomcat.bat run
jkconfCraig.Brett Crossley wrote:
I am running JBoss-2.4.1_Tomcat-3.2.3. The Tomcat server starts fine
andworks ok, but does not generate the mod_jk.conf-auto. For 3.2.3 the docs
say
you don't have to set any params to get this to work. Any ideas? I have
amod_jk.conf, but did not know if I needed to modify it.Also, I downloaded
the mod_jk.dll, but that seems to go in the apachemodules directory.Any help
is apreciated.Brett





jsp tools

2001-10-04 Thread Henry

sorry for a less relavant question:
what tools are you using for writing jsp? i mean that does the
graphics layout WISWIG way, also free of charge (does
jakarta project has this kind of tool included?)





Re: Question

2001-10-04 Thread David Ward

Didn't you just answer your own question?  ;) LOL!

OK, on a more serious note, you should look into having your clients 
bundle their servlets into war files - it will make it much easier for 
you to manage.  If you don't know what a war file is, you should 
probably read some documentation.  You can get the spec here: 
http://java.sun.com/products/servlet/download.html

David

--

Jose Escobar wrote:

 If I have a client that wants to run servlets, what do I need to do in order
 for his servlets to work?
 
 Thanx,
 Jose
 
 PD: I'm using Tomcat 4.0
 
 





RE: Driver fails to load on two webapps

2001-10-04 Thread Craig R. McClanahan



On Thu, 4 Oct 2001, Brett Knights wrote:

 Date: Thu, 4 Oct 2001 09:57:08 -0700
 From: Brett Knights [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Driver fails to load on two webapps

 
  Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ?

 Wouldn't work. Jars are only loaded from the lib directory.


 As you did I ended up with my driver jar file in a common directory
 (lib/common for tc3.3)
 I have a connection pool manager (bitmechanic) and I keep its jar in the
 WEB-INF/lib file for my web apps.

 Everything seems to work properly.

 It's odd that the everything-in-its-webapp-lib-directory approach doesn't
 work though.
 The DriverManager is supposed to be ClassLoader aware. What happens when you
 call DriverManager.getDriver(url) from a simple servlet in each webapp? What
 about calling DriverManager.registerDriver() in a load-on-startup servlet in
 each webapp?


When you call DriverManager.getDriver(), the code (at least in 1.3.1 - I
assume it's the same elsewhere) tries to load the driver class itself from
the classloader of the *caller* of the getDriver() method.  In your
scenario, it would be called by the servlet, and therefore load the driver
from the webapp class loader (if that's where it was).

However, if you're using a connection pool, you have no guarantees that
the pool implementation uses DriverManager.getDriver().  In particular,
the following scenario will fail:

* Connection pool uses Class.forName() to load the driver class
  (i.e. from the class loader that the *pool* is loaded from).

* Connection pool installed in the shared library directory.

* JDBC driver installed in the /WEB-INF/lib directory.

You'd need to investigate the methodology of your connection pool to see
if this is what is happening to you.  However, the general rule of put
the connection pool and the JDBC driver in the same place should take
care of nearly every possible class loading difficulty.

 hth


Craig McClanahan




How to install tomcat 4.0 as Windows 2000 service?

2001-10-04 Thread andreas . spielvogel

Can anyone help me how to install tomcat 4.0 as service on windows 2000?

Thanks

Andreas Spielvogel



Problem with log directories

2001-10-04 Thread aaron . titus

I have set up a new context at the system path:

/home/web/live_site

Within this path I have created:

conf/
webapps/
work/
logs/

It finds and autoloads the contexts under webapps, and writes the generated
.conf files to the /home/web/live_site/conf directory, but the tomcat.log,
jasper.log and servlet.log files all get written to /usr/local/tomcat/logs
instead of /home/web/live_site/logs. I have set the home property to
/home/web/live_site in the ContextManager in the server.xml file and when I
start tomcat, I use the -f /home/web/live_site/conf/server.xml option. 

Can anyone help me fix this problem so the logs will go to the right place?
I need this to work so I can run multiple instances on the same server and
have logs for each.

Thanks !

Aaron
[EMAIL PROTECTED]



tomcat security

2001-10-04 Thread Henry

i am wondering if Tomcat has security features for its
jsp/servlet so i don't need to do RSA encoding myself
in taglibs...







Re: Driver fails to load on two webapps

2001-10-04 Thread Brian Richards

Thanks for all the replies I got from everyone.  Some extra bits of
information. I'm not using a connection pool in one application but I am
using a pool in the other (Jive www.jivesoftware.com).  I'm gonna try out
the different scenrios and see if anything else works.  I'll report my
findings when I i figure out what does/doesn't work.

Should i be using DriverManager.getDriver(url) instead of
Class.forName(driver) then DriverManager.getConnection()

Thanks

Brian


- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 1:39 PM
Subject: RE: Driver fails to load on two webapps




 On Thu, 4 Oct 2001, Brett Knights wrote:

  Date: Thu, 4 Oct 2001 09:57:08 -0700
  From: Brett Knights [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: Driver fails to load on two webapps
 
  
   Might i try moving the jar to WEB-INF\classes instead of WEB-INF\lib ?
 
  Wouldn't work. Jars are only loaded from the lib directory.
 
 
  As you did I ended up with my driver jar file in a common directory
  (lib/common for tc3.3)
  I have a connection pool manager (bitmechanic) and I keep its jar in the
  WEB-INF/lib file for my web apps.
 
  Everything seems to work properly.
 
  It's odd that the everything-in-its-webapp-lib-directory approach
doesn't
  work though.
  The DriverManager is supposed to be ClassLoader aware. What happens when
you
  call DriverManager.getDriver(url) from a simple servlet in each webapp?
What
  about calling DriverManager.registerDriver() in a load-on-startup
servlet in
  each webapp?
 

 When you call DriverManager.getDriver(), the code (at least in 1.3.1 - I
 assume it's the same elsewhere) tries to load the driver class itself from
 the classloader of the *caller* of the getDriver() method.  In your
 scenario, it would be called by the servlet, and therefore load the driver
 from the webapp class loader (if that's where it was).

 However, if you're using a connection pool, you have no guarantees that
 the pool implementation uses DriverManager.getDriver().  In particular,
 the following scenario will fail:

 * Connection pool uses Class.forName() to load the driver class
   (i.e. from the class loader that the *pool* is loaded from).

 * Connection pool installed in the shared library directory.

 * JDBC driver installed in the /WEB-INF/lib directory.

 You'd need to investigate the methodology of your connection pool to see
 if this is what is happening to you.  However, the general rule of put
 the connection pool and the JDBC driver in the same place should take
 care of nearly every possible class loading difficulty.

  hth
 

 Craig McClanahan







Writing to .jhtml file

2001-10-04 Thread Kiran

Hello
   I have a pretty weird problem in here! I'm using
Tomcat 3.2.2 with apache and my application is mostly
Servlets.
   At one of the places i need to print some
information to a .jhtml file but i'm unable to, using
tomcat! The same thing was working pretty fine with
Apache Jserv previously but since i have upgraded to
tomcat the print function doesnt print anything! 
Can anyone help me with this. I have looked around
and debugged my program but am still unable to find a
solution.
   thanks
   kiran

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Mapoteca Rio

Thanks, Sriram.
I execute o apachectl status and verify that mod_jk
has been loaded. Do you have another suggestion?

att. mapoteca-rio

--- Sriram Narayanan [EMAIL PROTECTED] wrote:
 Umm.. perhaps that's apache returning the contents
 of the page ? 
 
 I guess Tomcat's responding on port 8080, and
 Apache's respoding on port 80, and somehow Apache is
 not making use of Tomcat.
 
 Please have a look at the Apache console, and check
 whether the mod_jk has been loaded.
 
 Regards,
 
 Sriram
 
 10/4/01 8:03:58 PM, Mapoteca Rio
 [EMAIL PROTECTED] wrote:
 
 Hi,
 
 I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3 and
 mod_jk. When a running
 /host/examples/jsp/numberguess.jsp in port 8080
 this aplication works and when I run in port 80, I
 see
 this page with the code. I think that tomcat
 doesn't 
 compile this page. Can anyone help me?  
 
 Thanks
 
 mapoteca-rio
  
 
 __
 Do You Yahoo!?
 NEW from Yahoo! GeoCities - quick and easy web site
 hosting, just $8.95/month.
 http://geocities.yahoo.com/ps/info1
 
 
 
 
 

_
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.yahoo.com
 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

Server Version: Apache/1.3.12 (Unix) mod_perl/1.24 mod_jk
Server Built: May 6 2001 09:33:57
API Version: 19990320:7
Run Mode: standalone
User/Group: nobody(60001)/60001
Hostname/port: xxx.xxx:80
Daemons: start: 5 min idle: 5 max idle: 10 max: 150
Max Requests: per child: 0 keep alive: on max per connection: 100
Threads: per child: 0 
Excess requests: per child: 0 
Timeouts: connection: 300 keep-alive: 15
Server Root: /var/apache
Config File: /etc/apache/httpd.conf
PID File: /var/run/httpd.pid
Scoreboard File: /var/run/httpd.scoreboard

Module Name: mod_perl.c 
Content handlers: perl-script , httpd/unix-directory 
Configuration Phase Participation: Child Init, Create Directory Config, Merge 
Directory Configs, Create Server Config, Merge Server Configs 
Request Phase Participation: Post-Read Request, Header Parse, Translate Path, Check 
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging 
Module Directives: 
Perl - Perl code 
/Perl - End Perl code 
=pod - Start of POD 
=back - End of =over 
=cut - End of POD 
__END__ - Stop reading config 
PerlFreshRestart - Tell mod_perl to reload modules and flush Apache::Registry cache on 
restart 
PerlTaintCheck - Turn on -T switch 
PerlWarn - Turn on -w switch 
PerlScript - this directive is deprecated, use `PerlRequire' 
PerlRequire - A Perl script name, pulled in via require 
PerlModule - List of Perl modules 
PerlSetVar - Perl config var and value 
PerlAddVar - Perl config var and value 
PerlSetEnv - Perl %ENV key and value 
PerlPassEnv - pass environment variables to %ENV 
PerlSendHeader - Tell mod_perl to parse and send HTTP headers 
PerlSetupEnv - Tell mod_perl to setup %ENV by default 
PerlHandler - the Perl handler routine name 
PerlTransHandler - the Perl Translation handler routine name 
PerlAuthenHandler - the Perl Authentication handler routine name 
PerlAuthzHandler - the Perl Authorization handler routine name 
PerlAccessHandler - the Perl Access handler routine name 
PerlTypeHandler - the Perl Type check handler routine name 
PerlFixupHandler - the Perl Fixup handler routine name 
PerlLogHandler - the Perl Log handler routine name 
PerlCleanupHandler - the Perl Cleanup handler routine name 
PerlInitHandler - the Perl Init handler routine name 
PerlHeaderParserHandler - the Perl Header Parser handler routine name 
PerlChildInitHandler - the Perl Child init handler routine name 
PerlChildExitHandler - the Perl Child exit handler routine name 
PerlPostReadRequestHandler - the Perl Post Read Request handler routine name 
PerlDispatchHandler - the Perl Dispatch handler routine name 
PerlRestartHandler - the Perl Restart handler routine name 
Current Configuration: 

Module Name: mod_setenvif.c 
Content handlers: none 
Configuration Phase Participation: Create Server Config, Merge Server Configs 
Request Phase Participation: Post-Read Request 
Module Directives: 
SetEnvIf - A header-name, regex and a list of variables. 
SetEnvIfNoCase - a header-name, regex and a list of variables. 
BrowserMatch - A browser regex and a list of variables. 
BrowserMatchNoCase - A browser regex and a list of variables. 
Current Configuration: 
httpd.conf 
BrowserMatch Mozilla/2 nokeepalive 
BrowserMatch MSIE 4\.0b2; nokeepalive downgrade-1.0 force-response-1.0 
BrowserMatch RealPlayer 4\.0 force-response-1.0 
BrowserMatch Java/1\.0 force-response-1.0 
BrowserMatch JDK/1\.0 force-response-1.0 

Module Name: mod_so.c 
Content handlers: none 
Configuration Phase Participation: Create Server Config 
Request Phase Participation: none 
Module Directives: 
LoadModule - a module name and the name of 

Re: How to install tomcat 4.0 as Windows 2000 service?

2001-10-04 Thread Will Stranathan

If you use the EXE version of the Tomcat installer, check
the checkbox that says Install Tomcat as a Service.

Will Stranathan

On Thu, 4 Oct 2001 19:40:39 +0200 
 [EMAIL PROTECTED] wrote:
 Can anyone help me how to install tomcat 4.0 as service
 on windows 2000?
 
 Thanks
 
 Andreas Spielvogel




Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Jack Lauman

Try the following, your're 'server-info' report does not indicate
that mod_jk is configured:

Make sure you have something like the following the Apache
httpd.conf file:

Include /usr/java/tomcat/conf/mod_jk-auto.conf
JkWorkersFile /usr/java/tomcat/conf/workers.properties
JkLogFile /usr/java/tomcat/logs/mod_jk.log
JkLogLevel error

This entry is within the 'virtual host' section for each URL
using Tomcat: (use ajp12 (default) or ajp13)

JkMount /*.jsp ajp13

Regards,

Jack


Mapoteca Rio wrote:
 
 Thanks, Sriram.
 I execute o apachectl status and verify that mod_jk
 has been loaded. Do you have another suggestion?
 
 att. mapoteca-rio
 
 --- Sriram Narayanan [EMAIL PROTECTED] wrote:
  Umm.. perhaps that's apache returning the contents
  of the page ?
 
  I guess Tomcat's responding on port 8080, and
  Apache's respoding on port 80, and somehow Apache is
  not making use of Tomcat.
 
  Please have a look at the Apache console, and check
  whether the mod_jk has been loaded.
 
  Regards,
 
  Sriram
 
  10/4/01 8:03:58 PM, Mapoteca Rio
  [EMAIL PROTECTED] wrote:
 
  Hi,
  
  I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3 and
  mod_jk. When a running
  /host/examples/jsp/numberguess.jsp in port 8080
  this aplication works and when I run in port 80, I
  see
  this page with the code. I think that tomcat
  doesn't
  compile this page. Can anyone help me?
  
  Thanks
  
  mapoteca-rio
  
  
  __
  Do You Yahoo!?
  NEW from Yahoo! GeoCities - quick and easy web site
  hosting, just $8.95/month.
  http://geocities.yahoo.com/ps/info1
  
 
 
 
 
 
 _
  Do You Yahoo!?
  Get your free @yahoo.com address at
  http://mail.yahoo.com
 
 
 __
 Do You Yahoo!?
 NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
 http://geocities.yahoo.com/ps/info1
 
   
 Server Version: Apache/1.3.12 (Unix) mod_perl/1.24 mod_jk
 Server Built: May 6 2001 09:33:57
 API Version: 19990320:7
 Run Mode: standalone
 User/Group: nobody(60001)/60001
 Hostname/port: xxx.xxx:80
 Daemons: start: 5 min idle: 5 max idle: 10 max: 150
 Max Requests: per child: 0 keep alive: on max per connection: 100
 Threads: per child: 0
 Excess requests: per child: 0
 Timeouts: connection: 300 keep-alive: 15
 Server Root: /var/apache
 Config File: /etc/apache/httpd.conf
 PID File: /var/run/httpd.pid
 Scoreboard File: /var/run/httpd.scoreboard
 
 Module Name: mod_perl.c
 Content handlers: perl-script , httpd/unix-directory
 Configuration Phase Participation: Child Init, Create Directory Config, Merge 
Directory Configs, Create Server Config, Merge Server Configs
 Request Phase Participation: Post-Read Request, Header Parse, Translate Path, Check 
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging
 Module Directives:
 Perl - Perl code
 /Perl - End Perl code
 =pod - Start of POD
 =back - End of =over
 =cut - End of POD
 __END__ - Stop reading config
 PerlFreshRestart - Tell mod_perl to reload modules and flush Apache::Registry cache 
on restart
 PerlTaintCheck - Turn on -T switch
 PerlWarn - Turn on -w switch
 PerlScript - this directive is deprecated, use `PerlRequire'
 PerlRequire - A Perl script name, pulled in via require
 PerlModule - List of Perl modules
 PerlSetVar - Perl config var and value
 PerlAddVar - Perl config var and value
 PerlSetEnv - Perl %ENV key and value
 PerlPassEnv - pass environment variables to %ENV
 PerlSendHeader - Tell mod_perl to parse and send HTTP headers
 PerlSetupEnv - Tell mod_perl to setup %ENV by default
 PerlHandler - the Perl handler routine name
 PerlTransHandler - the Perl Translation handler routine name
 PerlAuthenHandler - the Perl Authentication handler routine name
 PerlAuthzHandler - the Perl Authorization handler routine name
 PerlAccessHandler - the Perl Access handler routine name
 PerlTypeHandler - the Perl Type check handler routine name
 PerlFixupHandler - the Perl Fixup handler routine name
 PerlLogHandler - the Perl Log handler routine name
 PerlCleanupHandler - the Perl Cleanup handler routine name
 PerlInitHandler - the Perl Init handler routine name
 PerlHeaderParserHandler - the Perl Header Parser handler routine name
 PerlChildInitHandler - the Perl Child init handler routine name
 PerlChildExitHandler - the Perl Child exit handler routine name
 PerlPostReadRequestHandler - the Perl Post Read Request handler routine name
 PerlDispatchHandler - the Perl Dispatch handler routine name
 PerlRestartHandler - the Perl Restart handler routine name
 Current Configuration:
 
 Module Name: mod_setenvif.c
 Content handlers: none
 Configuration Phase Participation: Create Server Config, Merge Server Configs
 Request Phase Participation: Post-Read Request
 Module Directives:
 SetEnvIf - A header-name, regex and a list of variables.
 SetEnvIfNoCase - a 

Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Mapoteca Rio

Hi, Jack

   I have had this configuration in files described.
I have one solaris 2.8 with apache 1.3.12 and
tomcat3.2.3 and mod_jk that works very well. But, in
my client, with this same cofiguration, doesn't work.
I have to go there tomorrow and i don't know what i
can do.

thanks

mapoteca-rio 

 
--- Jack Lauman [EMAIL PROTECTED] wrote:
 Try the following, your're 'server-info' report does
 not indicate
 that mod_jk is configured:
 
 Make sure you have something like the following the
 Apache
 httpd.conf file:
 
 Include /usr/java/tomcat/conf/mod_jk-auto.conf
 JkWorkersFile
 /usr/java/tomcat/conf/workers.properties
 JkLogFile /usr/java/tomcat/logs/mod_jk.log
 JkLogLevel error
 
 This entry is within the 'virtual host' section for
 each URL
 using Tomcat: (use ajp12 (default) or ajp13)
 
 JkMount /*.jsp ajp13
 
 Regards,
 
 Jack
 
 
 Mapoteca Rio wrote:
  
  Thanks, Sriram.
  I execute o apachectl status and verify that
 mod_jk
  has been loaded. Do you have another suggestion?
  
  att. mapoteca-rio
  
  --- Sriram Narayanan [EMAIL PROTECTED]
 wrote:
   Umm.. perhaps that's apache returning the
 contents
   of the page ?
  
   I guess Tomcat's responding on port 8080, and
   Apache's respoding on port 80, and somehow
 Apache is
   not making use of Tomcat.
  
   Please have a look at the Apache console, and
 check
   whether the mod_jk has been loaded.
  
   Regards,
  
   Sriram
  
   10/4/01 8:03:58 PM, Mapoteca Rio
   [EMAIL PROTECTED] wrote:
  
   Hi,
   
   I use Apache 1.3.12, jdk 1.3.1 , Tomcat 3.2.3
 and
   mod_jk. When a running
   /host/examples/jsp/numberguess.jsp in port 8080
   this aplication works and when I run in port
 80, I
   see
   this page with the code. I think that tomcat
   doesn't
   compile this page. Can anyone help me?
   
   Thanks
   
   mapoteca-rio
   
   
  
 __
   Do You Yahoo!?
   NEW from Yahoo! GeoCities - quick and easy web
 site
   hosting, just $8.95/month.
   http://geocities.yahoo.com/ps/info1
   
  
  
  
  
  
 

_
   Do You Yahoo!?
   Get your free @yahoo.com address at
   http://mail.yahoo.com
  
  
  __
  Do You Yahoo!?
  NEW from Yahoo! GeoCities - quick and easy web
 site hosting, just $8.95/month.
  http://geocities.yahoo.com/ps/info1
  
   


  Server Version: Apache/1.3.12 (Unix) mod_perl/1.24
 mod_jk
  Server Built: May 6 2001 09:33:57
  API Version: 19990320:7
  Run Mode: standalone
  User/Group: nobody(60001)/60001
  Hostname/port: xxx.xxx:80
  Daemons: start: 5 min idle: 5 max idle: 10 max:
 150
  Max Requests: per child: 0 keep alive: on max per
 connection: 100
  Threads: per child: 0
  Excess requests: per child: 0
  Timeouts: connection: 300 keep-alive: 15
  Server Root: /var/apache
  Config File: /etc/apache/httpd.conf
  PID File: /var/run/httpd.pid
  Scoreboard File: /var/run/httpd.scoreboard
  
  Module Name: mod_perl.c
  Content handlers: perl-script ,
 httpd/unix-directory
  Configuration Phase Participation: Child Init,
 Create Directory Config, Merge Directory Configs,
 Create Server Config, Merge Server Configs
  Request Phase Participation: Post-Read Request,
 Header Parse, Translate Path, Check Access, Verify
 User ID, Verify User Access, Check Type, Fixups,
 Logging
  Module Directives:
  Perl - Perl code
  /Perl - End Perl code
  =pod - Start of POD
  =back - End of =over
  =cut - End of POD
  __END__ - Stop reading config
  PerlFreshRestart - Tell mod_perl to reload modules
 and flush Apache::Registry cache on restart
  PerlTaintCheck - Turn on -T switch
  PerlWarn - Turn on -w switch
  PerlScript - this directive is deprecated, use
 `PerlRequire'
  PerlRequire - A Perl script name, pulled in via
 require
  PerlModule - List of Perl modules
  PerlSetVar - Perl config var and value
  PerlAddVar - Perl config var and value
  PerlSetEnv - Perl %ENV key and value
  PerlPassEnv - pass environment variables to %ENV
  PerlSendHeader - Tell mod_perl to parse and send
 HTTP headers
  PerlSetupEnv - Tell mod_perl to setup %ENV by
 default
  PerlHandler - the Perl handler routine name
  PerlTransHandler - the Perl Translation handler
 routine name
  PerlAuthenHandler - the Perl Authentication
 handler routine name
  PerlAuthzHandler - the Perl Authorization handler
 routine name
  PerlAccessHandler - the Perl Access handler
 routine name
  PerlTypeHandler - the Perl Type check handler
 routine name
  PerlFixupHandler - the Perl Fixup handler routine
 name
  PerlLogHandler - the Perl Log handler routine name
  PerlCleanupHandler - the Perl Cleanup handler
 routine name
  PerlInitHandler - the Perl Init handler routine
 name
  PerlHeaderParserHandler - the Perl Header Parser
 handler routine name
  PerlChildInitHandler - the Perl Child init handler
 routine name
  PerlChildExitHandler - the Perl Child exit handler
 

Re: Will tomcat sessions work with IE6?

2001-10-04 Thread Jonathan Eric Miller


- Original Message -
From: Reynir Hübner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 02, 2001 4:29 PM
Subject: RE: Will tomcat sessions work with IE6?


 I´ve also made few tests on this, sessions are being created both when
 user is logged on and not.

 the only thing I noticed was I could not find the cookie file that get´s
 created in the cookies folder of the userprofile.

I found out that this is because it uses a non-persistent (per-session)
cookie. This cookie is stored in RAM and not on disk and it's destroyed when
the browser closes. You can find out by calling
HttpServletRequest.getCookies(), then, call Cookie.getMaxAge() for the
JSESSIONID cookie and you'll see that it returns -1 which means that the
cookie isn't stored on disk.

Jon

 hope it helps
 -r


 -Original Message-
 From: Bavo De Ridder [mailto:[EMAIL PROTECTED]]
 Sent: 2. október 2001 21:07
 To: [EMAIL PROTECTED]
 Subject: Re: Will tomcat sessions work with IE6?


 Hi,

 I use IE6 together with Tomcat and I didn't encounter any problems ...


 Bavo

 - Original Message -
 From: Brandon Cruz [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 02, 2001 6:12 PM
 Subject: Will tomcat sessions work with IE6?


  Just out of curiosity, is there a way to set tomcat so that the
 session
  cookies it sets will contain the privacy policy that is required by
 default
  settings in IE6?  If not, does that mean that every application is
 going
 to
  have to store the session in the URL to work with IE6?
 
  Thanks!
 
 
  Brandon
 
 





Re: Will tomcat sessions work with IE6?

2001-10-04 Thread Jonathan Eric Miller

If you use the default privacy settings for IE6, it should work fine. As you
noted, third party cookies are blocked by default. However, the cookie that
Tomcat uses for session IDs isn't a third party cookie.

Jon

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 02, 2001 9:50 PM
Subject: RE: Will tomcat sessions work with IE6?


 I think your problem is related to new feature in IE6 third party cookies
privacy setting which by default will not accept any third party cookie. In
IE5.x, default is accept.

 Kenneth
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 12:12 AM
 To: [EMAIL PROTECTED]
 Subject: Will tomcat sessions work with IE6?


 Just out of curiosity, is there a way to set tomcat so that the session
 cookies it sets will contain the privacy policy that is required by
default
 settings in IE6?  If not, does that mean that every application is going
to
 have to store the session in the URL to work with IE6?

 Thanks!


 Brandon


 _
 Stay tuned at NETVIGATOR (http://www.netvigator.com) for more surprises!





Help: JNDI InitialContext failure with Tomcat 3.2.3 and JBoss 2.4.1

2001-10-04 Thread Alistair Bayley

[ Sent this once already but it didn't appear on the list so here we go 
again... ]

I'm getting this in my tomcat.log when creating the jndi InitialContext:


javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory.  Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [full listing below, annotated]


Does this imply that the container is using a different classloader than the
one used when I create the temp NamingContextException in the
ServiceLocator? (see code below) If so, why? I see java.net.URLClassLoader in 
the stacktrace; is this significant?

I want to get the Home interface for an EJB in a JBoss server on the same
machine. I have been able to write a standalone java class that obtains the
Home interface and tests it, and it works fine, so the problem doesn't appear
to be with JBoss (this stanalone class has the JBoss client jars in its 
classpath).

In my WEB-INF/lib directory I have: jboss-j2ee.jar (from jboss), 
jnp-client.jar (from jboss), junit.jar, timerec.jar (my app, which has the 
ServiceLocator and other classes), jndi.properties (from JBoss).

I use the following ServiceLocator (see the getContext method), and I use
this jndi.properties file:


 Start jndi.properties -
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
 End jndi.properties -



 Start code 
import javax.rmi.PortableRemoteObject;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.ejb.EJBHome;
import timerec.shared.ServiceLocatorException;

// Home objects used for type-safety:
import timerec.business.UserEntityHome;
import timerec.service.AuthenticateSessionHome;

// A type-safe ServiceLocator.
// New services MUST be added to this.

public class ServiceLocator {
  private static Context _context;
  private static ServiceLocator _one;

  // This is a singleton.
  private ServiceLocator() {
  }
  public static ServiceLocator getInstance() {
if (_one == null) { _one = new ServiceLocator(); }
return _one;
  }

  static public class Service {
private String _binding;
private Class _class;
private Service(String binding, Class c)
  { _binding = binding; _class = c; }
public String getBinding() { return _binding; }
public Class getServiceClass() { return _class; }
  }

  // Entity Beans
  public final static Service User =
new Service(TimeRec/User, UserEntityHome.class);

  // Session Beans
  public final static Service Authenticate =
new Service(TimeRec/Authenticate, AuthenticateSessionHome.class);



  // Getting an InitialContext is expensve, so it is cached in this class.
  public static Context getContext() throws NamingException {
if ( _context != null ) return _context;

// Check that
// (1) jndi.properties file is being read
// (2) org.jnp.interfaces.NamingContextFactory is available on classpath
System.out.println(
  getContext: property for java.naming.factory.initial:);
System.out.println(System.getProperty(java.naming.factory.initial));
System.out.println(ServiceLocator: creating NamingContextFactory:);
org.jnp.interfaces.NamingContextFactory temp =
  new org.jnp.interfaces.NamingContextFactory();
System.out.println(ServiceLocator: created NamingContextFactory.);

Context c = new InitialContext();
// Don't do this - comp:java is not bound
//c.lookup(comp:java/env);
return c;
  }


  public static EJBHome getHome(Service s) throws ServiceLocatorException {
EJBHome home = null;
Object obj;
try {
  obj = getContext().lookup(s.getBinding());
  home = (EJBHome) PortableRemoteObject.narrow(obj, s.getServiceClass());
} catch (NamingException e) {
  e.printStackTrace();
  throw new ServiceLocatorException(
Unable to locate Home interface for  + s.getBinding());
}
return home;
  }

}

 End code 




 Start output 

getContext: property for java.naming.factory.initial:
org.jnp.interfaces.NamingContextFactory
ServiceLocator: creating NamingContextFactory:
ServiceLocator: created NamingContextFactory.
javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory.  Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at 

  1   2   >