Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation

2005-02-16 Thread Paolo Beccari

After a reboot, it started working fine. However, I can't understand why it
was not working simply after a tomcat stop/start...

Many thanks to all
P.




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005

 

 

 --

 Email.it, the professional e-mail, gratis per te: http://www.email.it/f

 

 Sponsor:

 Mal di schiena? Le nostre panche ad inversione sono la soluzione giusta per 
te: distendono la colonna vertebrale e rilassano i muscoli. 

* 

 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2843d=16-2

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



RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : 

RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
I remember the first exception
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
Perhaps can you verify that you don't have a default host application or
could you confirm us that you access your application with the url
http://host:port/ ldsecure/path and/or page


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
   

Apache httpd and Tomcat with multiple virtual hosts

2005-02-16 Thread Bernard
Hi,

I am setting up Apache 2 with mod_jk and Tomcat 5.5 with multiple
virtual hosts.

My background is mod_jserv where I had
ApJServMount /myServletAlias /myZone
in the VirtualHost sections.

Now Tomcat, I undestand, has also its own virtual hosts in server.xml,
e.g. Host name=localhost appBase=webapps ...

So with this scheme

Apache has its own virtual hosts.

And Tomcat has its own virtual hosts.

I feel a uncomfortable with the duplication of server names and server
aliases in two different configuration files. Isn't there a better way
to manage multiple virtual hosts?

Bernard



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



Tomcat Related Issue:

2005-02-16 Thread Anand Pandey

Hi, Can anyone help me out in what does below error log indicate as I'm not
been able to identify the problem which is occuring after the huge upload of
the XML file.


Thanks,
Anand

2005-01-15 14:15:15,709 INFO  [main] comms.XMLSend
( XMLSend.java:136) -
Server Response:
HTTP Code: 500
Response Body:
headtitleError: 500/title/head^M
body^M
h1Error: 500/h1^M
h2Location: /llu/servlet/Upload/h2bInternal Servlet Error:/bbr^M
prejava.lang.OutOfMemoryError^M
at java.lang.StringBuffer.append(Unknown Source)^M
at Upload.doPost(Upload.java, Compiled Code)^M
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)^M
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)^M
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java,
Compiled Code)^M
at org.apache.tomcat.core.Handler.invoke(Handler.java, Compiled
Code)^M
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)^M
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java,
Compiled Code)^M
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)^M
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)^M
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java, Compiled Code)^M
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)^M
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a, Compiled Code)^M
at java.lang.Thread.run(Unknown Source)^M
/pre^M
/body^M


2004-12-15 14:15:15,751 FATAL [main] utils.ErrorHandler
(ErrorHandler.java:159) -
org.xml.sax.SAXParseException: The markup in the document following the root
element must be well-formed.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc
h(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at net.enet.uk.lluxmlhub.data.AckMessage.init(AckMessage.java:77)
at net.enet.uk.lluxmlhub.comms.XMLSend.sendRequest(XMLSend.java:142)
at
net.enet.uk.lluxmlhub.MessageSender.SendMessage(MessageSender.java:209)
at
net.enet.uk.lluxmlhub.WFBTMessageSender.btOpt2Send(WFBTMessageSender.java:48
)
at
net.enet.uk.lluxmlhub.WFBTMessageSender.execute(WFBTMessageSender.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
oracle.apps.fnd.wf.WFStandardQueue.executeFunction(WFStandardQueue.java)
at oracle.apps.fnd.wf.WFFALsnr.listen(WFFALsnr.java)
at oracle.apps.fnd.wf.WFFALsnr.main(WFFALsnr.java)


*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of MBT and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s).   In case you are not the desired addressee, 
you should delete this message and/or re-direct it to the sender.  The views 
expressed in this E-mail message (including the enclosure(s) or attachment(s) 
if any) are those of the individual sender, except where the sender expressly, 
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and MBT is not responsible for any loss or damage arising in 
any way from its use
  


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



Cookies in Tomcat 5.5.7

2005-02-16 Thread Trond G. Ziarkowski
Hi all!
I'm making a filter that checks that my cookies are set, and sets them 
if they are missing.

Code for setting cookie:
   String path = request.getContextPath();
   cookie = new Cookie(name, value);
   cookie.setPath(path);
   logger.debug(Setting cookie:  + cookie.getName() + ,  + 
cookie.getPath());
   response.addCookie(cookie);

Code for checking cookies:
   String path = request.getContextPath();
   for (Cookie c : cookies) {
   String cName = c.getName();
   String cPath = c.getPath();
   logger.debug(Checking:  + cName + ,  + cPath);
   }
When setting the cookie the Cookie.getPath() method returns the path I 
have set. But when checking cookies all calls to Cookie.getPath() 
returns null regardless of what path I have set. When viewing the 
cookies in Firefox the path is the same as when I created the cookie.

Is this a bug?
Has anyone experienced similar behaviour?
Trond
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat's JK2 connector

2005-02-16 Thread Pavel Krupets
Hello,

I am evaluating JSF and need to test my component in clustered environment
so I need Apache or Tomcat running as a front-end proxy server between users
and JBoss'es instances, and I have some questions:

1) Whether Tomcat contains JK2 connector? I have one PC with Tomcat
installed and I don't need good performance (I just need to test my
component).
2) I found out that JK2 was deprecated. Can I use something to be a
front-end proxy instead of JK (with sticky sessions: sessions should be
moved to another server if and only if server which was serving them went
down)?

In latest JK2 source distribution I found following: 

--CUT--
This version matches the version included with tomcat-5.0.2
--CUT--

I have Tomcat 5.5.7 installed.

With regards,
Pavel Krupets



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



Re: RE : HTTP Status 408 Error when i login

2005-02-16 Thread Bruno Gonçalves
Jean-Pierre, do you have any idea what causes the 408 error?
Humm...
Bruno Gonçalves wrote:
humm.. the trace don't give me much more information!
---
*The POST:*
XXX: 
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8082/jcms/web/jsp/das/j_security_check
Content-Type: application/x-www-form-urlencoded
Content-Length: 33
j_username=adminj_password=adminGET /favicon.ico HTTP/1.1
Host: localhost:8082
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) 
Gecko/20041110 Firefox/1.0
Accept: image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
XXX: 
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive


*The response:*
HTTP/1.1 408 The time allowed for the login process has been exceeded. 
If you wish to continue you must either click back twice and re-click 
the link you requested or close and re-open your browser
Content-Type: text/html;charset=utf-8
Content-Length: 1554
Date: Tue, 15 Feb 2005 18:37:09 GMT
Server: Apache-Coyote/1.1
Connection: close

htmlheadtitleApache Tomcat/5.0.28 - Error 
report/titlestyle!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} 
H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} 
H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} 
BODY 
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A 
{color : black;}A.name {color : black;}HR {color : 
#525D76;}--/style /headbodyh1HTTP Status 408 - The time 
allowed for the login process has been exceeded. If you wish to 
continue you must either click back twice and re-click the link you 
requested or close and re-open your browser/h1HR size=1 
noshade=noshadepbtype/b Status report/ppbmessage/b 
uThe time allowed for the login process has been exceeded. If you 
wish to continue you must either click back twice and re-click the 
link you requested or close and re-open your 
browser/u/ppbdescription/b uThe client did not produce a 
request within the time that the server was prepared to wait (The time 
allowed for the login process has been exceeded. If you wish to 
continue you must either click back twice and re-click the link you 
requested or close and re-open your browser)./u/pHR size=1 
noshade=noshadeh3Apache Tomcat/5.0.28/h3/body/htmlHTTP/1.1 
404 /favicon.ico
Content-Type: text/html;charset=utf-8
Content-Length: 988
Date: Tue, 15 Feb 2005 18:37:09 GMT
Server: Apache-Coyote/1.1

htmlheadtitleApache Tomcat/5.0.28 - Error 
report/titlestyle!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} 
H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} 
H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} 
BODY 
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A 
{color : black;}A.name {color : black;}HR {color : 
#525D76;}--/style /headbodyh1HTTP Status 404 - 
/favicon.ico/h1HR size=1 noshade=noshadepbtype/b Status 
report/ppbmessage/b u/favicon.ico/u/ppbdescription/b


What's your opinion?

I used the port 8082 on tomcat! It works!
I'm gonna see the trace!
Thanks one more time :)


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

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


JAVA_OPTS , C:\Tomcat 5.5 ?

2005-02-16 Thread Shakeel Ahmad
Hi,

JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.

Thanks in advance.



Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.



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



Configure Valve which is called after authentication process???

2005-02-16 Thread Oliver Wulff
Hi

Is it possible to configure a valve which is called after the
authentication process?
I've configured the Valve after the Realm but the Valve is called first.

Thanks for your support.

Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: Tomcat Related Issue:

2005-02-16 Thread Tim Funk
You ran out of memory:
java.lang.OutOfMemoryError
-Tim
Anand Pandey wrote:
Hi, Can anyone help me out in what does below error log indicate as I'm not
been able to identify the problem which is occuring after the huge upload of
the XML file.
Thanks,
Anand
2005-01-15 14:15:15,709 INFO  [main] comms.XMLSend
( XMLSend.java:136) -
Server Response:
HTTP Code: 500
Response Body:
headtitleError: 500/title/head^M
body^M
h1Error: 500/h1^M
h2Location: /llu/servlet/Upload/h2bInternal Servlet Error:/bbr^M
prejava.lang.OutOfMemoryError^M
at java.lang.StringBuffer.append(Unknown Source)^M
at Upload.doPost(Upload.java, Compiled Code)^M
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)^M
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)^M
at 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cookies in Tomcat 5.5.7

2005-02-16 Thread Tim Funk
getPath() in only useful for setting cookies. The browser only sends the name 
/value pairing of the cookie back to you. It omits path and expiration.

-Tim
Trond G. Ziarkowski wrote:
Hi all!
I'm making a filter that checks that my cookies are set, and sets them 
if they are missing.

Code for setting cookie:
   String path = request.getContextPath();
   cookie = new Cookie(name, value);
   cookie.setPath(path);
   logger.debug(Setting cookie:  + cookie.getName() + ,  + 
cookie.getPath());
   response.addCookie(cookie);

Code for checking cookies:
   String path = request.getContextPath();
   for (Cookie c : cookies) {
   String cName = c.getName();
   String cPath = c.getPath();
   logger.debug(Checking:  + cName + ,  + cPath);
   }
When setting the cookie the Cookie.getPath() method returns the path I 
have set. But when checking cookies all calls to Cookie.getPath() 
returns null regardless of what path I have set. When viewing the 
cookies in Firefox the path is the same as when I created the cookie.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat5.0 configuration

2005-02-16 Thread Raasi Potluri
Hi, I have written a simple servlet and trying to
access an init param from the web.xml but the servlet
is giving me a runtime error, please help, I'm stuck
here, my runtime error says..

[code]
HTTP Status 404 - Servlet invoker is not available



type Status report

message Servlet invoker is not available

description The requested resource (Servlet invoker is
not available) is not available.




Apache Tomcat/5.0.28
[/code]

my code and web.xml fiels look like this..

InitParamServlet.java

[code]

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


public class InitParamServlet extends HttpServlet {


private String name;

public void init() throws ServletException {

name = (String)
getServletContext().getAttribute(name);

if (name == null) 
{

name = no name initialized;


throw new UnavailableException(Couldn't get
database.);


}

}


public void doGet(HttpServletRequest req,
HttpServletResponse res) throws IOException,
ServletException {


PrintWriter out = res.getWriter();

res.setContentType(text/html);

out.println(html);

out.println(head meta
http-equiv=\Content-Language\ content=\en-gb\
meta http-equiv=\Content-Type\ 

content=\text/html; charset=windows-1252\);

out.println(titleHello/title);
out.println(/head);

out.println(body);

out.println(p align=\center\nbsp;/p);
out.println(p align=\center\nbsp;/p);
out.println(p align=\center\bfont
size=\6\Hello, My Name is   + name +  This is a
sample webpage, );

out.println(/body);

out.println(/html);

}

}

[/code]

web.xml is

[code]
?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description


!-- JSPC servlet mappings start --

servlet
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
   
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet



servlet
servlet-nameInitParamServlet/servlet-name
servlet-classInitParamServlet/servlet-class

init-param
param-namename/param-name
param-valueClint Fivefield!/param-value
/init-param

/servlet


servlet-mapping
servlet-nameInitParamServlet/servlet-name
url-pattern/InitParamServlet/url-pattern
/servlet-mapping



servlet-mapping
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --

/web-app

[/code]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Cookies in Tomcat 5.5.7

2005-02-16 Thread Trond G. Ziarkowski
Thanks Tim,
I was trying to use the same cookiename for different paths in my 
webapp, but since the path is not sent I just have to use different 
cookienames.

Trond
Tim Funk wrote:
getPath() in only useful for setting cookies. The browser only sends 
the name /value pairing of the cookie back to you. It omits path and 
expiration.

-Tim
Trond G. Ziarkowski wrote:
Hi all!
I'm making a filter that checks that my cookies are set, and sets 
them if they are missing.

Code for setting cookie:
   String path = request.getContextPath();
   cookie = new Cookie(name, value);
   cookie.setPath(path);
   logger.debug(Setting cookie:  + cookie.getName() + ,  + 
cookie.getPath());
   response.addCookie(cookie);

Code for checking cookies:
   String path = request.getContextPath();
   for (Cookie c : cookies) {
   String cName = c.getName();
   String cPath = c.getPath();
   logger.debug(Checking:  + cName + ,  + cPath);
   }
When setting the cookie the Cookie.getPath() method returns the path 
I have set. But when checking cookies all calls to Cookie.getPath() 
returns null regardless of what path I have set. When viewing the 
cookies in Firefox the path is the same as when I created the cookie.
 

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


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


Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs - Fixed

2005-02-16 Thread David Smith
Great!  Glad to see it working.  I would still find the time to refactor 
your code and remove the dependencies on specific directories though.  
The new classloader is so much nicer than the old classpath system.

--David
Sam Halicke wrote:
It ended up being the CLASSPATH environment variable, which i suspected all
along.
Since our underlying code (some of it poorly written AFAIK, based on Tomcat
3 and the older JSP spec) relies on classes/jars being at a certain path in
the directory tree, copying the classes over to the WEB-INF directories is
not enough. You won't get ClassDefNotFound errors, but you will get NPEs.
The exact reason for this, I don't know, (I have only a passing
understanding of Java and the JSP spec) but I did find a workaround. It lies
in the /bin/catalina.sh script, in which the CLASSPATH environment variable
is overridden. I simply added the paths to my necessary .jar files in a
separate script run at login, exporting them to another env variable
(CLASSPATH2). I then edited $tomcat_home/bin/catalina.sh to look like this:
...snip...
# Add on extra jar files to CLASSPATH
if [ -n $JSSE_HOME ]; then
CLASSPATH=$CLASSPATH:$JSSE_HOME/lib/jcert.jar:$JSSE_HOME/lib/jnet.jar:
$JSSE_HOME/lib/jsse.jar
fi
CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/b
in/commons-logging-api.jar:$CLASSPATH2
...snip...
And voila, everything works fine. It's a good tip if you're migrating from
the Stone Age of Tomcat 3, as you don't have to re-code anything. If anyone
knows of an easier, more modular way to do this, please drop me a line.
Thanks for all your advice.
Cheers
orig message follows
Forget classpath -- it's ignored in Tomcat 5.5 and as I remember, was
being phased out in Tomcat 3 (wow -- have I been reading these mail
lists for that long??).
If you put your classes and jars in the right places, they will be
found.  In your case, the classes are being found, but some underlying
code in biz.shipflex.Configuration is throwing an NPE.
--David
Sam Halicke wrote:
 

Hi all, first time posting to the list.
I'm having several problems migrating JSPs and class/jar files to Tomcat
5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to
avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is
rather sparse and terribly cryptic.
Each webapp is using its own local classes (which I have copied into the
local WEB-INF directory in /classes /lib etc.), as well as some common
classes/jars which have been copied into the /tomcat/common/ directory
   

tree.
 

Should I be using the /tomcat/shared/ tree? This does not seem to matter as
jasper will consistently throw me errors from compiling the JSPs.
Here is the root cause of one such error:
HTTP 500 - Internal Server Error
ROOT CAUSE
java.lang.NullPointerException
biz.shipflex.Configuration.getConfiguration(Configuration.java:51)
org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Shi
   

p
 

Flex.Website.MainPage_jsp:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
   

3
 

25)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
My basic setup is as follows:
Apache 2.x  /usr/local/apache
Tomcat 5.5.7/usr/local/tomcat
[EMAIL PROTECTED] tomcat]# echo $CLASSPATH
/usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shippin
   

g
 

/Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/
   

l
 

ib/
I have a feeling its something with my CLASSPATH, again, this is a touchy
migration.
I'll gladly copy any portions of web.xml and/or server.xml, etc to an
additional message if needed. Any help or suggestions on things/files to
look at would be most appreciated.
TIA

Sam Halicke
Systems Administrator
IMSure Network, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

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

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


RE: 5.0.28 catalina.properties file

2005-02-16 Thread Benson Margulies
The files show as lowercase in windows. Is there any way to get Tomcat
to dump out the classpath as it perceives it? 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 11:28 AM
To: Tomcat Users List
Subject: RE: 5.0.28 catalina.properties file

 From: Benson Margulies [mailto:[EMAIL PROTECTED]
 Subject: RE: 5.0.28 catalina.properties file
 
 What didn't work looked like
 
 common.loader=${catalina.home}/common/classes,${catalina.home}
 /common/endorsed/*.jar,{catalina.home}/common/lib/*.jar,c:/esri/lib/bt
 nm.jar

Grasping at straws here - could there be a case sensitivity issue with
the spelling of btnm.jar?  (I know it's Windows, but not all Java code
respects the case insensitivity of that platform.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


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



Re: Cookies in Tomcat 5.5.7

2005-02-16 Thread Tim Funk
All is not lost. The cookie spec says that overlapping cookie names need to 
be sent from most specific to least specific. But if you have the same cookie 
name across many domains (foo.domain.com vs bar.domain.com) - then things get 
a little ambiguous.

-Tim
Trond G. Ziarkowski wrote:
Thanks Tim,
I was trying to use the same cookiename for different paths in my 
webapp, but since the path is not sent I just have to use different 
cookienames.

Trond
Tim Funk wrote:
getPath() in only useful for setting cookies. The browser only sends 
the name /value pairing of the cookie back to you. It omits path and 
expiration.

-Tim
Trond G. Ziarkowski wrote:
Hi all!
I'm making a filter that checks that my cookies are set, and sets 
them if they are missing.

Code for setting cookie:
   String path = request.getContextPath();
   cookie = new Cookie(name, value);
   cookie.setPath(path);
   logger.debug(Setting cookie:  + cookie.getName() + ,  + 
cookie.getPath());
   response.addCookie(cookie);

Code for checking cookies:
   String path = request.getContextPath();
   for (Cookie c : cookies) {
   String cName = c.getName();
   String cPath = c.getPath();
   logger.debug(Checking:  + cName + ,  + cPath);
   }
When setting the cookie the Cookie.getPath() method returns the path 
I have set. But when checking cookies all calls to Cookie.getPath() 
returns null regardless of what path I have set. When viewing the 
cookies in Firefox the path is the same as when I created the cookie.
 

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


RE: Tomcat Related Issue:

2005-02-16 Thread Anand Pandey

Hi Tim,
Thanks...
But can you pls advise me some solution for this, as our system is having
8GB of RAM.
Is it related to some Tomcat/Java Memory.
I'm using Tomcat 3.3.1 and JRE1.2

Regards,
Anand

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 5:32 PM
To: Tomcat Users List
Subject: Re: Tomcat Related Issue:


You ran out of memory:
java.lang.OutOfMemoryError

-Tim

Anand Pandey wrote:

 Hi, Can anyone help me out in what does below error log indicate as I'm
not
 been able to identify the problem which is occuring after the huge upload
of
 the XML file.


 Thanks,
 Anand

 2005-01-15 14:15:15,709 INFO  [main] comms.XMLSend
 ( XMLSend.java:136) -
 Server Response:
 HTTP Code: 500
 Response Body:
 headtitleError: 500/title/head^M
 body^M
 h1Error: 500/h1^M
 h2Location: /llu/servlet/Upload/h2bInternal Servlet Error:/bbr^M
 prejava.lang.OutOfMemoryError^M
 at java.lang.StringBuffer.append(Unknown Source)^M
 at Upload.doPost(Upload.java, Compiled Code)^M
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
 Code)^M
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
 Code)^M
 at

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


*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of MBT and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s).   In case you are not the desired addressee, 
you should delete this message and/or re-direct it to the sender.  The views 
expressed in this E-mail message (including the enclosure(s) or attachment(s) 
if any) are those of the individual sender, except where the sender expressly, 
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and MBT is not responsible for any loss or damage arising in 
any way from its use
  


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



Re: 5.0.28 catalina.properties file

2005-02-16 Thread Tim Funk
Some crude code to copy/paste into your jsp ...
%
ClassLoader cl = this.getClass().getClassLoader();
ClassLoader lastCl = null;
while (cl != null  lastCl  != cl) {
lastCl = cl;
out.println(cl.getClass().getName() + [ + cl + ]);
cl = cl.getParent();
}
%
-Tim
Benson Margulies wrote:
The files show as lowercase in windows. Is there any way to get Tomcat
to dump out the classpath as it perceives it? 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 11:28 AM
To: Tomcat Users List
Subject: RE: 5.0.28 catalina.properties file


From: Benson Margulies [mailto:[EMAIL PROTECTED]
Subject: RE: 5.0.28 catalina.properties file
What didn't work looked like
common.loader=${catalina.home}/common/classes,${catalina.home}
/common/endorsed/*.jar,{catalina.home}/common/lib/*.jar,c:/esri/lib/bt
nm.jar

Grasping at straws here - could there be a case sensitivity issue with
the spelling of btnm.jar?  (I know it's Windows, but not all Java code
respects the case insensitivity of that platform.)
 - Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Tomcat Related Issue:

2005-02-16 Thread Tim Funk
See the tomcat 3 (installation) readme or FAQ. You need to pass memory 
parameters to the JVM. I do not use tomcat 3 and its config is differnet from 
tomcat 4 and 5.

-TIM
Anand Pandey wrote:
Hi Tim,
Thanks...
But can you pls advise me some solution for this, as our system is having
8GB of RAM.
Is it related to some Tomcat/Java Memory.
I'm using Tomcat 3.3.1 and JRE1.2

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


Re: JNDI lookup returns NamingException

2005-02-16 Thread Carl
Many thanks to Doug and Seven.

The core problem on our Windows machines was that we neglected to put a
Resource-Link entry in the ROOT.xml in the Documents and Settings\.
directory.

On the Linux servers (running 5.5), we needed to put a Resource-Link entry
in the Context.xml under META-INF.

And, to think we worked for several hours on such a simple problem.

Thanks again,

Carl
- Original Message -
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 15, 2005 11:16 PM
Subject: Re: JNDI lookup returns NamingException


 Did you put ResourceLinks in your Default context or the Apps context?

 If not, you will not be able to see the resource.


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html

 And the link that is in your server.xml shouldn't be there or anywhere.
See
 above link.

 Doug


 - Original Message -
 From: Carl [EMAIL PROTECTED]
 To: Tomcat User Group tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 15, 2005 4:41 PM
 Subject: JNDI lookup returns NamingException


  For various reasons, I need to put a Hashtable as a resource in the
Tomcat
  Context.  I have modified the server.xml as follows (note the resource
  entry
  of DBHashtable):
 
  Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
  Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  debug=0/
 
  !-- Global JNDI resources --
  GlobalNamingResources
 
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer value=30/
 
  !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  /Resource
  Resource name=DBHashtable auth=Container
type=java.util.Hashtable/
  ResourceParams name=UserDatabase
  parameter
  namefactory/name
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
  /parameter
  /ResourceParams
  ResourceParams name=DBHashtable
  parameter
  namefactory/name
  valuecom.tsr.factory.HashtableFactory/value
  /parameter
  /ResourceParams
 
  /GlobalNamingResources
 
  ResourceLink name=linkToGlobal global=simpleValue
  type=java.lang.Integer/
 
  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
 
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
  during installation --
  Connector
  port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=8443 acceptCount=100
  debug=0 connectionTimeout=2
  disableUploadTimeout=true /
  Connector port=8009
  enableLookups=false redirectPort=8443 debug=0
  protocol=AJP/1.3 /
  !-- Define the top level container in our container hierarchy --
  Engine name=Catalina defaultHost=localhost debug=0
 
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
 
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
  debug=0 resourceName=UserDatabase/
 
  Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
 
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs prefix=localhost_log. suffix=.txt
  timestamp=true/
 
  /Host
 
  /Engine
 
  /Service
 
  /Server
 
 
  My application accesses this resource (well, tries to) using the
following
  code:
 
  try {
  Context ctx = new InitialContext();
  if(ctx == null ){
  System.out.println(Boom - No Context);
  throw new NamingException(No Context - No DataBase Exists);
  }
 
  Context envCtx = (Context)ctx.lookup(java:comp/env);
  Object ud = (Object)envCtx.lookup(DBHashtable);
  }catch (NamingException ne){
  ne.printStackTrace();
  // throw new SQLException(Datasource Not Found);
  }
 
  It fails of the line Object ud = (Object)envCtx.lookup(DBHashtable);
  with the following error:
 
  javax.naming.NamingException: Cannot create resource instance
  at
 
org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFa
  ctory.java:99)
  at
  javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:791)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
  at LoginServlet.doPost(LoginServlet.java:37)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
  FilterChain.java:237)
  at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
  

RE: Tomcat Related Issue:

2005-02-16 Thread Anand Pandey

Thanks Tim,
I'll try this

Cheers,
Anand


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 6:12 PM
To: Tomcat Users List
Subject: Re: Tomcat Related Issue:


See the tomcat 3 (installation) readme or FAQ. You need to pass memory
parameters to the JVM. I do not use tomcat 3 and its config is differnet
from
tomcat 4 and 5.

-TIM

Anand Pandey wrote:

 Hi Tim,
 Thanks...
 But can you pls advise me some solution for this, as our system is having
 8GB of RAM.
 Is it related to some Tomcat/Java Memory.
 I'm using Tomcat 3.3.1 and JRE1.2


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


*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of MBT and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s).   In case you are not the desired addressee, 
you should delete this message and/or re-direct it to the sender.  The views 
expressed in this E-mail message (including the enclosure(s) or attachment(s) 
if any) are those of the individual sender, except where the sender expressly, 
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and MBT is not responsible for any loss or damage arising in 
any way from its use
  


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



RE : RE : HTTP Status 408 Error when i login

2005-02-16 Thread LERBSCHER Jean-Pierre
I saw different information on it!

408  The Request timed out. For some reason the Server took too much time
processing your Request. Net congestion is the most likely reason. 

Le client n'a pas présenté une requête complète pendant le délai maximal qui
lui était imparti, et le serveur a abandonné la connexion.

The 408 (Request Time-out) code means that the client's request wasn't
completed, and the server gave up waiting for the client to finish. A client
might receive this code if it did not supply the entity-body properly, or
(under HTTP 1.1) if it neglected to supply a Connection: Close header. 

408 Request Time-out
 This response code means the client did not produce a full request within
some predetermined time (usually specified in the server's configuration),
and the server is disconnecting the network connection.

Perhaps you can track something on the server log.
Or see at tcp parameter on client or server system (I don't know precisely).
Can you use netstat utility to track tcp state info on socket?

Change your browser to exclude bug in browser!

For the moment I have no other idea!

-Message d'origine-
De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 16 février 2005 12:16
À : Tomcat Users List
Objet : Re: RE : HTTP Status 408 Error when i login

Jean-Pierre, do you have any idea what causes the 408 error?
Humm...


Bruno Gonçalves wrote:

 humm.. the trace don't give me much more information!

 ---
 *The POST:*

 XXX: 
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Referer: http://localhost:8082/jcms/web/jsp/das/j_security_check
 Content-Type: application/x-www-form-urlencoded
 Content-Length: 33

 j_username=adminj_password=adminGET /favicon.ico HTTP/1.1
 Host: localhost:8082
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) 
 Gecko/20041110 Firefox/1.0
 Accept: image/png,*/*;q=0.5
 Accept-Language: en-gb,en;q=0.5
 XXX: 
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive

 
 *The response:*

 HTTP/1.1 408 The time allowed for the login process has been exceeded. 
 If you wish to continue you must either click back twice and re-click 
 the link you requested or close and re-open your browser
 Content-Type: text/html;charset=utf-8
 Content-Length: 1554
 Date: Tue, 15 Feb 2005 18:37:09 GMT
 Server: Apache-Coyote/1.1
 Connection: close

 htmlheadtitleApache Tomcat/5.0.28 - Error 
 report/titlestyle!--H1 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} 
 H2 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} 
 H3 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} 
 BODY 
 {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
 B 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
 P 

{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A 
 {color : black;}A.name {color : black;}HR {color : 
 #525D76;}--/style /headbodyh1HTTP Status 408 - The time 
 allowed for the login process has been exceeded. If you wish to 
 continue you must either click back twice and re-click the link you 
 requested or close and re-open your browser/h1HR size=1 
 noshade=noshadepbtype/b Status report/ppbmessage/b 
 uThe time allowed for the login process has been exceeded. If you 
 wish to continue you must either click back twice and re-click the 
 link you requested or close and re-open your 
 browser/u/ppbdescription/b uThe client did not produce a 
 request within the time that the server was prepared to wait (The time 
 allowed for the login process has been exceeded. If you wish to 
 continue you must either click back twice and re-click the link you 
 requested or close and re-open your browser)./u/pHR size=1 
 noshade=noshadeh3Apache Tomcat/5.0.28/h3/body/htmlHTTP/1.1 
 404 /favicon.ico
 Content-Type: text/html;charset=utf-8
 Content-Length: 988
 Date: Tue, 15 Feb 2005 18:37:09 GMT
 Server: Apache-Coyote/1.1

 htmlheadtitleApache Tomcat/5.0.28 - Error 
 report/titlestyle!--H1 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} 
 H2 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} 
 H3 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} 
 BODY 
 {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
 B 

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
 P 

{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A 
 {color : black;}A.name {color : black;}HR {color : 
 #525D76;}--/style /headbodyh1HTTP Status 404 - 
 /favicon.ico/h1HR 

connecting to MySql database

2005-02-16 Thread Yaroslav Alpizar Zhuravliov
Hi again...I´m new here...

I´ve these piece of code and can´t find the error in
the struts-config.xml:

- !--   Data
Source Configuration 
  -- 
- data-sources
- data-source
  set-property property=description value=SCIWARE
Data Source Configuration to mySQL / 
  set-property property=driverClass
value=org.gjt.mm.mysql.Driver / 
  set-property property=maxWait value=1 / 
  set-property property=maxIdle value=30 / 
  set-property property=maxActive value=100 / 
  set-property property=url
value=jdbc:mysql://localhost:3096/sciware?autoReconnect=true
/ 
  set-property property=user value=sciware / 
  set-property property=password value=aest / 
  /data-source
  /data-sources


I checked the form-beans and the action-mapping and
seems to be all right...

Any idea will appreciated...thanks

=
Yaroslav J. Alpízar Zhuravlev
System Administrator
Departament de Quimica
UIB Universitat de les Illes Balears

...go out there and see how deep the rabbit hole is...
  Morpheus



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



tomcat and apples

2005-02-16 Thread [xm] Agarlita, Dan
Hi,
   I try to put applets in html pages under Tomcat 5.0
   when I try to look at the result, the applet is not started
   and I have the following error...
   java.security.AccessControlException: access denied 
(java.net.SocketPermission 10 resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at 
java.security.AccessController.checkPermission(AccessController.java:401)


Can anyone tell me something about this error?
Have a nice day,
Dan a. 

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


Re: [OT]connecting to MySql database

2005-02-16 Thread David Smith
Technically speaking, this is off-topic and marked as such.
Take a look at this for more info:
http://struts.apache.org/faqs/database.html
On the surface, I see a missing type attribute on the data-source 
element and you should probably be using com.mysql.jdbc.Driver for the 
driver class property if you have a recent version of the mysql jar file.

--David
Yaroslav Alpizar Zhuravliov wrote:
Hi again...I´m new here...
I´ve these piece of code and can´t find the error in
the struts-config.xml:
- !--   Data
Source Configuration 
 -- 
- data-sources
- data-source
 set-property property=description value=SCIWARE
Data Source Configuration to mySQL / 
 set-property property=driverClass
value=org.gjt.mm.mysql.Driver / 
 set-property property=maxWait value=1 / 
 set-property property=maxIdle value=30 / 
 set-property property=maxActive value=100 / 
 set-property property=url
value=jdbc:mysql://localhost:3096/sciware?autoReconnect=true
/ 
 set-property property=user value=sciware / 
 set-property property=password value=aest / 
 /data-source
 /data-sources

I checked the form-beans and the action-mapping and
seems to be all right...
Any idea will appreciated...thanks
=
Yaroslav J. Alpízar Zhuravlev
System Administrator
Departament de Quimica
UIB Universitat de les Illes Balears
...go out there and see how deep the rabbit hole is...
 Morpheus
		
__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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

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


percent 0008 exploit

2005-02-16 Thread Norris Shelton
A co-worker that supports a federal sight just got an e-mail
from their admins indicating that his site is exposing jsp
source code  when they appent %0008 to the end of their URLs. 
The view source shows his exact pages.

He is using Tomcat 4.1.30 and JDK 1.4.2_05

I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is this
a JRE vulnerability?

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: [OT] Search in French database in English

2005-02-16 Thread sven morales
Hi,
It compiled okay?  What was the error you got when
running it?  Btw there is a cocoon mailing list too to
get some help, here is the link:

http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1b=200502w=4

aka_sergio

--- Antony Paul [EMAIL PROTECTED] wrote:

 I checked out CVS head compiled it and run it went
 to sample
 application Internationalization (i18n) 
 Localization (l10n) and it
 is giving error.
 
 rgds
 Antony Paul 
 
 
 On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven
 morales
 [EMAIL PROTECTED] wrote:
It is in English.  Did you try to visit the link
 I
  provided?
  
  aka_sergio
  --- Antony Paul [EMAIL PROTECTED] wrote:
  
   Is that German application you are talking about
 ?.
   I dont know
   languages other than English.
  
   rgds
   Antony Paul
  
  
   On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
   morales
   [EMAIL PROTECTED] wrote:
Hi,
   Please look at the very robust Cocoon
 project
   under
apache too.  See http://cocoon.apache.org
   download
the code via cvs, compile it and there is an
Internationalization sample.  Am positive you
 will
like cocoon.  Im not doing it justice with my
 very
very simple explanation.  You have to try it
 and
   see
and it does run on Tomcat or resin, orion,
 oracle,
jboss, etc.. :)
   
aka_sergio
--- Antony Paul [EMAIL PROTECTED]
 wrote:
   
 Hi all,
 Sorry for OT. Many here will have
 experience
   in
 developing
 multilingual sites. I have a doubt regarding
 searching in a database
 which stores information in English, French
 and
 German. The user can
 type the search keyword(usually it is
 customer
   name
 and address) in
 English and it has to match the word in all
   these
 languages. Is it
 possible ?.

 Any thoughts on this are welcome.

 rgds
 Antony Paul


   
  
 

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


   
   
__
Do you Yahoo!?
Yahoo! Mail - Find what you need with new
 enhanced
   search.
http://info.mail.yahoo.com/mail_250
   
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  __
  Do you Yahoo!?
  Read only the mail you want - Yahoo! Mail
 SpamGuard.
  http://promotions.yahoo.com/new_mail
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



stdout - console instead of catalina.out

2005-02-16 Thread Eric Wulff
I just started logging via log4j and although my question stems from
that, I believe it is more of a Tomcat question.  How can I re-direct
log messages to print to a Linux command window
instead of printing to the file catalina.out, i.e. how do I tell
Tomcat that standard out is the console from which I started Tomcat
in?  I believe the standard output stream is directed to catalina.out
by default.  I have yet to find the answer in the Tomcat docs.

running tomcat 5.0.28 on Linux Fedora Core 2

thx
Eric

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



Re: stdout - console instead of catalina.out

2005-02-16 Thread David Smith
The startup shell script is responsible for redirecting output to 
catalina.out.  remove ' catalina.out' and you should be good to go.  
You could also pipe your output to the 'tee' utility.  See the man pages 
for details.

--David
Eric Wulff wrote:
I just started logging via log4j and although my question stems from
that, I believe it is more of a Tomcat question.  How can I re-direct
log messages to print to a Linux command window
instead of printing to the file catalina.out, i.e. how do I tell
Tomcat that standard out is the console from which I started Tomcat
in?  I believe the standard output stream is directed to catalina.out
by default.  I have yet to find the answer in the Tomcat docs.
running tomcat 5.0.28 on Linux Fedora Core 2
thx
Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


Re: percent 0008 exploit

2005-02-16 Thread Michiel Toneman
I've just been trying to confrm the vulnerability without any luck.
Any place in the wild where we could find such a problem?
I've tried replacing:
http://www.server.dom/jsp/test.jsp
with:
http://www.server.dom/jsp/test.jsp%0008
in a number of setups without any results.
Cheers,
Michiel
Norris Shelton wrote:
A co-worker that supports a federal sight just got an e-mail
from their admins indicating that his site is exposing jsp
source code  when they appent %0008 to the end of their URLs. 
The view source shows his exact pages.

He is using Tomcat 4.1.30 and JDK 1.4.2_05
I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is this
a JRE vulnerability?
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton

		
__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 


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


--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Jasper 2 problem with core taglibs in 5.5.7?

2005-02-16 Thread David Kennedy
Hi folks,
I have a Ant build which includes pre-compilation of JSPs. This has been
working happily during prototyping with Tomcat 5.5.4, but has broken now
that we have moved to Tomcat 5.5.7 as the latest stable build, which 
worries me a lot.

The error I get during the build is:
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml 
or the jar files deployed with this application

The Ant task:
  target name=define-jasper2-task
taskdef name=jasper2 classname=org.apache.jasper.JspC
  classpath
path id=jspc.classpath
  pathelement location=${java.home}/../lib/tools.jar /
  fileset dir=${tomcat.dir}/server/lib
  include name=*.jar /
  /fileset
  fileset dir=${tomcat.dir}/common/lib
  include name=*.jar /
  /fileset
  fileset dir=${lib-dir}
  include name=*.jar /
  /fileset
/path
  /classpath
/taskdef
  /target
${lib-dir} contains jstl.jar and standard.jar, and the line in
the JSPs causing trouble is:
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
I understand this sort of error to be typically to do with JSTL1.0/1.1, 
but I don't think this is an issue here, especially as 5.5.4 works fine. 
 The ONLY thing I change is the value of ${tomcat.dir}. Has anyone seen 
this, or can anyone suggest a resolution?

Thanks,
David Kennedy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Jasper 2 problem with core taglibs in 5.5.7?

2005-02-16 Thread Remy Maucherat
On Wed, 16 Feb 2005 16:40:25 +, David Kennedy
[EMAIL PROTECTED] wrote:
 Hi folks,
 I have a Ant build which includes pre-compilation of JSPs. This has been
 working happily during prototyping with Tomcat 5.5.4, but has broken now
 that we have moved to Tomcat 5.5.7 as the latest stable build, which
 worries me a lot.
 
 The error I get during the build is:
 org.apache.jasper.JasperException: The absolute uri:
 http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
 or the jar files deployed with this application
 
 The Ant task:
target name=define-jasper2-task
  taskdef name=jasper2 classname=org.apache.jasper.JspC
classpath
  path id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar /
fileset dir=${tomcat.dir}/server/lib
include name=*.jar /
/fileset
fileset dir=${tomcat.dir}/common/lib
include name=*.jar /
/fileset
fileset dir=${lib-dir}
include name=*.jar /
/fileset
  /path
/classpath
  /taskdef
/target
 
 ${lib-dir} contains jstl.jar and standard.jar, and the line in
 the JSPs causing trouble is:
 %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 
 I understand this sort of error to be typically to do with JSTL1.0/1.1,
 but I don't think this is an issue here, especially as 5.5.4 works fine.
   The ONLY thing I change is the value of ${tomcat.dir}. Has anyone seen
 this, or can anyone suggest a resolution?

http://issues.apache.org/bugzilla/show_bug.cgi?id=33373

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: JAVA_OPTS , C:\Tomcat 5.5 ?

2005-02-16 Thread Edmon Begoli
Give few more details, so that I can try your test case.
Thank you,
Edmon
Shakeel Ahmad wrote:
Hi,
JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.
Thanks in advance.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com
EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

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

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


RE: percent 0008 exploit

2005-02-16 Thread Mike Curwen
Is it this old chestnut?

Mike Curwen
Product Manager
Globally Boundless
www.globallyboundless.com   
204.885.7733 ext 227




Privacy Compliance: This e-mail message is intended only for the use of the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential and exempt from disclosure under applicable
law. Any other distribution, copying or disclosure is strictly prohibited.
If you have received this message in error, please notify us immediately by
telephone (800) 665-1321 and reply to the sender via e-mail, confirming
deletion of the original e-mail and any attachment(s).








 -Original Message-
 From: Norris Shelton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 16, 2005 9:27 AM
 To: Tomcat
 Subject: percent 0008 exploit
 
 
 A co-worker that supports a federal sight just got an e-mail 
 from their admins indicating that his site is exposing jsp 
 source code  when they appent %0008 to the end of their URLs. 
 The view source shows his exact pages.
 
 He is using Tomcat 4.1.30 and JDK 1.4.2_05
 
 I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is 
 this a JRE vulnerability?
 
 =
 
 Norris Shelton
 Software Engineer
 Sun Certified Java 1.1 Programmer
 Appriss, Inc.
 ICQ# 26487421
 AIM NorrisEShelton
 YIM norrisshelton
 
 
 
   
 __ 
 Do you Yahoo!? 
 Meet the all-new My Yahoo! - Try it today! 
 http://my.yahoo.com 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: stdout - console instead of catalina.out

2005-02-16 Thread Eric Wulff
Great, many thx for the advise.  I also found that using command
'./catalina.sh run' to start Tomcat, as apposed to traditional
'./startup.sh', ensures that stdout goes to the console instead of
catalina.out.

Eric


On Wed, 16 Feb 2005 11:22:20 -0500, David Smith [EMAIL PROTECTED] wrote:
 The startup shell script is responsible for redirecting output to
 catalina.out.  remove ' catalina.out' and you should be good to go.
 You could also pipe your output to the 'tee' utility.  See the man pages
 for details.
 
 --David
 
 Eric Wulff wrote:
 
 I just started logging via log4j and although my question stems from
 that, I believe it is more of a Tomcat question.  How can I re-direct
 log messages to print to a Linux command window
 instead of printing to the file catalina.out, i.e. how do I tell
 Tomcat that standard out is the console from which I started Tomcat
 in?  I believe the standard output stream is directed to catalina.out
 by default.  I have yet to find the answer in the Tomcat docs.
 
 running tomcat 5.0.28 on Linux Fedora Core 2
 
 thx
 Eric
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: percent 0008 exploit

2005-02-16 Thread Mike Curwen
hmm.. that would be _this_ old chestnut... (a little eager on the send,
sorry.)

http://shh.thathost.com/secadv/2001-03-29-tomcat.txt

This particular exploit was fixed a long time ago (wasn't it?)


Mike Curwen

 -Original Message-
 From: Norris Shelton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 16, 2005 9:27 AM
 To: Tomcat
 Subject: percent 0008 exploit
 
 
 A co-worker that supports a federal sight just got an e-mail 
 from their admins indicating that his site is exposing jsp 
 source code  when they appent %0008 to the end of their URLs. 
 The view source shows his exact pages.
 
 He is using Tomcat 4.1.30 and JDK 1.4.2_05
 
 I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is 
 this a JRE vulnerability?
 
 =
 
 Norris Shelton
 Software Engineer
 Sun Certified Java 1.1 Programmer
 Appriss, Inc.
 ICQ# 26487421
 AIM NorrisEShelton
 YIM norrisshelton
 
 
 
   
 __ 
 Do you Yahoo!? 
 Meet the all-new My Yahoo! - Try it today! 
 http://my.yahoo.com 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Jasper 2 problem with core taglibs in 5.5.7?

2005-02-16 Thread David Kennedy
Remy Maucherat wrote:
On Wed, 16 Feb 2005 16:40:25 +, David Kennedy
[EMAIL PROTECTED] wrote:
I have a Ant build which includes pre-compilation of JSPs. This has been
working happily during prototyping with Tomcat 5.5.4, but has broken now
that we have moved to Tomcat 5.5.7
[snip]
http://issues.apache.org/bugzilla/show_bug.cgi?id=33373
Many thanks for the prompt response, but I'm a little unclear on the 
resolution. The bug is marked as resolved, but was reported in 5.5.7 so 
I guess there's no stable build available which can support pre-compiled 
JSPs which use any core tags?  Is this correct, and if so, is there an 
approximate timescale for 5.5.8 or should I request that our project 
roll back to an older version?

(I suspect this is a stupid/annoying question, but changing versions is 
difficult for logistical reasons, and I couldn't find an upcoming 
release timeline on the main Tomcat website.)

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


Setting default tomcat logger 5.0.28

2005-02-16 Thread Ian Wootten
I'm having a right job trying to configure the default logger within
tomcat. I want to use log4j and set it at a DEBUG level.
I've added all the commons-logging.jar and log4j.jar packages to the
classpath, but every time I declare the properties file I wish to use
prior to these, it doesn't seem as if the log4j.properties file I want
to be read is. The output remains the same.
I've also tried to remedy this using the same method within the
tomcatw.exe app, as I read that tomcat doesn't read the default
CLASSPATH environment variables used by Windows XP and creates its own.
This still yields no joy. Also with this app I have tried specifying the
log4j.configuration=/file /property using the line
-Dlog4j.configuration=C:\src\logging\log4jservice\log4j.properties
under the java options. Still the file does not seem to be found.
Currently my properties file lies in a different directory
foo/bar/log4j.properties which I specify in the classpath, but as I say
it doesn't seem to be picked up. I've even placed it under
CATALINA_HOME/common/lib with the jar files in
CATALINA_HOME/common/classes, under the reference of the Tomcat 5.5
version, hoping this might work..it doesn't. (Incidentally, I can't use
Tomcat 5.5 due to restrictions on the software I'm going to generate).
Log4J works fine standalone, I've built a number of apps with it, just
not under tomcat it would seem.
Can anyone make any suggestions?
Thanks,
Ian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: dodgy session class

2005-02-16 Thread Filip Hanik - Dev Lists
Nice catch Vlad,
I'll look into it.
Filip
[EMAIL PROTECTED] wrote:
thanks for your reply Peter. 

unfortunately none of the applications has explicitly configured sessions 
manager.
I have managed to consistently reproduce the problem. The problem involves two 
webapps, app1 and app2. App1 is distributable. App2 contains a filter that 
forwards requests to app1. As it turns out all sessions created via filter are 
instances of StandardSession! This is with app1 being distributable and with 
cluster session manager. Making app2 distributable doesnt seem to have any 
effect on the sessions that are being created in app1 context.
I've attached a test case with two sample webapps, to run them you just have to make sure 
crossContext is enabled for app2 and context of app1 is actually called 
/app1. App1 does some nasty hack to display what Class is actually hiding 
behind session facade, so you would have to excuse me for that.
Another thing that i've noticed along the way: if a request goes to app1 via filter in app2 two 
sessions are created, one for each context. Filter in app2 does not create sessions explicitly (as 
you will see from the example) and session would not be created for app2 context if filter didnt 
forward requests to app1 context. The question is why session gets created implicitly 
in context of app2? It is not that I cannot live with it, just cant think of a logical 
explanation to this. Ideas anyone?
Regards,
Vlad
-Original Message-
From:   Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent:   Sat 2/12/2005 9:22 AM
To: Tomcat Users List
Cc: 
Subject:Re: dodgy session class
Hmm,
please check that all your applications with distributable=true have no 
configured Manager in there context.xml's

regards
Peter
Filip Hanik - Dev schrieb:
 

Any chance you have a test case to reproduce this?
Shouldn't happen, unless the way sessions are created have changed.
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 11:47 AM
Subject: dodgy session class
Hi,

I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3).

When tomcat A restarts it fails to sync session state with session
state not received or something to that effect and tomcat B logs this
message:

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
Unable to receive message through TCP channel
java.lang.ClassCastException
  at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR
eceived(SimpleTcpReplicationManager.java:530)
  at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD
ataReceived(SimpleTcpReplicationManager.java:596)
  at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim
pleTcpCluster.java:580)
  at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70
)
  at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep
licationThread.java:129)
  at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT
hread.java:67)

I changed SimpleTcpReplicationManager to output class names of the
sessions it is trying to cast to ReplicatedSession and got the following
picture:

11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO
org.apache.catalina.cluster.tcp.SimpleTcpCluster  - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21:
4001,192.168.56.21,4001, alive=3]
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO

Re: Jasper 2 problem with core taglibs in 5.5.7?

2005-02-16 Thread David Kennedy
David Kennedy wrote:
Remy Maucherat wrote:
On Wed, 16 Feb 2005 16:40:25 +, David Kennedy
[EMAIL PROTECTED] wrote:
I have a Ant build which includes pre-compilation of JSPs. This has been
working happily during prototyping with Tomcat 5.5.4, but has broken now
that we have moved to Tomcat 5.5.7
[snip]
http://issues.apache.org/bugzilla/show_bug.cgi?id=33373

Many thanks for the prompt response, but I'm a little unclear on the 
resolution. The bug is marked as resolved, but was reported in 5.5.7 so 
I guess there's no stable build available which can support pre-compiled 
JSPs which use any core tags?  Is this correct, and if so, is there an 
approximate timescale for 5.5.8 or should I request that our project 
roll back to an older version?
Bad form following up on my own mail, I know, but just realised my case 
doesn't really fit the bug report. In particular, the bug report states 
that if aaa.jsp does NOT reference an absolute URI taglib, then no JSP 
will compile, but my first JSP alphabetically (authenticate.jsp) DOES 
reference a URI ... and fails. Just a data point.

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


Re: dodgy session class

2005-02-16 Thread Filip Hanik - Dev Lists
Actually, I didn't get your attachments, could you open a bug in 
bugzilla and attach them there.

Filip
[EMAIL PROTECTED] wrote:
thanks for your reply Peter. 

unfortunately none of the applications has explicitly configured sessions 
manager.
I have managed to consistently reproduce the problem. The problem involves two 
webapps, app1 and app2. App1 is distributable. App2 contains a filter that 
forwards requests to app1. As it turns out all sessions created via filter are 
instances of StandardSession! This is with app1 being distributable and with 
cluster session manager. Making app2 distributable doesnt seem to have any 
effect on the sessions that are being created in app1 context.
I've attached a test case with two sample webapps, to run them you just have to make sure 
crossContext is enabled for app2 and context of app1 is actually called 
/app1. App1 does some nasty hack to display what Class is actually hiding 
behind session facade, so you would have to excuse me for that.
Another thing that i've noticed along the way: if a request goes to app1 via filter in app2 two 
sessions are created, one for each context. Filter in app2 does not create sessions explicitly (as 
you will see from the example) and session would not be created for app2 context if filter didnt 
forward requests to app1 context. The question is why session gets created implicitly 
in context of app2? It is not that I cannot live with it, just cant think of a logical 
explanation to this. Ideas anyone?
Regards,
Vlad
-Original Message-
From:   Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent:   Sat 2/12/2005 9:22 AM
To: Tomcat Users List
Cc: 
Subject:Re: dodgy session class
Hmm,
please check that all your applications with distributable=true have no 
configured Manager in there context.xml's

regards
Peter
Filip Hanik - Dev schrieb:
 

Any chance you have a test case to reproduce this?
Shouldn't happen, unless the way sessions are created have changed.
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 11:47 AM
Subject: dodgy session class
Hi,

I'm running tomcat 5.0.30 on two machines A and B (Linux RHAS3).

When tomcat A restarts it fails to sync session state with session
state not received or something to that effect and tomcat B logs this
message:

11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] ERROR
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
Unable to receive message through TCP channel
java.lang.ClassCastException
  at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageR
eceived(SimpleTcpReplicationManager.java:530)
  at
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageD
ataReceived(SimpleTcpReplicationManager.java:596)
  at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(Sim
pleTcpCluster.java:580)
  at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70
)
  at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep
licationThread.java:129)
  at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT
hread.java:67)

I changed SimpleTcpReplicationManager to output class names of the
sessions it is trying to cast to ReplicatedSession and got the following
picture:

11 Feb 2005 17:21:44 [Cluster-MembershipReceiver] INFO
org.apache.catalina.cluster.tcp.SimpleTcpCluster  - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.56.21:
4001,192.168.56.21,4001, alive=3]
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49
[org.apache.catalina.cluster.tcp.TcpReplicationThread[4]] INFO
org.apache.catalina.cluster.session.SimpleTcpReplicationManager  -
SessionClass=org.apache.catalina.cluster.session.ReplicatedSession
11 Feb 2005 17:21:49

log4j best practices

2005-02-16 Thread Brian McGovern
Hi everyone
Im looking for some tips on implementing a logging system in tomcat.  Ive got 
log4j installed and am about to write code but im just looking for some tips 
before i get started.  My idea is to write a central logger class for my app 
that imports the log4j package and supplys static methods to my app but I don't 
know if thats a bad idea? 

thanks
-B


Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread Curtis Nelson
I'm not sure I understand - are you saying to rename ldsecure.xml - 
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 

Re: tomcat-user Digest 15 Feb 2005 20:05:19 -0000 Issue 5406

2005-02-16 Thread Mark Thomas
You have specified an https connector in server.xml hence you will 
always be prompted to accept the server certificate. Most browsers offer 
the option to add the certificate to the list of trusted certificates.
Unless the certificate is invalid, this usually stops further prompts to 
accept the certificate.

Mark
Xeth Waxman wrote:
Mark:
Here is my server.xml file.  I do have one application that I need the
secure connection for, so I can't comment out the AJP running on 8009.
?xml version='1.0' encoding='utf-8'?
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
Resource name=jdbc/bestDB type=javax.sql.DataSource/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/bestDB
  parameter
namevalidationQuery/name
valueselect * from invoiceitem/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value50/value
  /parameter
  parameter
namepassword/name
valueboard97/value
  /parameter
  parameter
nameurl/name
valuejdbc:jtds:sqlserver://192.168.12.9/best_app/value
  /parameter
  parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbcx.TdsDataSource/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valueadmin/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8081
/Connector
Connector port=8009  protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8081
/Connector
	Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true 
   clientAuth=false sslProtocol=TLS
keystoreFile=C:\Certs\.keystore /Connector
Engine defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
DefaultContext
className=org.apache.catalina.core.StandardDefaultContext
reloadable=true
/DefaultContext
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
/Server

I'm almost positive the issue is with my server.xml file, I just don't
know what it is.  Your help and time is definitely valued!
--Xeth
-- Forwarded message --
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Date: Tue, 15 Feb 2005 19:38:40 +
Subject: Re: Security Constraint
Could be a server.xml problem. Can you post the connector parts of your
server.xml?
Mark
Xeth Waxman wrote:
I have a new servlet which I've created - whenever you try to access
this servlet, I get the security certificate dialog box (do you want
to accept this certificate).  However, this application has no
security constraint in its web.xml file - I don't know why it's trying
to serve up a certificate.  In addition, you have to click 'yes' on
the security dialog three times, as if it's trying to serve the
certificate three times in a row.  And, in the end, it doesn't take
the user to a secur connection - it just takes them to the http:
connection I wanted to get to in the first place.  I'm using Tomcat
5.5 - here's a copy of my very simple web.xml - if anyone has any
ideas, I'd appreciate it.  I don't want to make this a secure site and
take on the added overhead just because I can't stop the stupid
certificate from popping up.
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 servlet
   servlet-nameACHLogin/servlet-name
   servlet-classcom.gcc.achpayments.ACHLogin/servlet-class
 /servlet
 servlet
   servlet-nameAddACHPayment/servlet-name
   servlet-classcom.gcc.achpayments.AddACHPayment/servlet-class
 

Re: Redirect with slash appended

2005-02-16 Thread Mark Thomas
This is by design. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 for an explanation.

Mark
Felix Röthenbacher wrote:
Hi
I have the problem that every time I access a servlet with a
URL that is equal to a servlet's directory, Tomcat
redirects me to an URL with a slash appended. E.g. I want
to access /resources, and Tomcat redirects me to /resources/,
which my servlet does not match. It expects to match to /resources.
Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
Maybe it has something to do with the default servlet?
Thanks
Felix
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE : RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
Yes! Because the name of the file is tomcat specific (it isn't a standard)!

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 16 février 2005 19:30
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

I'm not sure I understand - are you saying to rename ldsecure.xml -
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
 

Deploying with Tomcat 5.5

2005-02-16 Thread boliver
Is there not a way to deploy a WAR file in Tomcat 5.5 to a new virtual 
host without having to use the Admin web module to add the new host 
element and or manually modifying the server.xml file.  I can seem to find 
any documentation on this.

I know in JBoss you can include an XML file that has the host information 
in it so it deploys properly.

Thanks.

Bryan

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



Re: tomcat5.0 configuration

2005-02-16 Thread Mark Thomas
Looks like you are using the wrong url to access your servlet. Try 
http://host:port/context/InitParamServlet

Mark
Raasi Potluri wrote:
Hi, I have written a simple servlet and trying to
access an init param from the web.xml but the servlet
is giving me a runtime error, please help, I'm stuck
here, my runtime error says..
[code]
HTTP Status 404 - Servlet invoker is not available

type Status report
message Servlet invoker is not available
description The requested resource (Servlet invoker is
not available) is not available.

Apache Tomcat/5.0.28
[/code]
my code and web.xml fiels look like this..
InitParamServlet.java
[code]
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class InitParamServlet extends HttpServlet {
private String name;
	
	public void init() throws ServletException {
	
	name = (String)
getServletContext().getAttribute(name);
	
	if (name == null) 
	{
	
		name = no name initialized;


throw new UnavailableException(Couldn't get
database.);


}

}
public void doGet(HttpServletRequest req,
HttpServletResponse res) throws IOException,
ServletException {

PrintWriter out = res.getWriter();
res.setContentType(text/html);
out.println(html);
	out.println(head meta
http-equiv=\Content-Language\ content=\en-gb\
meta http-equiv=\Content-Type\ 

content=\text/html; charset=windows-1252\);
out.println(titleHello/title);
out.println(/head);
out.println(body);
out.println(p align=\center\nbsp;/p);
out.println(p align=\center\nbsp;/p);
out.println(p align=\center\bfont
size=\6\Hello, My Name is   + name +  This is a
sample webpage, );
out.println(/body);
out.println(/html);
}
}
[/code]
web.xml is
[code]
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description
!-- JSPC servlet mappings start --
servlet
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
   
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet


servlet
servlet-nameInitParamServlet/servlet-name
servlet-classInitParamServlet/servlet-class
init-param
param-namename/param-name
param-valueClint Fivefield!/param-value
/init-param
/servlet
servlet-mapping
servlet-nameInitParamServlet/servlet-name
url-pattern/InitParamServlet/url-pattern
/servlet-mapping

servlet-mapping
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --
/web-app
[/code]
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


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


Re: RE : RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread Curtis Nelson
This doesn't work (at least in Tomcat 5.5).  When I rename the file and place 
it in $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml, then start 
Tomcat, Tomcat looks for an application named 'context.xml' and fails.  Do I 
need to copy the file somewhere else?

Thanks


 [EMAIL PROTECTED] 02/16/05 11:39AM 
Yes! Because the name of the file is tomcat specific (it isn't a standard)!

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 16 février 2005 19:30
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

I'm not sure I understand - are you saying to rename ldsecure.xml -
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 

Re: percent 0008 exploit

2005-02-16 Thread Mark Thomas
I can't reproduce it either. I am using the latest 4.1.x from CVS but I 
am 100% certain there have been no changes that would relate to this 
since 4.1.30.

On a related topic, security bugs should be reported privately by email 
to [EMAIL PROTECTED]

If this had been a real issue it would have been nice to be able to get 
the patch out there before it was announced on a public list ;)

Mark
Mike Curwen wrote:
hmm.. that would be _this_ old chestnut... (a little eager on the send,
sorry.)
http://shh.thathost.com/secadv/2001-03-29-tomcat.txt
This particular exploit was fixed a long time ago (wasn't it?)
Mike Curwen

-Original Message-
From: Norris Shelton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 16, 2005 9:27 AM
To: Tomcat
Subject: percent 0008 exploit

A co-worker that supports a federal sight just got an e-mail 
from their admins indicating that his site is exposing jsp 
source code  when they appent %0008 to the end of their URLs. 
The view source shows his exact pages.

He is using Tomcat 4.1.30 and JDK 1.4.2_05
I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is 
this a JRE vulnerability?

=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: log4j best practices

2005-02-16 Thread luke
I just implemented this over the weekend.

Still not totally sure what I am doing, but I do have all my classes
outputting to a log file I have specified.  I went with a simple approach
creating a reference to a Logger object in each class (I have an external
properties file supplying all the config options). My problem is
everything ends up in one giant file and it is hard to interpret.

I am now thinking about having each class create and configure a logger
object and write to its own file. One log per class.

The good thing is it is log4j is easy to set up and start logging with.

Here is the tutorial I got started with:

http://www.developer.com/open/article.php/10930_3097221_1

HTH

Luke


 Hi everyone
 Im looking for some tips on implementing a logging system in tomcat.  Ive
 got log4j installed and am about to write code but im just looking for
 some tips before i get started.  My idea is to write a central logger
 class for my app that imports the log4j package and supplys static methods
 to my app but I don't know if thats a bad idea?

 thanks
 -B




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



RE: Redirect with slash appended

2005-02-16 Thread Stephen Kestle
Hmm. Read that.  It the bug does not actually answer Oliver's questions - 
specifically, if it's for the default servlet, why does it always get applied - 
and why is it not easily changed (with a /* filter)?

It also doesn't help that Remy is needlessly rude and assumptive.

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 17 February 2005 7:38 a.m.
 To: Tomcat Users List
 Subject: Re: Redirect with slash appended
 
 This is by design. See
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 for an
 explanation.
 
 Mark
 
 Felix Röthenbacher wrote:
  Hi
 
  I have the problem that every time I access a servlet with a
  URL that is equal to a servlet's directory, Tomcat
  redirects me to an URL with a slash appended. E.g. I want
  to access /resources, and Tomcat redirects me to /resources/,
  which my servlet does not match. It expects to match to /resources.
  Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
  Maybe it has something to do with the default servlet?
 
  Thanks
 
  Felix
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Deploying with Tomcat 5.5

2005-02-16 Thread Mark Thomas
There is not a way to deploy a WAR file to a new virtual host without 
creating the host first.

Mark
[EMAIL PROTECTED] wrote:
Is there not a way to deploy a WAR file in Tomcat 5.5 to a new virtual 
host without having to use the Admin web module to add the new host 
element and or manually modifying the server.xml file.  I can seem to find 
any documentation on this.

I know in JBoss you can include an XML file that has the host information 
in it so it deploys properly.

Thanks.
Bryan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Deploying with Tomcat 5.5

2005-02-16 Thread boliver
So what is the best process to follow.  I create the host in the Admin 
tool, then how do I deploy a WAR file to the root ( / ) context for that 
host? 

Bryan



Mark Thomas [EMAIL PROTECTED] 
02/16/2005 01:53 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Deploying with Tomcat 5.5






There is not a way to deploy a WAR file to a new virtual host without 
creating the host first.

Mark

[EMAIL PROTECTED] wrote:
 Is there not a way to deploy a WAR file in Tomcat 5.5 to a new virtual 
 host without having to use the Admin web module to add the new host 
 element and or manually modifying the server.xml file.  I can seem to 
find 
 any documentation on this.
 
 I know in JBoss you can include an XML file that has the host 
information 
 in it so it deploys properly.
 
 Thanks.
 
 Bryan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




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



Re: Deploying with Tomcat 5.5

2005-02-16 Thread Remy Maucherat
On Wed, 16 Feb 2005 13:40:12 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Is there not a way to deploy a WAR file in Tomcat 5.5 to a new virtual
 host without having to use the Admin web module to add the new host
 element and or manually modifying the server.xml file.  I can seem to find
 any documentation on this.
 
 I know in JBoss you can include an XML file that has the host information
 in it so it deploys properly.

I had plans to do a small host manager webapp similar to the regular
manager. This would be the cleanest solution.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: percent 0008 exploit

2005-02-16 Thread Norris Shelton
It is definately reproducable on his sytem, but he is on a
secured connection.

It does not happen on mine.  The only variable that we know of
is the JRE.


--- Mark Thomas [EMAIL PROTECTED] wrote:

 I can't reproduce it either. I am using the latest 4.1.x from
 CVS but I 
 am 100% certain there have been no changes that would relate
 to this 
 since 4.1.30.
 
 On a related topic, security bugs should be reported privately
 by email 
 to [EMAIL PROTECTED]
 
 If this had been a real issue it would have been nice to be
 able to get 
 the patch out there before it was announced on a public list
 ;)
 
 Mark
 
 Mike Curwen wrote:
  hmm.. that would be _this_ old chestnut... (a little eager
 on the send,
  sorry.)
  
  http://shh.thathost.com/secadv/2001-03-29-tomcat.txt
  
  This particular exploit was fixed a long time ago (wasn't
 it?)
  
  
  Mike Curwen
  
  
 -Original Message-
 From: Norris Shelton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 16, 2005 9:27 AM
 To: Tomcat
 Subject: percent 0008 exploit
 
 
 A co-worker that supports a federal sight just got an e-mail
 
 from their admins indicating that his site is exposing jsp 
 source code  when they appent %0008 to the end of their
 URLs. 
 The view source shows his exact pages.
 
 He is using Tomcat 4.1.30 and JDK 1.4.2_05
 
 I tired it on my servers (TC 4.1.30 and JDK 1.4.2_06).  Is 
 this a JRE vulnerability?
 
 =
 
 Norris Shelton
 Software Engineer
 Sun Certified Java 1.1 Programmer
 Appriss, Inc.
 ICQ# 26487421
 AIM NorrisEShelton
 YIM norrisshelton
 

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


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: log4j best practices

2005-02-16 Thread Brian McGovern
Thats the same approach im using. I have a commons-logging.properties and a 
log4j.properties file in my WEB-INF\classes directory.  But I only get the same 
loggin as before in stdout.log  Im using Win2k as OS.  Where do my defined log 
files go?  Im confused.  Everything compiles.

I have this line in my classes:

private static final Logger zLogger = Logger.getLogger(MYCLASSNAME.CLASS);

Logging like this:

zLogger.debug(New Session Was Created);


commons-logging.properties file has 1 line.

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

log4j.properties file is here:

log4j.rootLogger=DEBUG, stdout, nycbbuilder_log
log4j.appender.stdout=org.apache.log4j.RollingFileAppender
log4j.appender.stdout.File=catalina.out
log4j.appender.stdout.MaxFileSize=100KB
log4j.appender.stdout.MaxBackupIndex=2
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.nycbbuilder_log=org.apache.log4j.RollingFileAppender
log4j.appender.nycbbuilder_log.File=nycbbuilder.log
log4j.appender.nycbbuilder_log.MaxFileSize=100KB
log4j.appender.nycbbuilder_log.MaxBackupIndex=2
log4j.appender.nycbbuilder_log.layout=org.apache.log4j.PatternLayout
log4j.appender.nycbbuilder_log.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - 
%m%n



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 1:52 PM
To: Tomcat Users List
Subject: Re: log4j best practices


I just implemented this over the weekend.

Still not totally sure what I am doing, but I do have all my classes
outputting to a log file I have specified.  I went with a simple approach
creating a reference to a Logger object in each class (I have an external
properties file supplying all the config options). My problem is
everything ends up in one giant file and it is hard to interpret.

I am now thinking about having each class create and configure a logger
object and write to its own file. One log per class.

The good thing is it is log4j is easy to set up and start logging with.

Here is the tutorial I got started with:

http://www.developer.com/open/article.php/10930_3097221_1

HTH

Luke


 Hi everyone
 Im looking for some tips on implementing a logging system in tomcat.  Ive
 got log4j installed and am about to write code but im just looking for
 some tips before i get started.  My idea is to write a central logger
 class for my app that imports the log4j package and supplys static methods
 to my app but I don't know if thats a bad idea?

 thanks
 -B




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


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



Eclipse/Tomcat Issue/ Help

2005-02-16 Thread Abhay
Hi All,
I am a newbie to eclipse and tomcat. I have created a tomcat
project using some plug-in. Now when I am trying to open eclipse , I
am getting error message : unable to create part. Also the next error
dialog says to see error log for details. Where is the error file
located? Help will be highly appreciated.

Thanks

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



RE: log4j best practices

2005-02-16 Thread luke
Hi Brian;

I am not experienced enough with this package to really help.

I can say that don't have a commons-logging.properties file in my classes
directory, only my log4j.properties. Maybe try running your application
again without this file?

You may be able to get more ideas from this list:

http://java2.5341.com/

Luke

 Thats the same approach im using. I have a commons-logging.properties and
 a log4j.properties file in my WEB-INF\classes directory.  But I only get
 the same loggin as before in stdout.log  Im using Win2k as OS.  Where do
 my defined log files go?  Im confused.  Everything compiles.

 I have this line in my classes:
 
 private static final Logger zLogger =
 Logger.getLogger(MYCLASSNAME.CLASS);

 Logging like this:
 
 zLogger.debug(New Session Was Created);


 commons-logging.properties file has 1 line.
 
 org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

 log4j.properties file is here:
 
 log4j.rootLogger=DEBUG, stdout, nycbbuilder_log
 log4j.appender.stdout=org.apache.log4j.RollingFileAppender
 log4j.appender.stdout.File=catalina.out
 log4j.appender.stdout.MaxFileSize=100KB
 log4j.appender.stdout.MaxBackupIndex=2
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

 log4j.appender.nycbbuilder_log=org.apache.log4j.RollingFileAppender
 log4j.appender.nycbbuilder_log.File=nycbbuilder.log
 log4j.appender.nycbbuilder_log.MaxFileSize=100KB
 log4j.appender.nycbbuilder_log.MaxBackupIndex=2
 log4j.appender.nycbbuilder_log.layout=org.apache.log4j.PatternLayout
 log4j.appender.nycbbuilder_log.layout.ConversionPattern=%d{ABSOLUTE} - %p
 %c - %m%n



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 16, 2005 1:52 PM
 To: Tomcat Users List
 Subject: Re: log4j best practices


 I just implemented this over the weekend.

 Still not totally sure what I am doing, but I do have all my classes
 outputting to a log file I have specified.  I went with a simple approach
 creating a reference to a Logger object in each class (I have an external
 properties file supplying all the config options). My problem is
 everything ends up in one giant file and it is hard to interpret.

 I am now thinking about having each class create and configure a logger
 object and write to its own file. One log per class.

 The good thing is it is log4j is easy to set up and start logging with.

 Here is the tutorial I got started with:

 http://www.developer.com/open/article.php/10930_3097221_1

 HTH

 Luke


 Hi everyone
 Im looking for some tips on implementing a logging system in tomcat.
 Ive
 got log4j installed and am about to write code but im just looking for
 some tips before i get started.  My idea is to write a central logger
 class for my app that imports the log4j package and supplys static
 methods
 to my app but I don't know if thats a bad idea?

 thanks
 -B




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


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





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



Re: Deploying with Tomcat 5.5

2005-02-16 Thread boliver
How do you add a root context / to a host using the Admin util?  If I 
leave the Path value blank or put a / I get an error when I try and 
create the context.

I am a bit confused here.

Bryan



Remy Maucherat [EMAIL PROTECTED] 
02/16/2005 02:02 PM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: Deploying with Tomcat 5.5






On Wed, 16 Feb 2005 13:40:12 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Is there not a way to deploy a WAR file in Tomcat 5.5 to a new virtual
 host without having to use the Admin web module to add the new host
 element and or manually modifying the server.xml file.  I can seem to 
find
 any documentation on this.
 
 I know in JBoss you can include an XML file that has the host 
information
 in it so it deploys properly.

I had plans to do a small host manager webapp similar to the regular
manager. This would be the cleanest solution.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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




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



unable to install Tomcat on Win2000 using installer (exe)

2005-02-16 Thread Dennis Pierson
The Tomcat 5.0 install exe hangs forever on the 'using jvm' step. The 
service is set up in the registry, but doesn't work.  The menus don't 
install either. I can install from .zip, but I need the service. This 
happens with both JSDK 1.4.2 and 1.5.0

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


Re: unable to install Tomcat on Win2000 using installer (exe)

2005-02-16 Thread John Najarian
Sounds like you have an incorrect setting in the ENV variables maybe, which 
file type are opened by which application perhaps.

I just did this, installed tomcat on W2K server as a service a little while ago 
problem free.

-Original Message-
From: Dennis Pierson [EMAIL PROTECTED]
Sent: Feb 16, 2005 3:12 PM
To: tomcat-user@jakarta.apache.org
Subject: unable to install Tomcat on Win2000 using installer (exe)

The Tomcat 5.0 install exe hangs forever on the 'using jvm' step. The 
service is set up in the registry, but doesn't work.  The menus don't 
install either. I can install from .zip, but I need the service. This 
happens with both JSDK 1.4.2 and 1.5.0

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



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



Re: unable to install Tomcat on Win2000 using installer (exe)

2005-02-16 Thread Jason Bainbridge
On Wed, 16 Feb 2005 15:12:09 -0500, Dennis Pierson [EMAIL PROTECTED] wrote:
 The Tomcat 5.0 install exe hangs forever on the 'using jvm' step. The
 service is set up in the registry, but doesn't work.  The menus don't
 install either. I can install from .zip, but I need the service. This
 happens with both JSDK 1.4.2 and 1.5.0

Personally I never use the installer as I like to control what happens
on installation so I use the Zip file and then use the service.bat
file in the bin directory to install the Windows Service for me.

I'm not sure what your problem is but it sounds like service.bat will
accomplish what you need as a workaround.

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

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



Getting error when starting tomcat from eclipse

2005-02-16 Thread Abhay
Hi,
   I am getting error dialog unable to create part when I am trying
to start tomcat from eclipse. Pls help

Thanks

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



RE: log4j best practices

2005-02-16 Thread Jacob Kjome
Since you define your log files relatively, they will end up relative to the
directory where the JVM was started from.  I you use Tomcat scripts, then it
will be in CATALINA_HOME/bin.  If you use the Tomcat service, then the files
will end up in c:\winnt\System32 (unless you changed the base directory from
which the service starts the JVM.

I suggest you use...

log4j.appender.stdout.File=${catalina.home}/logs/catalina.out


Tomcat creates the catalina.home system property at startup.  You can use it
to reference Tomcat's home directory and then put the file anywhere you want
relative to that.


Jake

Quoting Brian McGovern [EMAIL PROTECTED]:

 Thats the same approach im using. I have a commons-logging.properties and a
 log4j.properties file in my WEB-INF\classes directory.  But I only get the
 same loggin as before in stdout.log  Im using Win2k as OS.  Where do my
 defined log files go?  Im confused.  Everything compiles.

 I have this line in my classes:
 
 private static final Logger zLogger = Logger.getLogger(MYCLASSNAME.CLASS);

 Logging like this:
 
 zLogger.debug(New Session Was Created);


 commons-logging.properties file has 1 line.
 
 org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

 log4j.properties file is here:
 
 log4j.rootLogger=DEBUG, stdout, nycbbuilder_log
 log4j.appender.stdout=org.apache.log4j.RollingFileAppender
 log4j.appender.stdout.File=catalina.out
 log4j.appender.stdout.MaxFileSize=100KB
 log4j.appender.stdout.MaxBackupIndex=2
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

 log4j.appender.nycbbuilder_log=org.apache.log4j.RollingFileAppender
 log4j.appender.nycbbuilder_log.File=nycbbuilder.log
 log4j.appender.nycbbuilder_log.MaxFileSize=100KB
 log4j.appender.nycbbuilder_log.MaxBackupIndex=2
 log4j.appender.nycbbuilder_log.layout=org.apache.log4j.PatternLayout
 log4j.appender.nycbbuilder_log.layout.ConversionPattern=%d{ABSOLUTE} - %p %c
 - %m%n



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 16, 2005 1:52 PM
 To: Tomcat Users List
 Subject: Re: log4j best practices


 I just implemented this over the weekend.

 Still not totally sure what I am doing, but I do have all my classes
 outputting to a log file I have specified.  I went with a simple approach
 creating a reference to a Logger object in each class (I have an external
 properties file supplying all the config options). My problem is
 everything ends up in one giant file and it is hard to interpret.

 I am now thinking about having each class create and configure a logger
 object and write to its own file. One log per class.

 The good thing is it is log4j is easy to set up and start logging with.

 Here is the tutorial I got started with:

 http://www.developer.com/open/article.php/10930_3097221_1

 HTH

 Luke


  Hi everyone
  Im looking for some tips on implementing a logging system in tomcat.  Ive
  got log4j installed and am about to write code but im just looking for
  some tips before i get started.  My idea is to write a central logger
  class for my app that imports the log4j package and supplys static methods
  to my app but I don't know if thats a bad idea?
 
  thanks
  -B
 



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


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





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



SAXParseException - Apache 2.0 +JK2 w/ tomcat

2005-02-16 Thread blaine

We sometimes have issues where individual XML POSTs fail when using
jk2 w/ Apache 2.0 and Tomcat 5.0.16.  We have re-run the posts using just
tomcat on port 80, and the post are then successful.  We think the problem is 
within the AJP13 conversation at this time...

The error we receive when there is a failure is as follows (first 2 lines
are slightly edited due to AJP being binary in nature...):

Internal Server Error
Content-Type text/xml;charset=utf-8

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmln
s:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSc
hema-instance
 soapenv:Body
  soapenv:Fault
   faultcodesoapenv:Server.userException/faultcode
   faultstringorg.xml.sax.SAXParseException: The element type quot;soap:Envel
opequot; must be terminated by the matching end-tag quot;lt;/soap:Envelopegt
;quot;./faultstring
   detail/
  /soapenv:Fault
 /soapenv:Body
/soapenv:Envelope

When doing an AJP13 network trace on the post, the only interesting thing that I
notice is that the trailing /soap:Envelope is split up by a GET BODY CHUNK
request from the server.  So it looks like this:

GET BODY CHUNK (Server)
Send Data/soap:Envelop
GET BODY CHUNK (Server)
Send e
ERROR (server) (see above)

Since the actual XML content isn't part of the protocol, I assume that this
shouldn't be a problem.  It's the only guess I can come up with regarding
why a small number of posts fail when using JK2.

Any thoughts are appreciated... perhaps I should move away from JK2?  Is it
(or the tomcat AJP connector) known to have problems such as this?

thnx

-Blaine



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



RE: log4j best practices

2005-02-16 Thread Brian McGovern
Oh man. they were in winnt system32 the whole time.  UGH. You were right.  
Thanks Jake!

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 4:28 PM
To: Tomcat Users List
Subject: RE: log4j best practices


Since you define your log files relatively, they will end up relative to the
directory where the JVM was started from.  I you use Tomcat scripts, then it
will be in CATALINA_HOME/bin.  If you use the Tomcat service, then the files
will end up in c:\winnt\System32 (unless you changed the base directory from
which the service starts the JVM.

I suggest you use...

log4j.appender.stdout.File=${catalina.home}/logs/catalina.out


Tomcat creates the catalina.home system property at startup.  You can use it
to reference Tomcat's home directory and then put the file anywhere you want
relative to that.


Jake

Quoting Brian McGovern [EMAIL PROTECTED]:

 Thats the same approach im using. I have a commons-logging.properties and a
 log4j.properties file in my WEB-INF\classes directory.  But I only get the
 same loggin as before in stdout.log  Im using Win2k as OS.  Where do my
 defined log files go?  Im confused.  Everything compiles.

 I have this line in my classes:
 
 private static final Logger zLogger = Logger.getLogger(MYCLASSNAME.CLASS);

 Logging like this:
 
 zLogger.debug(New Session Was Created);


 commons-logging.properties file has 1 line.
 
 org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

 log4j.properties file is here:
 
 log4j.rootLogger=DEBUG, stdout, nycbbuilder_log
 log4j.appender.stdout=org.apache.log4j.RollingFileAppender
 log4j.appender.stdout.File=catalina.out
 log4j.appender.stdout.MaxFileSize=100KB
 log4j.appender.stdout.MaxBackupIndex=2
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

 log4j.appender.nycbbuilder_log=org.apache.log4j.RollingFileAppender
 log4j.appender.nycbbuilder_log.File=nycbbuilder.log
 log4j.appender.nycbbuilder_log.MaxFileSize=100KB
 log4j.appender.nycbbuilder_log.MaxBackupIndex=2
 log4j.appender.nycbbuilder_log.layout=org.apache.log4j.PatternLayout
 log4j.appender.nycbbuilder_log.layout.ConversionPattern=%d{ABSOLUTE} - %p %c
 - %m%n



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 16, 2005 1:52 PM
 To: Tomcat Users List
 Subject: Re: log4j best practices


 I just implemented this over the weekend.

 Still not totally sure what I am doing, but I do have all my classes
 outputting to a log file I have specified.  I went with a simple approach
 creating a reference to a Logger object in each class (I have an external
 properties file supplying all the config options). My problem is
 everything ends up in one giant file and it is hard to interpret.

 I am now thinking about having each class create and configure a logger
 object and write to its own file. One log per class.

 The good thing is it is log4j is easy to set up and start logging with.

 Here is the tutorial I got started with:

 http://www.developer.com/open/article.php/10930_3097221_1

 HTH

 Luke


  Hi everyone
  Im looking for some tips on implementing a logging system in tomcat.  Ive
  got log4j installed and am about to write code but im just looking for
  some tips before i get started.  My idea is to write a central logger
  class for my app that imports the log4j package and supplys static methods
  to my app but I don't know if thats a bad idea?
 
  thanks
  -B
 



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


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





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


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



SSL config

2005-02-16 Thread Warron French
Somehow I have an Apache-2.0.40 server running in conjunction with Jboss-3.2.5.
 
I don't know anything about JBoss really, but it appears that JBoss is doing 
the securing of the socket layer (SSL stuff) for this website.
 
There is not reference to 443 or SSLCertificate or the like in my httpd.conf 
file anywhere, but the site is secured.  I do a netstat -anp find that 
0.0.0.0:443 is being used with a pid value of 7399/java.
 
That pid value comes from the /usr/local/j2sdk1.4.1_04/bin/java (with lots of 
arguments) in the response to my ps -ef | grep 7399.
 
Can someone tell me where I would find the certificate for this website since 
it is apparently not in an apache directory?  I need to renew it soon, and I am 
also not an SSL expert.
 
If I can FIND the certificate I can take care of it from there because the 
documentation seems straightforward.
 
 
Thanks,
Warron French 
Sr. Network Engineer 



problem with securityfilter

2005-02-16 Thread Hari Saptoadi
Hi all, 
first i'd like to say sorry if someone already asked this question before, i'm 
develop web app with struts and tomcat as web server + 
securityfilter(securityfilter.sourceforge.net) , my problem is if someone 
already login , and  that user open new window browser securityfilter can't 
blocked this request (i mean user does not have to face login page again ) as 
far as i know this problem occure because  user have same session , and my 
question is how can i fix it ? (i want every user have to face login page 
before using app ) 

thank you for you answer 


dynamic server.xml

2005-02-16 Thread Oleg
I know question was asked many times and I have read a lot of posts
people asking how to add a virtual host without restarting tomcat and
the answer, not possible.

So I am wondering, is it because its time expencive that tomcat doesnt
check virtual hosts names real time, or atleast refreshes the list
stored in memory. I am sure this is an ignorant question because I
dont know the first thing about Tomcat architecture, just thought you
folks can shed some light on this for me.

Thank you.

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



Re: HTMLArea v. fckeditor

2005-02-16 Thread Oleg
Isnt HTMLArea IE only? I used FCKeditor for about a year, love it.
After much searching, I think it is the best.


On Fri, 11 Feb 2005 11:28:25 -0800, David Wall [EMAIL PROTECTED] wrote:
  See http://www.fckeditor.net/
 
 Aside from the odd name (we do have to give credit after all!), that does 
 look like a nice one.  Has anybody used it enough to know how stable it is?  
 I noted that it's on 2.0, which is good, but it's not considered final.  I 
 like that it appears to be a bit more active than HTMLArea.
 
 David


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



RE: Error in Windows Event Viewer

2005-02-16 Thread A jie
help!!
thanks


From: A jie [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: Error in Windows Event Viewer
Date: Fri, 11 Feb 2005 17:05:52 +0800
Hi to all!
I have an application on Tomcat5.5.4+IIS5  that fills my Windows Log 
(Event

Viewer) with these messages:
Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding 
ajp13:localhost:8009 1 0

Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply 
recoverable error 3

In the application log the source of event is Apache Jakarta Conn.
You know if there is a solution for this issues?
Thanks a lot.



--
MSN:[EMAIL PROTECTED]
QQ:29967409
-
_
 MSN Messenger:  
http://messenger.msn.com/cn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
 MSN Explorer:   http://explorer.msn.com/lccn/  

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


Re: [OT] Search in French database in English

2005-02-16 Thread Antony Paul
Thanks a lot for the help. BTW I use Struts for developing the application.

rgds
Antony Paul


On Wed, 16 Feb 2005 07:44:35 -0800 (PST), sven morales
[EMAIL PROTECTED] wrote:
 Hi,
 It compiled okay?  What was the error you got when
 running it?  Btw there is a cocoon mailing list too to
 get some help, here is the link:
 
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1b=200502w=4
 
 aka_sergio
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  I checked out CVS head compiled it and run it went
  to sample
  application Internationalization (i18n) 
  Localization (l10n) and it
  is giving error.
 
  rgds
  Antony Paul
 
 
  On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven
  morales
  [EMAIL PROTECTED] wrote:
 It is in English.  Did you try to visit the link
  I
   provided?
  
   aka_sergio
   --- Antony Paul [EMAIL PROTECTED] wrote:
  
Is that German application you are talking about
  ?.
I dont know
languages other than English.
   
rgds
Antony Paul
   
   
On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
morales
[EMAIL PROTECTED] wrote:
 Hi,
Please look at the very robust Cocoon
  project
under
 apache too.  See http://cocoon.apache.org
download
 the code via cvs, compile it and there is an
 Internationalization sample.  Am positive you
  will
 like cocoon.  Im not doing it justice with my
  very
 very simple explanation.  You have to try it
  and
see
 and it does run on Tomcat or resin, orion,
  oracle,
 jboss, etc.. :)

 aka_sergio
 --- Antony Paul [EMAIL PROTECTED]
  wrote:

  Hi all,
  Sorry for OT. Many here will have
  experience
in
  developing
  multilingual sites. I have a doubt regarding
  searching in a database
  which stores information in English, French
  and
  German. The user can
  type the search keyword(usually it is
  customer
name
  and address) in
  English and it has to match the word in all
these
  languages. Is it
  possible ?.
 
  Any thoughts on this are welcome.
 
  rgds
  Antony Paul
 
 

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


 __
 Do you Yahoo!?
 Yahoo! Mail - Find what you need with new
  enhanced
search.
 http://info.mail.yahoo.com/mail_250

   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
   __
   Do you Yahoo!?
   Read only the mail you want - Yahoo! Mail
  SpamGuard.
   http://promotions.yahoo.com/new_mail
  
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


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



RE: JAVA_OPTS , C:\Tomcat 5.5 ?

2005-02-16 Thread Shakeel Ahmad
Here is the detail.
I was successfully running Tomcat 4.X using JAVA_OPTS=-Xmx512m -Xms512m and
my web application was running with this JVM Heap settings correctly,
without any OutOfMemoryError. I recently installed Tomcat 5.5 and expected
the same JVM Heap settings but they never happen. Now I want to set my own
values of JVM Heap in Tomcat 5.5.
Or simply my question is that how we can set JVM Heap settings in Tomcat
5.5.

Thanks.

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED]
Sent: 16 February, 2005 9:54 PM
To: Tomcat Users List
Subject: Re: JAVA_OPTS , C:\Tomcat 5.5 ?


Give few more details, so that I can try your test case.

Thank you,
Edmon

Shakeel Ahmad wrote:

Hi,

JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.

Thanks in advance.



Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.



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





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




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



Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

2005-02-16 Thread varsha.agrawal

Hello,



I have already installed the apache(http-2.0.48) and tomcat 3.3.1a in my
Linux system. The jk connector is also installed. But now the problem is
that I don't know how to test whether my tomcat is running or not. When
I try to see giving the URL: http://IP http://ip/  Address:8080/ it
doesn't display any pages.

Could anyone give me a detailed procedure of how to test my tomcat is
running?



Regards,

Varsha.









Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

RE: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

2005-02-16 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.
 
 I have already installed the apache(http-2.0.48) and tomcat 
 3.3.1a in my Linux system.

Curiosity forces me to ask: Why are you using such an ancient level of Tomcat?  
You may have difficulty in finding anyone who can help you with a version that 
old.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

2005-02-16 Thread varsha.agrawal


My application demands installing old version of tomcat and apache.
Please do give me any idea of how to just test whether tomcat is running
or not. Any help would be appreciated!!!

- Varsha.
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 11:26 AM
To: Tomcat Users List
Subject: RE: Connecting http-2.0.48 with tomcat 3.3.1a using jk
connector.

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

 I have already installed the apache(http-2.0.48) and tomcat
 3.3.1a in my Linux system.

Curiosity forces me to ask: Why are you using such an ancient level of
Tomcat?  You may have difficulty in finding anyone who can help you with
a version that old.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



java.lang.IllegalStateException in tomcat 5.5.4

2005-02-16 Thread ssk 2001
 
 
How to solve this error , pls advice 

java.lang.IllegalStateException: getAttribute: Session already 
invalidated
at org.apache.catalina.session.StandardSession.getAttribute
(StandardSession.java:984)
at 
org.apache.catalina.session.StandardSessionFacade.getAttribute
(StandardSessionFacade.java:109)
at gnu.beanfactory.SessionScope.get(Unknown Source)
at gnu.beanfactory.BeanFactory.findInstance(Unknown Source)
at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
Source)
at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
Source)
at gnu.beanfactory.BeanContext.lookup(Unknown Source)
at gnu.beanfactory.BeanContext.lookup(Unknown Source)
at org.apache.jsp.include.nav_jsp.checkAccess
(org.apache.jsp.include.nav_jsp:62)
at org.apache.jsp.include.nav_jsp._jspService
(org.apache.jsp.include.nav_jsp:1601)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:295)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:526)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
 
thanks
SSK



-
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

RE: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

2005-02-16 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: RE: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.
 
 Please do give me any idea of how to just test whether tomcat 
 is running or not. Any help would be appreciated!!!

You should be able to use netstat or its equivalent to verify that the Tomcat 
process is listenting on the configured ports.  I have no idea where to look in 
a 3.3.1 configuration to find out what those ports might be.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: java.lang.IllegalStateException in tomcat 5.5.4

2005-02-16 Thread Drew Jorgenson
Check your source code and make sure your session is initialized
correctly.

Drew.

On Wed, 2005-02-16 at 22:13, ssk 2001 wrote:
   
 How to solve this error , pls advice 
 
 java.lang.IllegalStateException: getAttribute: Session already 
 invalidated
 at org.apache.catalina.session.StandardSession.getAttribute
 (StandardSession.java:984)
 at 
 org.apache.catalina.session.StandardSessionFacade.getAttribute
 (StandardSessionFacade.java:109)
 at gnu.beanfactory.SessionScope.get(Unknown Source)
 at gnu.beanfactory.BeanFactory.findInstance(Unknown Source)
 at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
 Source)
 at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
 Source)
 at gnu.beanfactory.BeanContext.lookup(Unknown Source)
 at gnu.beanfactory.BeanContext.lookup(Unknown Source)
 at org.apache.jsp.include.nav_jsp.checkAccess
 (org.apache.jsp.include.nav_jsp:62)
 at org.apache.jsp.include.nav_jsp._jspService
 (org.apache.jsp.include.nav_jsp:1601)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.jasper.servlet.JspServletWrapper.service
 (JspServletWrapper.java:325)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile
 (JspServlet.java:295)
 at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:237)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:157)
 at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:214)
 at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:105)
 at org.apache.catalina.valves.AccessLogValve.invoke
 (AccessLogValve.java:526)
 at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:148)
 at org.apache.jk.server.JkCoyoteHandler.invoke
 (JkCoyoteHandler.java:300)
 at 
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
 at 
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at org.apache.jk.common.ChannelSocket.processConnection
 (ChannelSocket.java:675)
 at 
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
  
 thanks
 SSK
 
 
   
 -
 Do you Yahoo!?
  Yahoo! Mail - Helps protect you from nasty viruses.


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



[OT] For those who love fur, please take a look

2005-02-16 Thread Koon Yue Lam
** Be prepared, rate R **
http://hk.geocities.com/blood1213/fur.html

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



Re: Connecting http-2.0.48 with tomcat 3.3.1a using jk connector.

2005-02-16 Thread Bill Barker
Well, since 3.3.1a doesn't ship with the CoyoteConnector, you need to have 
the AJP13Connector in server.xml (it's enabled by default).  I'm assuming 
that you aren't using the JNIConnector (although it's still supported in 
mod_jk 1.2.8 :).  You need the Http10Connector if you want Tomcat to 
answer on 8080.

Otherwise, you can follow Charles' suggestions, along with possibly 'ps'.

[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hello,



I have already installed the apache(http-2.0.48) and tomcat 3.3.1a in my
Linux system. The jk connector is also installed. But now the problem is
that I don't know how to test whether my tomcat is running or not. When
I try to see giving the URL: http://IP http://ip/  Address:8080/ it
doesn't display any pages.

Could anyone give me a detailed procedure of how to test my tomcat is
running?



Regards,

Varsha.









Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or 
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments. 




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