Re: Loading XML Files - Best Pracitices

2003-01-05 Thread bido
I'm pretty impressed with the various options, thanks again everyone.  
I will try a few of them and take it from there.
I had the feeling that there were some good things out there.  Not that 
it's so hard to deal with XML but I think that
that the usual DOM and SAX APIs are bit too low level for a good number 
of ubiquitous  tasks.

Appreciate all the feedback,
-FB

On Saturday, January 4, 2003, at 08:08  PM, Hookom, Jacob John wrote:

I recommend Dom4j, it offers the best overall performance out of the 
XML libs and it works really well for large files with the ability to 
prune on read.

www.dom4j.org


	-Original Message-
	From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
	Sent: Sat 1/4/2003 1:58 PM
	To: Tomcat Users List
	Cc:
	Subject: Re: Loading XML Files - Best Pracitices
	
	


	No, I don't really have any reservations about JDOM...except for the 
fact
	that there has been little to zero development on it of late.  Check 
out
	the amount of time that has passed since the last beta release (9 - 10
	months!).  At this rate, they'll release a 1.0 version in a couple 
more
	years while Xerces development steams on ahead.  JDOM may be elegant, 
but I
	wish the main developers would put their nose to the grindstone and 
get, at
	least, another beta release out in short order!
	
	To tell you the truth, I would just use a SAX parser.  That will be 
faster
	than any of the other methods including JDOM.
	
	Jake
	
	At 12:01 PM 1/4/2003 -0600, you wrote:
	Howdy,
	
	Thanks for all the good suggestions. I'm going with JDOM, just 
because
	it's pretty darn elegant and simple. It also appears that it will be
	(if not already) an XML standard for Java.  So all signs indicate 
that
	I'm not marrying myself to an obscure API.
	
	Do any of you have reservations about JDOM?
	
	Thanks,
	-FB
	
	On Saturday, January 4, 2003, at 08:02  AM, Jacob Kjome wrote:
	
	
	Well,
	
	There are a number of parsers available.  You can use DOM, JDOM,
	DOM4J, SAX, or, actually, you might want to try out XPath using 
Jaxen.
	
	Here is an example of reading in a document using DOMand no
	specific external package so you don't marry yourself to a 
particular
	implementation...
	
	DocumentBuilderFactory dbfactory =
	DocumentBuilderFactory.newInstance();
	dbfactory.setNamespaceAware(true);
	Document doc = null;
	try {
	 DocumentBuilder dbuilder = dbfactory.newDocumentBuilder();
	 InputStream = 
context.getResourceAsStream(/WEB-INF/mydoc.xml);
	 doc = dbuilder.parse(is);
	}
	catch (ParserConfigurationException pce) {}
	catch (SAXException se) {}
	catch (IOException ioe) {}
	
	
	You can then grab a NodeList of some part of the document and 
iterate
	through that or you can then use Jaxen to get to specific data with
	XPath queries
	
	
	try {
	 XPath xpath = new
	DOMXPath(//MyElement[@myAttribute='someSpecificValue']/ 
AnotherElement);
	 Node node = (Node)xpath.selectSingleNode(domainDoc);
	 //now do something with the node
	}
	catch (XPathSyntaxException xse) {}
	catch (JaxenException je) {}
	
	
	If you know, in advance, all the elements you will need to read, 
then
	you might want to write a SAX parser for your document.  It will be
	the fastest methodor you could use XML data binding using Zeus 
or
	JAXB which will allow you to read in a whole document and access all
	the data using standard Java Bean getters and set the values using
	standard Java bean setters.  In this case, you don't even need to
	worry about XML since the fact that it is XML is totally hidden from
	you.  You can then marshal your updated object (assuming you 
modified
	it) back to an XML document.
	
	There are lots of ways to do this.  Which way you choose depends on
	your needs and what API's you feel most comfortable with.
	
	Jake
	
	
	At 07:29 PM 1/3/2003 -0600, you wrote:
	I have a servlet and I want it to read it's data from an XML file.
	There's more than one way of doing this task and I'm fishing for 
best
	practices.
	Can anyone provide me with some links to example code? I'm sure 
this
	has been beaten to death and I don't want to reinvent the wheel.
	
	Thanks!
	
	
	--
	To unsubscribe, e-mail:
	mailto:[EMAIL PROTECTED]
	For additional commands, e-mail:
	mailto:[EMAIL PROTECTED]
	
	
	--
	To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
	For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
	

winmail.dat--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


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




Tomcat 4.1.18: Digest authentication not working?

2003-01-05 Thread KUMAR,PANKAJ (HP-Cupertino,ex1)
Hi,

I am a relative newbiw to Tomcat.

The manager application works with BASIC authentication (default
configuration), after making appropriate user and role entries in
conf/tomcat-users.xml file.

However, when I change BASIC to DIGEST as shown below:
Default web.xml for manager:
...
  login-config
auth-methodBASIC/auth-method
realm-nameTomcat Manager Application/realm-name
  /login-config
...
Modified web.xml for manager:
...
  login-config
auth-methodDIGEST/auth-method
realm-nameTomcat Manager Application/realm-name
  /login-config
...

It doesn't work. I get the login prompt in my browser ( I tried both IE6.0
and Netscape 7.0 ) with the right realm string, but after entering the user
name and the password, the prompt appers again.

I am appending the HTTP dump (captured using a home grown interceptor tool
):
=
[HTTP] C -- S (370 bytes)
GET /manager/html HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-
powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwav
e-flash, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: localhost:8079
Connection: Keep-Alive

[HTTP] C -- S (412 bytes)
HTTP/1.1 401 Unauthorized
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
WWW-Authenticate: Digest realm=Tomcat Manager Application, qop=auth,
nonce=
bf3c8fa05f1260f6a9d4299d3b882339, opaque=03758823e3b14892bb4dc34ef834fa13
Content-Type: text/html
Content-Language: en-US
Transfer-Encoding: chunked
Date: Sun, 05 Jan 2003 08:49:24 GMT
Server: Apache Coyote/1.0

[HTTP] C -- S (5 bytes)
2ad
[HTTP] C -- S (685 bytes)
htmlheadtitleApache Tomcat/4.1.18-LE-jdk14 - Error
report/titleSTYLE!
--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color :
#008
6b2;} H3{font-family : sans-serif,Arial,Tahoma;color :
white;background-color :
#0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-co
lor : white;} B{color : white;background-color : #0086b2;} HR{color :
#0086b2;}
--/STYLE /headbodyh1HTTP Status 401 - /h1HR size=1
noshadepbt
ype/b Status report/ppbmessage/b u/u/ppbdescription/b
uT
his request requires HTTP authentication ()./u/pHR size=1
noshadeh3Apa
che Tomcat/4.1.18-LE-jdk14/h3/body/html
[HTTP] C -- S (2 bytes)

[HTTP] C -- S (5 bytes)
0

[HTTP] C -- S (683 bytes)
GET /manager/html HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-
powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwav
e-flash, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: localhost:8079
Connection: Keep-Alive
Authorization: Digest username=pankaj, realm=Tomcat Manager Application,
qop
=auth, algorithm=MD5, uri=/manager/html,
nonce=bf3c8fa05f1260f6a9d4299d3b
882339, nc=0001, cnonce=f7710dc1f6683517f0dd8dfd957a50bc,
opaque=0375882
3e3b14892bb4dc34ef834fa13, response=8d3c122778ae3d95564f61a2238c8f51

[HTTP] C -- S (412 bytes)
HTTP/1.1 401 Unauthorized
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
WWW-Authenticate: Digest realm=Tomcat Manager Application, qop=auth,
nonce=
d13c9c9d094919b14030f3bff72edc6b, opaque=bd29cf774ee39e6a3cc1c396293be208
Content-Type: text/html
Content-Language: en-US
Transfer-Encoding: chunked
Date: Sun, 05 Jan 2003 08:49:34 GMT
Server: Apache Coyote/1.0

[HTTP] C -- S (697 bytes)
2ad
htmlheadtitleApache Tomcat/4.1.18-LE-jdk14 - Error
report/titleSTYLE!
--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color :
#008
6b2;} H3{font-family : sans-serif,Arial,Tahoma;color :
white;background-color :
#0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-co
lor : white;} B{color : white;background-color : #0086b2;} HR{color :
#0086b2;}
--/STYLE /headbodyh1HTTP Status 401 - /h1HR size=1
noshadepbt
ype/b Status report/ppbmessage/b u/u/ppbdescription/b
uT
his request requires HTTP authentication ()./u/pHR size=1
noshadeh3Apa
che Tomcat/4.1.18-LE-jdk14/h3/body/html
0
=
Any help would be most appreciated.

/Pankaj Kumar
Home Page: http://www.pankaj-k.net
Web Log: http://www.pankaj-k.net/weblog

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




Directory Authentication

2003-01-05 Thread Mazin Mohammed
Hi
I am using tomcat-3.3.1.
How do i give directory authentication like .htaccess in tomcat ?

Regards,
-- 
Mazin Mohammed Vasnet Communication Pvt. Ltd 
System Administrator   www.vasnet.co.in  
0824-451001
[EMAIL PROTECTED]




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




RE: Tomcat and Apache

2003-01-05 Thread SebastiĆ£o Carlos Santos
The configuration of the virtual host in the Apache is striped below, in extracted 
fragment of the file httpd.conf:

VirtualHost www.admged.ufu.br
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/admged
ServerName admged.ufu.br
ServerAlias www.admged.ufu.br
ErrorLog /web/admged/log/apache_error_log
CustomLog /web/admged/log/apache_access_log
JkMount /test ajp13
JkMount /test/* ajp13
/VirtualHost

Since then they follow my questions, I have faith that even certain point, very basic:

1 - I have the configuration of the virtual host www.admged.ufu.br in the Apache. Is 
it necessary to do the configuration of the virtual host www.admged.ufu.br in the file 
of configuration of Tomcat, and will I use the two (Apache + Tomcat) in an integrated 
way?

2 - Below it is the listing of my tree of directories that will store the test pages. 
I want that all my files jsp under / web/admged are interpreted as files jsp by the 
server. Like this being, as it should be my JKMount in the Apache?

admged@admged:~  tree /web/
/web/
|-- WEB-INF
|   `-- classes
`-- admged
|-- WEB-INF
|   `-- classes
|-- index.jsp
`-- log
|-- apache_access_log
`-- apache_error_log

6 directories, 3 files

If they could send in some way some example file or a documentation that it shows in a 
clear way as proceeding with the configuration I will be very thankful.
I thank the released help once again.





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




web apps and directory structure...

2003-01-05 Thread Jason Pyeron
to all,
this may be silly, but it is real issue.

rationale:

I have a client run windows nt 4.0
One of his vendors provides him with oracle, and other IIS based 
applications.

His support contract does not allow hime to change the directory structure 
on his machine.

details:

here is the directory tree:

/c
  /iisfiles
/app1
/app2
/app3
/ourapp4
/d
  /publicdata
/reports
/images
 
iis config mounts /d/publicdata/images under each app[1..3] etc.

we have written a web app (which they got approval to install) 
 /c/iisfiles/ourapp4

now we need to make use of the dataunder /d/publicdata

Host name=localhost appBase=C:/iisfiles/ourapp4 debug=0 unpackWARs=true 
autoDeploy=true
Context path= docBase= crossContext=true debug=0 reloadable=true/
/Host

question:

can we modify the config to mount/alias d:/publicdata/foodata to 
WEBAPP/foodata? 

that is: treated like it is a sub dir under the WEBAPP?

-jason pyeron


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




Re: Directory Authentication

2003-01-05 Thread Marc van de Geijn
I do not know the version you are using myself (I'm using 4.1.18), but you
have to look into Realms. I found the following document about it on the
jakarta site:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/JDBCRealm-howto.html

Marc

- Original Message -
From: Mazin Mohammed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, 05 January 2003 12:05
Subject: Directory Authentication


 Hi
 I am using tomcat-3.3.1.
 How do i give directory authentication like .htaccess in tomcat ?

 Regards,
 --
 Mazin Mohammed Vasnet Communication Pvt. Ltd
 System Administrator   www.vasnet.co.in
 0824-451001
 [EMAIL PROTECTED]




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




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




SMTP-Auth problem

2003-01-05 Thread Jan Ulrich
Hello,
I'm trying to send a mail with a SMTP-Server, which needs SMTP-Auth.
The code attached to this posting works perfect if executed from a 
shell, but i need this function in a servlet running on a Tomcat 4.1 
webcontainer.

The DEBUG in a shell says:
DEBUG SMTP: useEhlo true, useAuth true

The Tomcat debug however says:
DEBUG SMTP: useEhlo true, useAuth false

and the sending fails. It looks as if Tomcat does not support SMTP Auth. 
Is there a possibility to replace some Tomcat jars with jars from J2EE?

Any help is appreciated, thanks

Jan Ulrich


import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

class sendMessageApp {
  static String host = mail.gmx.net;
  static String user = somebody;
  static String password = secret;
  static boolean debug = true;
  static String toAddress = to@you;
  static String fromAddress = from@me;

  public static void main(String[] argv) {
// set the host
Properties props = new Properties();
props.put(mail.smtp.host,host);
props.put(mail.smtp.auth,true);
//create some properties and get the default session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);

try {
  System.out.println(Getting Transport for smtp);
  Transport tr = session.getTransport(smtp);
  try {
  tr.connect(mail.gmx.net,user, password);
  }
  catch (MessagingException ex) {
ex.printStackTrace();
System.exit(1);
  }

  // create a message
  Message msg = new MimeMessage(session);

  // set the from
  InternetAddress from = new InternetAddress(fromAddress);
  msg.setFrom(from);
  InternetAddress[] address = {new InternetAddress(toAddress)};
  msg.setRecipients(Message.RecipientType.TO, address);
  msg.setSubject(This is a test);

  msg.setContent(hello,text/plain);
  msg.saveChanges();
  System.out.println(Before sending...);
  tr.sendMessage(msg, address);
	  }
catch (javax.mail.MessagingException mex) {
  mex.printStackTrace();
  }
  }
}


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



mod_jk: Disable sticky sessions

2003-01-05 Thread David Klimek
Hello,

I would like to use mod_jk as simple loadbalancer without sticky sessions.

Is there any way to disable sticky sessions in mod_jk?

I don't have jvmRoute atribute set but sessions are always sticky.

I'm using
	mod_jk-1.3-eapi.so
	apache 1.3.26
	jboss-3.0.4_tomcat-4.1.12

Thanks a lot for any hint
David

--
http://www.sweb.cz/david.klimek


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




Changed file name now webapp not working right

2003-01-05 Thread Denise Mangano
Hi all :)

My form submits to a controller jsp which uses a bean to check validation.
If info is validated, the controller forwards to a verify page, else forward
to a retry page with appropriate error messages.  After some tweaking this
all worked perfectly.

After realizing that the first JSP I called (i.e. FormValidate.jsp) shows in
the URL even after control is forwarded to another jsp, I wanted to change
the name of the file.  I changed FormValidate.jsp to CCProcess.jsp, and
changed all the appropriate action tags to call CCProcess.jsp.  Now I can't
get to Verify.jsp.  Even when all info on form is correct it is still
calling Retry.jsp and I get stuck in a never ending loop in Retry.jsp - even
though there are no error messages...

Could changing the file name be the cause of this?  Its as thought the if
(formBean.validate) always fails... but I don't think the problem is my
bean, as I mentioned it worked perfectly before...

Thanks.
Denise

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




Configuring tomcat with apache - webapp - linux server

2003-01-05 Thread Vincent Geneste
Hi,

I would like connect tomcat 4.1.18 with apache 2.x under linux.
I search the connector binarie file (not RPM) on the jakarta ftp site 
but the directories are empty (binary or RPM)

Is someone able to help me ?

Thank's for your help and sorry for my poor english.

Vincent.


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



RE: Configuring tomcat with apache - webapp - linux server

2003-01-05 Thread Denise Mangano
Vincent,

Not sure which connector you are looking to use, but go here:

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

I checked and you'll find the binaries for linux for the latest version of
mod_jk, and v2.0.1 of mod_jk2.

HTH
Denise

-Original Message-
From: Vincent Geneste
To: [EMAIL PROTECTED]
Sent: 1/5/2003 12:51 PM
Subject: Configuring tomcat with apache - webapp - linux server

Hi,

I would like connect tomcat 4.1.18 with apache 2.x under linux.
I search the connector binarie file (not RPM) on the jakarta ftp site 
but the directories are empty (binary or RPM)

Is someone able to help me ?

Thank's for your help and sorry for my poor english.

Vincent.


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

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




Set up tomcat to do content negotiation/hiding file-extension in URLs

2003-01-05 Thread Reto Bachmann-Gmuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello

Is there a way to hide the file extensions in URIs i.e. linking to 
http://example.com/mypage instead of http://example.com/mypage.html and 
have tomcat returning the content in the flavour preferred by the 
client?

thanks
reto
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+GHUoD1pReGFYfq4RArrDAKCTw8AuckGhXbmLo1zEKPWSA7PkvQCggN7F
wCvXQsjZLFJDetd7HRcl9D4=
=MDKO
-END PGP SIGNATURE-


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



Need help w. viewing Servlet!!

2003-01-05 Thread Steve R. Burrus
  Hello everyone, I need some help/assistance with trying to see a Servlet in my 
Tomcat v. 4.1.16!!! It is a simple log on page with a text box for the user's name and 
also for the email addrr. When I click on the Submit button after filling in both 
fields, the next page indicates a damn server error, i.e., HTTP Server Errror 404, 
indicating that the requested resource was not found by the server!!! 

 I think that it is saying that the required class bearing the particular name was not 
found, for some reason!! I have gone into the web.xml file to do some heavy [sic] 
editing of it, such as putting in the servlet name and the servlet class, but alas, to 
no avail so far! It is driving me absolutely crazy that I cannot seem to even be 
able to view this rather simple servlet. Then again, maybe it shouldn't, in that I am 
admittedly the very newest of the Newbies out there first trying to get involved 
with creating these components of the J2EE API like Servlets and Java Server Pages. 
And I will cut off anyone who suggests a good book on the J2EE to me because I 
really am NOT looking for a book to read to help me out with this problem. NO, I am 
looking for some hard and useful advice from someone. Capiche?

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



Tomcat-SSL: no cipher suites in common Exception

2003-01-05 Thread Dor Perl

Hi All, 

Our site is running on Tomcat 3.3/Windows2k stand alone and we want to create a 
secured page on the Tomcat server (can be a different machine). 
We bought an SSL certificate from Comodo (after sending them our CSR that was 
created using keytool) afterwards we imported the received certificate to the 
keystore. 
The server starts ok, but when a web browser access it on the SSL port, we get the 
following exception: 
%% Created: [Session-1, SSL_NULL_WITH_NULL_NULL]
Thread-56, SEND SSL v3.0 ALERT: fatal, description = handshake_failure
Thread-56, WRITE: SSL v3.0 Alert, length = 2
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: no cipher suites in common
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(DashoA62
75)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
PoolTcpEndpoint: Handshake failed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) 
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
d@19e15c, terminating thread
javax.net.ssl.SSLException: Unsupported SSL v2.0 ClientHello
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) 
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
d@19e15c, terminating thread
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484) 

I also did the following: 
* added javax.net.debug=all to the System properties to see the Debug information. 
* generated my own certificate using keytool (and it works ok. But the certificate is, 
of course, invalid) 
* Tried to access the server with different SSL protocols. 
* Searched every possible thing in the net ;-( 
I dedicated alot of time for this thing but no good. I would be grateful if somenoe 
could help us. Is it possible that the problem is in the certificate we got from the 
SSL provider? 

Thanks in advance for your help,

Dor Perl




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



Re: need help w. viewing servlet

2003-01-05 Thread Steve R Burrus
Hello everyone, I need some help/assistance with trying to see a Servlet in my
Tomcat v. 4.1.16!!! It is a simple log on page with a text box for the user's name
and also for the email addrr. When I click on the Submit button after filling in
both fields, the next page indicates a damn server error, i.e., HTTP Server Errror
404, indicating that the requested resource was not found by the server!!! 
I think that it is saying that the required class bearing the particular name was
not found, for some reason!! I have gone into the web.xml file to do some heavy
[sic] editing of it, such as putting in the servlet name and the servlet class,
but alas, to no avail so far! It is driving me absolutely crazy that I cannot
seem to even be able to view this rather simple servlet. Then again, maybe it
shouldn't, in that I am admittedly the very newest of the Newbies out there
first trying to get involved with creating these components of the J2EE API like
Servlets and Java Server Pages. And I will cut off anyone who suggests a good
book on the J2EE to me because I really am NOT looking for a book to read to help
me out with this problem. NO, I am looking for some hard and useful advice from
someone. Capiche?
Oh, and if anyone has the book entitled Professional Java Server Programming 
J2EE Edition by a whole variety of authors by Wrox Publishing, I am referring to
the GreetingServlet.java program in Chapter 7. Thank you.


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

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




RE: web apps and directory structure...

2003-01-05 Thread Noel J. Bergman
Jason,

Does this help at all?  http://www.mvps.org/win32/ntfs/lnw.html

--- Noel


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




RE: Set up tomcat to do content negotiation/hiding file-extension in URLs

2003-01-05 Thread Noel J. Bergman
 Is there a way to hide the file extensions in URIs i.e. linking to 
 http://example.com/mypage instead of http://example.com/mypage.html and 
 have tomcat returning the content in the flavour preferred by the 
 client?

I would suggest a Filter for that purpose.

--- Noel

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




Re: Loading XML Files - Best Pracitices

2003-01-05 Thread Jacob Kjome

Make sure to see Craig's post about the Jakarta commons Digester.  By his 
description, it really simplifies things.  I'm going to check it out myself.

Jake

At 02:32 AM 1/5/2003 -0600, you wrote:
I'm pretty impressed with the various options, thanks again everyone.
I will try a few of them and take it from there.
I had the feeling that there were some good things out there.  Not that 
it's so hard to deal with XML but I think that
that the usual DOM and SAX APIs are bit too low level for a good number of 
ubiquitous  tasks.

Appreciate all the feedback,
-FB

On Saturday, January 4, 2003, at 08:08  PM, Hookom, Jacob John wrote:

I recommend Dom4j, it offers the best overall performance out of the XML 
libs and it works really well for large files with the ability to prune 
on read.

www.dom4j.org


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Sat 1/4/2003 1:58 PM
To: Tomcat Users List
Cc:
Subject: Re: Loading XML Files - Best Pracitices




No, I don't really have any reservations about JDOM...except for 
the fact
that there has been little to zero development on it of 
late.  Check out
the amount of time that has passed since the last beta release 
(9 - 10
months!).  At this rate, they'll release a 1.0 version in a 
couple more
years while Xerces development steams on ahead.  JDOM may be 
elegant, but I
wish the main developers would put their nose to the grindstone 
and get, at
least, another beta release out in short order!

To tell you the truth, I would just use a SAX parser.  That will 
be faster
than any of the other methods including JDOM.

Jake

At 12:01 PM 1/4/2003 -0600, you wrote:
Howdy,

Thanks for all the good suggestions. I'm going with JDOM, just 
because
it's pretty darn elegant and simple. It also appears that it 
will be
(if not already) an XML standard for Java.  So all signs 
indicate that
I'm not marrying myself to an obscure API.

Do any of you have reservations about JDOM?

Thanks,
-FB

On Saturday, January 4, 2003, at 08:02  AM, Jacob Kjome wrote:


Well,

There are a number of parsers available.  You can use DOM, JDOM,
DOM4J, SAX, or, actually, you might want to try out XPath 
using Jaxen.

Here is an example of reading in a document using DOMand no
specific external package so you don't marry yourself to a 
particular
implementation...

DocumentBuilderFactory dbfactory =
DocumentBuilderFactory.newInstance();
dbfactory.setNamespaceAware(true);
Document doc = null;
try {
 DocumentBuilder dbuilder = dbfactory.newDocumentBuilder();
 InputStream = 
context.getResourceAsStream(/WEB-INF/mydoc.xml);
 doc = dbuilder.parse(is);
}
catch (ParserConfigurationException pce) {}
catch (SAXException se) {}
catch (IOException ioe) {}


You can then grab a NodeList of some part of the document and 
iterate
through that or you can then use Jaxen to get to specific data 
with
XPath queries


try {
 XPath xpath = new
DOMXPath(//MyElement[@myAttribute='someSpecificValue']/ 
AnotherElement);
 Node node = (Node)xpath.selectSingleNode(domainDoc);
 //now do something with the node
}
catch (XPathSyntaxException xse) {}
catch (JaxenException je) {}


If you know, in advance, all the elements you will need to 
read, then
you might want to write a SAX parser for your document.  It 
will be
the fastest methodor you could use XML data binding using 
Zeus or
JAXB which will allow you to read in a whole document and 
access all
the data using standard Java Bean getters and set the values using
standard Java bean setters.  In this case, you don't even need to
worry about XML since the fact that it is XML is totally 
hidden from
you.  You can then marshal your updated object (assuming you 
modified
it) back to an XML document.

There are lots of ways to do this.  Which way you choose 
depends on
your needs and what API's you feel most comfortable with.

Jake


At 07:29 PM 1/3/2003 -0600, you wrote:
I have a servlet and I want it to read it's data from an XML 
file.
There's more than one way of doing this task and I'm fishing 
for best
practices.
Can anyone provide me with some links to example code? I'm 
sure this
has been beaten to death and I don't want to reinvent the wheel.

Thanks!



RE: Loading XML Files - Best Pracitices

2003-01-05 Thread Jacob Kjome

Hi Jacob,

Did you actually test the performance of Dom4j?  I'm just curious.  I have 
heard very good things about Dom4j.

Jake

At 08:08 PM 1/4/2003 -0600, you wrote:
I recommend Dom4j, it offers the best overall performance out of the XML 
libs and it works really well for large files with the ability to prune on 
read.

www.dom4j.org


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Sat 1/4/2003 1:58 PM
To: Tomcat Users List
Cc:
Subject: Re: Loading XML Files - Best Pracitices




No, I don't really have any reservations about JDOM...except for 
the fact
that there has been little to zero development on it of 
late.  Check out
the amount of time that has passed since the last beta release (9 
- 10
months!).  At this rate, they'll release a 1.0 version in a 
couple more
years while Xerces development steams on ahead.  JDOM may be 
elegant, but I
wish the main developers would put their nose to the grindstone 
and get, at
least, another beta release out in short order!

To tell you the truth, I would just use a SAX parser.  That will 
be faster
than any of the other methods including JDOM.

Jake

At 12:01 PM 1/4/2003 -0600, you wrote:
Howdy,

Thanks for all the good suggestions. I'm going with JDOM, just 
because
it's pretty darn elegant and simple. It also appears that it will be
(if not already) an XML standard for Java.  So all signs 
indicate that
I'm not marrying myself to an obscure API.

Do any of you have reservations about JDOM?

Thanks,
-FB

On Saturday, January 4, 2003, at 08:02  AM, Jacob Kjome wrote:


Well,

There are a number of parsers available.  You can use DOM, JDOM,
DOM4J, SAX, or, actually, you might want to try out XPath using 
Jaxen.

Here is an example of reading in a document using DOMand no
specific external package so you don't marry yourself to a 
particular
implementation...

DocumentBuilderFactory dbfactory =
DocumentBuilderFactory.newInstance();
dbfactory.setNamespaceAware(true);
Document doc = null;
try {
 DocumentBuilder dbuilder = dbfactory.newDocumentBuilder();
 InputStream = 
context.getResourceAsStream(/WEB-INF/mydoc.xml);
 doc = dbuilder.parse(is);
}
catch (ParserConfigurationException pce) {}
catch (SAXException se) {}
catch (IOException ioe) {}


You can then grab a NodeList of some part of the document and 
iterate
through that or you can then use Jaxen to get to specific data with
XPath queries


try {
 XPath xpath = new
DOMXPath(//MyElement[@myAttribute='someSpecificValue']/ 
AnotherElement);
 Node node = (Node)xpath.selectSingleNode(domainDoc);
 //now do something with the node
}
catch (XPathSyntaxException xse) {}
catch (JaxenException je) {}


If you know, in advance, all the elements you will need to 
read, then
you might want to write a SAX parser for your document.  It will be
the fastest methodor you could use XML data binding using 
Zeus or
JAXB which will allow you to read in a whole document and 
access all
the data using standard Java Bean getters and set the values using
standard Java bean setters.  In this case, you don't even need to
worry about XML since the fact that it is XML is totally hidden 
from
you.  You can then marshal your updated object (assuming you 
modified
it) back to an XML document.

There are lots of ways to do this.  Which way you choose depends on
your needs and what API's you feel most comfortable with.

Jake


At 07:29 PM 1/3/2003 -0600, you wrote:
I have a servlet and I want it to read it's data from an XML file.
There's more than one way of doing this task and I'm fishing 
for best
practices.
Can anyone provide me with some links to example code? I'm 
sure this
has been beaten to death and I don't want to reinvent the wheel.

Thanks!


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


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



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


RE: Changed file name now webapp not working right

2003-01-05 Thread Noel J. Bergman
Denise,

The front end is/was FormValidate.jsp/CCProcess.jsp, which forwards to
Verify.jsp or Retry.jsp?

You renamed it, and now when you submit the form you never get to
Verify.jsp?  You are saying that when Retry.jsp submits the form, the form
action is CCProcess.jsp?  Have you put any log code into CCProcess.jsp to
trace what is happening?

--- Noel


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




RE: Changed file name now webapp not working right [RBS2003010500005512]

2003-01-05 Thread techassistance
Ahoy there!

This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.

We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at the level that you've come to expect
from The River Belle Online Casino.

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

www.riverbelle.com/a3099  www.aceshigh.com/a3181

24/7 toll-free support24/7 toll-free support

USA:1 888 615 2383USA:1 877 566 0482
CANADA: 1 888 552 4196CANADA: 1 877 776 0549
UK: 0 800 783 4381UK: 0 800 169 8796

E-mail support:   E-mail support
[EMAIL PROTECTED][EMAIL PROTECTED]

E.O.E.

The River Belle Online Casino respects your online time
and privacy.  If you wish to be removed from our mailing
list and not receive any promotional e-mails from us,
please send an e-mail to [EMAIL PROTECTED] and
type UNSUBSCRIBE in the subject bar.




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




RE: Tomcat and Apache

2003-01-05 Thread Turner, John

If you have an Apache VirtualHost of www.admged.ufu.br, you must have a Host
in server.xml with the same value.

If you have a JkMount line that says JkMount /test/* ajp13 you must have a
Context named /test in server.xml for the host www.admged.ufu.br.

The best examples are the files that come with Tomcat itself, meaning
server.xml and the Tomcat examples, which are /examples.

For example, in a default installation, there would be something like this
in httpd.conf:

VirtualHost localhost

JkMount /examples/*.jsp ajp13

/VirtualHost

And in server.xml:

Host name=localhost

Context path=/examples docBase=examples debug=0
 reloadable=true crossContext=true

  !--- some other stuff here ---
/Context

  !--- some other stuff here ---

/Host

This will send requests for http://localhost/examples/*.jsp to the /examples
Context of Tomcat.

I have HOWTOs on my site that explain exactly how to link Apache and Tomcat
together to serve the Tomcat examples through Apache on port 80, for Red
Hat, Solaris, and Windows XP.  After that, the rest is up to you, as only
you have the configuration that you have (virtual hosts, etc).  In your
case, you would simply duplicate what is in server.xml for the localhost
virtual host and change localhost to www.admged.ufu.br, then add your
Context for the webapp.  If you want your webapp to be in /* instead of
/myApp/* then you would put your web application in Tomcat's special ROOT
Context, an example of which is also in server.xml.  

The HOWTOs are here: http://www.johnturner.com/howto and there are many
others on the net.

John

-Original Message-
From: SebastiĆ£o Carlos Santos [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 11:52 AM
To: Tomcat Users List
Subject: RE: Tomcat and Apache


The configuration of the virtual host in the Apache is striped below, in
extracted fragment of the file httpd.conf:

VirtualHost www.admged.ufu.br
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/admged
ServerName admged.ufu.br
ServerAlias www.admged.ufu.br
ErrorLog /web/admged/log/apache_error_log
CustomLog /web/admged/log/apache_access_log
JkMount /test ajp13
JkMount /test/* ajp13
/VirtualHost

Since then they follow my questions, I have faith that even certain point,
very basic:  

1 - I have the configuration of the virtual host www.admged.ufu.br in the
Apache. Is it necessary to do the configuration of the virtual host
www.admged.ufu.br in the file of configuration of Tomcat, and will I use the
two (Apache + Tomcat) in an integrated way?

2 - Below it is the listing of my tree of directories that will store the
test pages. I want that all my files jsp under / web/admged are interpreted
as files jsp by the server. Like this being, as it should be my JKMount in
the Apache?

admged@admged:~  tree /web/
/web/
|-- WEB-INF
|   `-- classes
`-- admged
|-- WEB-INF
|   `-- classes
|-- index.jsp
`-- log
|-- apache_access_log
`-- apache_error_log

6 directories, 3 files

If they could send in some way some example file or a documentation that it
shows in a clear way as proceeding with the configuration I will be very
thankful. I thank the released help once again.





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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




RE: Need help w. viewing Servlet!!

2003-01-05 Thread Turner, John

Steve -

Sorry, but I have been reading your rants on this list for months.  Many
people have tried to help you, over and over and over, yet you still have an
attitude.

I suggest you get yourself a book, take a deep breath, and stop ranting.
You will get a LOT MORE help from the people on this list if you chill out
and ask nicely instead of posting with an attitude.

Cut me off if you like, but realize, if you can, that the very people you
are cutting off are the very people who can help you, and the advice they
are giving you is the advice you should take.  For example, GETTING A BOOK
AND READING IT, or perhaps, heaven forbid, READING THE DOCUMENTATION.

Since you will probably ignore that advice, you will probably ignore this
advice as well, to your detriment and continued frustration:  if you want
help from the list, follow the examples that nearly everyone else follows,
and post with VERY SPECIFIC information.  Posting with I did heavy editing
of web.xml and Help me now I get a 404 will just get you ignored, when
posting a specific question, saying please, and including the relevant JSP
or servlet that you are using in your post will almost GUARANTEE you a fast
answer, allowing you to quickly relieve your frustration.

I posted a HOWTO for Apache + Tomcat + mod_jk on Windows XP on my site.  If
I recall correctly, you are using Windows XP.  If, in the future, you wish
to try integrating Apache with Tomcat again using mod_jk, perhaps my HOWTO
will help you and you won't need to post another rant here to the list.

The choice, I guess, is up to you.  Have a great new year.

John


-Original Message-
From: Steve R. Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: Need help w. viewing Servlet!!


  Hello everyone, I need some help/assistance with trying to see a Servlet
in my Tomcat v. 4.1.16!!! It is a simple log on page with a text box for the
user's name and also for the email addrr. When I click on the Submit button
after filling in both fields, the next page indicates a damn server error,
i.e., HTTP Server Errror 404, indicating that the requested resource was not
found by the server!!! 

 I think that it is saying that the required class bearing the particular
name was not found, for some reason!! I have gone into the web.xml file to
do some heavy [sic] editing of it, such as putting in the servlet name and
the servlet class, but alas, to no avail so far! It is driving me absolutely
crazy that I cannot seem to even be able to view this rather simple
servlet. Then again, maybe it shouldn't, in that I am admittedly the very
newest of the Newbies out there first trying to get involved with creating
these components of the J2EE API like Servlets and Java Server Pages. And I
will cut off anyone who suggests a good book on the J2EE to me because I
really am NOT looking for a book to read to help me out with this problem.
NO, I am looking for some hard and useful advice from someone. Capiche?

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




RE: need help w. viewing servlet

2003-01-05 Thread Turner, John

Please post the JSP code that is creating your form, and describe where your
servlet is located that you wish to receive the form submission.

Generic comments like it doesn't work will most likely get you ignored by
the list, especially considering your past history here.

Also, you might want to include the heavy editing you did in web.xml, that
is, post it here so that we can see what you did.  We aren't mind readers.

Have a great day.

John


-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 2:23 PM
To: [EMAIL PROTECTED]
Subject: Re: need help w. viewing servlet


Hello everyone, I need some help/assistance with trying to see a Servlet in
my Tomcat v. 4.1.16!!! It is a simple log on page with a text box for the
user's name and also for the email addrr. When I click on the Submit button
after filling in both fields, the next page indicates a damn server error,
i.e., HTTP Server Errror 404, indicating that the requested resource was not
found by the server!!! 
I think that it is saying that the required class bearing the particular
name was not found, for some reason!! I have gone into the web.xml file to
do some heavy [sic] editing of it, such as putting in the servlet name and
the servlet class, but alas, to no avail so far! It is driving me absolutely
crazy that I cannot seem to even be able to view this rather simple
servlet. Then again, maybe it shouldn't, in that I am admittedly the very
newest of the Newbies out there first trying to get involved with creating
these components of the J2EE API like Servlets and Java Server Pages. And I
will cut off anyone who suggests a good book on the J2EE to me because I
really am NOT looking for a book to read to help me out with this problem.
NO, I am looking for some hard and useful advice from someone. Capiche? Oh,
and if anyone has the book entitled Professional Java Server Programming 
J2EE Edition by a whole variety of authors by Wrox Publishing, I am
referring to the GreetingServlet.java program in Chapter 7. Thank you.


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

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




RE: Tomcat and Apache [RBS2003010500005558]

2003-01-05 Thread techassistance
Ahoy there!

This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.

We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at the level that you've come to expect
from The River Belle Online Casino.

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

www.riverbelle.com/a3099  www.aceshigh.com/a3181

24/7 toll-free support24/7 toll-free support

USA:1 888 615 2383USA:1 877 566 0482
CANADA: 1 888 552 4196CANADA: 1 877 776 0549
UK: 0 800 783 4381UK: 0 800 169 8796

E-mail support:   E-mail support
[EMAIL PROTECTED][EMAIL PROTECTED]

E.O.E.

The River Belle Online Casino respects your online time
and privacy.  If you wish to be removed from our mailing
list and not receive any promotional e-mails from us,
please send an e-mail to [EMAIL PROTECTED] and
type UNSUBSCRIBE in the subject bar.




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




RE: need help w. viewing servlet

2003-01-05 Thread Noel J. Bergman
 I have gone into the web.xml file to do some heavy [sic] editing
 of it, such as putting in the servlet name and the servlet class,
 but alas, to no avail so far!

Well, it would help to see that segment of the file, and also find out from
you where you put the .class file.  Do you have a servlet mapping defined,
or just the servlet?  If the latter, did you enable the invoker, or are you
just sort of waiting for magic to happen?

In other words, in addition to (for example):

  servlet
servlet-name
   photo
/servlet-name
servlet-class
   com.devtech.servlet.PhotoServlet
/servlet-class
  /servlet

you also need

  servlet-mapping
  servlet-nameinvoker/servlet-name
  url-pattern/servlets/*/url-pattern
  /servlet-mapping

or an explicit mapping for each servlet.

--- Noel


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




RE: need help w. viewing servlet

2003-01-05 Thread Steve R Burrus
 Hello John, I will wisely ignore all of the damned admonitions that you saw fit
to sort of dish out to me (stuff that you have certainly said to me
before!)and acknowledge your Happy New Year wish you ended your email msg. on! 

 Listen, there IS one, and just one criticsm of me that I will go along with, and
that is that I just flat don't give enough detail of what the problem is exactly
to everyone else in our newsgroup!! That's why I am including in this email
message the html page that is the servlet in question, which as I have said
before, is nothing but a logon page with 2 textboxes. One is for the user's name,
and the other one is for the user's email address. I am quite sorry that I was not
allowed/permitted to save the server error [the 404 server error] page for some
reason. And I will try to include the so-called heavy editing that I mentioned
in my first post of the web.xml file in a later posting to our little newsgroup
because I really don't believe, in my subjective opinion, that it's all that
important, to be frank and honest (which I am always am :) ). I mean, the little
bit of editing of it that I have done with other JSP's/servlets in the past has
not yielded any successful results at all.   

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

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


iPlanet 6.0/Solaris 8: nsapi_redirector.so symbol errors

2003-01-05 Thread Brian_Carmody

I am trying to get an iPlanet 6.0 web server to talk to a tomcat 4.1.18
apps server.  What i've read so far is that i need an nsapi plugin
nsapi_redirector.so to redirect the appropriate requests down to the apps
server. I downloaded the 4.1.18-connector source, and found
jk/native/netscape undernearth. defining SUITEPOT_HOME to the iplanet
install lets me make without any errors in that directory. After modifiying
obj.conf and magnus.conf and restarting,  the iPlanet instance dies and in
the $SUITESPOT_HOME/$INSTANCE/logs/errors, i see:

[05/Jan/2003:15:47:42] info (28713): iPlanet-WebServer-Enterprise/6.0SP2
B11/13/2001 00:49
[05/Jan/2003:15:47:42] failure (28713): Configuration initialization
failed: Error running init function load-modules: dlopen of
/u01/iplanet/iws/tomcat-plugin/lib/nsapi_redirector.so failed (ld.so.1:
ns-httpd: fatal: relocation error: file
/u01/iplanet/iws/tomcat-plugin/lib/nsapi_redirector.so: symbol
jk_parse_log_level: referenced symbol not found)


Any ideas on why nsapi_redirector.so is failing?  Is this even the right
way to get iPlanet to talk to tomcat?

Thanks in advance

Brian Carmody
UNIX SA
Element K




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




RE: Tomcat and Apache

2003-01-05 Thread SebastiĆ£o Carlos Santos
John,
Thank you for the help. Tomorrow I will try to implant what was discussed.
Once again thank you.




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




RE: need help w. viewing servlet

2003-01-05 Thread Noel J. Bergman
 That's why I am including in this email message the html page
 that is the servlet in question

It isn't attached.

 I will try to include the so-called heavy editing that I mentioned
 in my first post of the web.xml file in a later posting [because I
 really don't believe, in my subjective opinion, that it's all that
 important

Look at it this way: since your servlets aren't working, it makes sense to
provide the information that people whose servlets are working do believe to
be useful.

--- Noel


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




Re: can tomcat do dynamic virtual hosts?

2003-01-05 Thread Joseph Shraibman
Turner, John wrote:




Tomcat has an Alias element in server.xml.  It goes under Host.


OK thanks for pointing that out.




 

Tomcat needs to do what it needs to do because a web app is 

more than just a


directory that has content in it.



Right, but sometimes you might want to lump multiple things into one 
webapp.


Sorry, I have no idea what that means.


Somtimes you want a.host.com and b.host.com to be in the same webapp




Which is my point.  Using auto-deply is not the same thing as simply 
creating a directory and putting files in it. Apache has the dynamic 
virtual host feature for a reason.  Using auto-deply requires 
that all 
your content be under directories, which doesn't look as nice 
as having a 
hostname.  name.host.com is better than host.com/name


You can have name.host.com.  I just don't understand why you think you can't
do that.  Tomcat's Host element can take ANYTHING as its name parameter
(within reason) and the Host element can take an Alias element.

Nowhere in Tomcat is a rule that says host.com/name is the only legal URL.
You can have name.host.com all you like, you just configure Host
accordingly and put the webapp in the special ROOT Context and your webapp
is served as name.host.com/.  How is that not what you want?

My point is that a webapp is not just a directory with some files in it.
There's a lot more to a webapp then that, and thus, there is more that
Tomcat has to do and more configuration overhead required or possible
(Realms, etc).  You can auto-deploy a Context.


How?  If I want to add a new Context don't I have to restart tomcat to reread the 
server.xml file.

Scroll down to the section that says automatic application deployment and
the following section on host name aliases.  Basically, for a dynamic
virtual host, since you're going to need a restart anyway (see Craig's
comments on possible future ability to pick up config changes on-the-fly
without a restart):

That's my point. In apache it doesn't need a restart.



- add a new Host element to server.xml with one or more Alias
- drop an XML file into the appBase directory, according to the auto deploy
specs to auto-define your web app

Since you have a restart, a new mod_jk.conf file is generated, and it will
have the new Host information in it.


I gave up on autogeneration.


Even so, you wouldn't WANT a restart, because having a monolithic Tomcat
with many many virtual hosts and webapps in it is the wrong way to go in an
ISP/ASP scenario (in my opinion). 

This isn't that scenario, but we do have multiple webapps and hosts.

 So, if you agree with that, then what

you're really talking about is a small shell script that simply copies the
default server.xml to server-customer-account.xml, creates a
work-customer-account directory, and does all of the other things required
to have a distinct instance of Tomcat running (including the Host and web
app config listed above), and then does a start on the new Tomcat.


Distinct tomcat? That would mean a different port for each tomcat, plus the overhead (90 
megs of memory on my test machine)



Maybe I'm just a tree stump, but I haven't seen you propose a case that
can't be handled.


The case where tomcat works with my Apache dynamic virtual hosts. Apache doesn't *need* 
dynamic virtual hosts either, you could just use a lost of virtual hosts. It would be nice 
if tomcat supported the same thing.


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



OFF-TOPIC: input/outputstreams

2003-01-05 Thread Felipe Schnack
  Ok, I feel really stupid doing this, must be a better way...
  I'm using an API that at some point returns me an ByteArrayOutputStream. I
want to pass this data to another method that receives an InputStream. Whan
I'm doing right now is the following:
  ByteArrayOutputStream baos = class1.method1();
  class2.method2(new ByteArrayInputStream(baos.toString().getBytes()));
  Please, there is another way, isn't it? :-))

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

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


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




RequestDispatcher and forward

2003-01-05 Thread jejonas
OS: Windows XP - for development
TC: 4.1.18
JA: 1.4.1_01

I was under the impression that after calling RequestDispatcher.forward the 
method would return and all subsequent processing would cease. However, this 
apparently isn't the case. 

For instance, when a user logs on successfully, we attach an object to the 
user's session and forward to the last known uri, but if the login failed, we 
forward the request back to the login page with invalid fields attached to the 
request. The logic kinda goes like:

if successful login {
  attach user info to session
  forward to last known uri
}
attach invalid fields to request
forward to login page

The behavior we're seeing is that the 'forward to login page' fails with an 
IllegalStateException (Cannot forward after response has been committed).

So what's up? Are we wrong to assume that a method effectively 'returns' after 
a forward and we need to add return statements after forwards or is there 
something we're missing altogether? 

Thanks.

Jason

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




Re: RequestDispatcher and forward

2003-01-05 Thread jejonas
Well, forget it. :) I looked at some of my old code from a couple of years ago 
and found my answer. Baaad assumption on my part. Thanks for the bandwidth.

Jason
 OS: Windows XP - for development
 TC: 4.1.18
 JA: 1.4.1_01
 
 I was under the impression that after calling RequestDispatcher.forward the 
 method would return and all subsequent processing would cease. However, this 
 apparently isn't the case. 
 

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




Re: SMTP-Auth problem

2003-01-05 Thread Tomcat User
From: Jan Ulrich [EMAIL PROTECTED]
Sent: Sunday, January 05, 2003 9:20 AM
Subject: SMTP-Auth problem


 Hello,
 I'm trying to send a mail with a SMTP-Server, which needs SMTP-Auth.
 The code attached to this posting works perfect if executed from a
 shell, but i need this function in a servlet running on a Tomcat 4.1
 webcontainer.

 The DEBUG in a shell says:
 DEBUG SMTP: useEhlo true, useAuth true

 The Tomcat debug however says:
 DEBUG SMTP: useEhlo true, useAuth false

 and the sending fails. It looks as if Tomcat does not support SMTP Auth.
 Is there a possibility to replace some Tomcat jars with jars from J2EE?

 Any help is appreciated, thanks

 Jan Ulrich


 import java.util.*;
 import javax.mail.*;
 import javax.mail.internet.*;

 class sendMessageApp {
static String host = mail.gmx.net;
static String user = somebody;
static String password = secret;
static boolean debug = true;
static String toAddress = to@you;
static String fromAddress = from@me;

public static void main(String[] argv) {
  // set the host
  Properties props = new Properties();
  props.put(mail.smtp.host,host);
  props.put(mail.smtp.auth,true);
  //create some properties and get the default session
  Session session = Session.getDefaultInstance(props, null);
  session.setDebug(true);

  try {
System.out.println(Getting Transport for smtp);
Transport tr = session.getTransport(smtp);
try {
tr.connect(mail.gmx.net,user, password);
}
catch (MessagingException ex) {
  ex.printStackTrace();
  System.exit(1);
}

// create a message
Message msg = new MimeMessage(session);

// set the from
InternetAddress from = new InternetAddress(fromAddress);
msg.setFrom(from);
InternetAddress[] address = {new InternetAddress(toAddress)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(This is a test);

msg.setContent(hello,text/plain);
msg.saveChanges();
System.out.println(Before sending...);
tr.sendMessage(msg, address);
   }
  catch (javax.mail.MessagingException mex) {
mex.printStackTrace();
}
}
 }


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



I played around with smtp_auth under tomcat 4.1.12 and got it to work.
 here is the key method I used which works for me...

Randy

/**
 * @author Randy Secrist
 *
 * This method is used for writing messages to an SMTP server using
 * SMTP authentication.  This uses a digest, and not TLS.
 */
public static void sendBytes(String uid, String pw, String to, String
from, String host, String msgtxt,
String subject, boolean debug) throws MessagingException {

// set some default parameters
if (from == null) from = [EMAIL PROTECTED];
if (host == null) host = smtpHost;
if (msgtxt == null) msgtxt = MessageBody;
if (subject == null) subject = Subject of Email;

// Create the Java Mail Session
// (uses mail.jar, smtp.jar, activation.jar)
Properties props = System.getProperties();
props.put(mail.smtp.host, host);
props.put(mail.smtp.auth, true);
Session session = Session.getInstance(props, null);
session.setDebug(debug);

try {
// create a message
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);

// create and fill the first message part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(msgtxt);

// create the Multipart and its parts to it
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);

// add the Multipart to the message
msg.setContent(mp);

// set the Date: header
msg.setSentDate(new Date());

// authenticate  send the message
Transport transport = session.getTransport(smtp);
transport.connect(host, uid, pw);
msg.saveChanges();
transport.sendMessage(msg, msg.getAllRecipients());
transport.close();
transport = null;
}
catch (MessagingException mex) {
mex.printStackTrace();
Exception ex = null;
if ((ex = mex.getNextException()) != null) {
ex.printStackTrace();
}
throw mex;
}
finally {
// Turn off authentication - or next non authenticated call will
fail.
props.remove(mail.smtp.auth);
session = Session.getInstance(props);
session = null;
}
}



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




Re: SMTP-Auth problem

2003-01-05 Thread Randy Secrist
Jan Ulrich wrote:


Hello,
I'm trying to send a mail with a SMTP-Server, which needs SMTP-Auth.
The code attached to this posting works perfect if executed from a 
shell, but i need this function in a servlet running on a Tomcat 4.1 
webcontainer.

The DEBUG in a shell says:
DEBUG SMTP: useEhlo true, useAuth true

The Tomcat debug however says:
DEBUG SMTP: useEhlo true, useAuth false

and the sending fails. It looks as if Tomcat does not support SMTP 
Auth. Is there a possibility to replace some Tomcat jars with jars 
from J2EE?

Any help is appreciated, thanks

Jan Ulrich


import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

class sendMessageApp {
  static String host = mail.gmx.net;
  static String user = somebody;
  static String password = secret;
  static boolean debug = true;
  static String toAddress = to@you;
  static String fromAddress = from@me;

  public static void main(String[] argv) {
// set the host
Properties props = new Properties();
props.put(mail.smtp.host,host);
props.put(mail.smtp.auth,true);
//create some properties and get the default session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);

try {
  System.out.println(Getting Transport for smtp);
  Transport tr = session.getTransport(smtp);
  try {
  tr.connect(mail.gmx.net,user, password);
  }
  catch (MessagingException ex) {
ex.printStackTrace();
System.exit(1);
  }

  // create a message
  Message msg = new MimeMessage(session);

  // set the from
  InternetAddress from = new InternetAddress(fromAddress);
  msg.setFrom(from);
  InternetAddress[] address = {new InternetAddress(toAddress)};
  msg.setRecipients(Message.RecipientType.TO, address);
  msg.setSubject(This is a test);

  msg.setContent(hello,text/plain);
  msg.saveChanges();
  System.out.println(Before sending...);
  tr.sendMessage(msg, address);
  }
catch (javax.mail.MessagingException mex) {
  mex.printStackTrace();
  }
  }
}


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

I played around with smtp_auth under tomcat 4.1.12 and got it to work.
 here is the key method I used which works for me...

Randy

/**
 * @author Randy Secrist
 *
 * This method is used for writing messages to an SMTP server using
 * SMTP authentication.  This uses a digest, and not TLS.
 */
public static void sendBytes(String uid, String pw, String to, String
from, String host, String msgtxt,
String subject, boolean debug) throws MessagingException {

// set some default parameters
if (from == null) from = [EMAIL PROTECTED];
if (host == null) host = smtpHost;
if (msgtxt == null) msgtxt = MessageBody;
if (subject == null) subject = Subject of Email;

// Create the Java Mail Session
// (uses mail.jar, smtp.jar, activation.jar)
Properties props = System.getProperties();
props.put(mail.smtp.host, host);
props.put(mail.smtp.auth, true);
Session session = Session.getInstance(props, null);
session.setDebug(debug);

try {
// create a message
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);

// create and fill the first message part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(msgtxt);

// create the Multipart and its parts to it
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);

// add the Multipart to the message
msg.setContent(mp);

// set the Date: header
msg.setSentDate(new Date());

// authenticate  send the message
Transport transport = session.getTransport(smtp);
transport.connect(host, uid, pw);
msg.saveChanges();
transport.sendMessage(msg, msg.getAllRecipients());
transport.close();
transport = null;
}
catch (MessagingException mex) {
mex.printStackTrace();
Exception ex = null;
if ((ex = mex.getNextException()) != null) {
ex.printStackTrace();
}
throw mex;
}
finally {
// Turn off authentication - or next non authenticated call will
fail.
props.remove(mail.smtp.auth);
session = Session.getInstance(props);
session = null;
}
}



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




Re: RequestDispatcher and forward

2003-01-05 Thread Reto Gmuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The behavior we're seeing is that the 'forward to login page' fails 
with an
IllegalStateException (Cannot forward after response has been 
committed).
I got this exception when I invoked the getWriter() or when I set the 
content-type before doing the forward.

So what's up? Are we wrong to assume that a method effectively 
'returns' after
a forward and we need to add return statements after forwards or is 
there
something we're missing altogether?
Don't know if I understand you, but I see no way in java for a method 
to cause the invoking method to return immediately.

reto
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+GK7aD1pReGFYfq4RAheWAKCZpQUhZBYHLy6R9nNcz9MRrN356gCfT+hv
IxRnQrza9+UM4UrKkjR7vTs=
=Kftc
-END PGP SIGNATURE-


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



Re: mod_jk: Disable sticky sessions

2003-01-05 Thread Tim Funk
In server.xml:
Set cookies=false for your application context.
Eg: (Taken from sample config from 4.1.18)
Context className=org.apache.catalina.core.StandardContext 
crossContext=true reloadable=false 
mapperClass=org.apache.catalina.core.StandardContextMapper 
useNaming=true debug=0 swallowOutput=false privileged=false 
wrapperClass=org.apache.catalina.core.StandardWrapper 
docBase=examples cookies=false path=/examples 
cachingAllowed=true 
charsetMapperClass=org.apache.catalina.util.CharsetMapper

This should turn cookies off for sessions. If you do not URL encode your 
sessions - then there will be no way for users to be sticky.

The bad part is - every request will allocate a new HttpSession. (If 
request.getSession(true) is used or every JSP does not contain the 
command to not not create a session. )

-Tim


David Klimek wrote:
Hello,

I would like to use mod_jk as simple loadbalancer without sticky sessions.

Is there any way to disable sticky sessions in mod_jk?

I don't have jvmRoute atribute set but sessions are always sticky.

I'm using
mod_jk-1.3-eapi.so
apache 1.3.26
jboss-3.0.4_tomcat-4.1.12

Thanks a lot for any hint
David




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




RE: need help w. viewing servlet

2003-01-05 Thread Steve R Burrus
 Okay Noel, this posting of mine this time is for you. You said earlier that you
didn't get the servlet page html file. Well, here it is again, and also it let me
save the server error [html server 404] page for the GreetingServlet.java
program, so I present that to you also!

 Listen, would you please, please go into more about editing the web.xml file??? i
really am just a damned novice when it comes to trying to edit this file! And, I
also take back my earlier pronouncement that this file wasn't really too
important. Nothing can possibly be further away from the truth, I have come to
realize. It is the very controlling file that gets either the Servlet or the Java
Server Page to function or operate properly, at least while trying to use tomcat
to see the JSP/Servlet. Would you kindly tell me a lot more about the
servlet-mapping tag and how it should be used to its' full potential to see a
servlet in my web browser. Yes, I will eat a lot of humble pie in backing down
from my previous position that this file wasn't important. I am appealing to you
now, Noel, because you seem to be such an expert on these matters. :)

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

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


RE: can tomcat do dynamic virtual hosts?

2003-01-05 Thread Turner, John


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: can tomcat do dynamic virtual hosts?

 
 Sorry, I have no idea what that means.
 
 Somtimes you want a.host.com and b.host.com to be in the same webapp

That's what Alias is for.

 that Tomcat has to do and more configuration overhead required or 
 possible (Realms, etc).  You can auto-deploy a Context.

 How?  If I want to add a new Context don't I have to restart tomcat to
reread the 
 server.xml file.


Yes, this has already been discussed in this thread.  Craig pointed out that
picking up config changes without restarts is something being discussed for
Tomcat 5.  Perhaps, if it is that vital to you, you might want to subscribe
to tomcat-dev and get in on the discussion to voice your views.

 restart anyway (see Craig's comments on possible future ability to 
 pick up config changes on-the-fly without a restart):

 That's my point. In apache it doesn't need a restart.


I have no idea what you mean.  Apache most certainly does need a restart to
pickup changes in httpd.conf.  You either use restart or graceful for it
to get changes.  Yes, it's not a full stop and a full start, but even with
restart and graceful, any current connections are either cut off
prematurely (restart) or allowed to finish (graceful) before httpd.conf is
reread.

 
 Since you have a restart, a new mod_jk.conf file is generated, and it 
 will have the new Host information in it.

 I gave up on autogeneration.


OK...I'm not really sure what that has to do with anything.  An Apache
restart is required whether you use auto-generation of JK configuration or
not, since using JK requires changes to httpd.conf (see my comments above).

 Host and web app config listed above), and then does a start on the 
 new Tomcat.
 

 Distinct tomcat? That would mean a different port for each tomcat, plus
the overhead (90 
 megs of memory on my test machine)


Well, this has been discussed before on the list.  In my opinion, using an
extra port and some more RAM is well worth the extra advantages you get in
administration.  You might want to rethink the scenario...you're going to
run out of RAM and CPU long before you run out of ports, and being low on
RAM is a very easy (and cheap) problem to solve.  I'm currently running 22
Tomcats, from low traffic to high traffic, on one of my servers. Granted, I
didn't design the original setup, but after many months of analyzing the
efforts of those who did, and building on it, I'm convinced it was the right
way to go and I won't be doing it any differently in the future.  There are
zero user complaints, and as the administrator it's a piece of cake to work
with one Tomcat (or create new ones or delete old ones) without affecting
anyone else. One web application hang doesn't touch anyone else, for
example.  In an ISP/ASP scenario, I would think that's exactly the type of
behavior you would want, but maybe I'm wrong.  

Are you planning to resell Tomcat somehow?  If I was your customer, and you
told me my app was down because somebody else's webapp was causing problems,
I wouldn't be a customer for long.

Basically, it sounds like you want everything to magically happen by putting
a couple wildcard statements somewhere.  Don't you think that's an
unreasonable expectation?  If you're selling Tomcat hosting, it's piece of
cake to justify the extra expense in managing it to your customers.  I've
only seen one hoster offering Tomcat 4 for less than $40/month/account.

 
 Maybe I'm just a tree stump, but I haven't seen you propose a case 
 that can't be handled.

 The case where tomcat works with my Apache dynamic virtual hosts. Apache
doesn't *need* 
 dynamic virtual hosts either, you could just use a lost of virtual hosts.
It would be nice 
 if tomcat supported the same thing.

Well, then I suggest you bust out some code to make it do that.  I don't see
any need for it in Tomcat, and it looks like the dev team doesn't either.
Perhaps they need to hear your point of view.  In my mind, Tomcat is a
deluxe service, not a throwaway service like Tripod or Geocities or
whatever...justifying the increase in cost, assuming that you plan to resell
the service, is a pretty easy thing to do.  

As I said before, it's a pretty trivial matter to write a script that will
setup virtual hosting with Tomcat just about as easily as you can do it, and
so far the only downside is using an extra port or two and using some RAM.
I don't think those are downsides at all given the tradeoff.

John

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




RE: need help w. viewing servlet

2003-01-05 Thread Turner, John

Expect even more frustration, then, Steve, instead of progress and success.

How to map servlets in web.xml is a topic that comes up just about daily on
this list.  It's also a topic that is covered extensively, with examples, in
the Tomcat documentation available on the Jakarta site.  It's also a topic
that is covered extensively in all of the many Tomcat and JSP/Servlet books
that are currently on the market.

With a little initiative, you could have answered your own question by now
using the documentation available on the web for free, or with a book.
Instead, you're going around in circles, ranting at the very people you're
asking for help.  That makes a lot of sense.

It's your choice how quickly you want to progress learning this technology.


John
 

-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 4:20 PM
To: Tomcat Users List
Subject: RE: need help w. viewing servlet


 Hello John, I will wisely ignore all of the damned admonitions that you saw
fit to sort of dish out to me (stuff that you have certainly said to me
before!)and acknowledge your Happy New Year wish you ended your email msg.
on! 

 Listen, there IS one, and just one criticsm of me that I will go along
with, and that is that I just flat don't give enough detail of what the
problem is exactly to everyone else in our newsgroup!! That's why I am
including in this email message the html page that is the servlet in
question, which as I have said before, is nothing but a logon page with 2
textboxes. One is for the user's name, and the other one is for the user's
email address. I am quite sorry that I was not allowed/permitted to save the
server error [the 404 server error] page for some reason. And I will try to
include the so-called heavy editing that I mentioned in my first post of
the web.xml file in a later posting to our little newsgroup because I really
don't believe, in my subjective opinion, that it's all that important, to be
frank and honest (which I am always am :) ). I mean, the little bit of
editing of it that I have done with other JSP's/servlets in the past has
not yielded any successful results at all.   

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

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




Re: Tomcat-SSL: no cipher suites in common Exception

2003-01-05 Thread ningr
Dor Perl wrote:


Hi All, 

Our site is running on Tomcat 3.3/Windows2k stand alone and we want to create a secured page on the Tomcat server (can be a different machine). 
We bought an SSL certificate from Comodo (after sending them our CSR that was created using keytool) afterwards we imported the received certificate to the keystore. 
The server starts ok, but when a web browser access it on the SSL port, we get the following exception: 
%% Created: [Session-1, SSL_NULL_WITH_NULL_NULL]
Thread-56, SEND SSL v3.0 ALERT: fatal, description = handshake_failure
Thread-56, WRITE: SSL v3.0 Alert, length = 2
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: no cipher suites in common
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(DashoA62
75)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
PoolTcpEndpoint: Handshake failed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) 
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
d@19e15c, terminating thread
javax.net.ssl.SSLException: Unsupported SSL v2.0 ClientHello
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) 
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFact
ory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)
ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
d@19e15c, terminating thread
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484) 

I also did the following: 
* added javax.net.debug=all to the System properties to see the Debug information. 
* generated my own certificate using keytool (and it works ok. But the certificate is, of course, invalid) 
* Tried to access the server with different SSL protocols. 
* Searched every possible thing in the net ;-( 
I dedicated alot of time for this thing but no good. I would be grateful if somenoe could help us. Is it possible that the problem is in the certificate we got from the SSL provider? 

Thanks in advance for your help,

Dor Perl




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

When you use keytool to generate the keys and CSR, you should use the 
algoritm RSA  ,   not the default DSA. and then the exception will dispear.
keytool .. -keyalg RSA




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



Re: NOONE? Was: Tomcat 4.1.18 changes https into httpss

2003-01-05 Thread Alexander Wallace
Did you find a similar problem then using apache and apache-ssl with tomcat 
4.1.18?  What makes me wonder if this is a bug or something is that the same 
app, with the same settings for mod_jk, works perfectly with TC 4.1.12 and 
before. I was hopping someone here on the list would tell me if this is 
normal or i'm messing up in the configuration.

If i can't get any other clues on how to make apache-ssl + tc 4.1.18 i may 
give your hack a go, and will glady accept your offer to help... Thank you 
very much for your response.

On Sunday 05 January 2003 12:21 am, David Orriss Jr wrote:
 Actually in my case I 'punted' I used ProxyPass and ProxyPassReverse and
 pass the SSL requests via a URL over to the non-SSL servlet engine...  Yea
 it was a hack, but effective.. ;)

 On Saturday, January 04, 2003 5:02 PM,

 Alexander Wallace [EMAIL PROTECTED] wrote:
  Really noone read my mayl or has any clue as of what am i doing wrong? If

 it

  is something that was discussed a lot, i did not see anything in the
  archives, if so, at least tell me so. I really need help here.

 --
 David Orriss Jr.

 Please email me if you want my ICQ/AIM/IM ID's.



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


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




Using symbolic name for Taglib gives File Not Found

2003-01-05 Thread Kenny Smith
Hello,

I searched through the archives (and Google) to find any info on this but
came up empty handed.

When I include the taglib in my JSP using a filename path, it works
properly, but if I try to use the symbolic name defined in the web.xml I get
the following error when I browse to index.jsp:

org.apache.jasper.JasperException: null(-1,-1) File /tags/struts-logic not
found

My index.jsp has:

%@ taglib uri=/tags/struts-logic prefix=logic %
logic:redirect forward=welcome/

My web.xml has:

taglib
taglib-uri/tags/struts-logic/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib

My directory has:

C:\jakarta-tomcat-4.1.12\webapps\mailadmin\WEB-INFdir
 Volume in drive C has no label.
 Volume Serial Number is 7053-50D4

 Directory of C:\jakarta-tomcat-4.1.12\webapps\mailadmin\WEB-INF

01/05/2003  04:30p  DIR  .
01/05/2003  04:30p  DIR  ..
01/05/2003  04:30p   1,256 build.xml
01/05/2003  04:30p  DIR  lib
01/05/2003  04:30p   8,101 struts-bean.tld
01/05/2003  04:30p 617 struts-config.xml
01/05/2003  04:30p  18,751 struts-config_1_0.dtd
01/05/2003  04:30p  38,075 struts-form.tld
01/05/2003  04:30p  48,610 struts-html.tld
01/05/2003  04:30p  12,639 struts-logic.tld
01/05/2003  04:30p   1,637 struts-template.tld
01/05/2003  04:30p  53,043 struts.tld
01/05/2003  04:30p  16,118 web-app_2_2.dtd
01/05/2003  04:30p  27,003 web-app_2_3.dtd
01/05/2003  04:30p   1,545 web.xml
  12 File(s)227,395 bytes
   3 Dir(s) 260,231,168 bytes free

C:\jakarta-tomcat-4.1.12\webapps\mailadmin\WEB-INF

If anyone could give me a pointer as to what I might be doing wrong, or
point me at the proper docs, I would be really grateful. :)

Kenny Smith
JournalScape.com



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




RE: Changed file name now webapp not working right

2003-01-05 Thread Denise Mangano
Noel,

I even tried changing everything back to FormValidate.jsp and it still
doesn't work...

Yes, your scenario is correct, form action was FormValidate.jsp - and is
now CCProcess.jsp, and depending on outcome of form validation,
CCPRocess.jsp will forward to Verify.jsp or Retry.jsp.  But now after the
rename I never get to Verify.jsp.  The action of Retry.jsp is
CCProcess.jsp.  What is completely boggling my mind is that it was working
perfectly before I changed the file name :( Well I guess its true what they
say, if its not broke...

And I feel pretty dumb saying this, but I do not know how to trace using log
code. I am assuming you mean add some code in the jsp file (and/or
FormBean.java?) that will write to a log file to see what is happening.
Would you be able to recommend the code and the placement of that code so I
can trace this? Or maybe point me in the right direction to some
documentation?

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 1/5/2003 3:14 PM
Subject: RE: Changed file name now webapp not working right

Denise,

The front end is/was FormValidate.jsp/CCProcess.jsp, which forwards to
Verify.jsp or Retry.jsp?

You renamed it, and now when you submit the form you never get to
Verify.jsp?  You are saying that when Retry.jsp submits the form, the
form
action is CCProcess.jsp?  Have you put any log code into CCProcess.jsp
to
trace what is happening?

--- Noel


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

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




Tomcat-4-1-12 Connection Pool problem JNDI Datasource

2003-01-05 Thread David Hemingway
Hi,

Sorry if this has been addressed before on this list but I have not seen it. I have 
followed the instructions in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html.

I can get the setup to work 100% under win32 but using the same settings under linux I 
get:

java.sql.SQLException: Cannot load JDBC driver class 'null'

I have seen this problem raised in many places but no one has seemed to know the 
correct answer.

My configuration is as follows:

Linux - Red Hat 7.3
Apache 1.3.27
Tomcat 4.1.12 LE
Oracle 9i
Pool 1.0
DBCP 1.0
Collections 2.0

common/lib/commons-collections.jar
common/lib/commons-dbcp.jar
common/lib/commons-pool.jar
common/lib/classes12.jar (with the javax.sql removed)

server.xml:


Context path=/lawonline docBase=lawonline debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_lawonline_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/

 Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/

 ResourceParams name=jdbc/myoracle
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:oracle:thin:@192.168.0.10:1521:lawol/value
   /parameter
   parameter
 nameusername/name
 valuelawonline/value
   /parameter
   parameter
 namepassword/name
 valueLe12No06/value
   /parameter
   parameter
 namemaxActive/name
 value10/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
   parameter
 namemaxWait/name
 value-1/value
   /parameter
 /ResourceParams

   Environment name=maxExemptions type=java.lang.Integer
  value=15/
  Parameter name=context.param.name value=context.param.value
 override=false/
  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameusername/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternameurl/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
  ResourceLink name=linkToGlobalResource
global=simpleValue
type=java.lang.Integer/
/Context


web.xml:

resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/myoracle/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref


The ejb and jdbc/EmployeeAppDb was there as default when I started, should it be 
removed seeing as it isn't being used?
I have been at this for weeks now. Any help would be very much appreciated. Thank you

regards,
David Hemingway




RE: need help w. viewing servlet

2003-01-05 Thread Noel J. Bergman
Steven,

As you can see from the link below, there were no HTML attachments of any
kind to your message.  And what I think we really need is your web.xml file.

http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
he.orgmsgNo=97097

The web.xml file is described in detail in the Servlet specification.
Tomcat provides web.xml examples, including
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/web.xml.txt.  Note
the servlet-mapping elements, which follow immediately after the servlet
elements.  You need to provide a servlet-mapping for each servlet, unless
you define the invoker servlet as I did in an earlier message.

In your case, if you have a servlet named GreetingServlet in a package
org.burrus, then you would place GreetingServlet.class in
WEB-INF/classes/org/burrus/GreetingServlet.class, and you would place the
following in web.xml:

  servlet
servlet-name
   GreetingServlet
/servlet-name
servlet-class
   org.burrus.GreetingServlet
/servlet-class
  /servlet

  servlet-mapping
  servlet-nameGreetingServlet/servlet-name
  url-pattern/greeting/url-pattern
  /servlet-mapping

At which point /greeting should result in GreetingServlet being invoked.

--- Noel


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




RE: Loading XML Files - Best Pracitices

2003-01-05 Thread Hookom, Jacob John
I've used it on a few projects-- XSLT Dom to Dom transformations are a little buggy 
yet. Dom4j's web site does offer some links to benchmarks:
 
http://www.dom4j.org/benchmarks/xpath/index.html  Dom4j vs. Xalan with XPath Queries
http://www-106.ibm.com/developerworks/library/x-injava2/  Dom4j vs. Everyone
 
Dom4j also has support for PullParsing or XPP.  This, when paired with the ability to 
prune on read allows very large documents to be executed upon in short order. One 
other issue is that Dom4j does not align with the w3c standard API.  There are 
partially finished classes for integration, but it needs some work yet as of the last 
release I looked at (1mo).
 
If we want to discuss XML-Bean-XML, then yes, Betwixt would be ideal.  I prefer 
Castor (www.castor.org) because it provides a little more customizability for how the 
documents are (un?)marshalled.
 
-Jacob

-Original Message- 
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Sun 1/5/2003 2:11 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Loading XML Files - Best Pracitices




Hi Jacob,

Did you actually test the performance of Dom4j?  I'm just curious.  I have
heard very good things about Dom4j.

Jake

At 08:08 PM 1/4/2003 -0600, you wrote:
I recommend Dom4j, it offers the best overall performance out of the XML
libs and it works really well for large files with the ability to prune on
read.

www.dom4j.org


 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: Sat 1/4/2003 1:58 PM
 To: Tomcat Users List
 Cc:
 Subject: Re: Loading XML Files - Best Pracitices




 No, I don't really have any reservations about JDOM...except for
 the fact
 that there has been little to zero development on it of
 late.  Check out
 the amount of time that has passed since the last beta release (9
 - 10
 months!).  At this rate, they'll release a 1.0 version in a
 couple more
 years while Xerces development steams on ahead.  JDOM may be
 elegant, but I
 wish the main developers would put their nose to the grindstone
 and get, at
 least, another beta release out in short order!

 To tell you the truth, I would just use a SAX parser.  That will
 be faster
 than any of the other methods including JDOM.

 Jake

 At 12:01 PM 1/4/2003 -0600, you wrote:
 Howdy,
 
 Thanks for all the good suggestions. I'm going with JDOM, just
 because
 it's pretty darn elegant and simple. It also appears that it will be
 (if not already) an XML standard for Java.  So all signs
 indicate that
 I'm not marrying myself to an obscure API.
 
 Do any of you have reservations about JDOM?
 
 Thanks,
 -FB
 
 On Saturday, January 4, 2003, at 08:02  AM, Jacob Kjome wrote:
 
 
 Well,
 
 There are a number of parsers available.  You can use DOM, JDOM,
 DOM4J, SAX, or, actually, you might want to try out XPath using
 Jaxen.
 
 Here is an example of reading in a document using DOMand no
 specific external package so you don't marry yourself to a
 particular
 implementation...
 
 DocumentBuilderFactory dbfactory =
 DocumentBuilderFactory.newInstance();
 dbfactory.setNamespaceAware(true);
 Document doc = null;
 try {
  DocumentBuilder dbuilder = dbfactory.newDocumentBuilder();
  InputStream =
 context.getResourceAsStream(/WEB-INF/mydoc.xml);
  doc = dbuilder.parse(is);
 }
 catch (ParserConfigurationException pce) {}
 catch (SAXException se) {}
 catch (IOException ioe) {}
 
 
 You can then grab a NodeList of some part of the document and
 iterate
 through that or you can then use Jaxen to get to specific data with
 XPath queries
 
 
 try {
  XPath xpath = new
 DOMXPath(//MyElement[@myAttribute='someSpecificValue']/
  

RE: Changed file name now webapp not working right

2003-01-05 Thread Noel J. Bergman
Denise,

Within your JSP page, you can put % application.log(...); % anywhere you
want to put out a message to the log.

% application.log(entering CCProcess); %

html
headtitleCCProcess/title/head
body
% if (condition) { application.log(forwarding to verify); %

jsp:forward page=/Verify.jsp /

% } else { application.log(forwarding to retry); %

jsp:forward page=/Retry.jsp /

% } %
/body
/html

I did that from the hip, and might have some typos.  Just trying to
illustrate logging within a context similar to what you are likely doing.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 21:31
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right


Noel,

I even tried changing everything back to FormValidate.jsp and it still
doesn't work...

Yes, your scenario is correct, form action was FormValidate.jsp - and is
now CCProcess.jsp, and depending on outcome of form validation,
CCPRocess.jsp will forward to Verify.jsp or Retry.jsp.  But now after the
rename I never get to Verify.jsp.  The action of Retry.jsp is
CCProcess.jsp.  What is completely boggling my mind is that it was working
perfectly before I changed the file name :( Well I guess its true what they
say, if its not broke...

And I feel pretty dumb saying this, but I do not know how to trace using log
code. I am assuming you mean add some code in the jsp file (and/or
FormBean.java?) that will write to a log file to see what is happening.
Would you be able to recommend the code and the placement of that code so I
can trace this? Or maybe point me in the right direction to some
documentation?

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 1/5/2003 3:14 PM
Subject: RE: Changed file name now webapp not working right

Denise,

The front end is/was FormValidate.jsp/CCProcess.jsp, which forwards to
Verify.jsp or Retry.jsp?

You renamed it, and now when you submit the form you never get to
Verify.jsp?  You are saying that when Retry.jsp submits the form, the
form
action is CCProcess.jsp?  Have you put any log code into CCProcess.jsp
to
trace what is happening?

--- Noel


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

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


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




Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource

2003-01-05 Thread Craig R. McClanahan


On Mon, 6 Jan 2003, David Hemingway wrote:

 Date: Mon, 6 Jan 2003 13:45:08 +1100
 From: David Hemingway [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Tomcat-4-1-12 Connection Pool problem JNDI Datasource

 Hi,

 Sorry if this has been addressed before on this list but I have not seen it. I have 
followed the instructions in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html.

 I can get the setup to work 100% under win32 but using the same settings under linux 
I get:

 java.sql.SQLException: Cannot load JDBC driver class 'null'

 I have seen this problem raised in many places but no one has seemed to know the 
correct answer.


Have you examined the log files (in $CATALINA_HOME/logs) to see if there
are any interesting (or at least useful :-) error messages?

Have you tried the most recent production quality release (4.1.18)?  I
know there have been some bugfixes in the included commons-dbcp code that
might make a difference.

Craig


 My configuration is as follows:

 Linux - Red Hat 7.3
 Apache 1.3.27
 Tomcat 4.1.12 LE
 Oracle 9i
 Pool 1.0
 DBCP 1.0
 Collections 2.0

 common/lib/commons-collections.jar
 common/lib/commons-dbcp.jar
 common/lib/commons-pool.jar
 common/lib/classes12.jar (with the javax.sql removed)

 server.xml:


 Context path=/lawonline docBase=lawonline debug=0
  reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_lawonline_log. suffix=.txt
   timestamp=true/
   Ejb   name=ejb/EmplRecord type=Entity
  home=com.wombat.empl.EmployeeRecordHome
remote=com.wombat.empl.EmployeeRecord/

  Resource name=jdbc/myoracle auth=Container
   type=javax.sql.DataSource/

  ResourceParams name=jdbc/myoracle
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@192.168.0.10:1521:lawol/value
/parameter
parameter
  nameusername/name
  valuelawonline/value
/parameter
parameter
  namepassword/name
  valueLe12No06/value
/parameter
parameter
  namemaxActive/name
  value10/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxWait/name
  value-1/value
/parameter
  /ResourceParams

Environment name=maxExemptions type=java.lang.Integer
   value=15/
   Parameter name=context.param.name value=context.param.value
  override=false/
   Resource name=jdbc/EmployeeAppDb auth=SERVLET
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/EmployeeAppDb
 parameternameusername/namevaluesa/value/parameter
 parameternamepassword/namevalue/value/parameter
 parameternamedriverClassName/name
   valueorg.hsql.jdbcDriver/value/parameter
 parameternameurl/name
   valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams
   Resource name=mail/Session auth=Container
 type=javax.mail.Session/
   ResourceParams name=mail/Session
 parameter
   namemail.smtp.host/name
   valuelocalhost/value
 /parameter
   /ResourceParams
   ResourceLink name=linkToGlobalResource
 global=simpleValue
 type=java.lang.Integer/
 /Context


 web.xml:

 resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref


 The ejb and jdbc/EmployeeAppDb was there as default when I started, should it be 
removed seeing as it isn't being used?
 I have been at this for weeks now. Any help would be very much appreciated. Thank you

 regards,
 David Hemingway




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




Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource

2003-01-05 Thread David Hemingway
There was nothing meaningful in the logs no. Just the stack trace leading up
to that exception. I have not tried 4.1.18 yet. I may have to give that a
go. Thanks

Dave

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 2:41 PM
Subject: Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource




 On Mon, 6 Jan 2003, David Hemingway wrote:

  Date: Mon, 6 Jan 2003 13:45:08 +1100
  From: David Hemingway [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Tomcat-4-1-12 Connection Pool problem JNDI Datasource
 
  Hi,
 
  Sorry if this has been addressed before on this list but I have not seen
it. I have followed the instructions in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html.
 
  I can get the setup to work 100% under win32 but using the same settings
under linux I get:
 
  java.sql.SQLException: Cannot load JDBC driver class 'null'
 
  I have seen this problem raised in many places but no one has seemed to
know the correct answer.
 

 Have you examined the log files (in $CATALINA_HOME/logs) to see if there
 are any interesting (or at least useful :-) error messages?

 Have you tried the most recent production quality release (4.1.18)?  I
 know there have been some bugfixes in the included commons-dbcp code that
 might make a difference.

 Craig


  My configuration is as follows:
 
  Linux - Red Hat 7.3
  Apache 1.3.27
  Tomcat 4.1.12 LE
  Oracle 9i
  Pool 1.0
  DBCP 1.0
  Collections 2.0
 
  common/lib/commons-collections.jar
  common/lib/commons-dbcp.jar
  common/lib/commons-pool.jar
  common/lib/classes12.jar (with the javax.sql removed)
 
  server.xml:
 
 
  Context path=/lawonline docBase=lawonline debug=0
   reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_lawonline_log. suffix=.txt
timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/
 
   Resource name=jdbc/myoracle auth=Container
type=javax.sql.DataSource/
 
   ResourceParams name=jdbc/myoracle
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@192.168.0.10:1521:lawol/value
 /parameter
 parameter
   nameusername/name
   valuelawonline/value
 /parameter
 parameter
   namepassword/name
   valueLe12No06/value
 /parameter
 parameter
   namemaxActive/name
   value10/value
 /parameter
 parameter
   namemaxIdle/name
   value10/value
 /parameter
 parameter
   namemaxWait/name
   value-1/value
 /parameter
   /ResourceParams
 
 Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name
value=context.param.value
   override=false/
Resource name=jdbc/EmployeeAppDb auth=SERVLET
  type=javax.sql.DataSource/
ResourceParams name=jdbc/EmployeeAppDb
 
parameternameusername/namevaluesa/value/parameter
  parameternamepassword/namevalue/value/parameter
  parameternamedriverClassName/name
valueorg.hsql.jdbcDriver/value/parameter
  parameternameurl/name
valuejdbc:HypersonicSQL:database/value/parameter
/ResourceParams
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
ResourceLink name=linkToGlobalResource
  global=simpleValue
  type=java.lang.Integer/
  /Context
 
 
  web.xml:
 
  resource-ref
descriptionDB Connection/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 
 
  The ejb and jdbc/EmployeeAppDb was there as default when I started,
should it be removed seeing as it isn't being used?
  I have been at this for weeks now. Any help would be very much
appreciated. Thank you
 
  regards,
  David Hemingway
 
 


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



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




RE: Changed file name now webapp not working right

2003-01-05 Thread Denise Mangano
Noel,

I did as you suggested, and the strangest things are happening!!  This is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean class=com.complusdata.beans.FormBean
scope=request
  jsp:setProperty name=formBean property=*/ /jsp:useBean

%
   if (formBean.validate())
   {
 log(Form Has Been Validated - forwarding to Verify.jsp); 
%
 jsp:forward page=/CCPayments/28/Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=/CCPayments/28/Retry.jsp/
%
   }
%

I also added code to Verify.jsp to log when Entering Verify.jsp, and code
to Retry.jsp to log when Entering Retry.jsp - error on form.

Here is the output of my log: 

2003-01-05 22:41:49 jsp: Entering CCProcess 
2003-01-05 22:41:49 jsp: Form Has Been Validated - forwarding to Verify.jsp 
2003-01-05 22:41:50 jsp: Entering Retry.jsp - error on form 
2003-01-05 22:41:57 jsp: Entering CCProcess 
2003-01-05 22:41:57 jsp: Form Has Been Validated - forwarding to Verify.jsp 
2003-01-05 22:41:57 jsp: Entering Retry.jsp - error on form 


Now this is what I did to test.  I called my form, left two fields blank,
then submitted (form action=CCProcess.jsp).  As it should, Retry.jsp was
displayed with the appropriate error messages.  If you notice in the log, on
the call to CCProcess.jsp, entering CCProcess is logged.  BUT - even
though there were errors on the page, it was still written to the log that
control is being forwarded to Verify.jsp (even though it technically wasn't)
AND it does not log that control is being forwarded to Retry.jsp AND
Entering Retry.jsp - error on form is logged.  Then after correcting the
errors, I hit submit, and Retry.jsp is loaded again (no error messages
displayed because all data is correct).  Now this is where control should
have been forwarded to Verify.jsp.  The log shows that it is getting
forwarded, but it never enters.


Now here is the STRANGEST thing.  In CCProcess.jsp I commented everything
below the /jsp:useBean and left ONLY the jsp:forward
page=/CCPayments/28/Verify.jsp/ - this way not matter what Verify.jsp
should have been loaded.  Check out what is says in the log:

2003-01-05 23:21:05 jsp: Entering CCProcess
2003-01-05 23:21:05 jsp: Entered Verify.jsp
2003-01-05 23:21:05 jsp: Entering Retry.jsp - error on form
2003-01-05 23:21:08 jsp: Entering CCProcess
2003-01-05 23:21:08 jsp: Entered Verify.jsp
2003-01-05 23:21:08 jsp: Entering Retry.jsp - error on form

According to the log - both jsp pages are being loaded...?? I even tried
deleting everything in my work directory to make sure the new files were
being compiled.  This is all very strange and I am at a total loss :(  

Thanks so much for taking the time to look at all this.

Denise

-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 10:12 PM
To: Tomcat Users List
Subject: RE: Changed file name now webapp not working right


Denise,

Within your JSP page, you can put % application.log(...); % anywhere you
want to put out a message to the log.

% application.log(entering CCProcess); %

html
headtitleCCProcess/title/head
body
% if (condition) { application.log(forwarding to verify); %

jsp:forward page=/Verify.jsp /

% } else { application.log(forwarding to retry); %

jsp:forward page=/Retry.jsp /

% } %
/body
/html

I did that from the hip, and might have some typos.  Just trying to
illustrate logging within a context similar to what you are likely doing.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 21:31
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right


Noel,

I even tried changing everything back to FormValidate.jsp and it still
doesn't work...

Yes, your scenario is correct, form action was FormValidate.jsp - and is
now CCProcess.jsp, and depending on outcome of form validation,
CCPRocess.jsp will forward to Verify.jsp or Retry.jsp.  But now after the
rename I never get to Verify.jsp.  The action of Retry.jsp is
CCProcess.jsp.  What is completely boggling my mind is that it was working
perfectly before I changed the file name :( Well I guess its true what they
say, if its not broke...

And I feel pretty dumb saying this, but I do not know how to trace using log
code. I am assuming you mean add some code in the jsp file (and/or
FormBean.java?) that will write to a log file to see what is happening.
Would you be able to recommend the code and the placement of that code so I
can trace this? Or maybe point me in the right direction to some
documentation?

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 1/5/2003 3:14 PM
Subject: RE: Changed file name now webapp not working right

Denise,

The front end is/was FormValidate.jsp/CCProcess.jsp, which forwards to
Verify.jsp or 

RE: need help w. viewing servlet

2003-01-05 Thread Steve R Burrus
Hi Noel. I read your email message about what I should put into the web.xml file,
specificly in the servlet-mapping tag, and I have a question for you, and that
is you say that I could have a package org.burrus under the classes folder,
and then in that package I could put the GreetingServlet servlet. What I actually
have is, i.e., my path is:
C:\jakarta-tomcat-4.1.16\webapps\greeting\Web-inf\classes\GreetingServlet.class.
If there is something basicly wrong with this path, then would you please
straighten me out about what it should be? Thanx in advance.

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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




RE: Changed file name now webapp not working right

2003-01-05 Thread Denise Mangano
Correction - I just tried it again with the original CCProcess.jsp, and
intentionally left errors on the form, and the log DOES indicate that
control is being forwarded to Retry.jsp (as it should).  However, the  case
still holds that when the data is correct, upon hitting the submit button,
it is logged that the form has been validated, and control is being
forwarded to Verify.jsp, and then again, according to the log both jsp's are
being loaded, yet Retry.jsp is displayed in the browser.

Log file:
2003-01-05 23:45:15 jsp: Entering CCProcess
2003-01-05 23:45:15 jsp: Error on form - forwarding to Retry.jsp
2003-01-05 23:45:15 jsp: Entering Retry.jsp - error on form
2003-01-05 23:45:20 jsp: Entering CCProcess
2003-01-05 23:45:20 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 23:45:20 jsp: Entered Verify.jsp
2003-01-05 23:45:20 jsp: Entering Retry.jsp - error on form

Thanks.
Denise
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 11:51 PM
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right


Noel,

I did as you suggested, and the strangest things are happening!!  This is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean class=com.complusdata.beans.FormBean
scope=request
  jsp:setProperty name=formBean property=*/ /jsp:useBean

%
   if (formBean.validate())
   {
 log(Form Has Been Validated - forwarding to Verify.jsp); 
%
 jsp:forward page=/CCPayments/28/Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=/CCPayments/28/Retry.jsp/
%
   }
%

I also added code to Verify.jsp to log when Entering Verify.jsp, and code
to Retry.jsp to log when Entering Retry.jsp - error on form.

Here is the output of my log: 

2003-01-05 22:41:49 jsp: Entering CCProcess 
2003-01-05 22:41:49 jsp: Form Has Been Validated - forwarding to Verify.jsp 
2003-01-05 22:41:50 jsp: Entering Retry.jsp - error on form 
2003-01-05 22:41:57 jsp: Entering CCProcess 
2003-01-05 22:41:57 jsp: Form Has Been Validated - forwarding to Verify.jsp 
2003-01-05 22:41:57 jsp: Entering Retry.jsp - error on form 


Now this is what I did to test.  I called my form, left two fields blank,
then submitted (form action=CCProcess.jsp).  As it should, Retry.jsp was
displayed with the appropriate error messages.  If you notice in the log, on
the call to CCProcess.jsp, entering CCProcess is logged.  BUT - even
though there were errors on the page, it was still written to the log that
control is being forwarded to Verify.jsp (even though it technically wasn't)
AND it does not log that control is being forwarded to Retry.jsp AND
Entering Retry.jsp - error on form is logged.  Then after correcting the
errors, I hit submit, and Retry.jsp is loaded again (no error messages
displayed because all data is correct).  Now this is where control should
have been forwarded to Verify.jsp.  The log shows that it is getting
forwarded, but it never enters.


Now here is the STRANGEST thing.  In CCProcess.jsp I commented everything
below the /jsp:useBean and left ONLY the jsp:forward
page=/CCPayments/28/Verify.jsp/ - this way not matter what Verify.jsp
should have been loaded.  Check out what is says in the log:

2003-01-05 23:21:05 jsp: Entering CCProcess
2003-01-05 23:21:05 jsp: Entered Verify.jsp
2003-01-05 23:21:05 jsp: Entering Retry.jsp - error on form 2003-01-05
23:21:08 jsp: Entering CCProcess 2003-01-05 23:21:08 jsp: Entered Verify.jsp
2003-01-05 23:21:08 jsp: Entering Retry.jsp - error on form

According to the log - both jsp pages are being loaded...?? I even tried
deleting everything in my work directory to make sure the new files were
being compiled.  This is all very strange and I am at a total loss :(  

Thanks so much for taking the time to look at all this.

Denise

-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 05, 2003 10:12 PM
To: Tomcat Users List
Subject: RE: Changed file name now webapp not working right


Denise,

Within your JSP page, you can put % application.log(...); % anywhere you
want to put out a message to the log.

% application.log(entering CCProcess); %

html
headtitleCCProcess/title/head
body
% if (condition) { application.log(forwarding to verify); %

jsp:forward page=/Verify.jsp /

% } else { application.log(forwarding to retry); %

jsp:forward page=/Retry.jsp /

% } %
/body
/html

I did that from the hip, and might have some typos.  Just trying to
illustrate logging within a context similar to what you are likely doing.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 21:31
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right


Noel,

I even tried changing everything back to FormValidate.jsp and 

RE: Changed file name now webapp not working right

2003-01-05 Thread Noel J. Bergman
Denise,

That almost looks like either Verify is forwarding to Retry or both forward
actions are being invoked.  Neither should be the case.

For kicks, I tried my own version (didn't write a fake bean or form):

CCProcess.jsp:

%@ page import=java.util.* %

% log(Entering CCProcess); %

%
   if (request.getParameter(validate) != null)
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=Retry.jsp/
%
   }
%

Retry.jsp:

%@ page import=java.util.* %

% log(Entering Retry); %

html
headtitleRetry/title/head
bodyNot verified/body
/html

Verify.jsp:

%@ page import=java.util.* %

% log(Entering Verify); %

html
headtitleVerify/title/head
bodyVerified/body
/html

Entering //localhost:8080/test/CCProcess.jsp resulted in the Retry page
being invoked, as verified by browser content and log:

2003-01-06 00:19:24 jsp: Entering CCProcess
2003-01-06 00:19:24 jsp: Error on form - forwarding to Retry.jsp
2003-01-06 00:19:27 jsp: Entering Retry

Entering //localhost:8080/test/CCProcess.jsp?validate=1 resulted in the
Verify page being invoked, again verified by browser content and log:

2003-01-06 00:22:37 jsp: Entering CCProcess
2003-01-06 00:22:37 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-06 00:22:40 jsp: Entering Verify

Obviously something is not right on your end.  If you want, send me the
files and I'll play.  I will be in transit all day tomorrow, but if I get
them before I leave, I can run on my laptop.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 0:05
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right

Correction - I just tried it again with the original CCProcess.jsp, and
intentionally left errors on the form, and the log DOES indicate that
control is being forwarded to Retry.jsp (as it should).  However, the  case
still holds that when the data is correct, upon hitting the submit button,
it is logged that the form has been validated, and control is being
forwarded to Verify.jsp, and then again, according to the log both jsp's are
being loaded, yet Retry.jsp is displayed in the browser.

Log file:
2003-01-05 23:45:15 jsp: Entering CCProcess
2003-01-05 23:45:15 jsp: Error on form - forwarding to Retry.jsp
2003-01-05 23:45:15 jsp: Entering Retry.jsp - error on form
2003-01-05 23:45:20 jsp: Entering CCProcess
2003-01-05 23:45:20 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 23:45:20 jsp: Entered Verify.jsp
2003-01-05 23:45:20 jsp: Entering Retry.jsp - error on form

Thanks.
Denise
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 11:51 PM
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right


Noel,

I did as you suggested, and the strangest things are happening!!  This is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean class=com.complusdata.beans.FormBean
scope=request
  jsp:setProperty name=formBean property=*/ /jsp:useBean

%
   if (formBean.validate())
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=/CCPayments/28/Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=/CCPayments/28/Retry.jsp/
%
   }
%

I also added code to Verify.jsp to log when Entering Verify.jsp, and code
to Retry.jsp to log when Entering Retry.jsp - error on form.

Here is the output of my log:

2003-01-05 22:41:49 jsp: Entering CCProcess
2003-01-05 22:41:49 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 22:41:50 jsp: Entering Retry.jsp - error on form
2003-01-05 22:41:57 jsp: Entering CCProcess
2003-01-05 22:41:57 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 22:41:57 jsp: Entering Retry.jsp - error on form


Now this is what I did to test.  I called my form, left two fields blank,
then submitted (form action=CCProcess.jsp).  As it should, Retry.jsp was
displayed with the appropriate error messages.  If you notice in the log, on
the call to CCProcess.jsp, entering CCProcess is logged.  BUT - even
though there were errors on the page, it was still written to the log that
control is being forwarded to Verify.jsp (even though it technically wasn't)
AND it does not log that control is being forwarded to Retry.jsp AND
Entering Retry.jsp - error on form is logged.  Then after correcting the
errors, I hit submit, and Retry.jsp is loaded again (no error messages
displayed because all data is correct).  Now this is where control should
have been forwarded to Verify.jsp.  The log shows that it is getting
forwarded, but it never enters.


Now here is the STRANGEST thing.  In CCProcess.jsp I commented everything
below the /jsp:useBean 

RE: Changed file name now webapp not working right [RBS2003010600002295]

2003-01-05 Thread techassistance
Ahoy there!

This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.

We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at the level that you've come to expect
from The River Belle Online Casino.

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

www.riverbelle.com/a3099  www.aceshigh.com/a3181

24/7 toll-free support24/7 toll-free support

USA:1 888 615 2383USA:1 877 566 0482
CANADA: 1 888 552 4196CANADA: 1 877 776 0549
UK: 0 800 783 4381UK: 0 800 169 8796

E-mail support:   E-mail support
[EMAIL PROTECTED][EMAIL PROTECTED]

E.O.E.

The River Belle Online Casino respects your online time
and privacy.  If you wish to be removed from our mailing
list and not receive any promotional e-mails from us,
please send an e-mail to [EMAIL PROTECTED] and
type UNSUBSCRIBE in the subject bar.




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




RE: need help w. viewing servlet

2003-01-05 Thread Noel J. Bergman
Tomcat does its own loading, and you don't put web-inf/ anything in your
classpath.  Just put the files in the right places, and let Tomcat do its
job.

Or do you simply mean that you don't have a package?  If you don't have a
package, just put the class in WEB-INF/classes/GreetingServlet.class.  And
the directory name *MUST* be WEB-INF.  ALL UPPER CASE, even on Windows.

--- Noel


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




Re: Changed file name now webapp not working right [RBS2003010600002295]

2003-01-05 Thread Raj
Is this some kind of spam? Do we ever get any responses from these people?

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 11:07 AM
Subject: RE: Changed file name now webapp not working right
[RBS200301062295]


Ahoy there!

This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.

We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at the level that you've come to expect
from The River Belle Online Casino.

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

www.riverbelle.com/a3099  www.aceshigh.com/a3181

24/7 toll-free support24/7 toll-free support

USA:1 888 615 2383USA:1 877 566 0482
CANADA: 1 888 552 4196CANADA: 1 877 776 0549
UK: 0 800 783 4381UK: 0 800 169 8796

E-mail support:   E-mail support
[EMAIL PROTECTED][EMAIL PROTECTED]

E.O.E.

The River Belle Online Casino respects your online time
and privacy.  If you wish to be removed from our mailing
list and not receive any promotional e-mails from us,
please send an e-mail to [EMAIL PROTECTED] and
type UNSUBSCRIBE in the subject bar.




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



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




RE: Memory Usage and Garbage Collection

2003-01-05 Thread Saurabh Arora
Thanks for that explanation,
 But i was just curious to know if weakmaps or similar gc interacting
cache be used to keep the mem size in control.
 Servers with high mem size would continue to keep the cache of jsp's
for performance whereas the ones with lesser mem size would still not
give the outofmemory error.

saurabh 

 [EMAIL PROTECTED] 01/04/03 01:12AM 


On Fri, 3 Jan 2003, Saurabh Arora wrote:

 Date: Fri, 03 Jan 2003 02:33:17 -0700
 From: Saurabh Arora [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] 
 Subject: RE: Memory Usage and Garbage Collection

 Just wanted to know, does the current implementation of tomcat
4.1.18
 also has the same problem of keeping the jsp's
  in memory. or it was only present in 4.0.4


It's not a *problem* -- it's a *feature* :-).  This is one of the keys
to
maintaining good performance on repeatedly requested pages.

Yes, Tomcat 4.1.x maintains a reference to every JSP page that has
ever
been requested (same as every servlet that has ever been requested)
until
that webapp is reloaded or removed, or you shut down Tomcat.

Given this, designing webapps where you auto-generate hundreds of
different JSP pages (which was the choice of the originator of this
message thread) is not what you really want to do.  Instead, you'd want
to
use a single JSP page for each basic *style* of output (essentially
the
JSP page would be a formatting template) that pulls in the unique
information for a particular report (from the database, from XML, or
whatever) dynamically.  Then, a given webpp would likely have 5-10 JSP
pages, instead of hundreds.

Just as an example, assume that your application back-end gave you the
data you need in some XML format, and you want to offer your user the
chance to format this data in ten different ways.  If you create an
XSLT
stylesheet to transform the data for each of the ten formats, you can
do
this all with a *single* JSP page that takes an XML data source and an
XSLT stylesheet, applies the transformation, and renders the result.
(JSTL has a tag that will do all the grunt work for you.)

If you really really want to auto-generate all the reports ahead of
time,
go ahead and generate static HTML pages -- don't waste your time
generating JSP that then has to get compiled, loaded, and executed.  As
a
side benefit, the output will get served a little faster because there
is
less overhead in serving static files.

If you really really really want to generate hundreds of JSP pages,
then
plan on buying enough memory to hold them all and be done with it.
Fortunately, this is not usually a break the bank decision (I just
upgraded my development PC to a gigabyte of memory for less than $100
:-).

If you really really really really want to generate hundreds of JSP
pages,
and don't (or can't) afford the memory to hold them all, you only have
yourself to blame for the results.


 saurabh

Craig


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


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




RE: Changed file name now webapp not working right

2003-01-05 Thread Noel J. Bergman
Denise,

For kicks, I tried my own version (didn't write a fake bean or form):

CCProcess.jsp:

%@ page import=java.util.* %

% log(Entering CCProcess); %

%
   if (request.getParameter(validate) != null)
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=Retry.jsp/
%
   }
%

Retry.jsp:

%@ page import=java.util.* %

% log(Entering Retry); %

html
headtitleRetry/title/head
bodyNot verified/body
/html

Verify.jsp:

%@ page import=java.util.* %

% log(Entering Verify); %

html
headtitleVerify/title/head
bodyVerified/body
/html

Entering //localhost:8080/test/CCProcess.jsp resulted in the Retry page
being invoked, as verified by browser content and log:

2003-01-06 00:19:24 jsp: Entering CCProcess
2003-01-06 00:19:24 jsp: Error on form - forwarding to Retry.jsp
2003-01-06 00:19:27 jsp: Entering Retry

Entering //localhost:8080/test/CCProcess.jsp?validate=1 resulted in the
Verify page being invoked, again verified by browser content and log:

2003-01-06 00:22:37 jsp: Entering CCProcess
2003-01-06 00:22:37 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-06 00:22:40 jsp: Entering Verify

Obviously something is not right on your end.  If you want, send me the
files and I'll play.  I will be in transit all day tomorrow, but if I get
them before I leave, I can run on my laptop.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 23:51
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right


Noel,

I did as you suggested, and the strangest things are happening!!  This is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean class=com.complusdata.beans.FormBean
scope=request
  jsp:setProperty name=formBean property=*/ /jsp:useBean

%
   if (formBean.validate())
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=/CCPayments/28/Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=/CCPayments/28/Retry.jsp/
%
   }
%

I also added code to Verify.jsp to log when Entering Verify.jsp, and code
to Retry.jsp to log when Entering Retry.jsp - error on form.

Here is the output of my log:

2003-01-05 22:41:49 jsp: Entering CCProcess
2003-01-05 22:41:49 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 22:41:50 jsp: Entering Retry.jsp - error on form
2003-01-05 22:41:57 jsp: Entering CCProcess
2003-01-05 22:41:57 jsp: Form Has Been Validated - forwarding to Verify.jsp
2003-01-05 22:41:57 jsp: Entering Retry.jsp - error on form


Now this is what I did to test.  I called my form, left two fields blank,
then submitted (form action=CCProcess.jsp).  As it should, Retry.jsp was
displayed with the appropriate error messages.  If you notice in the log, on
the call to CCProcess.jsp, entering CCProcess is logged.  BUT - even
though there were errors on the page, it was still written to the log that
control is being forwarded to Verify.jsp (even though it technically wasn't)
AND it does not log that control is being forwarded to Retry.jsp AND
Entering Retry.jsp - error on form is logged.  Then after correcting the
errors, I hit submit, and Retry.jsp is loaded again (no error messages
displayed because all data is correct).  Now this is where control should
have been forwarded to Verify.jsp.  The log shows that it is getting
forwarded, but it never enters.


Now here is the STRANGEST thing.  In CCProcess.jsp I commented everything
below the /jsp:useBean and left ONLY the jsp:forward
page=/CCPayments/28/Verify.jsp/ - this way not matter what Verify.jsp
should have been loaded.  Check out what is says in the log:

2003-01-05 23:21:05 jsp: Entering CCProcess
2003-01-05 23:21:05 jsp: Entered Verify.jsp
2003-01-05 23:21:05 jsp: Entering Retry.jsp - error on form
2003-01-05 23:21:08 jsp: Entering CCProcess
2003-01-05 23:21:08 jsp: Entered Verify.jsp
2003-01-05 23:21:08 jsp: Entering Retry.jsp - error on form

According to the log - both jsp pages are being loaded...?? I even tried
deleting everything in my work directory to make sure the new files were
being compiled.  This is all very strange and I am at a total loss :(

Thanks so much for taking the time to look at all this.

Denise

-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 10:12 PM
To: Tomcat Users List
Subject: RE: Changed file name now webapp not working right


Denise,

Within your JSP page, you can put % application.log(...); % anywhere you
want to put out a message to the log.

% application.log(entering CCProcess); %

html
headtitleCCProcess/title/head
body
% if (condition) { application.log(forwarding to verify); %

jsp:forward page=/Verify.jsp /

% } else { 

Re: Works with invoker servlet but not without

2003-01-05 Thread Les Hartzman
Thanks for the response.

Two questions about it:  1) why did it work with the
invoker servlet?  2) do I also change the form
'actions' to be '/MyServlet/NextJsp' from
'/myapp/servlet/MyServlet/NextJsp'?

Thanks.

Les

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Sat, 4 Jan 2003, Les Hartzman wrote:
 
  Date: Sat, 4 Jan 2003 14:57:12 -0800 (PST)
  From: Les Hartzman [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Works with invoker servlet but not
 without
 
  I'm using Tomcat 4.1.18 on Linux.  When I deploy
 my
  app (war file in the 'webapps' directory) and the
  invoker servlet is uncommented from web.xml, my
  application works fine.
 
  I then comment out the invoker servlet, and remove
 all
  references in my JSPs to 'servlet' as part of form
  'action' values, and the application stops working
  (resource ... is not available).
 
  As an example, if a form in a JSP has
  action=/myapp/servlet/MyServlet/NextJsp, I
 removed
  '/servlet'.  I have one servlet, MyServlet, that
  handles all of the control logic, so all 'actions'
  refer to this servlet.
 
  The servlet class is obviously defined, and the
  servlet mapping is as follows:
 
  servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/myapp/url-pattern
  /servlet-mapping
 
 
 The url-pattern value should be *context*
 relative, not *server*
 relative.  In other words, it should not include the
 context path in it.
 This makes sense when you understand that a webapp
 should work correctly
 no matter what context path you deploy it on.
 
 Try this instead:
 
   servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/MyServlet/*/url-pattern
   /servlet-mapping
 
 instead.
 
  This mapping is the same one that works when the
  invoker servlet is uncommented.
 
  Can someone please explain to me what is
 happening?
 
  Thank you.
 
  Les
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
--
---
Les HartzmanThose that don't read have no
 advantage over those that can't.  -- Mark Twain



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

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




Need your help - Configuring tomcat with apache - webapp - linuxserver

2003-01-05 Thread Vincent Geneste
Hi,

I would like connect tomcat 4.1.18 with apache 2.x under linux.
I search the connector binarie file (not RPM) on the jakarta ftp site 
but the directories are empty (binary or RPM)

Is someone able to help me ?

Thank's for your help and sorry for my poor english.

Vincent.


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



Re: Memory Usage and Garbage Collection

2003-01-05 Thread Nikola Milutinovic
So the instance, and it's string, can still be GC'd, right?

Nope.

There is still a live reference to each OtherObject instance sitting in
the static HashMap cache.  Therefore, this instance cannot be GC'd, even
though *you* have released your own reference to it.  And, if the
OtherObject class is loaded from Tomcat's common/lib directory (for
example), there is no way to ***ever*** GC this instance, because the
public API of the OtherObject class doesn't offer any way to clear the
cache.


Wouldn't it be the responsibility of the Factory to worry about releasing 
objects to the GC?

I mean, if it implements caching, it should have some sort of policy when an 
instantiated (and, thus, cached) object is a candidate for GC. Obvious 
guidelines are:

- if it is not used
- if it has last been used less recently than some limit

One can also think of a non-linear function, which checks the available memory 
or has it's internal memory limit.

Nix.


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



RE: Changed file name now webapp not working right

2003-01-05 Thread Denise Mangano
Wow I think I deseerve the tomcat list schmuck of the year award... (thank
got the year just started ;) )

The way you worded that ... once I read Verify is forwarding to Retry a
light bulb went off...

As you know (and helped greatly with) I was working out previous problems I
was having with form validation.  While I was waiting for a response to a
post,  I was playing with Verify.jsp to add a button to give the user the
option to go back and make changes.  I left it non-fucntional.  So, when my
form validation problems got worked out everything was running smoothly.  I
had the urge to program that button, I was editing the file but then seconds
later decided to wait on that until I knew for sure how to do it and I could
swear that I quit without saving.  Ummm...after checking the file again it
appears that I actually did save that change... :(

The way I was trying to program the button (which I am certain is incorrect)
is onClick=jsp:forward page=Retry.jsp.  Looking at it again, I can see
that this jsp tag would be executed regardless of whether or not the button
was clicked to invoke it.  I have removed this code, but my servers are down
for routine maintenance so I will not be able to test until the morning to
see if whether or not this solves the problem.

I truly feel like a dope, and I hope you'll accept my deepest apologies for
wasting your time with this :(

Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 1/6/2003 12:34 AM
Subject: RE: Changed file name now webapp not working right

Denise,

That almost looks like either Verify is forwarding to Retry or both
forward
actions are being invoked.  Neither should be the case.

For kicks, I tried my own version (didn't write a fake bean or form):

CCProcess.jsp:

%@ page import=java.util.* %

% log(Entering CCProcess); %

%
   if (request.getParameter(validate) != null)
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=Retry.jsp/
%
   }
%

Retry.jsp:

%@ page import=java.util.* %

% log(Entering Retry); %

html
headtitleRetry/title/head
bodyNot verified/body
/html

Verify.jsp:

%@ page import=java.util.* %

% log(Entering Verify); %

html
headtitleVerify/title/head
bodyVerified/body
/html

Entering //localhost:8080/test/CCProcess.jsp resulted in the Retry
page
being invoked, as verified by browser content and log:

2003-01-06 00:19:24 jsp: Entering CCProcess
2003-01-06 00:19:24 jsp: Error on form - forwarding to Retry.jsp
2003-01-06 00:19:27 jsp: Entering Retry

Entering //localhost:8080/test/CCProcess.jsp?validate=1 resulted in
the
Verify page being invoked, again verified by browser content and log:

2003-01-06 00:22:37 jsp: Entering CCProcess
2003-01-06 00:22:37 jsp: Form Has Been Validated - forwarding to
Verify.jsp
2003-01-06 00:22:40 jsp: Entering Verify

Obviously something is not right on your end.  If you want, send me the
files and I'll play.  I will be in transit all day tomorrow, but if I
get
them before I leave, I can run on my laptop.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 0:05
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right

Correction - I just tried it again with the original CCProcess.jsp, and
intentionally left errors on the form, and the log DOES indicate that
control is being forwarded to Retry.jsp (as it should).  However, the
case
still holds that when the data is correct, upon hitting the submit
button,
it is logged that the form has been validated, and control is being
forwarded to Verify.jsp, and then again, according to the log both jsp's
are
being loaded, yet Retry.jsp is displayed in the browser.

Log file:
2003-01-05 23:45:15 jsp: Entering CCProcess
2003-01-05 23:45:15 jsp: Error on form - forwarding to Retry.jsp
2003-01-05 23:45:15 jsp: Entering Retry.jsp - error on form
2003-01-05 23:45:20 jsp: Entering CCProcess
2003-01-05 23:45:20 jsp: Form Has Been Validated - forwarding to
Verify.jsp
2003-01-05 23:45:20 jsp: Entered Verify.jsp
2003-01-05 23:45:20 jsp: Entering Retry.jsp - error on form

Thanks.
Denise
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 11:51 PM
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right


Noel,

I did as you suggested, and the strangest things are happening!!  This
is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean class=com.complusdata.beans.FormBean
scope=request
  jsp:setProperty name=formBean property=*/ /jsp:useBean

%
   if (formBean.validate())
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=/CCPayments/28/Verify.jsp/
%
   }
   else
   {
 log(Error on 

RE: Changed file name now webapp not working right

2003-01-05 Thread Noel J. Bergman
Denise,

As long as it works.  :-)  No worries.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 1:40
To: 'Noel J. Bergman '; 'Tomcat Users List '
Subject: RE: Changed file name now webapp not working right


Wow I think I deseerve the tomcat list schmuck of the year award... (thank
got the year just started ;) )

The way you worded that ... once I read Verify is forwarding to Retry a
light bulb went off...

As you know (and helped greatly with) I was working out previous problems I
was having with form validation.  While I was waiting for a response to a
post,  I was playing with Verify.jsp to add a button to give the user the
option to go back and make changes.  I left it non-fucntional.  So, when my
form validation problems got worked out everything was running smoothly.  I
had the urge to program that button, I was editing the file but then seconds
later decided to wait on that until I knew for sure how to do it and I could
swear that I quit without saving.  Ummm...after checking the file again it
appears that I actually did save that change... :(

The way I was trying to program the button (which I am certain is incorrect)
is onClick=jsp:forward page=Retry.jsp.  Looking at it again, I can see
that this jsp tag would be executed regardless of whether or not the button
was clicked to invoke it.  I have removed this code, but my servers are down
for routine maintenance so I will not be able to test until the morning to
see if whether or not this solves the problem.

I truly feel like a dope, and I hope you'll accept my deepest apologies for
wasting your time with this :(

Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 1/6/2003 12:34 AM
Subject: RE: Changed file name now webapp not working right

Denise,

That almost looks like either Verify is forwarding to Retry or both
forward actions are being invoked.  Neither should be the case.

For kicks, I tried my own version (didn't write a fake bean or form):

CCProcess.jsp:

%@ page import=java.util.* %

% log(Entering CCProcess); %

%
   if (request.getParameter(validate) != null)
   {
 log(Form Has Been Validated - forwarding to Verify.jsp);
%
 jsp:forward page=Verify.jsp/
%
   }
   else
   {
 log(Error on form - forwarding to Retry.jsp);
%
 jsp:forward page=Retry.jsp/
%
   }
%

Retry.jsp:

%@ page import=java.util.* %

% log(Entering Retry); %

html
headtitleRetry/title/head
bodyNot verified/body
/html

Verify.jsp:

%@ page import=java.util.* %

% log(Entering Verify); %

html
headtitleVerify/title/head
bodyVerified/body
/html

Entering //localhost:8080/test/CCProcess.jsp resulted in the Retry
page
being invoked, as verified by browser content and log:

2003-01-06 00:19:24 jsp: Entering CCProcess
2003-01-06 00:19:24 jsp: Error on form - forwarding to Retry.jsp
2003-01-06 00:19:27 jsp: Entering Retry

Entering //localhost:8080/test/CCProcess.jsp?validate=1 resulted in
the
Verify page being invoked, again verified by browser content and log:

2003-01-06 00:22:37 jsp: Entering CCProcess
2003-01-06 00:22:37 jsp: Form Has Been Validated - forwarding to
Verify.jsp
2003-01-06 00:22:40 jsp: Entering Verify

Obviously something is not right on your end.  If you want, send me the
files and I'll play.  I will be in transit all day tomorrow, but if I
get
them before I leave, I can run on my laptop.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 0:05
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right

Correction - I just tried it again with the original CCProcess.jsp, and
intentionally left errors on the form, and the log DOES indicate that
control is being forwarded to Retry.jsp (as it should).  However, the
case
still holds that when the data is correct, upon hitting the submit
button,
it is logged that the form has been validated, and control is being
forwarded to Verify.jsp, and then again, according to the log both jsp's
are
being loaded, yet Retry.jsp is displayed in the browser.

Log file:
2003-01-05 23:45:15 jsp: Entering CCProcess
2003-01-05 23:45:15 jsp: Error on form - forwarding to Retry.jsp
2003-01-05 23:45:15 jsp: Entering Retry.jsp - error on form
2003-01-05 23:45:20 jsp: Entering CCProcess
2003-01-05 23:45:20 jsp: Form Has Been Validated - forwarding to
Verify.jsp
2003-01-05 23:45:20 jsp: Entered Verify.jsp
2003-01-05 23:45:20 jsp: Entering Retry.jsp - error on form

Thanks.
Denise
-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 11:51 PM
To: 'Tomcat Users List'
Subject: RE: Changed file name now webapp not working right


Noel,

I did as you suggested, and the strangest things are happening!!  This
is my
CCProcess.jsp:

%@ page import=java.util.* %
%@ page import=com.complusdata.beans.FormBean %

% log(Entering CCProcess); %

jsp:useBean id=formBean