RE: struts in tomcat 3.3-m3

2001-05-31 Thread Ignacio J. Ortega

you already has one inside the TOMCAT_HOME%/lib/container .. the files
jaxp.jar + parser.jar...copy this files to your apps web-inf/lib dir...

or use xerces  http://xml.apache.org/xerces-j/index.html 

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Claudia Pietsch [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 31 de mayo de 2001 0:27
 Para: [EMAIL PROTECTED]
 Asunto: RE: struts in tomcat 3.3-m3
 
 
 Where I can get this Parser?
 
 Claudia
 
 
 At 23:43 30.05.2001 +0200, you wrote:
 Tomcat 3.3 does not put anything on the webapp's classpathin
 particular prior Tomcat 3.3 there was a XMLParser in the classpath of
 the executed webapps..
 
 To solve this issue you need to put a XMLparser in the 
 classpath of your
 webapp  there are to 2 ways to achieve that..
 
 * in the WEB-ibf/lib dir of you webapp, the standard way, or
 * in the %TOMCAT_HOME%/lib/apps dir..
 
 Hope that helps
 
 Saludos ,
 Ignacio J. Ortega
 
 -Mensaje original-
 De: Steve Salkin [mailto:[EMAIL PROTECTED]]
 Enviado el: miércoles 30 de mayo de 2001 22:15
 Para: '[EMAIL PROTECTED]'
 Asunto: struts in tomcat 3.3-m3
 
 
 Hi-
 Has anyone (else) had trouble deploying a struts application on
 tomcat-3.3-m3 that works fine under 3.2.2? I (and several 
 people here)
 are experiencing oddness when trying to do this. It doesn't 
 seem to be
 particular to our app either, since the struts-example.war 
 also causes
 tomcat to fail during start-up.
 The error is a basically a failure to create a SaxParser from the
 SaxParserFactory - this is a static method that looks for a specific
 concrete class, either from a system property or an
 implementation-defined default. Apparently this is not occuring.
 Workarounds would be welcome: the tag-pooling feature of 3.3 
 has a lot
 of promise for a struts app.
 Thanks,
 Steve Salkin
 
 



Concurrent VMs accessing the one Connection Pool

2001-05-31 Thread George Shafik



Hi All,

Has anyone implemented a connection pool using more than one 
VM machine (Tomcat) or put it another way, has anyone been 
able to get concurrent servlet engines (Tomcat) accessing the one common 
connection pool ?

Any examples using Apache with multiple versions of Tomcat 
running "in-process" on dedicated linux serverswithan Oracle backend 
will be greatly appreciated.

Cheers,
George


admin console ???

2001-05-31 Thread Ajit Bhat




31/5/2001

hi all,

I would like to know as to how to installand setup admin 
console on any client machine for tomcat server 3.2.

I tried accessing the link Context Admin in Tomcat 
Administration Tools section, but it asks for username  password which i do 
not know. how do i proceed ?

regards,
Ajit


Re: Why is authorization=null? Esp. to Twylite

2001-05-31 Thread Twylite

Hi,

thank you for the information about authorization header, form based login 
and POST method. So the authorization in the HTTP header isn't filled. 
However I ask myself from where the getRemoteUser and getAuthtype - Methode 
get the information because these methods do work and I get the correct 
username and auth form.

Basic and Form-based logon are totally separate in their logic, this is how they work:

1. Basic

Basic authentication is written into the HTTP specification.  When attempting to 
access a page, the web server 
can determine if the permissions are insufficient, and reply with a 401 Unauthorized 
response.  Then web 
browser then displays that popup login dialog to the user.  The browser's next attempt 
to access the page 
includes a Authorization header with the authentication type (BASIC) and base64 
encoded 
username:password.  The web server checks this header against some database of users, 
and decides 
whether or not to permit the access.

Tomcat detects the Authorization header and sets the username in the request object.

2. Form-based

There is no HTTP or HTML specification covering form-based logon.  This is a special 
feature of Tomcat (and I 
assume other JSP servers, but I'm not sure).  In your web.xml file you specify (under 
the login-config for form-
based login) the form-logon-page and form-error-page.  

If you attempt to access a page for which you don't have permission, Tomcat will 
instead serve up the form-
login-page, keeping in your session the URL of the page you really want to get to.  
The form-logon-page must 
have a particular action (j_security_check) which Tomcat will substitute with an 
appropriate URL, for internal 
use.  The form-logon-page must also have a j_username and j_password field.  

When the form is submitted it goes to the Tomcat-defined URL where the j_username and 
j_password are 
extracted, and sent to the Realm configured in server.xml, for authentication and 
authorization. If this fails, 
Tomcat serves up the form-logon-page again (up to three times) and then finally the 
form-error-page.  If the 
logon is successful and the user has the required roles to access the originally 
desired page, that page will be 
served up.

Once the login is successful, Tomcat sets the username in the session object, and on 
every request transfers 
this into the request object.


Hope this clarifies things, and that I haven't made any glaring errors ;)

Twylite





RE: JDBC/ODBC: Technological choice

2001-05-31 Thread Twylite

Hi,

 I recently analyzed a JDBC application
for performance problems (using JProbe) and found that 2/3 of my time was
being spent by the driver looking up my column number with the name. 

Always refer to columns by number, and read them all in one time -- first to
last -- into a data structure from which you can randomly access what you
need how you need it.

This is excellent advice; having had the same performance problems myself I can't 
agree enough.  

The primary problem with JDBC is the amount of String handling it does - in an 
application where I was storing 
and manipulating up to 80Mb of Strings in memory, and database access occurred on 
approximately every 
100th String access, the JDBC driver was responsible for more String object creation 
and use than my portion 
of the logic (which, being prototype at the time, did not bother to use StringBuffer 
or any other optimizations).

My recommendations in this regard are fairly straightforward:

1. Use PreparedStatement wherever you can!  Creating a new Statement for every 
database access often 
seems easier, but uses a LOT of resources, especially Strings.  PreparedStatement is 
also somewhat faster.  On 
the same rant, don't create new Statements every time - a Statement object can be 
reused with different 
queries.

2. Whenever you do SELECTs and the like, never use SELECT * - always name your 
parameters (SELECT 
alpha, beta FROM myTable).  More than just the sheer issue of design and associated 
problems if you modify 
the table, you are guaranteed to have the columns returned in the listed order, 
allowing you to safely use 
column number indexing to retrieve values, and saving that really nasty overhead of 
looking up column names 
to get numbers (which, not surprisingly, creates an astonishing amount of Strings).

3. Cache your results and close the ResultSet as soon as possible.  Remember that in 
Java assigning a String 
to another data structure does not make a new object - it assigns a reference to the 
same String object that 
JDBC created, because Strings are immutable.  Typically only one ResultSet can be used 
by a Connection at a 
time, so this is prudent to improve the efficiency of multithreaded applications.  Use 
the cached results for as 
long as possible, to prevent more JDBC calls.

4. Use SQL, not your own logic.  Too many people fall prey to the select everything 
and then pick out what I 
want problem.  Every SQL row you transfer from a database creates new objects.  In 
Java there is no reuse of 
these objects, so retrieving 100 rows so that you can pick out five of them wastes a 
lot of memory, and means 
the garbage collector has to do a lot of extra work later.  Use the WHERE clause, use 
SORT, use GROUP BY 
and use joins.  People also have some sort of innate need to select from one table, 
and then use that data to 
select from another table, and so on.  Maybe they need SQL tuition, or maybe they 
somehow believe their 
method is better.  It isn't ... get over it ... use joins.

5. Linked to (4), only transfer what you need.  If you only need the Username and 
Password columns, don't use 
SELECT * or also retrieve the user's real name and postal address, on the off 
chance that you may need 
them.  Either you do or you don't.  


Wells, thats my R2.
Given the exchange rate ... that's not far off 2c.
Shyte.

Twylite




Re: AW: servlet error..

2001-05-31 Thread Tuukk4 |[:)-| p4s4n3n

hei
Java AWT really needs X (Stupid) to run but using Pure Java AWT (can be found at 
http://www.eteks.com/pja/en/) you can make it go away:)
I have used this for pruduct succesfully.. before it i was sooo frustrated

Tuukka

ps. eteks server is slow:P

---
--Me olemme keskella jotain. jossa olemme totaalisen ulkopuolisia--


On Wed, 30 May 2001 08:51:45  
 Ralph Einfeldt wrote:
The AWT classes need an x-server to work with images.

Can it be that there isn't one running, when this error happens ?

 -Ursprüngliche Nachricht-
 Von: Krishna Kishore Thotakura [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 30. Mai 2001 01:05
 An: [EMAIL PROTECTED]
 Betreff: servlet error..
 
 
 Hi,
  i am trying to write an image to the outputstream of a 
 servlet. The image is
 actually obtained from an invisible awt Canvas. 
 I'm using Jimi package to encode the Image into JPEG format 
 and writing this
 out to the ServletOutputStream. Sometimes this works fine and 
 i see a nice
 image in the browser but at times, i get the following error:
 in tomcat.log
 Xlib: connection to :0.0 refused by server
 Xlib: Invalid MIT-MAGIC-COOKIE-1 key
 
 in browser ---
 Error: 500
 Location: /wms/servlet/WmsServlet
 Internal Servlet Error:
 
 java.lang.NoClassDefFoundError
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at java.awt.Toolkit$2.run(Toolkit.java:498)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
  at java.awt.Component.getToolkitImpl(Component.java:657)
  at java.awt.Component.getToolkit(Component.java:641)
  at java.awt.Component.createImage(Component.java:2265)
  at stt.View.ViewJava3D.initMem(ViewJava3D.java:190)
  at stt.View.ViewJava3D.(ViewJava3D.java:214)
  at stt.Display.DisplayManager.initView(DisplayManager.java:126)
  at stt.Display.DisplayManager.(DisplayManager.java:64)
  at sttx.Display.GeoDisplayManager.(GeoDisplayManager.java:79)
  at WmsServlet.init(WmsServlet.java:49)
 
 Any comments,suggestions,explanations would be greatly appreciated.
 



Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



TC4-Apache: NoClassDefFoundError

2001-05-31 Thread SongDongsheng



Hi all,

I use Apache 1.3.12 with jakarta-tomcat-4.0-20010530.tar.gz 
under Linux 2.2.14(RedHat 6.2).

Tomcat report:
**

[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Host fa.cawcm.net.8080 has 
ID=0[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Application jsp mapped in fa.cawcm.net.8080/jsp/ has ID 
0[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Request for HID=0 
AID=0[org.apache.catalina.connector.warp.WarpRequestHandler] 
New instance 
created[org.apache.catalina.connector.warp.WarpRequestHandler] 
Setting 
connection[org.apache.catalina.connector.warp.WarpRequestHandler] 
Setting Request ID 
1[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Method 
GET[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request URI 
/jsp/test.jsp[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Query 
Argument[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Protocol 
HTTP/1.1[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Accept: 
*/*[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Accept-Encoding: gzip, 
deflate[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Accept-Language: 
zh-cn[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Connection: 
Keep-Alive[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Host: 
fa.cawcm.net:8080[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header Referer: http://fa.cawcm.net:8080/jsp/[org.apache.catalina.connector.warp.WarpRequestHandler] 
Request Header User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)[org.apache.catalina.connector.warp.WarpRequestHandler] 
Invoking 
request[org.apache.catalina.connector.warp.WarpConnectionHandler] 
New instance 
created[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Setting 
connection[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Setting Request ID 
0[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Host fa.cawcm.net.8080 has 
ID=0[org.apache.catalina.connector.warp.WarpConnectionHandler] 
Application jsp mapped in fa.cawcm.net.8080/jsp/ has ID 
0java.lang.NoClassDefFoundError: 
org/xml/sax/SAXException at 
org.apache.jasper.logging.Logger.printThrowable(Logger.java:232) 
at 
org.apache.jasper.logging.Logger.throwableToString(Logger.java:203) 
at 
org.apache.jasper.logging.Logger.throwableToString(Logger.java:187) 
at 
org.apache.jasper.logging.JasperLogger$LogEntry.toString(JasperLogger.java:132) 
at 
org.apache.jasper.logging.LogDaemon$1.run(JasperLogger.java:231) 
at 
org.apache.jasper.logging.LogDaemon.run(JasperLogger.java:250)[org.apache.catalina.connector.warp.WarpRequestHandler] 
End of 
request[org.apache.catalina.connector.warp.WarpRequestHandler] 
Thread exited
**
The test.jsp is:

**
%@ page language="java" %%@ page 
import="java.util.*" %

htmlheadtitleJSP Test 
Page/title/head

body%

out.println("Hello, World !");

%/body 
 
/html 
**

I don't know Tomcat can't found what class and how to resolve it.

Thanks in anvance.

SongDongsheng



Tomcat 4.0 as NT service

2001-05-31 Thread Pernica, Jan

I have done a research on running Tomcat 4.0 as a service on NT.
Here is my wrapper.properties
 wrapper.properties 
Ammend this file and follow instruction for version 3.2

Regards

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.




 wrapper.properties


RE: Tomcat/IIS Installation Problem

2001-05-31 Thread Todd Sussman

   I am sorry if this question was answered, but our mail server was
down for 2 days.

We have tomcat 3.2.1 running on Win2k (IIS 5.0).

When we run using http, all is fine.  When adding SSL via a Verisign
Cert., we get a message asking whether we want to d/l secure and
unsecure information.  I then installed JSSE 1.0.2 and modified our
server.xml to allow https requests.  I used keytool to import the cert.
using tomcat as the alias.  I get a message no self-signed cert.
available.  This is from verisign and is not self created.  How do I get
tomcat to use this cert. to serve JSP's under SSL.

Thank You Again,

Todd



jsp:usebean

2001-05-31 Thread Egidijus Drobavicius

Hi,
I've got one question:
I'd like to keep the constant string values in the single place to avoid the
mess. So I have class Constants.
let's say Constants have atrribute ATTR_MY_HANDLER="myHandler"
I use then code like this session.getAttribute(Constants.ATTR_MY_HANDLER).
This is OK
In jsp side i'd like to store this bean to session using jsp:usebean
directive.
But as i see the parser gets confused at this point if i write smth like
this
jsp:useBean id=Constants.ATTR_MY_HANDLER scope="session" class="MyHandler"
/
It insists that id value is of type String and is placed between "".
Is it possible to work around in nice way this situation or do I have to
place this attribute to the session manualy? I do hate using same attribute
in several places as it definetly leads to mistakes (i.e. I will not use
jsp:useBean id="myHandler" scope="session" class="MyHandler" /

Regards,

Egidijus Drobavicius
AB Vilniaus Bankas
http://www.vb.lt
tel. + 370 2 682706


Egidijus Drobavicius
AB Vilniaus Bankas
http://www.vb.lt
tel. + 370 2 682706




Re: Tomcat/IIS Installation Problem

2001-05-31 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Todd Sussman [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, May 31, 2001 2:18 PM
Subject: RE: Tomcat/IIS Installation Problem


   I am sorry if this question was answered, but our mail server was
down for 2 days.

We have tomcat 3.2.1 running on Win2k (IIS 5.0).

When we run using http, all is fine.  When adding SSL via a Verisign
Cert., we get a message asking whether we want to d/l secure and
unsecure information.  I then installed JSSE 1.0.2 and modified our
server.xml to allow https requests.  I used keytool to import the cert.
using tomcat as the alias.  I get a message no self-signed cert.
available.  This is from verisign and is not self created.  How do I get
tomcat to use this cert. to serve JSP's under SSL.

Thank You Again,

Todd


Can i install iis server on windows 98.i am asking this because it is meant
for nt platform


Shivakanth




Tomcat + Castor JDO

2001-05-31 Thread Patrick . Pierra

HI !

I developp with Visual Age 3.5. I use Tomcat Test Environment 3.1 and I'm
trying to use Castor JDO 0.9.
I've no problem in my workspace to work with Castor JDO (mapping and OQL
Query). I'm trying to use Castor JDO with Tomcat but apparently Castor
can't find my business class in Tomcat (I've put Instrument.class in
classes/lds/ecm/instrument/Instrument.class). May be somebody have found
the same problem and resolve it ?

here is the stack trace :

org.exolab.castor.mapping.MappingException: Could not find the class
lds.ecm.instrument.Instrument
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 org.exolab.castor.mapping.MappingException(java.lang.String,
java.lang.Object)
 org.exolab.castor.mapping.ClassDescriptor
org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(org.exolab.castor.mapping.xml.ClassMapping)
 org.exolab.castor.mapping.ClassDescriptor
org.exolab.castor.jdo.engine.JDOMappingLoader.createDescriptor(org.exolab.castor.mapping.xml.ClassMapping)
 void
org.exolab.castor.mapping.loader.MappingLoader.loadMapping(org.exolab.castor.mapping.xml.MappingRoot,

java.lang.Object)
 void
org.exolab.castor.jdo.engine.JDOMappingLoader.loadMapping(org.exolab.castor.mapping.xml.MappingRoot,

java.lang.Object)
 org.exolab.castor.mapping.MappingResolver
org.exolab.castor.mapping.Mapping.getResolver(org.exolab.castor.mapping.Mapping$EngineMapping,

java.lang.Object)
 void
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(org.xml.sax.InputSource,

org.xml.sax.EntityResolver, org.exolab.castor.persist.spi.LogInterceptor,
java.lang.ClassLoader)
 org.exolab.castor.jdo.Database org.exolab.castor.jdo.JDO.getDatabase()
 void test.jdo.TestJdo2.setDb(java.io.PrintWriter)
 void lds.servlets.Login.doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,

org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,

org.apache.tomcat.core.Response)
 void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,

java.lang.Object [])
 void org.apache.tomcat.service.TcpConnectionThread.run()
 void java.lang.Thread.run()

java.lang.NullPointerException
 java.lang.Throwable()
 java.lang.Exception()
 java.lang.RuntimeException()
 java.lang.NullPointerException()
 java.lang.Object java.util.Hashtable.put(java.lang.Object,
java.lang.Object)
 void
org.apache.tomcat.session.StandardSession.setAttribute(java.lang.String,
java.lang.Object)
 void lds.servlets.Login.doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,

org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,

org.apache.tomcat.core.Response)
 void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,

java.lang.Object [])
 void org.apache.tomcat.service.TcpConnectionThread.run()
 void java.lang.Thread.run()


Patrick PIERRA




Maybe Linux Bug

2001-05-31 Thread SongDongsheng




Hi,

I use apache 1.3.19 and jakarta-tomcat-4.0-20010530.tar.gz 
under linux, the test.jsp is:

***
%@ page session="false"%

htmlheadtitleJSP Test 
Page/title/head

body%

out.println("Hello, World !");

%/body 
 
/html 
***
and _0002ftest_jsp.java(Tomcat gerenated) is:


***
package org.apache.jsp;

import java.util.*;import javax.servlet.*;import 
javax.servlet.http.*;import javax.servlet.jsp.*;import 
javax.servlet.jsp.tagext.*;import org.apache.jasper.runtime.*;

public class _0002ftest_jsp extends HttpJspBase {

 static { 
} public _0002ftest_jsp( ) { }

 private static boolean _jspx_inited = false;

 public final void _jspx_init() throws 
org.apache.jasper.JasperException { }

 public void _jspService(HttpServletRequest request, 
HttpServletResponse 
response) throws 
java.io.IOException, ServletException {

 JspFactory _jspxFactory = 
null; PageContext pageContext = 
null; HttpSession session = 
null; ServletContext application = 
null; ServletConfig config = 
null; JspWriter out = 
null; Object page = 
this; String _value = 
null; try {

 if 
(_jspx_inited == false) 
{ 
synchronized (this) 
{ 
if (_jspx_inited == false) 
{ 
_jspx_init(); 
_jspx_inited = 
true; 
} 
} 
} 
_jspxFactory = 
JspFactory.getDefaultFactory(); 
response.setContentType("text/html;charset=ISO-8859-1"); 
pageContext = _jspxFactory.getPageContext(this, request, 
response,"", true, 8192, true);

 
application = 
pageContext.getServletContext(); 
config = 
pageContext.getServletConfig(); 
session = 
pageContext.getSession(); 
out = pageContext.getOut();

 // HTML 
// begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(0,27);to=(1,0)] 
out.write("\r\n");

 // 
end // 
HTML // begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(1,32);to=(9,0)] 
out.write("\r\n\r\nhtml\r\nhead\r\ntitleJSP Test 
Page/title\r\n/head\r\n\r\nbody\r\n");

 // 
end // 
begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(9,2);to=(13,0)] 
 
 
out.println("Hello, World 
!"); 
 // 
end // 
HTML // begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(13,2);to=(17,0)] 
out.write("\r\n/body 
\r\n 
\r\n/html 
\r\n");

 // 
end

 } catch (Throwable t) 
{ if (out 
!= null  out.getBufferSize() != 
0) 
out.clearBuffer(); 
if (pageContext != null) 
pageContext.handlePageException(t); 
} finally 
{ if 
(_jspxFactory != null) 
_jspxFactory.releasePageContext(pageContext); 
} }}***
and Tomcat-Apache WarpConnector log is:
***
2001-05-31 16:43:12 WarpContext[/jsp]: Mapping 
contextPath='/jsp' with requestURI='/jsp/test.jsp' and 
relativeURI='/test.jsp'2001-05-31 16:43:12 WarpContext[/jsp]: Decoded 
relativeURI='/test.jsp'2001-05-31 16:43:12 WarpContext[/jsp]: 
Trying exact match2001-05-31 16:43:12 WarpContext[/jsp]: Trying 
prefix match2001-05-31 16:43:12 WarpContext[/jsp]: Trying 
extension match2001-05-31 16:43:12 WarpContext[/jsp]: Mapped to 
servlet 'jsp' with servlet path '/test.jsp' and path info 'null' and 
update=true2001-05-31 16:43:15 jsp: init2001-05-31 16:43:15 
JspFactoryImpl: Exception initializing page context - 
java.lang.IllegalStateException: Page needs a session and none is 
availableat 
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:141)at 
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:114)at 
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:175)at 
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)at 
org.apache.jsp._0002ftest_jsp._jspService(_0002ftest_jsp.java:47)at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 

certificate for tomcat and ssl

2001-05-31 Thread François Andromaque



Has someone configured tomcat to work with SSL 
without use APACHE server? I've try lot of things and nothing has worked, i'm 
seeking for all the steps to generated certificate and configure tomcat to work 
with it. Can someone help me?


RE: Maybe Linux Bug

2001-05-31 Thread BARRAUD Valérie
Title: RE: Maybe Linux Bug






Ideas:
- Did you change %@ page session=true% into %@ page session=false% ?
- Did you check if the JSP was generated and compiled after this change ?


-Message d'origine-
De: SongDongsheng [SMTP:[EMAIL PROTECTED]]
Date: jeudi 31 mai 2001 10:56
À: [EMAIL PROTECTED]
Objet: Maybe Linux Bug


Hi,
 
I use apache 1.3.19 and jakarta-tomcat-4.0-20010530.tar.gz under linux, the test.jsp is:
***
%@ page session=false%
html
head
titleJSP Test Page/title
/head
 
body
% out.println(Hello, World !); %
/body
/html
***
and _0002ftest_jsp.java(Tomcat gerenated) is:
***
package org.apache.jsp;
 
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import org.apache.jasper.runtime.*;
 


public class _0002ftest_jsp extends HttpJspBase {
 


    static {
    }
    public _0002ftest_jsp( ) {
    }
 
    private static boolean _jspx_inited = false;
 
    public final void _jspx_init() throws org.apache.jasper.JasperException {
    }
 
    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
    throws java.io.IOException, ServletException {
 
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String  _value = null;
    try {
 
    if (_jspx_inited == false) {
    synchronized (this) {
    if (_jspx_inited == false) {
    _jspx_init();
    _jspx_inited = true;
    }
    }
    }
    _jspxFactory = JspFactory.getDefaultFactory();
    response.setContentType(text/html;charset=ISO-8859-1);
    pageContext = _jspxFactory.getPageContext(this, request, response,
   , true, 8192, true);
 
    application = pageContext.getServletContext();
    config = pageContext.getServletConfig();
    session = pageContext.getSession();
    out = pageContext.getOut();
 
    // HTML // begin [file=/sds/apache-1.3.12/htdocs/jsp/test.jsp;from=(0,27);to=(1,0)]
    out.write(\r\n);
 
    // end
    // HTML // begin [file=/sds/apache-1.3.12/htdocs/jsp/test.jsp;from=(1,32);to=(9,0)]
    out.write(\r\n\r\nhtml\r\nhead\r\ntitleJSP Test Page/title\r\n/head\r\n\r\nbody\r\n);
 
    // end
    // begin [file=/sds/apache-1.3.12/htdocs/jsp/test.jsp;from=(9,2);to=(13,0)]
   
   
    out.println(Hello, World !);
   
    // end
    // HTML // begin [file=/sds/apache-1.3.12/htdocs/jsp/test.jsp;from=(13,2);to=(17,0)]
    out.write(\r\n/body \r\n \r\n/html \r\n);
 
    // end
 
    } catch (Throwable t) {
    if (out != null  out.getBufferSize() != 0)
    out.clearBuffer();
    if (pageContext != null) pageContext.handlePageException(t);
    } finally {
    if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
    }
}
***
and Tomcat-Apache WarpConnector log is:
***

2001-05-31 16:43:12 WarpContext[/jsp]: Mapping contextPath='/jsp' with requestURI='/jsp/test.jsp' and relativeURI='/test.jsp'
2001-05-31 16:43:12 WarpContext[/jsp]: Decoded relativeURI='/test.jsp'
2001-05-31 16:43:12 WarpContext[/jsp]:   Trying exact match
2001-05-31 16:43:12 WarpContext[/jsp]:   Trying prefix match
2001-05-31 16:43:12 WarpContext[/jsp]:   Trying extension match
2001-05-31 16:43:12 WarpContext[/jsp]:  Mapped to servlet 'jsp' with servlet path '/test.jsp' and path info 'null' and update=true
2001-05-31 16:43:15 jsp: init
2001-05-31 16:43:15 JspFactoryImpl: Exception initializing page context - java.lang.IllegalStateException: Page needs a session and none is available
 at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:141)
 at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:114)
 at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:175)
 at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)
 at org.apache.jsp._0002ftest_jsp._jspService(_0002ftest_jsp.java:47)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at 

Re: jsp:usebean

2001-05-31 Thread Edwin Martin

Egidijus,

  I do hate using same attribute
in several places as it definetly leads to mistakes (i.e. I will not use
jsp:useBean id=myHandler scope=session class=MyHandler /

You have a strange way of thinking, friend,

You have to look at myHandler as a variable name.

Do you store the name of a variable in a constant to clean up
you code?

Bye,
Edwin Martin.




RE: certificate for tomcat and ssl

2001-05-31 Thread Pernica, Jan

I have configured tomcat 4.0 and 3.2 to work with SSL over HTTPS. I have
used BASIC authenitication.
I have followed instructions in the documentation step by step.

Regards

Jan

On Thursday, May 31, 2001 11:09 AM, François Andromaque
[SMTP:[EMAIL PROTECTED]] wrote:
 Has someone configured tomcat to work with SSL without use APACHE server?
I've try lot of things and nothing has worked, i'm seeking for all the steps
to generated certificate and configure tomcat to work with it. Can someone
help me?


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






RE: usebean

2001-05-31 Thread BARRAUD Valérie
Title: RE: usebean






Usually, one uses request.setAttribute() to link a JavaBean (data) and a JSP page (data displayer) :
- MyServlet.java :
 MyJavaBean myJavaBean = new MyJavaBean(...);
 request.setAttribute(mrBean, myJavaBean); // link JavaBean/JSP
 RequestDispatcher req = getServletContext().getRequestDispatcher(MyPage.jsp);
 req.forward(request,response);
- MyPage.jsp :
 jsp:useBean id=mrBean class=mypackage.MyJavaBean scope=request /
 ...

 form id=frm name=frm action=%= response.encodeURL(/servlet/mypackage.MyServlet) % method=post
 ...

To use a constante, try the JSP syntax expression: %=Constants.ATTR_MY_HANDLER % after importing the file : I didn't test it !



-Message d'origine-
De: Egidijus Drobavicius [SMTP:[EMAIL PROTECTED]]
Date: jeudi 31 mai 2001 10:43
À: [EMAIL PROTECTED]
Objet: jsp:usebean


Hi,
I've got one question:
I'd like to keep the constant string values in the single place to avoid the
mess. So I have class Constants.
let's say Constants have atrribute ATTR_MY_HANDLER=myHandler
I use then code like this session.getAttribute(Constants.ATTR_MY_HANDLER).
This is OK
In jsp side i'd like to store this bean to session using jsp:usebean
directive.
But as i see the parser gets confused at this point if i write smth like
this
jsp:useBean id=Constants.ATTR_MY_HANDLER scope=session class=MyHandler
/
It insists that id value is of type String and is placed between .
Is it possible to work around in nice way this situation or do I have to
place this attribute to the session manualy? I do hate using same attribute
in several places as it definetly leads to mistakes (i.e. I will not use
jsp:useBean id=myHandler scope=session class=MyHandler /


Regards,


Egidijus Drobavicius
AB Vilniaus Bankas
http://www.vb.lt
tel. + 370 2 682706





Ultradev login page problem with Apache

2001-05-31 Thread Steve Quail

 JSP pages created using Ultradev use SendRedirect to bounce users to a 
 login page if they haven't logged in yet. This works just fine using 
 Tomcat alone but when accessing via Apache you get (although not 
 always) bits of the page you tried to acces followed by bits of HTTP 
 header followed by the login page.
 
 Has anyone solved this.
 
 Using Tomcat 3.2.1, mod_jserv connector.
 
 Anyone got opinions on Ultradev ? To me seems really quick to knock 
 out basic pages but I wonder how I'd add complex Java validation 
 without making a messy JSP page - would be nicer if it used servlets 
 too MVC style !
 
 Steve Quail.



Re:Re: Maybe Linux Bug

2001-05-31 Thread SongDongsheng
Title: RE: Maybe Linux Bug



Yes, I do it as your request, but no effect !

- Original Message - From: BARRAUD Valérie To: 
'[EMAIL PROTECTED]' 
Sent: Thursday, May 31, 2001 5:23 PMSubject: RE: Maybe Linux 
Bug

Ideas: - Did you change %@ page session="true"% 
into %@ page session="false"% ? - Did you check if the JSP was 
generated and compiled after this change ? 

-Message d'origine- De: 
SongDongsheng [SMTP:[EMAIL PROTECTED]] 
Date: jeudi 31 mai 2001 10:56 
? [EMAIL PROTECTED] 
Objet: Maybe Linux Bug 

Hi, I use apache 1.3.19 and 
jakarta-tomcat-4.0-20010530.tar.gz under linux, the test.jsp is: 
*** 
%@ page session="false"% 
htmlheadtitleJSP Test 
Page/title/head 
body%out.println("Hello, World 
!");%/body 
/html*** 
and _0002ftest_jsp.java(Tomcat gerenated) is: 
*** 
package org.apache.jsp; import java.util.*;import 
javax.servlet.*;import javax.servlet.http.*;import 
javax.servlet.jsp.*;import javax.servlet.jsp.tagext.*;import 
org.apache.jasper.runtime.*;

public class _0002ftest_jsp extends HttpJspBase 
{

 static { 
} public _0002ftest_jsp( ) 
{ }  private 
static boolean _jspx_inited = false;  
public final void _jspx_init() throws org.apache.jasper.JasperException 
{ }  public 
void _jspService(HttpServletRequest request, HttpServletResponse 
response) 
throws java.io.IOException, ServletException { 
 
JspFactory _jspxFactory = 
null; 
PageContext pageContext = 
null; 
HttpSession session = 
null; 
ServletContext application = 
null; 
ServletConfig config = 
null; 
JspWriter out = 
null; 
Object page = 
this; 
String _value = 
null; 
try { 
 
if (_jspx_inited == false) 
{ 
synchronized (this) 
{ 
if (_jspx_inited == false) 
{ 
_jspx_init(); 
_jspx_inited = 
true; 
} 
} 
} 
_jspxFactory = 
JspFactory.getDefaultFactory(); 
response.setContentType("text/html;charset=ISO-8859-1"); 
pageContext = _jspxFactory.getPageContext(this, request, 
response, "", true, 8192, true); 
 
application = 
pageContext.getServletContext(); 
config = 
pageContext.getServletConfig(); 
session = 
pageContext.getSession(); 
out = pageContext.getOut(); 
 
// HTML // begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(0,27);to=(1,0)] 
out.write("\r\n"); 
 
// 
end 
// HTML // begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(1,32);to=(9,0)] 
out.write("\r\n\r\nhtml\r\nhead\r\ntitleJSP Test 
Page/title\r\n/head\r\n\r\nbody\r\n"); 
 
// 
end 
// begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(9,2);to=(13,0)] 
 
 
out.println("Hello, World 
!"); 
 
// 
end 
// HTML // begin 
[file="/sds/apache-1.3.12/htdocs/jsp/test.jsp";from=(13,2);to=(17,0)] 
out.write("\r\n/body 
\r\n 
\r\n/html 
\r\n"); 
 
// end 
 
} catch (Throwable t) 
{ 
if (out != null  out.getBufferSize() != 
0) 
out.clearBuffer(); 
if (pageContext != null) 
pageContext.handlePageException(t); 
} finally 
{ 
if (_jspxFactory != null) 
_jspxFactory.releasePageContext(pageContext); 
} 
}}*** 
and Tomcat-Apache WarpConnector log is: 
*** 


2001-05-31 16:43:12 WarpContext[/jsp]: Mapping 
contextPath='/jsp' with requestURI='/jsp/test.jsp' and 
relativeURI='/test.jsp'2001-05-31 16:43:12 WarpContext[/jsp]: Decoded 
relativeURI='/test.jsp'2001-05-31 16:43:12 
WarpContext[/jsp]: Trying exact match2001-05-31 
16:43:12 WarpContext[/jsp]: Trying prefix 
match2001-05-31 16:43:12 WarpContext[/jsp]: Trying 
extension match2001-05-31 16:43:12 WarpContext[/jsp]: Mapped to servlet 
'jsp' with servlet path '/test.jsp' and path info 'null' and 
update=true2001-05-31 16:43:15 jsp: init2001-05-31 16:43:15 
JspFactoryImpl: Exception initializing page context - 
java.lang.IllegalStateException: Page needs a session and none is 
availableat 
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:141)at 
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:114)at 
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:175)at 
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)at 
org.apache.jsp._0002ftest_jsp._jspService(_0002ftest_jsp.java:47)at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)at 

Re: AW: AW: Why doesn't this work:

2001-05-31 Thread Terje Kristensen

You have understood it perfectly. 

To work around it, I put the url with all the parameters in a variable, then ran 
include on the variable. It worked somewhat, but I got the following output:

 Title Piping and valve material specification  Doc.no. 
L-SP-200  Operator Sec.no. 6
 Material data sheet: VC21  Project.no. Rev.no. D  Rev.date 
17.03.99  Status:  Page: 1 Of: 1 

 Title Piping and valve material specification  Doc.no. 
L-SP-200  Operator Sec.no. 6
 Material data sheet: VC22  Project.no. Rev.no. B  Rev.date 
01.06.94  Status:  Page: 1 Of: 1 

Error: 500
Location: /xsql/tek/advanced_section_result.jsp
Internal Servlet Error:

javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
tek._0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_38._jspService(_0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_38.java:129)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.lang.NullPointerException
at 
tek._0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_38._jspService(_0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_38.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Any ideas?

Terje K.




Using Realm

2001-05-31 Thread Hemant Singh

HI ALL:
Can any one tell me how to use Realm with tomcat.
Cheers
HEMANT

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Using Realm

2001-05-31 Thread Pernica, Jan

Which one?
You can use MemoryRealm, which loads user info from conf/tomcat-users.xml
or you can use JDBCRealm, which loads user info from database

After that you have to define your security constratins in the web.xml

Regards

Jan

On Thursday, May 31, 2001 1:10 PM, Hemant Singh [SMTP:[EMAIL PROTECTED]]
wrote:
 HI ALL:
 Can any one tell me how to use Realm with tomcat.
 Cheers
 HEMANT
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35 
 a year!  http://personal.mail.yahoo.com/


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






RE: Does Tomcat3.2 support http/1.1?

2001-05-31 Thread Randy Layman


Only if you upgrade to Tomcat 4.

 -Original Message-
 From: Jason Pollack [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 5:29 PM
 To: Tomcat-Users
 Subject: Does Tomcat3.2 support http/1.1?
 
 
 Hello,
 
 I've been trying to track down a curious browser caching problem, and
 discovered that Tomcat3.2.2 is sending back its responses as http/1.0.
 
 Is there a way to configure it to support the http/1.1 protocol?
 
 Thanks,
 -Jason-
 



RE: help me!

2001-05-31 Thread Randy Layman

java.lang.Runtime.exec(...)

 -Original Message-
 From: Vinicio Llumiquinga [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 7:22 PM
 To: [EMAIL PROTECTED]
 Subject: help me!
 
 
 Venkatesh Sangam wrote:
 
  Hi,
  I am using Tomcat with Apache ..
  I have a java Program which generates 10 requests per second
  this Java Program connects to the Servlet on the Tomcat server
  the dealy in the execution of the Servlet is 1000ms
 
  I have set the max No of requests the Apache server can 
 handle at once is
  5.(for testing)
 
  If  I execute my Java program ..it should so happen that 
 ..before the first
  ten requests are served the next 10 requests are generated 
 and should be
  waiting to be executed.
 
  but it so happens that.. before the first 10 requests get 
 executed, the next
  10 start executing(instead of being qued up) ..
 
  can anyone pleas tell me why is this happening
  is the Queue Last in First Out
  Please help
 
  thanks
  Venkatesh
 
  
 __
 ___
  Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.

I need to run a script the linux shell from a java bean.
Which is the class that run a program of operative system



IllegalAccessError, Unable to compile class for JSP

2001-05-31 Thread Kiss-Beck Jzsef

Hi!
 
 I have problems with the Jsp examples: (servlet examples are working fine)
 
 I use the JDK version 1.3.1  (Windows NT4 SP6).
 I installed Tomcat 3.2.1 , I set the environment variables as described in
Tomcat docs.

 By the jsp examples I get the following error:

Error: 500

Location: /examples/jsp/num/numguess.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: An
error has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


Stack trace in the MSDOS window:

java.lang.IllegalAccessError: try to access method
sun.tools.java.Identifier.setType(I)V from class sun.tools.java.Scanner
at sun.tools.java.Scanner.defineKeyword(Scanner.java:180)
at sun.tools.java.Scanner.clinit(Scanner.java:188)
at
sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:461)
at sun.tools.javac.Main.compile(Main.java:485)
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:138)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Tomcat.log:

2001-05-31 09:34:34 - Ctx( /examples ): JasperException: R( /examples +
/jsp/num/numguess.jsp + null) Unable to compile class for JSPerror: An error
has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).

Jasper.log:

2001-05-31 09:30:51 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Scratch dir for the JSP engine is:
D:\Apache\Tomcat\work\localhost_8080%2Fexamples
2001-05-31 09:30:52 - IMPORTANT: Do not modify the generated servlets
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:30:52 - Parent class loader is: AdaptiveClassLoader(  )
2001-05-31 09:34:33 - JspEngine -- /jsp/num/numguess.jsp
2001-05-31 09:34:33 -ServletPath: /jsp/num/numguess.jsp
2001-05-31 09:34:33 -   PathInfo: null
2001-05-31 09:34:33 -   RealPath:

RE: Ultradev login page problem with Apache

2001-05-31 Thread Dudley, Ian

Putting a return statement after the sendRedirect worked for me.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 31 May 2001 11:32
To: [EMAIL PROTECTED]
Subject: Ultradev login page problem with Apache


 JSP pages created using Ultradev use SendRedirect to bounce users to a 
 login page if they haven't logged in yet. This works just fine using 
 Tomcat alone but when accessing via Apache you get (although not 
 always) bits of the page you tried to acces followed by bits of HTTP 
 header followed by the login page.
 
 Has anyone solved this.
 
 Using Tomcat 3.2.1, mod_jserv connector.
 
 Anyone got opinions on Ultradev ? To me seems really quick to knock 
 out basic pages but I wonder how I'd add complex Java validation 
 without making a messy JSP page - would be nicer if it used servlets 
 too MVC style !
 
 Steve Quail.



TOMCAT_HOME\classes in 3.2.1

2001-05-31 Thread Anson To

Hi all,

When I'm editing the tomcat.bat under TOMCAT_HOME\bin 
I'm just noticed that the script includes
TOMCAT_HOME\classes in the classpath.  But the fact is
that there's *NO* TOMCAT_HOME\classes in 3.2.1!!  I'm
just curious... Any idea?

Many thanks!
Anson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: TOMCAT_HOME\classes in 3.2.1

2001-05-31 Thread Moin Anjum H.

Hi,

If you analize carefully you will notice TOMCAT_HOME is the Environment
variable that you have to set. Similar to CLASSPATH. If you don't set
then bat file takes the ..\ as current Tomcat Directory.

HTH
Moin.

Anson To wrote:

 Hi all,

 When I'm editing the tomcat.bat under TOMCAT_HOME\bin
 I'm just noticed that the script includes
 TOMCAT_HOME\classes in the classpath.  But the fact is
 that there's *NO* TOMCAT_HOME\classes in 3.2.1!!  I'm
 just curious... Any idea?

 Many thanks!
 Anson

 
 Do You Yahoo!?
 Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
 or your free @yahoo.ie address at http://mail.yahoo.ie




RE: TOMCAT_HOME\classes in 3.2.1

2001-05-31 Thread Kiss-Beck Jozsef

Hi!

There is something about TOMCAT_HOME\classes in the User's guide:

...

The Tomcat directory structure
...
Additionally you can, or Tomcat will, create the following directories:

work:  Automatically generated by Tomcat, this is where Tomcat places
intermediate files (such as compiled JSP files) during it's work. If you
delete this directory while Tomcat is running you will not be able to
execute JSP pages.
  
classes:  You can create this directory to add additional classes to the
classpath. Any class that you add to this directory will find it's place in
Tomcat's classpath.  

...

MfG / Best regards

Jozsef Kiss-Beck
Sysdata CSS IN INE3

 -Original Message-
 From: Moin Anjum H. [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 2:12 PM
 To: [EMAIL PROTECTED]
 Subject: Re: TOMCAT_HOME\classes in 3.2.1
 
 
 Hi,
 
 If you analize carefully you will notice TOMCAT_HOME is the 
 Environment
 variable that you have to set. Similar to CLASSPATH. If you don't set
 then bat file takes the ..\ as current Tomcat Directory.
 
 HTH
 Moin.
 
 Anson To wrote:
 
  Hi all,
 
  When I'm editing the tomcat.bat under TOMCAT_HOME\bin
  I'm just noticed that the script includes
  TOMCAT_HOME\classes in the classpath.  But the fact is
  that there's *NO* TOMCAT_HOME\classes in 3.2.1!!  I'm
  just curious... Any idea?
 
  Many thanks!
  Anson
 
  
  Do You Yahoo!?
  Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
  or your free @yahoo.ie address at http://mail.yahoo.ie
 



Re: jsp:usebean

2001-05-31 Thread Egidijus Drobavicius

Nope, but this is not actually var name. This is key for the hashtable.
And if i'd like to use SAME bean in two different places, i have to use SAME
key to retrieve the bean, i.e.
jsp:useBean id=myHandler scope=session class=MyHandler /
jsp:useBean id=myHandler1 scope=session class=MyHandler /
will create 2 objects and place them to session hash;
As long as the project is maintained by few people, i'd like to have these
var names defined to avoid mistyping and similar problems (you must admin,
that it is much easier to get compile time error saying that ATTR_MY_HANDLEW
is not defined than debug the code and find out that some person wrote
getAttribute (myHandlew))

Maybe i'm wrong, but this is my attitude :)
Regards,
Egidijus


- Original Message -
From: Edwin Martin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 11:21 AM
Subject: Re: jsp:usebean


 Egidijus,

   I do hate using same attribute
 in several places as it definetly leads to mistakes (i.e. I will not use
 jsp:useBean id=myHandler scope=session class=MyHandler /

 You have a strange way of thinking, friend,

 You have to look at myHandler as a variable name.

 Do you store the name of a variable in a constant to clean up
 you code?

 Bye,
 Edwin Martin.






RE: admin console ???

2001-05-31 Thread Kumar, Amit

Ajit,
 
Set  
trusted=true
password=password
 
for Context path=/admin in server.xml
 
and add 
 
user name=user-id password=password roles=admin/
 
to tomcat-users.xml
 
Thanks
Amit
-Original Message-
From: Ajit Bhat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 3:19 AM
To: [EMAIL PROTECTED]
Subject: admin console ???


31/5/2001
 
hi all,
 
I would like to know as to how to install and setup admin console on any
client machine for tomcat server 3.2.
 
I tried accessing the link Context Admin in Tomcat Administration Tools
section, but it asks for username  password which i do not know. how do i
proceed ?
 
regards,
Ajit



JSP and Javascript

2001-05-31 Thread Sulman . Jeff

Can I open a Jsp from the JavaScript OPEN function?
For example I want to open a jsp from a html form when a button is pressed.
The code looks like this:

input type = button value = Update onclick = open
('igce/jsp/update.jsp?testParam=1222','newwindow')

When I press the button, Netscape opens up a download file dialogue box.

I can run the jsp alone but not in an HTML page.  All the examples I have
seen have html run a servlet and the servlet forwards the JSP.

Thanks

Jeff Sulman




RE: JSP and Javascript

2001-05-31 Thread Pernica, Jan

JSP behaves as a normal HTML/servlet page

On Thursday, May 31, 2001 2:41 PM, [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]] wrote:
 Can I open a Jsp from the JavaScript OPEN function?
 For example I want to open a jsp from a html form when a button is
pressed.
 The code looks like this:
 
 input type = button value = Update onclick = open
 ('igce/jsp/update.jsp?testParam=1222','newwindow')
 
 When I press the button, Netscape opens up a download file dialogue box.
 
 I can run the jsp alone but not in an HTML page.  All the examples I have
 seen have html run a servlet and the servlet forwards the JSP.
 
 Thanks
 
 Jeff Sulman


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






AW: AW: AW: Why doesn't this work:

2001-05-31 Thread Ralph Einfeldt

Have a look at line 68 of
_0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsecti
on_0005fresult_jsp_38.java
to find the offendind code the jsp.

 -Ursprüngliche Nachricht-
 Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 31. Mai 2001 13:38
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: AW: Why doesn't this work:
snip/
 Root cause: 
 java.lang.NullPointerException
   at 
 tek._0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspa
 dvanced_0005fsection_0005fresult_jsp_38._jspService(_0002ftek_
 0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fs
 ection_0005fresult_jsp_38.java:68)
   at 
snip/



Re: admin console ???

2001-05-31 Thread Ajit Bhat

yes, the solution given by amit works ... i got access to console but all
the buttons are giving errors on click

also, actually i wanted access to console so that i could stop / start the
tomcat server from the console ... but unfortunately i think there is no
provision to do that thr' admin console ... my tomcat is installed on linux
and so is there any GUI / method to stop/ start tomcat from my client
without logging in as superuser to the linux server as i do not wish to
disturb my system admin who has the super user rights to log on everytime to
the linux server  stop/start it.

thanx,
ajit

- Original Message -
From: Kumar, Amit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 5:54 PM
Subject: RE: admin console ???


 Ajit,

 Set
 trusted=true
 password=password

 for Context path=/admin in server.xml

 and add

 user name=user-id password=password roles=admin/

 to tomcat-users.xml

 Thanks
 Amit
 -Original Message-
 From: Ajit Bhat [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 3:19 AM
 To: [EMAIL PROTECTED]
 Subject: admin console ???


 31/5/2001

 hi all,

 I would like to know as to how to install and setup admin console on any
 client machine for tomcat server 3.2.

 I tried accessing the link Context Admin in Tomcat Administration Tools
 section, but it asks for username  password which i do not know. how do i
 proceed ?

 regards,
 Ajit





RE: JSP and Javascript

2001-05-31 Thread BARRAUD Valérie
Title: RE: JSP and Javascript






 All the examples I have seen have html run a servlet and the servlet forwards the JSP. 


This is the right recommended way to do. 





Re:certificate for tomcat and ssl

2001-05-31 Thread Twylite

Hi

Has someone configured tomcat to work with SSL without use APACHE server? I've try 
lot of things and 
nothing has worked, i'm seeking for all the steps to generated certificate and 
configure tomcat to work with it. 
Can someone help me?


I am running Tomcat 3.2.1 (as its own webserver) under Windows 2000 with Sun's JDK 
1.3.  I have SSL 
working successfully.  For the most part following the tomcat-ssl HOWTO is the right 
way to go.  This is what I 
did (if I remember correctly):

Download the JSSE jar file from sun (http://java.sun.com/products/jsse/).  Place the 
.jar file in your 
$JAVA_HOME/jre/lib/ext directory, as well as in $TOMCAT_HOME/lib .  You shouldn't need 
both, but I have 
class-not-found problems otherwise.

Tomcat 3.2.1 is compiled with SSL support, as long as it finds that jsse.jar file, so 
that's all okay.

Find the file $JAVA_HOME/jre/lib/security/java.security.  There is probably already a 
line starting with 
security.provide.2 - comment it out with a #, and add the line:
security.provider.2=com.sun.net.ssl.internal.ssl.Provider 

Now create yourself an SSL certificate, using the Java keytool utility.  You should 
run:
keytool -genkey -alias tomcat
Answer all the questions, and use the same password for the keystore and the key you 
generate!

Now you need to edit your $TOMCAT_HOME/conf/server.xml file, and add in the SSL 
configuration:
(if you have an HTML browser, the next bit, which is XML, will be missing.  Have a 
nice day.)

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port 
value=8443/
Parameter name=socketFactory 
value=org.apache.tomcat.net.SSLSocketFactory /
Parameter name=keypass value=mypass/
/Connector

Now restart your tomcat server, and watch as it hopefully finds everything and starts 
listening for SSL 
connections on port 8443.

Twylite




RE: JSP and Javascript

2001-05-31 Thread Todd Sussman

This is a warning for you and to inform the other members of this list
of what was causing our problems regarding SSL.  When using IE5.5 and
Javascript on a webserver with SSL you will receive an error that you
are d/ling secure and unsecure data.  This is a bug in IE5.5.  A
possible workaround is to replace the javascript: psuedo-protocol with
onclick.  We are beggining to test this and I will inform the group as
to the results.  Please keep in mind I am a system's admin and not a
programmer, so my terms may not be 100%.

Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: JSP and Javascript


Can I open a Jsp from the JavaScript OPEN function?
For example I want to open a jsp from a html form when a button is
pressed.
The code looks like this:

input type = button value = Update onclick = open
('igce/jsp/update.jsp?testParam=1222','newwindow')

When I press the button, Netscape opens up a download file dialogue box.

I can run the jsp alone but not in an HTML page.  All the examples I
have
seen have html run a servlet and the servlet forwards the JSP.

Thanks

Jeff Sulman




Re:certificate for tomcat and ssl

2001-05-31 Thread Twylite

Oooh yeah, one other thing.

You will notice that I don't specify the keystore.  Tomcat uses the default keystore 
for the user executing Tomcat, 
unless you specify the keystore in the server.xml file.  I am logged in an run tomcat 
as Administrator (dev box, 
shuddup about the security ;p ), and start tomcat manually (I don't run it as a 
service).  My keystore will actually be 
$USER_HOME/.keystore, which works out to something like 
/winnt/profiles/administrator/.keystore, but that's a 
nasty thing to code into your server.xml .

If you have a keystore stored elsewhere, specify the location when you use keytool, 
and specify the location in the 
server.xml .

Twylite




RE: certificate for tomcat and ssl

2001-05-31 Thread Todd Sussman

We use Tomcat 3.2.1 with IIS5.0 on Win2k.  We setup our Tomcat the same
way and all works well here too.

Todd

-Original Message-
From: Twylite [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: Re:certificate for tomcat and ssl


Hi

Has someone configured tomcat to work with SSL without use APACHE
server? I've try lot of things and 
nothing has worked, i'm seeking for all the steps to generated
certificate and configure tomcat to work with it. 
Can someone help me?


I am running Tomcat 3.2.1 (as its own webserver) under Windows 2000 with
Sun's JDK 1.3.  I have SSL 
working successfully.  For the most part following the tomcat-ssl HOWTO
is the right way to go.  This is what I 
did (if I remember correctly):

Download the JSSE jar file from sun
(http://java.sun.com/products/jsse/).  Place the .jar file in your 
$JAVA_HOME/jre/lib/ext directory, as well as in $TOMCAT_HOME/lib .  You
shouldn't need both, but I have 
class-not-found problems otherwise.

Tomcat 3.2.1 is compiled with SSL support, as long as it finds that
jsse.jar file, so that's all okay.

Find the file $JAVA_HOME/jre/lib/security/java.security.  There is
probably already a line starting with 
security.provide.2 - comment it out with a #, and add the line:
security.provider.2=com.sun.net.ssl.internal.ssl.Provider 

Now create yourself an SSL certificate, using the Java keytool
utility.  You should run:
keytool -genkey -alias tomcat
Answer all the questions, and use the same password for the keystore and
the key you generate!

Now you need to edit your $TOMCAT_HOME/conf/server.xml file, and add in
the SSL configuration:
(if you have an HTML browser, the next bit, which is XML, will be
missing.  Have a nice day.)

Connector
className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port 
value=8443/
Parameter name=socketFactory 
value=org.apache.tomcat.net.SSLSocketFactory /
Parameter name=keypass value=mypass/
/Connector

Now restart your tomcat server, and watch as it hopefully finds
everything and starts listening for SSL 
connections on port 8443.

Twylite




Re: JSP and Javascript

2001-05-31 Thread M H Rao

use window.open()

mhrao
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 6:11 PM
Subject: JSP and Javascript


 Can I open a Jsp from the JavaScript OPEN function?
 For example I want to open a jsp from a html form when a button is
pressed.
 The code looks like this:

 input type = button value = Update onclick = open
 ('igce/jsp/update.jsp?testParam=1222','newwindow')

 When I press the button, Netscape opens up a download file dialogue box.

 I can run the jsp alone but not in an HTML page.  All the examples I have
 seen have html run a servlet and the servlet forwards the JSP.

 Thanks

 Jeff Sulman





RE: JSP and Javascript

2001-05-31 Thread Sulman . Jeff


So am I doing something wrong?


   
   
Pernica,  
   
Jan To: [EMAIL PROTECTED]
   
pernica@dcb.cc:   
   
cz  Subject: RE: JSP and Javascript   
   
   
   
05/31/01   
   
07:40 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




JSP behaves as a normal HTML/servlet page

On Thursday, May 31, 2001 2:41 PM, [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]] wrote:
 Can I open a Jsp from the JavaScript OPEN function?
 For example I want to open a jsp from a html form when a button is
pressed.
 The code looks like this:

 input type = button value = Update onclick = open
 ('igce/jsp/update.jsp?testParam=1222','newwindow')

 When I press the button, Netscape opens up a download file dialogue box.

 I can run the jsp alone but not in an HTML page.  All the examples I have
 seen have html run a servlet and the servlet forwards the JSP.

 Thanks

 Jeff Sulman


__
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is intended solely for the addressee and is
confidential.










Re: AW: AW: AW: Why doesn't this work:

2001-05-31 Thread Terje Kristensen

I don't see anything wrong with it. Do you?




package tek;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
import java.util.*;


public class 
_0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_42
 extends HttpJspBase {


static {
}
public 
_0002ftek_0002fadvanced_0005fsection_0005fresult_0002ejspadvanced_0005fsection_0005fresult_jsp_42(
 ) {
}

private static boolean _jspx_inited = false;

public final void _jspx_init() throws JasperException {
}

public void _jspService(HttpServletRequest request, HttpServletResponse  response)
throws IOException, ServletException {

JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String  _value = null;
try {

if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType(text/html;charset=8859_1);
pageContext = _jspxFactory.getPageContext(this, request, response,
, true, 8192, true);

application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();

// HTML // begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(0,32);to=(8,0)]
out.write(\r\n\r\nhtml\r\n\thead\r\n\t\ttitleLSP200 - Section 
Selection - Result/title\r\n\t/head\r\n\tlink rel=\STYLESHEET\ 
type=\text/css\ href=\includes/stylesheet.css\/\r\n\tbody 
style=\font-family:Tahoma;font-size:8pt;\\r\n);
// end
// begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(8,2);to=(18,4)]
 
String opn  = request.getParameter(opn);
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
String[] paramValues = request.getParameterValues(paramName);
if (paramValues.length == 1) {
String paramValue = paramValues[0];
int length  = paramValue.length();
String fil = advanced_result_ + paramName + 
.xsql?opn= + opn +  + paramName + = + paramValue.substring(1,length) +  + 
paramName + R= + paramValue.substring(0,1);
 
// end
// HTML // begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(18,6);to=(19,5)]
out.write(\r\n\t\t\t \t);
// end
// begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(19,5);to=(19,50)]
{
String _jspx_qStr = ;
pageContext.include( fil  + _jspx_qStr);
}
// end
// HTML // begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(19,50);to=(20,0)]
out.write(\r\n);
// end
// begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(20,2);to=(23,3)]


if (paramValue.length() == 0) { 

// end
// HTML // begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(23,5);to=(23,10)]
out.write(error);
// end
// begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(23,12);to=(29,4)]
 
}
} else { 
for(int i=0; iparamValues.length; i++) { 
int length  = paramValues[i].length();
String fil = advanced_result_ + paramName + 
.xsql?opn= + opn +  + paramName + = + paramValues[i].substring(1,length) +  
+ paramName + R= + paramValues[i].substring(0,1);
 
// end
// HTML // begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(29,6);to=(30,5)]
out.write(\r\n\t\t\t \t);
// end
// begin 
[file=C:\\xsql\\tek\\advanced_section_result.jsp;from=(30,5);to=(30,50)]
  

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Brandon Cruz

So what is the correct way to redirect?  I have started using relative links
to redirect and it seems to fix the problem.  Is this just coincidence, or
is there an explanation for that?

Brandon

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 6:38 PM
To: [EMAIL PROTECTED]
Subject: RE: response.sendRedirect vs. requestDispatcher.forward


If you webserver is serving in /usr/local/apache/htdocs, you are redirecting
to /usr/local/apache/htdocs/login.jsp, which is handled in this example by
apache, who doesn't know anything about jsp files. (that's why you got
tomcat in the first place...)

Mvgr,
Martin

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 1:31 AM
 To: [EMAIL PROTECTED]
 Subject: RE: response.sendRedirect vs. requestDispatcher.forward


 Has anyone figured out why response.sendRedirect(/login.jsp)
 will not work
 when using apache-tomcat with mod_jk?  It gets all screwed up and prints a
 bunch of header information out to the page...is there a way around it
 besides using javascript to redirect the page?

 Brandon Cruz

 -Original Message-
 From: A Yang [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: RE: response.sendRedirect vs. requestDispatcher.forward


 Hi,

 Thanks for the help. As it turns out, switching
 between requestDispath.forward and response.redirect
 will trip you up because of differences in what they
 expect as their parameters.

 RequestDispatch.forward takes a URL that is a RELATIVE
 path but also requires a leading slash.

 If you are brilliant (like myself) and you change your
 code to use response.encodeRedirectURL but you KEEP
 that leading slash, well then. Your response will
 treat it like an absolute path and wind up plunking
 you into a different servlet context, which Tomcat
 will generate a new session for.

 Thanks again for your help,
 Andy

 --- Martin van den Bemt [EMAIL PROTECTED] wrote:
  A different hostname creates a new session which
  could be the problem here..
  (so http://www.example.com and http://example.com
  create a different session even it's the same
  server/context/etc..
 
  Mvgr,
  Martin
 
   -Original Message-
   From: Alex Fernandez [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, May 29, 2001 4:57 PM
   To: [EMAIL PROTECTED]
   Subject: Re: response.sendRedirect vs.
  requestDispatcher.forward
  
  
   Conceptually, requestDispatcher.forward() is
  different from
   response.sendRedirect().
  
   In forward(), you are moving inside the same
  webapp, and as such it
   doesn't even reach the client browser. The session
  is maintained.
  
   In sendRedirect(), you're instead moving across
  webapps, and it's the
   browser that redirects to the specified location.
  In fact, it doesn't
   even need to be another servlet, you may redirect
  to an ASP or a static
   page. New request and response are created.
  
   It seems strange that the session is not
  maintained, though, since both
   requests come from the same browser. Perhaps it's
  a bug?
  
   Un saludo,
  
   Alex.
  
   A Yang wrote:
   
Hi All,
   
Does anyone know offhand whether the Java
  Servlet
specification requires a new HttpSession to be
  created
when using HttpServletResponse.sendRedirect()?
   
In a servlet, I was using:
   
   
  
 
 getServletConfig().getServletContext().getRequestDispatcher(/Resu
   lt.jsp).forward(req,
resp);
   
at the end of a sequence of pages/servlets, but
  I
wanted to replace it with
   
response.sendRedirect(/Result.jsp);
   
instead. The result page prints out the contents
  of
several javabeans which are stored in the
  session.
   
This worked fine when all I used were
requestDispatcher.forward but with
response.sendRedirect(), all of my session
  attributes
are gone! In fact, the session id is different
  after
the sendRedirect.
   
I'm pretty sure the session is supposed to
  survive
across any series of GET's and POST's until it
  is
invalidated explicitly (or timed out).
   
Any thoughts? I'm using Tomcat 3.2.1
   
Thanks.
   
   
 
 ___
Do You Yahoo!?
Get your free @yahoo.ca address at
  http://mail.yahoo.ca
  
 


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







Sessions

2001-05-31 Thread Pablo Trujillo

Hello again,
Excuse me for the nuisances but I have problems with the sessions. Yesterday
Randy answered me that to discover on the sessions of the Tomcat I should
see the class org.Apache.tomcat.session.StandarManager. I have been able to
discover that class is in Webserver.jar.
Where I can get the code of that library?

Another topic. I can not receive any message of the list. Why will it be?
Pablo
-
Click here for Free Video!!
http://www.gohip.com/free_video/





Re: Re:certificate for tomcat and ssl

2001-05-31 Thread François Andromaque

So, have i followed the same instructions?

i've inserted jsse.jar, jnet.jar, jcert.jar in both $JAVA_HOME/jre/lib/ext
and $TOMCAT_HOME/lib

security.provider.2=com.sun.net.ssl.internal.ssl.Provider

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port value=8443/
Parameter name=socketFactory
value=org.apache.tomcat.net.SSLSocketFactory /
Parameter name=keystore
value=$JAVA_HOME/jre/lib/security/jssecacerts /
Parameter name=keypass value=xx /
Parameter name=clientAuth value=false /
/Connector

keytool -genkey -alias -keystrore
$JAVA_HOME/jre/lib/security/jssecacerts -keypass xx

I've restarted my tomcat server and it starts listening for SSL connections
on port 8443.
(Starting tcp endpoint on 8443 with
org.apache.tomcat.service.http.HttpConnectionHandler is written)
but a client can't get a connection to my server by the URL
https://server_ip_adr:8443
(no problem with http://server_ip_adr:8443)




- Original Message -
From: Twylite [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 4:49 PM
Subject: Re:certificate for tomcat and ssl


 Oooh yeah, one other thing.

 You will notice that I don't specify the keystore.  Tomcat uses the
default keystore for the user executing Tomcat,
 unless you specify the keystore in the server.xml file.  I am logged in an
run tomcat as Administrator (dev box,
 shuddup about the security ;p ), and start tomcat manually (I don't run it
as a service).  My keystore will actually be
 $USER_HOME/.keystore, which works out to something like
/winnt/profiles/administrator/.keystore, but that's a
 nasty thing to code into your server.xml .

 If you have a keystore stored elsewhere, specify the location when you use
keytool, and specify the location in the
 server.xml .

 Twylite




Apache + Tomcat with mod_jk and Virtual Hosts

2001-05-31 Thread Adrian Almenar

Please i need help with this can anyone anwser me
about this issue ??


With Apache and tomcat working with mod_jk:

Its possible to map every virtual host (On Apache)
to a different webapp on tomcat ???

I.E.

Apache Virtual Host: 123.myhost.com ip: 10.0.0.2
Tomcat Webbapp : tomcat33\webapps\123

Apache Virtual Host: 789.myhost.com ip: 10.0.0.2
Tomcat Webbapp : tomcat33\webapps\789

thanks in advance !!!




Get a JDBC DataSource via JNDI ( using Poolman ) - NEED HELP

2001-05-31 Thread Patrick . Pierra

We are trying to get a DataSource with a JNDI lookup.

We want to use PoolMan for this and JNP (as JNDI server)

Our questions
--
1. How to setup the JNP server or another JNDI server with Tomcat ?
2. How to install Poolman, we have copied the poolman.jar, install the
poolman.xml file and nothing sounds happening ?
3. We have a servlet that start at the starting of Tomcat, this one already
use
to DataSource.

What's happening currently
---
We have copy the poolman.jar and set the classpath
We have copy the jndi.jar and set the classpath
We have copy the jnp.jar and set the classpath
We have copy the jndi.properties in the TOMCAT/conf folder
We have copy the jnp.properties in the TOMCAT/conf folder
We have copy the poolman.xml in the TOMCAT/conf folder and the TOMCAT/ (We
do not know where to put this file !)

We have the servlet that do :

 InitialContext tContext = new InitialContext();
 DataSource tDataSource = (DataSource) tContext.lookup(
tDataSourceJNDIName );

We have a crash during the lookup, we have this message :

javax.naming.ServiceUnavailableException: Connection refused: no further
information.  Root exception is java.net.ConnectException: Connection
refused: no further information
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 java.io.IOException(java.lang.String)
 java.net.SocketException(java.lang.String)
 java.net.ConnectException(java.lang.String)
 void java.net.PlainSocketImpl.socketConnect(java.net.InetAddress, int)
 void java.net.PlainSocketImpl.doConnect(java.net.InetAddress, int)
 void java.net.PlainSocketImpl.connectToAddress(java.net.InetAddress,
int)
 void java.net.PlainSocketImpl.connect(java.net.InetAddress, int)
 java.net.Socket(java.net.InetAddress, int, java.net.InetAddress, int,
boolean)
 java.net.Socket(java.lang.String, int)
 void org.jnp.interfaces.NamingContext.checkRef(java.util.Hashtable)
 java.lang.Object
org.jnp.interfaces.NamingContext.lookup(javax.naming.Name)
 java.lang.Object
org.jnp.interfaces.NamingContext.lookup(java.lang.String)
 java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)


Can someone help us, we have try a lot, read the documentation and the FAQ,
but
without success, please HELP US 


Thanks a lot for all your help

Patrick Pierra




archives

2001-05-31 Thread SAMEUNIE

hi, i'd like to know where i can view the archives ?

thanks


 -Message d'origine-
 De:   Pablo Trujillo [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 30 mai 2001 18:08
 À:[EMAIL PROTECTED]
 Objet:Session in Tomcat
 
 Hello friends,
 I need information about how Tomcat assign the numbers of ID for each
 session.
 I also need to know where is  the Cookie JSessionID stored.
 I wait you can help me and  thank you
 Pablo



RE: mod_jk causing httpd blowout??

2001-05-31 Thread GOMEZ Henri

Change :

JkLogLevel  warn 

by

JkLogLevel  error

Will help reduce log activity 

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



-Original Message-
From: Marcus Dillury [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 7:35 AM
To: [EMAIL PROTECTED]
Subject: mod_jk causing httpd blowout??


Hello,

We have a production machine, running RH 7 and  apache-1.3.14-3.
We have recently upgraded the jsp server from Jrun 2.3 to
tomcat-3.2.2-beta3.1.

When we use the mod_jk/ajp13  connector in apache to talk to tomcat we
experince huge load averages  30, and http CPU uses  40%.

The set up is basically as follows:

In httpd.conf

##Load tomcat relevant modules. mod_jk config
LoadModule  jk_module modules/mod_jk.so

AddModule   mod_jk.c
##
## configure mod_jk
JkWorkersFile   /var/tomcat/conf/workers.properties
JkLogFile   /var/tomcat/logs/mod_jk.log
JkLogLevel  warn
JkMount /servlet/*ajp13

and with virtual servers I have set:
VirtualHost 192.168.1.19:80
...
JkMount /*.jsp  ajp13
JkMount /servlet/*ajp13
...
DirectoryMatch /WEB-INF
AllowOverride None
deny from all
/DirectoryMatch
...
/VirtualHost


some of our web-applications also call a postgres database located on
another machine.

How ever when we take out the mod_jk connector, and use a simple page
redirect to port 8080 (tomcat stand-alone.) We do not have 
this problem.
load averages are typically less than 2 with this setup.
Unfortunatly this configuration is a hack solution,
and I would like to find out why mod_jk is causing such a 
tremendous load
on the system.
Is it a bug with ajp13/ mod_jk or is it my configuration?
I didn't have this problem with Jrun. As it stands tomcat isn't stable
enough to use in a production environment.
Please advise.

Thanks in advance.

--Marcus





Re: archives

2001-05-31 Thread Bo Xu

[EMAIL PROTECTED] wrote:

 hi, i'd like to know where i can view the archives ?

 thanks
 [...]

Hi :-)

- http://jakarta.apache.org/site/mail2.html
- click Tomcat-User Archives
- http://mikal.org/interests/java/tomcat/index.jsp


Bo
may.31, 2001






Re: archives

2001-05-31 Thread Franois Andromaque

http://marc.theaimsgroup.com/
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 4:19 PM
Subject: archives


 hi, i'd like to know where i can view the archives ?

 thanks


  -Message d'origine-
  De: Pablo Trujillo [SMTP:[EMAIL PROTECTED]]
  Date: mercredi 30 mai 2001 18:08
  À: [EMAIL PROTECTED]
  Objet: Session in Tomcat
 
  Hello friends,
  I need information about how Tomcat assign the numbers of ID for each
  session.
  I also need to know where is  the Cookie JSessionID stored.
  I wait you can help me and  thank you
  Pablo




How can I redirect a page when using apachemod_jktomcat

2001-05-31 Thread Brandon Cruz

Is there any way I can redirect a jsp page using this configuration without
having apache confused and printing out all the headers?




JSP CUSTOM TAGS

2001-05-31 Thread Peter Giannopoulos

Hello all,

Can anyone show me an example of accesing a session variable in a custom
tag?
Or at least point me towards documentation that explains it?

(I have an object that I store in a session variable, I need to retrieve in
one of my custom tags)


--
 Peter Giannopoulos,Software Designer
 Gemplus Software,  Advanced Projects Group

 Phone: +15147322434
 Fax:   +15147322401
 Gemplus Canada Inc., Http://www.gemplus.com



I hear and I forget,
I see and I remember,
I do and I understand.



---


BEGIN:VCARD
VERSION:2.1
N:Giannopoulos;Peter
FN:Peter Giannopoulos
ORG:Gemplus Canada inc.;CTO Group
TITLE:Software Developer
NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A--- Codito, ergo sum - I code, therefore I am ---
TEL;WORK;VOICE:514-732-2434
TEL;HOME;VOICE:N/A
TEL;CELL;VOICE:N/A
TEL;PAGER;VOICE:N/A
TEL;WORK;FAX:514-732-2301
ADR;POSTAL:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada
LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:3 Place du Commerce=0D=0AIle des soeurs, Quebec H3E 1H7=0D=0ACanada
URL:http://www.gemplus.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:2926T190330Z
END:VCARD



Re: Re:certificate for tomcat and ssl

2001-05-31 Thread François Andromaque

After have done it, need the client to do something? How can the server
identify the client?
Because the error the browser return is : Connexion refused!
- Original Message -
From: Twylite [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 4:47 PM
Subject: Re:certificate for tomcat and ssl


 Hi

 Has someone configured tomcat to work with SSL without use APACHE server?
I've try lot of things and
 nothing has worked, i'm seeking for all the steps to generated certificate
and configure tomcat to work with it.
 Can someone help me?


 I am running Tomcat 3.2.1 (as its own webserver) under Windows 2000 with
Sun's JDK 1.3.  I have SSL
 working successfully.  For the most part following the tomcat-ssl HOWTO is
the right way to go.  This is what I
 did (if I remember correctly):

 Download the JSSE jar file from sun (http://java.sun.com/products/jsse/).
Place the .jar file in your
 $JAVA_HOME/jre/lib/ext directory, as well as in $TOMCAT_HOME/lib .  You
shouldn't need both, but I have
 class-not-found problems otherwise.

 Tomcat 3.2.1 is compiled with SSL support, as long as it finds that
jsse.jar file, so that's all okay.

 Find the file $JAVA_HOME/jre/lib/security/java.security.  There is
probably already a line starting with
 security.provide.2 - comment it out with a #, and add the line:
 security.provider.2=com.sun.net.ssl.internal.ssl.Provider

 Now create yourself an SSL certificate, using the Java keytool utility.
You should run:
 keytool -genkey -alias tomcat
 Answer all the questions, and use the same password for the keystore and
the key you generate!

 Now you need to edit your $TOMCAT_HOME/conf/server.xml file, and add in
the SSL configuration:
 (if you have an HTML browser, the next bit, which is XML, will be missing.
Have a nice day.)

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

value=org.apache.tomcat.service.http.HttpConnectionHandler/
 Parameter name=port
 value=8443/
 Parameter name=socketFactory
 value=org.apache.tomcat.net.SSLSocketFactory /
 Parameter name=keypass value=mypass/
 /Connector

 Now restart your tomcat server, and watch as it hopefully finds everything
and starts listening for SSL
 connections on port 8443.

 Twylite




Problem with inprocess configuration

2001-05-31 Thread John Baj

I am working on a Win98 platform, jakarta-tomcat-3.2.2, and jdk1.3.0_01
and trying to get the inprocess container to work.  I took the
jni-servers.xml and jni-workers.properties found in the conf directory,
made the necessary changes to conform to my path locations, and saved
them as servers.xml and workers.properties. However, everytime I start
up Tomcat, I get:

Including all jars in C:\jakart~1.2\lib in your CLASSPATH.

Using CLASSPATH:
C:\jakart~1.2\classes;C:\jakart~1.2\lib\SERVLET.JAR;C:\jakart~1

.2\lib\PARSER.JAR;C:\jakart~1.2\lib\JAXP.JAR;C:\jakart~1.2\lib\ANT.JAR;C:\jakart

~1.2\lib\WEBSER~1.JAR;C:\jakart~1.2\lib\JASPER.JAR;c:\jdk1.3.0_01\lib\tools.jar

2001-05-31 01:00:46 - ContextManager: Adding context Ctx( /examples )
2001-05-31 01:00:46 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages 2001-05-31
01:00:46 -
ContextManager: Adding context Ctx( myhost.org:/jspages )

2001-05-31 01:00:46 - ContextManager: Adding context Ctx(  )
2001-05-31 01:00:46 - ContextManager: Adding context Ctx( /test )
Failed to loadLibrary()
c:\jakarta-tomcat-3.2.2\bin\win32\i386\jni_connect.dll
Library c:\jakarta-tomcat-3.2.2\bin\win32\i386\jni_connect.dll loaded
FATAL:java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.service.JNIEndpointConnector.start(JNIEndpointConne
ctor.java:110)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Any Clues?

John




I tried to install Tomcat now Apache doesn't Work !!! Please help!

2001-05-31 Thread Kris Vale

Hi all,

After installing tomcat my apache server went down and now I can't get it to
start again.

After typing apachectl start I get the following message:


[Thu May 31 09:59:32 2001] [emerg] dyld found undefined symbol:
_ap_os_is_path_absolute
Aborting.

Abort trap
/usr/sbin/apachectl start: httpd could not be started

Anyone have any ideas whats going on here?

Thanks in advance.




RE: struts in tomcat 3.3-m3

2001-05-31 Thread Steve Salkin
Title: RE: struts in tomcat 3.3-m3





Ignacio J. Ortega wrote:
 you already has one inside the TOMCAT_HOME%/lib/container .. the files
 jaxp.jar + parser.jar...copy this files to your apps 
 web-inf/lib dir...
 
 or use xerces  http://xml.apache.org/xerces-j/index.html 


Hi Ignacio-


Thanks for the advice! I have placed parser.jar and jaxp.jar in the struts-example/WEB-INF/lib and now it correctly deploys and runs.

Do you know if this is the new requirement going forward in 3.3.x? If so, I'll mention it on the struts lists so that the deployment instructions for tomcat 3.3.x can include this information.

Thanks again,


S-





Re: JSP CUSTOM TAGS

2001-05-31 Thread Sam Newman

The taglib sutff provided by the apache taglib project can do this - I think
there is one specifically for session information retrieval. Check the
taglibs project on the apache.org webpage.

sam
- Original Message -
From: Peter Giannopoulos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 4:01 PM
Subject: JSP CUSTOM TAGS


 Hello all,

 Can anyone show me an example of accesing a session variable in a custom
 tag?
 Or at least point me towards documentation that explains it?

 (I have an object that I store in a session variable, I need to retrieve
in
 one of my custom tags)


 --
  Peter Giannopoulos,Software Designer
  Gemplus Software,  Advanced Projects Group

  Phone: +15147322434
  Fax:   +15147322401
  Gemplus Canada Inc., Http://www.gemplus.com





Re: JSP CUSTOM TAGS

2001-05-31 Thread Anne Dirkse

Peter --

All that you need to do is get your PageContext, then call getSession()  
on that. Then you've got your session and can retrieve stuff from it.
Here's some pseudo-code to explain:

 private PageContext pageContext;

public void setPageContext(PageContext pageContext) {
this.pageContext = pageContext;
   }

public int doStartTag() throws JspException {
   HttpSession session = pageContext.getSession();
   Object objTarget = session.getAttribute(target);
   return SKIP_BODY;
}


public void release() {
pageContext = null;

}

Hope that helps...
Anne

Peter Giannopoulos wrote:
 
 Hello all,
 
 Can anyone show me an example of accesing a session variable in a custom
 tag?
 Or at least point me towards documentation that explains it?
 
 (I have an object that I store in a session variable, I need to retrieve in
 one of my custom tags)
 
 --
  Peter Giannopoulos,Software Designer
  Gemplus Software,  Advanced Projects Group
 
  Phone: +15147322434
  Fax:   +15147322401
  Gemplus Canada Inc., Http://www.gemplus.com
 
 I hear and I forget,
 I see and I remember,
 I do and I understand.
 
 ---



TWIMC: username and password in session and jdbc Realm

2001-05-31 Thread me

Finally it was easy:

JDBCRealm stores the j_username and j_password as session variable and yout
can get it via session.getAttribute either as JSP scriplet or as servlet.
Just store it or get it through the first page after login. Sometimes it is
worth studying the source code.. (here Securitytools.java). I do not know
wether to store it as session variable is a slight security hole..maybe,
but in Intranet environment the benefits of knowing the username and
password - esp. for DB connections which are synchronized with the database
access userids - is beyond security wholes.

Regards
  Thomas




Re: Re:certificate for tomcat and ssl

2001-05-31 Thread Twylite

Hi,

value=$JAVA_HOME/jre/lib/security/jssecacerts /
Parameter name=keypass value=xx /

In your server.xml maybe try hard-coding the value of $JAVA_HOME ... I'm honestly not 
sure if it does the 
substitution correctly (although its not complaining ...).

(Starting tcp endpoint on 8443 with
org.apache.tomcat.service.http.HttpConnectionHandler is written)

Sounds good - mine says pretty much the same.

but a client can't get a connection to my server by the URL
https://server_ip_adr:8443
(no problem with http://server_ip_adr:8443)

Well, that pretty much settles it that its not using SSL.  Were it to do so, you'd get 
about 6 unprintable 
characters displayed in your browser window (under IE5, at least).  

If I don't have my jsse.jar in the classpath, I can't even start Tomcat.  If I get the 
keypass wrong, it gives me an 
error on loading.  I can't see anything else wrong with your configuration.

I can only stress that I'm using Tomcat 3.2.1 ... your version, if different, may have 
problems ...?

Anyone else care to shed some light on this?

Twylite




Tomcat configuration

2001-05-31 Thread Mike Alba



Hi,

 I am new to Tomcat and am looking to 
configure it for 
WML and Bitmaps, etc. How do I configure it to 
use
these types. I have read some emails that the 
web.xml
file is not read? 

Thanks in advance for your help!

Mike


TOMCAT Config Files

2001-05-31 Thread Jerry Villamizar


Can i move all the tomcat configuration files and java classes outside of my
%TOMCAT_HOME%/...subdir because i would like to hide all these files
outside my web files..

Thanks
Jerry

- Original Message -
From: Kiss-Beck Jozsef [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 8:16 AM
Subject: RE: TOMCAT_HOME\classes in 3.2.1


 Hi!

 There is something about TOMCAT_HOME\classes in the User's guide:

 ...

 The Tomcat directory structure
 ...
 Additionally you can, or Tomcat will, create the following directories:

 work:  Automatically generated by Tomcat, this is where Tomcat places
 intermediate files (such as compiled JSP files) during it's work. If you
 delete this directory while Tomcat is running you will not be able to
 execute JSP pages.

 classes:  You can create this directory to add additional classes to the
 classpath. Any class that you add to this directory will find it's place
in
 Tomcat's classpath.

 ...

 MfG / Best regards

 Jozsef Kiss-Beck
 Sysdata CSS IN INE3

  -Original Message-
  From: Moin Anjum H. [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 31, 2001 2:12 PM
  To: [EMAIL PROTECTED]
  Subject: Re: TOMCAT_HOME\classes in 3.2.1
 
 
  Hi,
 
  If you analize carefully you will notice TOMCAT_HOME is the
  Environment
  variable that you have to set. Similar to CLASSPATH. If you don't set
  then bat file takes the ..\ as current Tomcat Directory.
 
  HTH
  Moin.
 
  Anson To wrote:
 
   Hi all,
  
   When I'm editing the tomcat.bat under TOMCAT_HOME\bin
   I'm just noticed that the script includes
   TOMCAT_HOME\classes in the classpath.  But the fact is
   that there's *NO* TOMCAT_HOME\classes in 3.2.1!!  I'm
   just curious... Any idea?
  
   Many thanks!
   Anson
  
   
   Do You Yahoo!?
   Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
   or your free @yahoo.ie address at http://mail.yahoo.ie
 





startup exceptions

2001-05-31 Thread Boris Garbuzov

Hello to you, Tomcat experts. I am using tomcat 4. Upon the very start it
throws the following. Then it works fine in most of examples. Any suggestions
what I should do? Boris.

console-
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
PARSE error at line 1 column -1
org.xml.sax.SAXParseException: Element type web-app is not declared.
PARSE error at line 1 column -1
org.xml.sax.SAXParseException: Element type web-app is not declared.
Starting service Tomcat-Apache
Apache Tomcat/4.0-b5

--localhost_log.2001-05-31.txt

2001-05-31 10:08:03 StandardManager[/JRunForum]: Seeding random number
generator class java.security.SecureRandom
2001-05-31 10:08:03 StandardManager[/JRunForum]: Seeding of random number
generator has been completed
2001-05-31 10:08:03 ContextConfig[/JRunForum] Parse error in application
web.xml
org.xml.sax.SAXParseException: Element type web-app is not declared.
 at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1308)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
 at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
 at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247)

 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217)

 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)

 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
 at org.apache.catalina.core.StandardService.start(StandardService.java:353)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

2001-05-31 10:08:03 ContextConfig[/JRunForum]: Occurred at line 1 column -1
2001-05-31 10:08:03 ContextConfig[/JRunForum]: Marking this application
unavailable due to previous error(s)
2001-05-31 10:08:03 StandardWrapper[/JRunForum:default]: Loading container
servlet default
2001-05-31 10:08:03 default: init
2001-05-31 10:08:03 StandardWrapper[/JRunForum:invoker]: Loading container
servlet invoker
2001-05-31 10:08:03 invoker: init
2001-05-31 10:08:03 StandardWrapper[/JRunForum:jsp]: Using Jasper classloader
for servlet jsp
2001-05-31 10:08:04 StandardWrapper[/JRunForum:jsp]: Marking servlet jsp as
unavailable
2001-05-31 10:08:04 StandardContext[/JRunForum]: Servlet /JRunForum threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.jasper.servlet.JspServlet
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:817)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3277)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
 at org.apache.catalina.core.StandardService.start(StandardService.java:353)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
- Root Cause -
java.lang.VerifyError: (class: org/apache/jasper/servlet/JspServlet, method:
init signature: (Ljavax/servlet/ServletConfig;)V) Incompatible argument to
function
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3277)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 

web.xml

2001-05-31 Thread Loflin, Charles

Does anybody know of a web page that explains about the web.xml file?  The
user guide for tomcat says A detailed description of web.xml and the web
application structure (including directory structure and configuration) is
available in chapters 9, 10 and 14 of the Servlet API Spec and we are not
going to write about it.  It gives the link
http://java.sun.com/products/servlet/;.

However, when I go to the link, trying to find an explantion to web.xml is
difficult at best.



Re: AW: AW: AW: Why doesn't this work:

2001-05-31 Thread Cox, Charlie
Title: Re: AW: AW: AW: Why doesn't this work:





2 comments:


1. you can insert a 
% try { %
at the beginning of your jsp and then 
% } catch (NullPointerException npe)
{
 System.err.println(***);
 npe.printStackTrace();
}
%
at the end of your code.


This will give you the exact line in the jsp. The line number given in the 'root cause' was not the same for the null pointer that I had.

2. The line
String[] paramValues = request.getParameterValues(paramName);


can return null(if there are no values), and your next line, if (paramValues.length == 1), could be throwing the null pointer exception since paramValues is null.

Charlie


-Original Message-
From: Terje Kristensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 9:37 AM
To: [EMAIL PROTECTED]
Subject: Re: AW: AW: AW: Why doesn't this work:



I don't see anything wrong with it. Do you?






Re: JSP CUSTOM TAGS

2001-05-31 Thread Sulman . Jeff


Let me know when you find the solution to this.  We trying to do the same
thing.


|+
||  Peter Giannopoulos|
||  Peter.GIANNOPOULOS@ge|
||  mplus.com|
|||
||  05/31/01 10:01 AM |
||  Please respond to |
||  tomcat-user   |
|||
|+
  
---|
  |
   |
  |   To: [EMAIL PROTECTED]   
   |
  |   cc:  
   |
  |   Subject: JSP CUSTOM TAGS 
   |
  
---|




Hello all,

Can anyone show me an example of accesing a session variable in a custom
tag?
Or at least point me towards documentation that explains it?

(I have an object that I store in a session variable, I need to retrieve in
one of my custom tags)


--
 Peter Giannopoulos,Software Designer
 Gemplus Software,  Advanced Projects Group

 Phone: +15147322434
 Fax:   +15147322401
 Gemplus Canada Inc., Http://www.gemplus.com



 I hear and I forget,
I see and I remember,
I do and I understand.



---
(See attached file: Peter Giannopoulos.vcf)


 Peter Giannopoulos.vcf


RE: struts in tomcat 3.3-m3

2001-05-31 Thread Ignacio J. Ortega

( Please do not post using html, makes almost imposible to have a decent
conversation read http://jakarta.apache.org/site/mail.html)

Well, this is not a new requeriment, is the way that should be done
always, and is the way in which 3.3 and 4.0 setup the webapps
classpath.. that is only the jars present on web-inf/lib are added to
the webapp classpath

Saludos ,
Ignacio J. Ortega

-Mensaje original-
De: Steve Salkin [mailto:[EMAIL PROTECTED]]
Enviado el: jueves 31 de mayo de 2001 17:01
Para: '[EMAIL PROTECTED]'
Asunto: RE: struts in tomcat 3.3-m3


Ignacio J. Ortega wrote: 
 you already has one inside the TOMCAT_HOME%/lib/container .. the files

 jaxp.jar + parser.jar...copy this files to your apps 
 web-inf/lib dir... 
 
 or use xerces  http://xml.apache.org/xerces-j/index.html  
Hi Ignacio- 
Thanks for the advice! I have placed parser.jar and jaxp.jar in the
struts-example/WEB-INF/lib and now it correctly deploys and runs.
Do you know if this is the new requirement going forward in 3.3.x? If
so, I'll mention it on the struts lists so that the deployment
instructions for tomcat 3.3.x can include this information.
Thanks again, 
S- 



Re: KeepAlive and sendRedirect Vs jsp:forward

2001-05-31 Thread Daniel Lynes

On Wednesday 23 May 2001 13:08, Shahed wrote:

 I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc

 If I have keepalive turned on in apache, my response.sendRedirect() dont
 seem to work well.

 However jsp:forward seems to work.

 What is the difference from the point of view of the browser between the 2

Lots.  jsp:forward is equivalent to pageContext.forward( String url ), not 
response.sendRedirect( String url ).



Re: JSP CUSTOM TAGS

2001-05-31 Thread Sulman . Jeff


Try in your doStartTag
HttpSession ss = pageContext.getSession();



|+
||  Peter Giannopoulos|
||  Peter.GIANNOPOULOS@ge|
||  mplus.com|
|||
||  05/31/01 10:01 AM |
||  Please respond to |
||  tomcat-user   |
|||
|+
  
---|
  |
   |
  |   To: [EMAIL PROTECTED]   
   |
  |   cc:  
   |
  |   Subject: JSP CUSTOM TAGS 
   |
  
---|




Hello all,

Can anyone show me an example of accesing a session variable in a custom
tag?
Or at least point me towards documentation that explains it?

(I have an object that I store in a session variable, I need to retrieve in
one of my custom tags)


--
 Peter Giannopoulos,Software Designer
 Gemplus Software,  Advanced Projects Group

 Phone: +15147322434
 Fax:   +15147322401
 Gemplus Canada Inc., Http://www.gemplus.com



 I hear and I forget,
I see and I remember,
I do and I understand.



---
(See attached file: Peter Giannopoulos.vcf)


 Peter Giannopoulos.vcf


Re: Virtual Host Context Aliasing

2001-05-31 Thread Jeff Kilbride

Hi Daniel,

I have the same problem -- wanting to alias more than one host name to a
single context. Unfortunately, there is no way to do this. I've heard that
the 4.0 version of Tomcat may have some abilities for doing this, but it's
not nearly as straightforward as Apache's ServerAlias directive.

For now, I've turned off zzz.net (using your example) in my DNS and am only
serving www.zzz.net. I do a lot of connection pooling and other shared
resources, so I can't afford to have 2 versions of all my contexts running
at the same time. This is a totally unsatisfactory solution, but it's my
only choice for the moment.

Thanks,
--jeff

- Original Message -
From: Daniel Zen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 8:55 AM
Subject: Virtual Host Context Aliasing


 I would think this would be a common question, but I couldn't find it
 documented, nor asked on this list.

 Very often domains are served from 2 urls (www.zzz.net  zzz.net) with the
 same functionality. When I configure my virtual hosts in Apache's
httpd.conf
 this is easy:

 VirtualHost _default_:80
  ServerName www.zzz.net
  ServerAlias zzz.net
  DocumentRoot /home/httpd/html/zzz
  Directory /home/httpd/html/zzz/WEB-INF
   Options None
   Deny from all
  /Directory
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
 /VirtualHost

 The following properly placed in server.xml creates 2 seperate contexts
for
 the same set of servlets and JSPs. Functional, but a little wasteful.

   Host name=www.zzz.net 
Context path= docBase=/home/httpd/html/zzz
 crossContext=true debug=0 reloadable=true trusted=false /
   /Host

   Host name=zzz.net 
Context path= docBase=/home/httpd/html/zzz
 crossContext=true debug=0 reloadable=true trusted=false /
   /Host

 Now, I how do I do an alias Context in Tomcat's server.xml so that there
is
 only one Host/Context with multiple names??

 Thank you in advance.

 Daniel Zen





Re: Apache + Tomcat with mod_jk and Virtual Hosts

2001-05-31 Thread Jeff Kilbride

Yes. See the mail archive for a generic version of my setup:

http://mikal.org/interests/java/tomcat/archive/view?mesg=24718
http://mikal.org/interests/java/tomcat/archive/view?mesg=24420
http://mikal.org/interests/java/tomcat/archive/view?mesg=24256

Thanks,
--jeff

- Original Message - 
From: Adrian Almenar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 7:03 AM
Subject: Apache + Tomcat with mod_jk and Virtual Hosts


 Please i need help with this can anyone anwser me
 about this issue ??
 
 
 With Apache and tomcat working with mod_jk:
 
 Its possible to map every virtual host (On Apache)
 to a different webapp on tomcat ???
 
 I.E.
 
 Apache Virtual Host: 123.myhost.com ip: 10.0.0.2
 Tomcat Webbapp : tomcat33\webapps\123
 
 Apache Virtual Host: 789.myhost.com ip: 10.0.0.2
 Tomcat Webbapp : tomcat33\webapps\789
 
 thanks in advance !!!
 




RE: JSP CUSTOM TAGS

2001-05-31 Thread WMckean

HttpSession session = pageContext.getSession();
if( session != null ) { UserBean ub = (UserBean)session.getAttribute(
UserBean ); }

Wes


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP CUSTOM TAGS



Let me know when you find the solution to this.  We trying to do the same
thing.


|+
||  Peter Giannopoulos|
||  Peter.GIANNOPOULOS@ge|
||  mplus.com|
|||
||  05/31/01 10:01 AM |
||  Please respond to |
||  tomcat-user   |
|||
|+
 
---
|
  |
|
  |   To: [EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject: JSP CUSTOM TAGS
|
 
---
|




Hello all,

Can anyone show me an example of accesing a session variable in a custom
tag?
Or at least point me towards documentation that explains it?

(I have an object that I store in a session variable, I need to retrieve in
one of my custom tags)


--
 Peter Giannopoulos,Software Designer
 Gemplus Software,  Advanced Projects Group

 Phone: +15147322434
 Fax:   +15147322401
 Gemplus Canada Inc., Http://www.gemplus.com



 I hear and I forget,
I see and I remember,
I do and I understand.



---
(See attached file: Peter Giannopoulos.vcf)




Where will Tomcat search for HTML-Files ??

2001-05-31 Thread Matthias Schiffer

Hi!

I have embedded my Tomcat Ver. 4.0 Beta 5 into an existing application but
now when I start my Tomcat and want to browse on my HTML-Files, Tomcat tells
me that it can't find the files! I have set my App-Base values as parameters
of the connector and the host... Now my question:

Is there any chance to set a parameter with the absolute or relative path to
my directory, where i have saved my HTML-Files ??

Thanks for your help




Status on different workers when using loadbalancing

2001-05-31 Thread David Lennartsson


Hi,

I am working on a project where we have had a lot of problem with
the stability of tomcat. I thought about using a loadbalancer with a
couple of local workers (on the same host) to increase the uptime.

However, when a worker stops working I also need to restart that
process as quick as possible. Is there a way configuring the lb to do this
or is there a way for an external script to check the status of the
workers?

If you have a good implementation of this or other advices you are
much welcome to mail me.

Thanks!

/david




Re: Free MS SQL JDBC driver??

2001-05-31 Thread Oskar Zinger

go to www.freetds.org

---
Oskar

bryan wrote:

 Hello all,

 Does anybody know if there is free MS SQL 7.0/ 2000
 JDBC (Type 4) driver?

 Thanks
 Bryan




File uploads and Ajp13 with Tomcat 3.2.2

2001-05-31 Thread Paul Rubenis

I am wondering if anyone has installed the newer Tomcat 3.2.2 and tried
file uploads via a servlet with the ajp13 protocol.  The release notes
state that file uploads are now working with this protocol, yet I still
receive the same error I received when using Tomcat 3.2.1.

I am running Tomcat 3.2.2 with IBM's Apache 1.3.6 and IBM's 1.3 jdk on
a Redhat 6.2 box.  I am also using the oreilly jar file to process file
uploads.  The webserver and tomcat installation are running on the same
machine.  I have ssl enabled on the webserver.

Any insight would be greatly appreciated.

Paul Rubenis
[EMAIL PROTECTED]



Saving JSP pages

2001-05-31 Thread Daniel F. Wandarti



Hi,

I'm using 
apache/tomcat in a HPUX and sometimes when I click in a link
to open a page IE 
ask me to save a page, not open an html.

Someone could help 
me?

Daniel


JSP- unable to compile class

2001-05-31 Thread Nebojsa Marusic

System setup:

OS -Solaris 2.6 (platform: SPARC)
Tomcat 3.2.2 (binary instalation)
JDK 1.1

PATH=/usr/local/tomcat/jakarta-tomcat-3.2.2/bin:/bin:/usr/local/apache/bin:/usr/local/apache/sbin:/usr/java/bin:/opt/FSFgzip/bin:/opt/SUNWspro/bin:/usr/bin/nsr:/usr/sbin/nsr:/bin:/usr/bin:/usr/sbin:/usr/openwin/bin:/opt/SUNWusr/local/apache/bin/usr/local/apache/bin/spro/bin:/usr/ccs/bin:/usr/ucb:/etc:/usr/dt/bin:/usr/local/bin:/opt/hpnp/bin:/usr/proc/bin:.

CLASSPATH=/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/jasper.jar:/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/jaxp.jar:/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/parser.jar:/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-3.2.2/lib/webserver.jar:/usr/java/lib

TOMCAT_HOME=/usr/local/tomcat/jakarta-tomcat-3.2.2
APACHE_HOME=/usr/local/apache
JAVA_HOME=/usr/java



MY  PROBLEM:

When I point to:
http://utilities.utoronto.ca:8080/examples/jsp/snp/snoop.jsp

I get on my server error message:
Unknown object of type:org.apache.jasper.compiler.Mark
2001-05-31 09:57:16 - Ctx( /examples ): JasperException: R( /examples +
/jsp/snp/snoop.jsp + null) Unable to compile class for JSP

log file: jasper.log:
2001-05-31 09:57:16 - JspEngine -- /jsp/snp/snoop.jsp
2001-05-31 09:57:16 -   ServletPath: /jsp/snp/snoop.jsp
2001-05-31 09:57:16 -  PathInfo: null
2001-05-31 09:57:16 -  RealPath:
/usr/local/tomcat/jakarta-tomcat-3.2.2/webapps/examples/jsp/snp/snoop.jsp

2001-05-31 09:57:16 -RequestURI: /examples/jsp/snp/snoop.jsp
2001-05-31 09:57:16 -   QueryString: null
2001-05-31 09:57:16 -Request Params:
2001-05-31 09:57:16 - Classpath according to the Servlet Engine is:
/usr/local/tomcat/jakarta-tomcat-3.2.2/webapps/examples/WEB-INF/classes

In Netscape I get:
Error: 500

Location: /examples/jsp/snp/snoop.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSP
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(Compiled Code)
at org.apache.jasper.JasperException.(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)

at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)

at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compiled

Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled

Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

Root cause:

java.lang.IllegalArgumentException: Unknown argument
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(Compiled Code)
at java.lang.IllegalArgumentException.(Compiled Code)
at java.text.MessageFormat.format(Compiled Code)
at java.text.MessageFormat.format(Compiled Code)
at java.text.Format.format(Compiled Code)
at org.apache.jasper.Constants.getString(Compiled Code)
at org.apache.jasper.Constants.message(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)

at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)

at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compiled

Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled

Page descendant / GET method error

2001-05-31 Thread Bret Goldsmith

I have just configured Tomcat 4.0 to use a new context (called AppManager). 
I have a simple JSP test page in the AppManager context directory, and it runs
fine as the following:

HTML
  test login page
/HTML

However, I am trying to enhance it by extending the page from an ancestor class
(that is completely devoid of code except for the _jspservice() and
service())...

%@ page extends=www.WWW_Page %
HTML
  test login page
/HTML

But when I do this in the JSP page, I get the following error:

HTTP Status 405 - HTTP method GET is not supported by this URL


I decided that I would first test out Tomcat 3.2 to see if it was just
something unimplemented in 4.0, but 3.2 came up with a very similar error under
the equivalent configuration.

My web.xml file under the AppManager context is basically empty
(web-app/web-app), so that the new context inherits all from the
conf/web.xml, which is pretty standard from the default conf/web.xml that comes
with the Tomcat 4.0 package.

Am I missing some security configuration measures in the context/web.xml file? 
I tried adding a security-constraint element, (similar to the sample found in
the examples/web.xml file) that had references to the HTTP methods available,
but this editing did not work.

Thanks,
Bret

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



web.xml

2001-05-31 Thread Loflin, Charles


Does anybody know of a web page that explains about the web.xml file?  The
user guide for tomcat says A detailed description of web.xml and the web
application structure (including directory structure and configuration) is
available in chapters 9, 10 and 14 of the Servlet API Spec and we are not
going to write about it.  It gives the link
http://java.sun.com/products/servlet/;.

However, when I go to the link, trying to find an explantion to web.xml is
difficult at best.



Where will Tomcat search for HTML-Files ??

2001-05-31 Thread Matthias Schiffer

Hi!

I have embedded my Tomcat Ver. 4.0 Beta 5 into an existing application
but
now when I start my Tomcat and want to browse on my HTML-Files, Tomcat
tells
me that it can't find the files! I have set my App-Base values as
parameters
of the connector and the host... Now my question:

Is there any chance to set a parameter with the absolute or relative
path to
my directory, where i have saved my HTML-Files ??

Thanks for your help



AW: Why doesn't this work:

2001-05-31 Thread Ralph Einfeldt

It looks like request.getParameterValues(paramName)
returns a null value on at least one param.

 -Ursprüngliche Nachricht-
 Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 31. Mai 2001 15:37
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: AW: AW: Why doesn't this work:
 
 
 I don't see anything wrong with it. Do you?
 
 
 



Where will Tomcat search for HTML-Files ??

2001-05-31 Thread Matthias Schiffer

Hi!

I have embedded my Tomcat Ver. 4.0 Beta 5 into an existing application
but
now when I start my Tomcat and want to browse on my HTML-Files, Tomcat
tells
me that it can't find the files! I have set my App-Base values as
parameters
of the connector and the host... Now my question:

Is there any chance to set a parameter with the absolute or relative
path to
my directory, where i have saved my HTML-Files ??

Thanks for your help



basic authentication -- where is there a simple example?

2001-05-31 Thread Betty Chang



Hi -- Can someone point me to a simple example of 
how to setup tomcat for basic HTTP authentication?

Thanks

Betty
Portal Wave, Inc.Catalyst for Collaborative 
Commercewww.portalwave.com


Invalid email recipient at extramedia.com

2001-05-31 Thread addresschange

The recipient name of the email you recently sent to extramedia.com is
no longer valid. 

If the person you emailed worked at Extramedia's software development
center in Ho Chi Minh City, Vietnam, then please resend your email to
that person @sutrixmedia.com (use the same user name, and update your
address book with the new domain name). Extramedia's previous
development center is now an independent company called Sutrix Media. 

If the person you emailed worked at Extramedia's Singapore office or
Boston office, it is likely that person no longer works for the
company.  

If you have any questions, please email [EMAIL PROTECTED]

Regards
  Domain Administrator





Invalid email recipient at extramedia.com

2001-05-31 Thread addresschange

The recipient name of the email you recently sent to extramedia.com is
no longer valid. 

If the person you emailed worked at Extramedia's software development
center in Ho Chi Minh City, Vietnam, then please resend your email to
that person @sutrixmedia.com (use the same user name, and update your
address book with the new domain name). Extramedia's previous
development center is now an independent company called Sutrix Media. 

If the person you emailed worked at Extramedia's Singapore office or
Boston office, it is likely that person no longer works for the
company.  

If you have any questions, please email [EMAIL PROTECTED]

Regards
  Domain Administrator





RE: [ClassPath] JSP, JDBC, and mm.MySql

2001-05-31 Thread Jann VanOver

I use Tomcat to do JSP and I put the JAR file with my db drivers into 
webapps/context/WEB-INF/lib directory and they are always found.  No need
to alter any class paths.

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 9:49 PM
To: [EMAIL PROTECTED]
Subject: [ClassPath] JSP, JDBC, and mm.MySql


Its getting late but I'm not having too much luck at getting a
sucessful
JSP / mysql connection.  Given the error message below can someone explain
where I should be setting my class path and the actual mm.mysql files or the
entire jar file? I am using jdk1.3 with the latest apache on win2K pro.

My JSP page looks like and the error is below:

html
  head
titleLogin/title
  /head
%@ page import=java.sql.*, java.io.* %
%
  // Step 1: registering the MySQL JDBC driver

  try {
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName(org.gjt.mm.mysql.Driver).newInstance();
  }
  catch (Exception E) {
out.println(brbrsome crapbrbrUnable to load
driver.brbrbrbr);
E.printStackTrace(new PrintWriter(out));
  }


%

/html

error:


java.lang.ClassNotFoundException: Unable to load class
org.gjt.mm.mysql.Driver at
org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223) at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147) at
java.lang.ClassLoader.loadClass(ClassLoader.java:253) at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:120) at
_0002fsql_0002ejspsql_jsp_7._jspService(_0002fsql_0002ejspsql_jsp_7.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at
org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: [ClassPath] JSP, JDBC, and mm.MySql

2001-05-31 Thread Ivan Kougaenko

double check that everything is set up according to this doc
http://mmmysql.sourceforge.net/doc/mm.doc/x68.htm

I think you should have the entire jar file in the classpath


- Original Message -
From: Jon Shoberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 17, 2001 9:49 PM
Subject: [ClassPath] JSP, JDBC, and mm.MySql


 Its getting late but I'm not having too much luck at getting a
sucessful
 JSP / mysql connection.  Given the error message below can someone explain
 where I should be setting my class path and the actual mm.mysql files or
the
 entire jar file? I am using jdk1.3 with the latest apache on win2K pro.

 My JSP page looks like and the error is below:

 html
   head
 titleLogin/title
   /head
 %@ page import=java.sql.*, java.io.* %
 %
   // Step 1: registering the MySQL JDBC driver

   try {
 // The newInstance() call is a work around for some
 // broken Java implementations
 Class.forName(org.gjt.mm.mysql.Driver).newInstance();
   }
   catch (Exception E) {
 out.println(brbrsome crapbrbrUnable to load
 driver.brbrbrbr);
 E.printStackTrace(new PrintWriter(out));
   }


 %

 /html

 error:


 java.lang.ClassNotFoundException: Unable to load class
 org.gjt.mm.mysql.Driver at
 org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223) at
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147) at
 java.lang.ClassLoader.loadClass(ClassLoader.java:253) at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at
 java.lang.Class.forName0(Native Method) at
 java.lang.Class.forName(Class.java:120) at

_0002fsql_0002ejspsql_jsp_7._jspService(_0002fsql_0002ejspsql_jsp_7.java:70)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:177) at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
 org.apache.tomcat.core.Handler.service(Handler.java:286) at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7) at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
 (Ajp12ConnectionHandler.java:166) at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets




Re: File uploads and Ajp13 with Tomcat 3.2.2

2001-05-31 Thread Hunter Hillegas

Did you compile and install the new mod_jk.so?

 From: Paul Rubenis [EMAIL PROTECTED]
 Organization: University of Minnesota
 Reply-To: [EMAIL PROTECTED]
 Date: Thu, 31 May 2001 13:43:02 -0500
 To: [EMAIL PROTECTED]
 Subject: File uploads and Ajp13 with Tomcat 3.2.2
 
 I am wondering if anyone has installed the newer Tomcat 3.2.2 and tried
 file uploads via a servlet with the ajp13 protocol.  The release notes
 state that file uploads are now working with this protocol, yet I still
 receive the same error I received when using Tomcat 3.2.1.
 
 I am running Tomcat 3.2.2 with IBM's Apache 1.3.6 and IBM's 1.3 jdk on
 a Redhat 6.2 box.  I am also using the oreilly jar file to process file
 uploads.  The webserver and tomcat installation are running on the same
 machine.  I have ssl enabled on the webserver.
 
 Any insight would be greatly appreciated.




Tomcat 3.2.2 bug ???

2001-05-31 Thread Marcelo . Epstein

When i request a non-existing jsp page, the server crash...
web.xml
error-page
   error-code404/error-code
   location/404.html/location
 /error-page

I think the problem is  web.xml file in error-page tag.. It do not accept
static error pages... Does anybody know the solution?




RE: web.xml

2001-05-31 Thread Jeff Walker

The best advice that I can give you is to look
at the existing tomcat examples, ie the .WAR files,
the structure that results from these files, and
the web.xml files that these structures contain.

WAR files are just zip files, change the extension to zip
and uncompress them and read, read, read.

Hope this helps...

j


-Original Message-
From: Loflin, Charles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 3:24 PM
To: '[EMAIL PROTECTED]'
Subject: web.xml



Does anybody know of a web page that explains about the web.xml file?  The
user guide for tomcat says A detailed description of web.xml and the web
application structure (including directory structure and configuration) is
available in chapters 9, 10 and 14 of the Servlet API Spec and we are not
going to write about it.  It gives the link
http://java.sun.com/products/servlet/;.

However, when I go to the link, trying to find an explantion to web.xml is
difficult at best.




How to debug a missing servlet error?

2001-05-31 Thread Chris McNeilly

Hi,

I have a development environment that works correctly (Win 98), but when
I move the code over to my QA environment (Linux) tomcat can no longer
find the servlet.  I have a web.xml file in the Web-Inf directory that
has the following:

web-app
servlet
servlet-name
briefXSL
/servlet-name
servlet-class
com.smartbrief.BriefXSLServlet
/servlet-class
/servlet
servlet-mapping
servlet-namebriefXSL/servlet-name
url-pattern/servlet/briefXSL/url-pattern
/servlet-mapping

/web-app

Tomcat receives the request from apache, but doesn't know what to do
with it and spits back a 404.  It's almost as if tomcat isn't reading
the web.xml file at all.

Thanks,

Chris




RE: web.xml

2001-05-31 Thread Jann VanOver

Follow that link.  Then look along the left side of the page for the word
Specifications  (your quote sayis it's in the Servlet API Spec) and you'll
see a link to Download Implementations  Specifications  Click that.  Are
you still with me?  Scroll down that page for a header that says
SPECIFICATIONS and see that right under it is a table titled Java
Servlet and then a number of download buttons.  Go to Final Release and
download some version (PDF, HTML, whatever) and READ IT.  It goes through
the web.xml DTD element by element with explanations.

Was that so hard?

-Original Message-
From: Loflin, Charles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: web.xml



Does anybody know of a web page that explains about the web.xml file?  The
user guide for tomcat says A detailed description of web.xml and the web
application structure (including directory structure and configuration) is
available in chapters 9, 10 and 14 of the Servlet API Spec and we are not
going to write about it.  It gives the link
http://java.sun.com/products/servlet/;.

However, when I go to the link, trying to find an explantion to web.xml is
difficult at best.



RE: How to debug a missing servlet error?

2001-05-31 Thread Randy Layman


This is a guess, but have you disabled the servlet invoker in the
server.xml file?  I believe that the servlet invoker will grab the request
for /servlet/* before  the webapp will check its mappings.  I would suggest
removing the servlet invoker from your server.xml file and see if this
works.  If so, then you'll need to decide if you need it and need to change
your servlet's mapping or if you can get along just fine without it.
(Remember that this is a server-wide setting).

Randy

 -Original Message-
 From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 4:15 PM
 To: [EMAIL PROTECTED]
 Subject: How to debug a missing servlet error?
 
 
 Hi,
 
 I have a development environment that works correctly (Win 
 98), but when
 I move the code over to my QA environment (Linux) tomcat can no longer
 find the servlet.  I have a web.xml file in the Web-Inf directory that
 has the following:
 
 web-app
 servlet
 servlet-name
 briefXSL
 /servlet-name
 servlet-class
 com.smartbrief.BriefXSLServlet
 /servlet-class
 /servlet
 servlet-mapping
 servlet-namebriefXSL/servlet-name
 url-pattern/servlet/briefXSL/url-pattern
 /servlet-mapping
 
 /web-app
 
 Tomcat receives the request from apache, but doesn't know what to do
 with it and spits back a 404.  It's almost as if tomcat isn't reading
 the web.xml file at all.
 
 Thanks,
 
 Chris
 



Using JSP regardless of URL?

2001-05-31 Thread David M. Rosner

Hi All,

I would like one of my domains to always use a particular JSP page 
regardless of the URL the user enters. For instance if they hit any of the 
following URLs yhey will all actually hit a page called HandleRequest.jsp :

http://mydomain.com/any/page/will/do/bob.jsp
http://mydomain.com/SomeOtherPage.jsp
http://mydomain.com/something/else.jsp

Firstly , is this possible, and secondly, can I do this for certain 
domains? I know I can probably do this with Apache's mod_rewrite, but 
that's a can of worms I'd rather not open.

Thanks!

-dave







Help on apache 1.3.19 and tomcat 3.2.1

2001-05-31 Thread Joyce . Fung



I am a newbie at this and I am having a bit of difficulty configuring apache
to use mod_jk.
I have them both set up on my HP UX machine and by following the
documentation,
I am supposed to see a /jakarta-tomcat/src/native/apache directory. I need
to run the *apxs script there.
I know the directories are not the exact same but I cannot find the native
directory anywhere! Can
someone offer some suggestions please??


Thanks,
Joyce Fung
Systems Group
Email  [EMAIL PROTECTED]





RE: How to debug a missing servlet error?

2001-05-31 Thread Chris McNeilly

Nope.  I removed it entirely and still got the 404.  Also, that invoker
is still in my server.xml file on my localhost and it works fine.

I can copy the code base to other Win boxes and it works right off, too.
So its not something particularly unique to my config on my localhost.

Chris

 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 3:46 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How to debug a missing servlet error?



   This is a guess, but have you disabled the servlet
 invoker in the
 server.xml file?  I believe that the servlet invoker will
 grab the request
 for /servlet/* before  the webapp will check its mappings.  I
 would suggest
 removing the servlet invoker from your server.xml file and see if this
 works.  If so, then you'll need to decide if you need it and
 need to change
 your servlet's mapping or if you can get along just fine without it.
 (Remember that this is a server-wide setting).

   Randy

  -Original Message-
  From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 31, 2001 4:15 PM
  To: [EMAIL PROTECTED]
  Subject: How to debug a missing servlet error?
 
 
  Hi,
 
  I have a development environment that works correctly (Win
  98), but when
  I move the code over to my QA environment (Linux) tomcat
 can no longer
  find the servlet.  I have a web.xml file in the Web-Inf
 directory that
  has the following:
 
  web-app
  servlet
  servlet-name
  briefXSL
  /servlet-name
  servlet-class
  com.smartbrief.BriefXSLServlet
  /servlet-class
  /servlet
  servlet-mapping
  servlet-namebriefXSL/servlet-name
  url-pattern/servlet/briefXSL/url-pattern
  /servlet-mapping
 
  /web-app
 
  Tomcat receives the request from apache, but doesn't know what to do
  with it and spits back a 404.  It's almost as if tomcat
 isn't reading
  the web.xml file at all.
 
  Thanks,
 
  Chris
 





  1   2   >