RE: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Heidt, Larry
Thanks again for everyone’s review – please see my responses below





“tried a different major version of Java?  Earlier than 11, vendor other than 
Amazon (Corretto)?”



Our customer has dictated Java 11, and there were problems using the 
combination of Oracle Java 11 and jakarta/jaxws





“Have you tried a major version of TC earlier than 10.0.23?  Are you using any 
"native" components?”



Have not tried earlier Tomcat, and how would we determine whether we are using 
any "native" components ?





“Could there be an overly restrictive Windows access rights issue ?”



We’ve tried configuring Windows Services to start Tomcat using the most 
privileged Windows account, with the same results





“Is this a VM/EC2 instance or a Docker image?”



Don’t know, is some kind of VM, perhaps the systeminfo output below would 
answer those questions





“path variable?”



Tomcat is only failing when started as a Windows Service, succeeding when 
started from the Windows command line – seems like the PATH value should be the 
same for both (but maybe not)



The ...\apache-tomcat-10.0.23\bin\service.bat script to install Tomcat as a 
Windows Service does not configure the PATH variable, and the Windows Services 
UI tabs do not show the PATH value



How can one determine the effective PATH value used by Window Service startup ?





Thank you again for your attention to this issue







systeminfo:



Host Name: NDC-LOG-WMS-D01

OS Name:   Microsoft Windows Server 2019 Standard

OS Version:10.0.17763 N/A Build 17763

OS Manufacturer:   Microsoft Corporation

OS Configuration:  Member Server

OS Build Type: Multiprocessor Free

Registered Owner:  Windows User

Registered Organization:

Product ID:00429-7-0-AA946

Original Install Date: 5/2/2019, 3:40:46 PM

System Boot Time:  9/21/2022, 10:37:34 PM

System Manufacturer:   VMware, Inc.

System Model:  VMware7,1

System Type:   x64-based PC

Processor(s):  1 Processor(s) Installed.

   [01]: Intel64 Family 6 Model 63 Stepping 2 
GenuineIntel ~1796 Mhz

BIOS Version:  VMware, Inc. VMW71.00V.13989454.B64.1906190538, 
6/19/2019

Windows Directory: C:\Windows

System Directory:  C:\Windows\system32

Boot Device:   \Device\HarddiskVolume2

System Locale: en-us;English (United States)

Input Locale:  en-us;English (United States)

Time Zone: (UTC-06:00) Central Time (US & Canada)

Total Physical Memory: 8,191 MB

Available Physical Memory: 4,315 MB

Virtual Memory: Max Size:  9,471 MB

Virtual Memory: Available: 5,686 MB

Virtual Memory: In Use:3,785 MB

Page File Location(s): C:\pagefile.sys

Domain:xxx.org

Logon Server:  \\NDC-ITM-WDC-P01

Hotfix(s): 13 Hotfix(s) Installed.

   [01]: KB5013641

   [02]: KB4470788

   [03]: KB4480056

   [04]: KB4493510

   [05]: KB4509095

   [06]: KB4535680

   [07]: KB5005112

   [08]: KB5012170

   [09]: KB5017315

   [10]: KB5012675

   [11]: KB5014031

   [12]: KB5014797

   [13]: KB5015896

Network Card(s):   1 NIC(s) Installed.

   [01]: vmxnet3 Ethernet Adapter

 Connection Name: Ethernet0 2

 DHCP Enabled:No

 IP address(es)

 [01]: 10.8.152.76

 [02]: fe80::654a:bb1c:688b:acd0

Hyper-V Requirements:  A hypervisor has been detected. Features required 
for Hyper-V will not be displayed.





-Original Message-
From: Thomas Hoffmann (Speed4Trade GmbH) 

Sent: Thursday, September 22, 2022 8:14 AM
To: Tomcat Users List 
Subject: AW: which missing file prevents tomcat 10 from starting as windows 
service ?



WARNING: This email originated outside of the company. DO NOT CLICK links or 
attachments or enter any information into forms unless you trust the sender and 
know the content is safe.











Short note from my side:

WinsxS is the cache for windows updates.

You should not copy from that location and also don't mess around with windows 
internal folders 



Von: Berneburg, Cris J. - US 
mailto:cberneb...@caci.com.INVALID>>

Gesendet: Donnerstag, 22. September 2022 14:38:35

An: Tomcat Users List

Betreff: RE: which missing file prevents tomcat 10 from starting as windows 
service ?



Hi Again Larry



So

which missing file prevents tomcat 10 from starting as windows service ?

2022-09-19 Thread Heidt, Larry
The "...\apache-tomcat-10.0.23\bin\service.bat install" command succeeds, 
however starting Tomcat from Windows Services fails, with the commons_daemon 
logging below indicating "The system cannot find the file specified."

Notes:


  1.  All files/folders referenced in the logging below exist, except the 
"endorsed" subfolder specified in the following:   
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'


  1.  Adding "--JavaHome "C:\Dematic\Programs\AmazonCorretto\jdk11" to the 
"service.bat install" command line does not eliminate the "'(null)'" below, and 
the service fails with the same error


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'"


  1.  Starting Tomcat10.exe in console mode fails with the same error and very 
similar logging, except mainly for the following:


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home 
'C:\Dematic\Programs\AmazonCorretto\jdk11'"


  1.  The exact Java version used is 11.0.16.8.1


Is there any way to determine exactly which file cannot be found ?

Are there one or more likely culprits for the file which cannot be found ?

Thank you in advance for any assistance.


commons_daemon.-mm-dd.log:

[2022-09-19 13:09:06] [debug] ( prunsrv.c:1994) [11004] Apache Commons Daemon 
procrun log initialized.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:2002) [11004] Apache Commons Daemon 
procrun (1.3.1.0 64-bit) started.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1906) [11004] Running Service 
'Tomcat10'...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1677) [10552] Inside serviceMain()...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1123) [10552] reportServiceStatusE: 
dwCurrentState = 2 (SERVICE_START_PENDING), dwWin32ExitCode = 0, dwWaitHint = 
3000 milliseconds, dwServiceSpecificExitCode = 0.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1422) [10552] Starting service...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:497 ) [10552] Checking Java options 
for environment variable requirements
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for ' -Dirista.log.dir=C:\Dematic\Foundation\Source\log 
-DSERVER_ID=Enterprise'
[2022-09-19 13:09:06] [debug] ( javajni.c:216 ) [10552] Explicit RuntimeLib 
specified 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:280 ) [10552] Adding Java bin path to 
the PATH to fix loading of awt.dll: 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin'
[2022-09-19 13:09:06] [debug] ( javajni.c:286 ) [10552] Loading JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:414 ) [10552] Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'.
[2022-09-19 13:09:06] [debug] ( javajni.c:419 ) [10552] JNI_GetCreatedJavaVMs...
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[3] 
-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[4] 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[5] 
-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[6]  
-Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[7] 
--add-opens=java.base/java.lang=ALL-UNNAMED
[2022-09-19 

RE: Is there a class or way in Tomcat to write org.apache.catalina.authenticator messages to a different logfile

2016-12-07 Thread Taylor, Larry

Hello,

Is there a class or way in Tomcat to write org.apache.catalina.authenticator 
messages to a different logfile?

I'm using Tomcat 8.0.9 - I have logging turned on for the realm authentication 
but i cannot get authentication messages to write to a different log prefix 
file other than catalalina.out.

Is there a way to do this and keep the normal server messages writing to 
catalina.out?
 In conf/logging.properties - this writes fine to catalina.out
 
# Handler specific properties.
  # Describes specific configuration info for Handlers .
  
   org.apache.catalina.realm.level = FINE
   org.apache.catalina.realm.useParentHandlers = true
   org.apache.catalina.authenticator.level = FINE
   org.apache.catalina.authenticator.useParentHandlers = true


I did not see any org.apache.catalina.authenticator.juli.AsyncFileHandler 
classes to do this -
 I need somthing like: 
 org.apache.catalina.authenticator.juli.AsyncFileHandler.prefix = 
authuser.


thanks for any information on how to configure this.


-Larry 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Realm/LDAP - userRoles and Organization Unit name for authenticated users

2016-12-05 Thread Taylor, Larry
Hi Felix

If isUserinRole  has information to make determination to different component 
accesses in the application that would be sufficient - although,  what I  
really need to know is what department or Organizational unit they belong to 
after authentication in order to give them specific page component accesses.

Any help on this is appreciated. 




-Original Message-
From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] 
Sent: Sunday, December 04, 2016 2:17 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat Realm/LDAP - userRoles and Organization Unit name for 
authenticated users

Am 04.12.2016 um 08:04 schrieb Taylor, Larry:
> Hello,
>
> For  Users that have authenticated  from the Web Login page through Tomcat 
> Realm LDAP configuration is it possible to get the authenticated user's 
> ou=Organizational Unit or Department name?   and also what their role names 
> are?   I need this information to pass to a servlet or jsp page.
>
> I saw documentation about the java.security.Principal class but could not 
> find any documentation or examples on how to get this type of information 
> after users are authenticated.
>
> I am able to get the username with  ${pageContext.request.userPrincipal.name} 
> &  request.getRemoteUser(); but nothing about how to get the user's member 
> affiliations and roles.
The standard way to get the roles is to iterate over your expected roles and 
ask for request.isUserInRole(role). The servlet spec has no API to get directly 
a list of roles.

If you are willing to bind yourself to the implementation of JNDIRealm you 
could get the list of roles. But I don't recommend it, as that implementation 
is not guaranteed to stay stable.

Do you really need to get the list, or is isUserInRole enough?

Regards,
  Felix
>
> Any information or pointers on this is appreciated.
>
>
> 
> Larry Taylor
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



re: Tomcat Realm/LDAP - userRoles and Organization Unit name for authenticated users

2016-12-03 Thread Taylor, Larry
Hello,

For  Users that have authenticated  from the Web Login page through Tomcat 
Realm LDAP configuration is it possible to get the authenticated user's 
ou=Organizational Unit or Department name?   and also what their role names 
are?   I need this information to pass to a servlet or jsp page.

I saw documentation about the java.security.Principal class but could not find 
any documentation or examples on how to get this type of information after 
users are authenticated.

I am able to get the username with  ${pageContext.request.userPrincipal.name} & 
 request.getRemoteUser(); but nothing about how to get the user's member 
affiliations and roles.

Any information or pointers on this is appreciated.


____
Larry Taylor



Recall: re: Tomcat with LDAP help

2016-11-29 Thread Taylor, Larry
Taylor, Larry would like to recall the message, "re: Tomcat with LDAP help".
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



re: Tomcat with LDAP help

2016-11-29 Thread Taylor, Larry
Hello,

I need some assistance with Tomcat and LDAP authentication -
After trying many different server.xml realm configuration settings I was 
finally able to get connectivity to our LDAP server from Tomcat 8.0.9;   but  
this is still not authenticating any users.

By the following configurations can anyone tell if something is possible 
missing or incorrect in syntax :
I am new to Tomcat /LDAP setup and not sure what could be the issue here:
My server.xml settings:

ldap://ldaphostname.com:389;
 alternateURL="ldap://ldaphostname2.visa.com:389;
   userPattern="cn={0},dc=companyname,dc=com"
  roleBase="Ou=Groups,dc=companyname,dc=com"
  roleName="cn"
roleSearch="(Users={0})"
roleSubtree="true" />


webapp/WEB-INF/web.xml settings:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;>
http://java.sun.com/xml/ns/javaee; 
xsi="http://www.w3.org/2001/XMLSchema-instance; 
schemalocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd<http://java.sun.com/xml/ns/javaee%20http:/java.sun.com/xml/ns/javaee/web-app_2_5.xsd>">


index.jsp



  SecurityConstraint

 scheduling
   /*

   
   Groups


  CONFIDENTIAL



  
  FORM
  
  /login.jsp
  /error.jsp
  
  
 
 *





The catalina.log result after attempts to login to the Tomcat web application::



29-Nov-2016 21:48:44.957 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["ajp-nio-8009"]
29-Nov-2016 21:48:44.966 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-bio-443"]
29-Nov-2016 21:48:45.010 INFO [main] 
com.visa.tcserver.properties.SystemPropertiesExporter.lifecycleEvent Effective 
Properties written to 
/opt/webdev/apache-tomcat-8.0.9/conf/effectiveProperties.xml
29-Nov-2016 21:48:45.011 INFO [main] org.apache.catalina.startup.Catalina.start 
Server startup in 29076 ms
29-Nov-2016 21:48:49.225 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke Security checking 
request GET /scheduling/
29-Nov-2016 21:48:49.230 FINE [http-bio-443-exec-1] 
org.apache.catalina.realm.RealmBase.findSecurityConstraints   Checking 
constraint 'SecurityConstraint[scheduling]' against GET /index.jsp --> true
29-Nov-2016 21:48:49.231 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
hasUserDataPermission()
29-Nov-2016 21:48:49.233 FINE [http-bio-443-exec-1] 
org.apache.catalina.realm.RealmBase.hasUserDataPermission   User data 
constraint already satisfied
29-Nov-2016 21:48:49.233 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
authenticate()
29-Nov-2016 21:48:49.242 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.FormAuthenticator.authenticate Save request 
in session '21072264578E08ED6F1B38591CDDA9F3'
29-Nov-2016 21:48:49.249 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage 
Forwarding request for [/scheduling/] made with method [GET] to login page 
[/login.jsp] of context [/scheduling] using request method GET
29-Nov-2016 21:48:49.295 FINE [http-bio-443-exec-1] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Failed 
authenticate() test
29-Nov-2016 21:49:01.631 FINE [http-bio-443-exec-2] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke Security checking 
request POST /scheduling/j_security_check
29-Nov-2016 21:49:01.636 FINE [http-bio-443-exec-2] 
org.apache.catalina.authenticator.FormAuthenticator.authenticate Authenticating 
username 'hitaylor'
29-Nov-2016 21:49:01.704 FINE [http-bio-443-exec-2] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Failed 
authenticate() test ??/scheduling/j_security_check




Login.jsp




VISA


CSO Operations

Job Scheduling Panel Login

">
UserName

Password




  


The effectiveProperties.xml file shows the following:



false
strict
ldap://visaldapocc.visa.com:389
null
org.apache.catalina.realm.JNDIRealm
null
cn=Users,dc=visa,dc=com

5000
ldap://visadcocc.visa.com:389
com.sun.jndi.ldap.LdapCtxFactory
null
null
org.apache.catalina.realm.JNDIRealm
null
/realm0
null
Ou=Groups,dc=visa,dc=com
cn
false
(Users={0})
true
STARTED


cn={0},dc=visa,dc=com
null
null
false
    true



Thanks for any information or pointers on this.


Larry Taylor



re: Tomcat 9 Java version required

2016-05-02 Thread Taylor, Larry

Hi ,

I downloaded and configured Tomcat 9  - what version of Java does this version 
require?

I have installed:
java version "1.7.0_95"
OpenJDK Runtime Environment (rhel-2.6.4.0.el6_7-x86_64 u95-b00)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)



With:



JRE_HOME=/usr/mware/jdk1.7.0_17/jre



My OS is:  Red Hat Enterprise Linux Server release 6.5 (Santiago) 64bit

On startup.sh  now getting:

Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/apache/catalina/startup/Bootstrap : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

thanks for any information.
____
Larry Taylor




RE: Apache Tomcat Vulnerabilities

2016-04-28 Thread Taylor, Larry
Thanks Andre

If an upgrade we will bump up to Tomcat 9 if this is a stable release

-Original Message-
From: André Warnier (tomcat) [mailto:a...@ice-sa.com] 
Sent: Thursday, April 28, 2016 1:24 PM
To: users@tomcat.apache.org
Subject: Re: Apache Tomcat Vulnerabilities

On 28.04.2016 21:48, Taylor, Larry wrote:
> Hello,
>
> I am using Tomcat Version: apache-tomcat-7.0.50

That version dates back to 2014.
The latest version in that branch is 7.0.69 See : 
http://tomcat.apache.org/download-70.cgi

> OS: Red Hat Enterprise Linux Server release 6.5 (Santiago) 64bit
>
> Issue:  There were 2 vulnerabilities found and need to know if there 
> are configurations or patches available

Maybe, see above.
The Tomcat project does not provide any patches. It is recommended instead, to 
download and install the latest version.
See : http://tomcat.apache.org/security.html

Please upgrade to the latest version, and report again if the vulnerabilities 
which you mention are still there.

If you wish, you can also check the ChangeLog
(http://tomcat.apache.org/tomcat-7.0-doc/changelog.html) between version 7.0.50 
and 7.0.69, to see if you find something related to your enquiry.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



re: Apache Tomcat Vulnerabilities

2016-04-28 Thread Taylor, Larry
Hello,

I am using Tomcat Version: apache-tomcat-7.0.50
OS: Red Hat Enterprise Linux Server release 6.5 (Santiago) 64bit

Issue:  There were 2 vulnerabilities found and need to know if there are 
configurations or patches available to resolve these.


1.   Tomcat was configured to use SSL https.  It was found that there is an 
input validation vulnerability that exists.

The error is due to improper filtering of HTTP requests, which could allow 
users to conduct request attacks.



In server.xml these are enabled:
...
  




...




To prevent and restrict user redirection of https pages, the following solution 
was also added and thought this may resolve this vulnerability:
In /webapps/WEB-INF/web.xml -  does this web.xml update verify remediation on 
this vulnerability issue?  Or is there another solution that I should use?

WEB-INF/web.xml:

 
 HTTPSOnly
 /*
 
 
 CONFIDENTIAL
 
 
 
 
 HTTPSOrHTTP
 *.ico
 /img/*
 /css/*
 
 
 NONE
 
 





2.   We are using Samba and NetBIOS Access through Tomcat to auto detect 
Windows usernames internally, I am using the jcifs.jar in the Tomcat lib to do 
this which to identifies the user's Windows username for a web application.

a.   Is there a configuration we could use instead to remediate this 
vulnerability reported in Tomcat 7?

b.  Or would upgrading to Tomcat version 9 eliminate these 2 
vulnerabilities ?



Example of what was found:
Vulnerability Title

Result


1.   Apache Tomcat Input Validation Security Bypass Vulnerability

Apache Tomcat Input Validation Security Bypass Vulnerability detected on 8443 
port.Apache Tomcat/7.0.50 - Error reportApache Tomcat Input 
Validation Security Bypass Vulnerability detected on 8080 port.


2.   Null Session/Password NetBIOS Access



Thanks for any information


Larry Taylor



Re: How tomcat is handling bandwidth sharing across all request

2013-09-11 Thread Larry Shatzer, Jr.
On Wed, Sep 11, 2013 at 11:39 AM, Eli elikat...@yahoo.com wrote:

 Who can answer a question


Eli,

Please read http://www.catb.org/esr/faqs/smart-questions.html

And from your email in another thread, if you didn't know, you are
subscribed to the Tomcat Users mailing list. So only questions related to
Tomcat will be answered.

-- Larry





Re: [OT] Tunneling an arbitrary protocol via SSL/TLS

2013-09-09 Thread Larry Shatzer, Jr.
On Mon, Sep 9, 2013 at 12:50 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 All,

 Somewhat off-topic, but I was wondering if anyone knew of any package
 or technique that could be used to tunnel an arbitrary protocol via TLS?

 In this particular case, I need to wrap HTTP in TLS (to make HTTPS :)
 without modifying the source of the client -- and the client does not
 support HTTPS. :(

 So far, I've come up with the following possibilities:

 1. Use stunnel. This is using a different technique to /avoid/ HTTPS.
 I'm not actually not sure this will work in this particular case, as
 the remote service probably doesn't support stunnel connections. This
 was just an idea for getting a secure, remote connection as easily as
 possible.

 2. Use an HTTP proxy. This obviously wouldn't support an arbitrary
 protocol, but I think it would get the job done. Any suggestions for
 simply and free proxy software? About all I need to do is configure a
 client SSL certificate.


Have you looked at HAProxy? http://haproxy.1wt.eu/


 3. Hack the code. I'm worried that this may be my only recourse. I'm
 fully capable of writing an HTTPS connector but I'm not sure how hairy
 it will be to actually work within the architecture of this client.

 If anyone has any other brilliant ideas, I'd be happy to hear about them.

 Thanks,
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJSLhhbAAoJEBzwKT+lPKRYVGYQAMPWcBxF0Spv9q0/8rlS1t2n
 in3hhvnhFI4rrT9zLZcuC+OdAtkZA+Xh6hPzjrqAWIN/aWgdBectDHaEhth7NzoW
 Pn3eZMF6pAOiwFOv2cwZn/PdwUznlFID2vNK2E/ptt/NG1uIrAUhPIawv50mgIgf
 RG/dnMVy1LQnx3IJWc9LJjOg4vgSpvQS1duubXXbEesuo5FP+AtAeXLn+Nd2M978
 Lv+alncdNfa/2GjiKn0Ugx0QGKob2e/IjivF6nc2rvzeun+FwYHkWYI1prcK9fdH
 QJnKBFJFYmobc2e+UlE7U6f5M2vU26OcRGyrHvuqQomRTmjfH6m8WQTeVgfnrXxF
 7/VPJAq5HzJPPZcTyeUNf3y4QpEPXP2NUds2xUBfE3Juova+6GWmTxzgaEUEKmKD
 ehybAIlHHck/bgchWSDdxAg2aEZQVFRKLv4lGwfXj/Pc7+maqeh4FBMMHVGL+BjM
 lwVWsvbdHjd4rubmYyN9YLieI+IaZ+wvcVhl9yu9grsg3rVBzJR+kFen5PH6+plu
 hQwVPdQ/uXQGGdSSbjW/nck5mzfHsq0JNP89Bp2GeTW8LxAknSJjtRyHAF4u4AI2
 yd5bf8PG1fIe1oAWboMxPO7Hdik5KufWxNTF5zvs0+KMeE8XjEAsgMr3a8G5AIuK
 u3PHl40CBxg/xAFe6pcZ
 =VcjY
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




GET and POST data in same request

2010-12-02 Thread Larry
Hello,

I need to have an apache mod_rewrite pass a request ( which contains
POST data ) along to my servlet with some GET parameters.

I think when Tomcat sees the GET params, it invokes my servlet's doGet
( which annihilates my POST data ).

I need to be able to access both the GET data from the request URL and
the POST data from the body.

Is this possible? Maybe its not tomcat's fault ;)

Any insight is welcome, thanks.

-Larry

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Configuration in Eclipse

2009-05-08 Thread Larry Isaacs
This information applies to the Tomcat support found in the Eclipse Web Tools 
Platform, see http://www.eclipse.org/webtools.  I believe Ados has stated he is 
using the Sysdeo Tomcat plug-in, which is quite different.  For those using or 
considering the Web Tools Tomcat support, see 
http://wiki.eclipse.org/WTP_Tomcat_FAQ for additional information about this 
support.

Cheers,
Larry

-Original Message-
From: Mike Altieri [mailto:mca...@yahoo.com]
Sent: Friday, May 08, 2009 12:12 PM
To: Tomcat Users List
Subject: Re: Tomcat Configuration in Eclipse


Hi Ados,

Ognjen is right; the default setting in the eclipse plugin for tomcat6 is to 
use the workspace metadata;
this way when you start tomcat from eclipse only the projects you have deployed 
on it inside of eclipse will be the running apps.

If you want you can alter this setting by double clicking on the server; and 
when the serve config opens look under
'Server Locations' ; if you choose the 'use tomcat installation' then all the 
apps that are installed in your server should also start when you start the 
server inside of eclipse.

This may or may not be desirable depending on your environment's needs.

Good Luck!

-Mike



- Original Message 
 From: ados1...@gmail.com ados1...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, May 8, 2009 11:17:02 AM
 Subject: Re: Tomcat Configuration in Eclipse

 I am stuck on same issue. I tried reconfiguring Tomcat on Eclipse using
 sysdeo plugin but when I try to run simple jsp page am getting same 404
 error.
 Any help would be highly appreciated ?

 Thanks,
 Ados

 On Fri, May 8, 2009 at 8:51 AM, Chris Lenart wrote:

  I'm getting simular issue. Tomcat is working and see its welcome page in
  Firefox. When I run a imple jsp in Eclipse, it is giving 404. What do I
  have to do?
 
  Chris
 
  -Original Message-
  From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs]
  Sent: Friday, May 08, 2009 4:50 AM
  To: Tomcat Users List
  Subject: Re: Tomcat Configuration in Eclipse
 
 
  This is normal.
 
  When you start Tomcat manually, it uses YOUR-TOMCAT-HOME/webapps as
  default webapp directory. This directory contains ROOT webapp (visible
 
  on context /), and that is the welcome page you see.
 
  On the other side, when you start Tomcat inside Eclipse, it uses some
  other webapp folder like
  YOUR-ECLIPSE-WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tm
  p0/wtpwebapps,
  which doesn't contains ROOT webapp (or, sometimes contains blank ROOT
  webapp). In that case on context / (http://localhost:8080/), you will
  get either HTTP error 404 or blank page.
 
  Regards,
  Ognjen
 
 
  ados1...@gmail.com wrote:
   Interesting Things are happening with my Tomcat.
  
   Points to Note:
  
  
  1. I am installing tomcat version 6.x and than running it by
  clicking
  startup.bat file and it is running fine as when I check in browser
  typing
  http://localhost:8080/ it shows me the Apache Foundation Welcome
  pages
  saying that Installation works fine.
  2. Interesting thing to note is that when I stop my server using
  shutdown.bat file than it work fine but now if I start my server
  using
  eclipse than it starts but when I go to browser to check Apache
  Foundation
  Welcome Page than it is not there and I get message as under and it
  is
  confusing.
  
  
   Apache Tomcat/6.0.18 - Error report
   Apache Tomcat/6.0.18 - Error report HTTP Status 404 - /
   --
  
   *type* Status report
  
   *message* */*
  
   *description* *The requested resource (/) is not available.*
   --
   Apache Tomcat/6.0.18
  
  
   Any guidance would be appreciated.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6.0 in Eclipse

2009-03-17 Thread Larry Isaacs
This is also explained in the WTP Tomcat FAQ:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

or specifically:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#If_I_start_my_Tomcat_server_and_try_to_display_Tomcat.27s_default_page.2C_why_do_I_see_a_directory_listing_or_404_error_page.3F


Cheers,
Larry

-Original Message-
From: Ingmar Lötzsch [mailto:iloetz...@asci-systemhaus.de]
Sent: Tuesday, March 17, 2009 4:31 AM
To: Tomcat Users List
Subject: Re: Tomcat 6.0 in Eclipse

 I downloaded apache-tomcat-6.0.16 and ran the startup.bat. I could see the
 page display at http://localhost:8080/

 Later, I configured the same in eclipse 3.4 and started the tomcat using
 eclipse.Eclipse started the tomcat with no exception.
 However, when I go to the page at http://localhost:8080/ I see HTTP Status
 404 error.

The plugin you use inside Eclipse starts Tomcat with a different
configuration including an empty ROOT context. If you develop with the
WTP plugin, look at

workspace\.metadata\.plugins\org.eclipse.wst.server.core

and than for example

\tmp0\conf\server.xml

or

\tmp0\wtpwebapps

Ingmar

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client in Tomcat

2008-11-26 Thread Larry Isaacs
Be aware that in Eclipse WTP, your web project is published to the server to 
be served. Jars that are added to the project as runtime dependencies will be 
copied to the WEB-INF/lib of the published webapp.  Just adding a jar to 
the build path of the web project DOES NOT add the jar as a runtime dependency. 
The project builds fine, but won't work at runtime due to missing classes.  
Normally, the Problems view will show warnings when this is the case.

Assuming this is your problem, go the Java EE Module Dependencies page in the 
web project's Properties dialog.  Make sure all the jars you want in 
WEB-INF/lib at runtime are checked.

Cheers,
Larry

-Original Message-
From: Steve Cohen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2008 11:44 AM
To: Tomcat Users List
Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client 
inTomcat

It's the Real Tomcat, but running inside Eclipse WTP, which starts and
stops the server.

Caldarale, Charles R wrote:
 From: Steve Cohen [mailto:[EMAIL PROTECTED]
 Subject: Re: HELP!!! java.lang.NoClassDefFoundError running
 CXF-based client inTomcat

 Another piece of information I omitted: JDK version
 java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux.


 Is this a real Tomcat or a 3rd-party repackaged version?  If the latter, 
 please install a real one from tomcat.apache.org and try again, as the 
 3rd-party ones often break things in subtle ways.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat unable to find jars when deployed from Eclipse

2008-09-24 Thread Larry Isaacs


 -Original Message-
 From: Bai Shen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2008 2:54 PM
 To: Tomcat Users List
 Subject: Tomcat unable to find jars when deployed from Eclipse

 I'm running Eclipse 3.4 with Tomcat 6.0.18 configured as a server.
 After a
 bit of consternation, I was able to see my test html and jsp files.
 However, for some reason, my servlet doesn't see the jar files it needs
 unless I put them in WebContent\WEB-INF\lib.  Now I've already defined
 them
 in Eclipse and checked the export option.  So why doesn't that work?

You are probably specifying the build time classpath, but not the runtime 
classpath.


 Am I doing something wrong, or am I stuck with the only solution being
 to
 put them in the WebContent\WEB-INF\lib dir?

The alternative is to go to the Java EE Module Dependencies page of the 
project's properties.  You should see your build time jars listed there.  Check 
them to include them in the runtime classpath.  These jars will then be 
included in the WEB-INF/lib of the Web application when the project is 
published to a server or exported as a war.

Cheers,
Larry


 TIA.

 Bai Shen

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: stupid tomcat/eclipse question

2008-09-08 Thread Larry Isaacs
 -Original Message-
 From: Steve Cohen [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 08, 2008 1:34 PM
 To: Tomcat Users List
 Subject: stupid tomcat/eclipse question

 I've had a stable development environment running Tomcat 6.0 within
 Eclipse 3.3.

 I did something stupid to configuration and now I can't get away from
 this error as soon as the server starts.

 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  ...

 In spite of trying putting everything I can think of onto the runtime
 classpath I can't make this go away.

The Tomcat batch files deliberately ignore the CLASSPATH environment variable 
because failing to do so greatly increases the odds of Tomcat not starting.  
Modifying the runtime classpath in Eclipse is going to have the same effect on 
your odds of Tomcat starting for the exact same reason.  Tomcat 6.0.x only 
needs bootstrap.jar on the classpath.  Some additional jars get added 
automatically by Java per the Class-Path attribute in the MANIFEST.MF found 
in bootstrap.jar.  With this set of jars, the bootstrap process will use the 
common.loader property value found in the conf/catalina.properties file to 
create the common classloader which will contain the javax.servlet classes 
among many others required by the Tomcat server.

Not knowing what your original Tomcat configuration was, it's hard to guess 
what the original change was that caused Tomcat not to start.  Modifying the 
runtime classpath can easily result in this same symptom.  You might try 
creating a new Tomcat server from the same Tomcat runtime in Eclipse and see if 
it will start.  If not, it suggests you have done something to your Tomcat 
installation.

Cheers,
Larry

  Where is Tomcat supposed to find
 javax/servlet/Servlet and why was this so easy before and so difficult
 now.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issue in connecting to tomcat via Apache

2008-08-28 Thread Larry J Prikockis
You don't specify exactly what you mean by it fails, but assuming 
you're saying that requests to Apache aren't getting passed along to 
Tomcat, your answer is right here:

(from httpd.conf)

# Send everything for context /examples to worker named worker1 (ajp13)
#JkMount  /examples/* worker1

if you want everything to go to Tomcat, add a line like:

JkMount  /   worker1

and you're all set.

If you want just a certain portion of the url namespace to get passed 
along to Tomcat, you could use some thing like the commented out 
example.  In that case:  http://yourserver/index.html would be served by 
Apache httpd, but http://yourserver/examples/someexample.jsp would be 
served by Tomcat.



Vasanth Kumar ravi wrote:

Hi,
I am using the mod_jk to connect the apache webserver and the tomcat 
server.
Though I am able to access them individually, when I try to access the 
tomcat via the apache webserver, it fails.


I used the examples given the apache site to configure the 
workers.properties and the httpd.conf files.


Apache :2.2.8
Tomcat :6.0.16
jdk :1.5.014 from Sun
OS : Suse Linux..

--
RegardsThanks,
Vasanth Kumar Ravi


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat within Eclipse

2008-08-12 Thread Larry Isaacs
Backing up slightly, maybe the first step should be to confirm whether the Web 
Tools Platform, Sysdeo, or other plug-in is being used for the Tomcat server 
support.

The fact that C:\Program Files\Apache Software Foundation\Tomcat 
6.0\conf\tomcat-users.xml is being renamed suggests that if WTP was being 
used, the non-default Use Tomcat installation option would have to be 
enabled.  In this case, tomcat-users.xml would have being copied from the 
Servers project to the conf directory.  If this file isn't writable, this 
copy would likely have failed before even attempting to start the server.  This 
would suggest that WTP is not being used.  I'm guessing that it may be the 
Sysdeo plug-in and that it might be a permissions problem.  The user running 
Eclipse, and thus the user running the Tomcat server from Eclipse, doesn't have 
permission to modify this file.

Any details about the OS, server plug-in, and any configuration done to set up 
this server would likely help.  The stack trace alone doesn't provide a lot in 
the way of hard clues.

Cheers,
Larry

 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 12, 2008 4:54 AM
 To: Tomcat Users List
 Subject: Re: Tomcat within Eclipse

 Hi, Sam

 If you installed Tomcat using the .exe installer, the *.bat files
 are not included with it. You can download the zip archive to get them.

 Eclipse does not need them, because it lauches Tomcat as a java
 application, loading its Bootstrap class.

 When you create a server launch configuration (a new Server),
 a new supplemental project is created in your workspace, that
 stores your launch configuration. When it is created, the
 configuration files are copied there from the Tomcat installation.

 You should check, that those files do exist.
 They are shown in the Servers project on your Project Explorer
 view, in a subfolder which name reflects the name of your
 configuration. E.g.
 Servers\Tomcat v6.0 Server at localhost-config

 The following files should be there:
 catalina.policy
 catalina.properties
 context.xml
 server.xml
 tomcat-users.xml
 web.xml

 If you want, you can replace them with some fresh copies
 from your Tomcat installation, or from the zip archive, but
 do not forget to refresh the Servers project (using the context
 menu, or pressing F5).

 Eclipse uses those files when launching Tomcat. (Actually it
 copies them further, publishing them into a temporary directory
 inside .metadata. That is why refreshing the Servers project is
 important).

 You may also want to check the following FAQ:
 http://wiki.eclipse.org/WTP_Tomcat_FAQ

 Best regards,
 Konstantin Kolinko

 2008/8/11 Sam Wun [EMAIL PROTECTED]:
  Hi,
 
  I have the server.xml path defined in Eclipse (3.4):
  C:\Program Files\Apache Software Foundation\Tomcat 6.0
  Where is the startup.bat file? I can't find this batch file.
 
  Thanks
 
 
  On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl [EMAIL PROTECTED]
 wrote:
 
  - Original Message - From: Sam Wun [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Monday, August 11, 2008 6:57 AM
  Subject: Tomcat within Eclipse
 
 
  Hi,
 
  Can anyone tell me how to resolve the followoing exception?
  and how do I know whether tomcat service is really running.
 
  11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener
 init
  INFO: The APR based Apache Tomcat Native library which allows
 optimal
  performance in production environments was not found on the
  java.library.path: C:\Program
 
 
 Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system3
 2;C:\Windows;C:/Program
  Files/Java/jre6/bin/client;C:/Program
 
 
 Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\
 Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
  Files\Nmap
  11/08/2008 14:47:47 org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  11/08/2008 14:47:47 org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 502 ms
  11/08/2008 14:47:47 org.apache.naming.NamingContext lookup
  WARNING: Unexpected exception resolving reference
  java.io.IOException: Cannot rename original file to C:\Program
  Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-
 users.xml.old
  at
 
 org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.ja
 va:582)
  at
 
 org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(M
 emoryUserDatabaseFactory.java:104)
  at
 
 org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac
 tory.java:140)
  at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
  at
 
 org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(
 NamingContextBindingsEnumeration.java:113

RE: Unable to run tomcat in Eclipse

2008-07-21 Thread Larry Isaacs
For details about the Tomcat support, see:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

You might also check the Error Log view to see if any complaints are being 
logged related to this.

Cheers,
Larry

 -Original Message-
 From: KANIKA GUPTA [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 19, 2008 2:18 PM
 To: Tomcat Users List
 Subject: Re: Unable to run tomcat in Eclipse

 I am using the tomcat version downloaded from apache site only...
 I just cant figure out what the problem is...

 Kanika

 --- On Sat, 7/19/08, Ken Bowen [EMAIL PROTECTED] wrote:
 From: Ken Bowen [EMAIL PROTECTED]
 Subject: Re: Unable to run tomcat in Eclipse
 To: Tomcat Users List users@tomcat.apache.org
 Date: Saturday, July 19, 2008, 9:50 PM

 Are you running a version of Tomcat supplied by your Linux
 distribution?
 Often these cause many problems.   You might try downloading a clean
 version of Tomcat from the Apache site,
 unzipping that, and trying it.

 On Jul 19, 2008, at 12:37 AM, KANIKA GUPTA wrote:

 
  Hi
 
  I am using tomcat V6.0.16 on openSuse 11.0 along with eclipse 3.4.0
  genameyde.
  The tomcat starts and stop normally when i do the same on command
  line, but when i try to start the server through eclipse... it gives
  me the following error:
 
  'Starting Tomcat v6.0 Server at localhost has encountered a problem.
  Could not load the Tomcat server configuration at /Servers/Tomcat
  v6.0 Server at localhost-config. The configuration may be corrupt or
  incomplete.
 
  I am running the server at port 8085. I changed it to same in the
  server.xml file located in the installation directory of tomcat in
  conf folder. This was done because i am using was ce at 8080.
 
  I have jdk5 as well as jdk6 installed bt currently working with jdk5.
 
  Please help what to do...
 
  Kanika
 
 
 
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Singleton in Tomcat 6.0 not working

2008-06-05 Thread Larry Isaacs
I think the Tomcat support in Eclipse WTP is pretty reasonable, but it isn't 
perfect.  For example, if you name your project ROOT, Eclipse won't tell you 
that you are asking for trouble because some web servers, like Tomcat, may give 
that particular name special treatment.  This would explain the:

Context docBase=ROOT path=/ROOT reloadable=true 
source=org.eclipse.jst.jee.server:ROOT/

Thus, I would recommend not naming a Dynamic Web Project ROOT.  You can make 
a Dynamic Web Project the default webapp by opening the Web Project Setting 
page of the project's Properties dialog and set the Context Root field to a 
blank string.  When published to a Tomcat server in Eclipse, it will become the 
default (i.e. ROOT) webapp.

Because putting Contexts in server.xml is supported by all versions of Tomcat, 
this is the default behavior.  For Tomcat 5.x and later, you can enable the 
Publish module contexts to separate XML files option in the server editor.  
This will remove the Contexts from the server.xml (the one found under the 
Servers project in your workspace) and write the Contexts to separate files 
when publishing the server.  Obviously, this implies the server.xml you find 
under the Servers project in your workspace is not the one used by Tomcat when 
it is running.  Tomcat runs off a modified copy created when the server is 
published.

See http://wiki.eclipse.org/WTP_Tomcat_FAQ for more details about the Tomcat 
support in Eclipse.

Cheers,
Larry

 -Original Message-
 From: ktou Ho [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2008 2:24 PM
 To: Tomcat Users List
 Subject: RE: Singleton in Tomcat 6.0 not working


 By the way, I was using the Eclipse 3.3, it integrated the Tomcat
 development tool. It was the Eclipse add that line to the server.xml.
 May be we need to let them know about this.

 Thanks
 Elwin From: [EMAIL PROTECTED] To: users@tomcat.apache.org
 Date: Thu, 5 Jun 2008 13:15:03 -0500 Subject: RE: Singleton in Tomcat
 6.0 not working   From: ktou Ho [mailto:[EMAIL PROTECTED] 
 Subject: RE: Singleton in Tomcat 6.0 not working   Did you mean I
 should just remove this Context element  from the server.xml? 
 You should never have put it in there, so definitely remove it. If you
 need to set the reloadable attribute, then put just this:  Context
 reloadable=true/  in the file META-INF/context.xml inside the
 webapp. Note that setting reloadable incurs some additional overhead
 inside Tomcat, so it is normally not used for production.  The doc
 reference: http://tomcat.apache.org/tomcat-6.0-
 doc/config/context.html  - 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 start a new topic, e-mail: users@tomcat.apache.org To
 unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 _
 Instantly invite friends from Facebook and other social networks to
 join you on Windows Live(tm) Messenger.
 https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: httpd SSL - Tomcat VS. Tomcat SSL standalone?

2008-04-30 Thread Larry Prikockis

Yuval Perlov wrote:
Out tomcat servers are handling around 30K SSL hits every 5 minutes with 
very little effort (10% cpu average on a dual core machine, good 
response time).
We tried to put in httpd in front thinking we can squeeze out better 
performance and memory consumption.
The system just couldn't handle the load and we had to roll back 
(quickly) to a tomcat only configuration.


hmmm... that sounds suspiciously similar to what we had happening.  I 
just can't see why Apache Httpd wouldn't be able to handle SSL 
connections at least as well as Tomcat, so there's clearly something 
else going on here.


Is your system on Windows, Linux, something else?   And what versions of 
Tomcat/Apache were you using?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



httpd SSL - Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis
I know the latest edition of the O'Reilly Tomcat book by Brittain and 
Darwin strongly advocates the use of standalone Tomcat as opposed to the 
traditional httpd-Tomcat approach, but this seems to be somewhat of a 
paradigm shift for most people.   I'm interested in hearing what the 
wider community thinks...


Specifically, we have a webapp on a Windows 2003 server that utilizes 
Apache 2.2 SSL as a frontend and mod_proxy_ajp to send requests to 
Tomcat 5.5.17 (on the same server).  By eliminating the Apache frontend 
and just using a Tomcat SSL connector directly, we saw performance 
increases that absolutely dwarfed (400+%) everything else we were 
achieving by tuning various connection parameters of Apache httpd and 
Tomcat.


While I would expect hitting Tomcat directly would be a little faster 
than going through the Apache proxy setup, we didn't expect such 
dramatic differences.  In fact, when comparing Apache w/o SSL - Tomcat, 
the performance was only a little worse than hitting Tomcat HTTP  directly.


My questions:
1) Any thoughts on why the Apache SSL - Tomcat combination should be so 
much slower?
2) Are there any security downsides to using Tomcat SSL directly as 
opposed to fronting it with Apache httpd?

3) anyone else have any similar (or contradictory?) experiences?


thanks-
Larry Prikockis
--
Larry Prikockis
System Administrator
[EMAIL PROTECTED]
Phone: (240)737-2900

Vecna Technologies, Inc.
5004 Lehigh Rd
College Park, MD 20740-3821
Phone: (301) 864-7253
Fax: (301) 699-3180
240-737-1699 (office)
www.vecna.com

Better Technology, Better World (TM)

The contents of this message may be privileged and confidential. 
Therefore, if this message has been received in error, please delete it 
without reading it. Your receipt of this message is not intended to 
waive any applicable privilege. Please do not disseminate this message 
without the permission of the author.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: httpd SSL - Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis

Mark H. Wood wrote:

On Mon, Apr 28, 2008 at 11:27:09AM -0400, Larry Prikockis wrote:

Specifically, we have a webapp on a Windows 2003 server that utilizes 
Apache 2.2 SSL as a frontend and mod_proxy_ajp to send requests to Tomcat 
5.5.17 (on the same server).  By eliminating the Apache frontend and just 
using a Tomcat SSL connector directly, we saw performance increases that 
absolutely dwarfed (400+%) everything else we were achieving by tuning 
various connection parameters of Apache httpd and Tomcat.


That's certainly worth thinking about.  What exactly do you mean by
performance?


good point... shoulda been more specific-- we were mainly looking at raw 
connections per second and throughput type metrics.  Under heavy load, 
we were seeing simple page requests taking 15-20 seconds to return while 
cpu load, memory usage, free connections (tomcat, apache and database 
pool) all looked good.





My questions:
1) Any thoughts on why the Apache SSL - Tomcat combination should be so 
much slower?


Back-resolving client addresses to names for some reason?  (Check your
logging directives, for example.)

thought of this... but have ruled it out.


Not enough entropy?  Check your random-number generator setup.


thanks!  this is definitely something I'll investigate.


--
Larry Prikockis
System Administrator
[EMAIL PROTECTED]
Phone: (240)737-2900

Vecna Technologies, Inc.
5004 Lehigh Rd
College Park, MD 20740-3821
Phone: (301) 864-7253
Fax: (301) 699-3180
240-737-1699 (office)
www.vecna.com

Better Technology, Better World (TM)

The contents of this message may be privileged and confidential. 
Therefore, if this message has been received in error, please delete it 
without reading it. Your receipt of this message is not intended to 
waive any applicable privilege. Please do not disseminate this message 
without the permission of the author.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: httpd SSL - Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Larry,

Other than Mark's comments...

Larry Prikockis wrote:
| 1) Any thoughts on why the Apache SSL - Tomcat combination should be so
| much slower?

If your transactions are short, it's certainly possible that most of the
time is taken up by moving bits around. 400% seems like a /very/ high
number, especially because the SSL handshake itself is probably the most
expensive bit-moving experience. I second Mark's thoughts about either
logging configuration or entropy games. Are you using APR with Tomcat,
or the Java-based SSL?


Since Tomcat is running on Windows and APR is the default config, that's 
what we used.


| 2) Are there any security downsides to using Tomcat SSL directly as
| opposed to fronting it with Apache httpd?

No. In fact, I would argue that fewer moving parts lowers the chances of
problems. You're simply not going to run across any buffer overflows
exploits in Tomcat, for instance. I trust Apache httpd pretty well, but
more complexity always means more opportunities for problems.



makes sense... thanks... sounds like the biggest downside is the loss of 
some of the flexibility and load-balancing options that the Httpd/Tomcat 
combo provide.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Eclipse with tomcat and mysql

2008-03-10 Thread Larry Isaacs
For some info about the Tomcat support in the Web Tools Platform of Eclipse, 
see this FAQ:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

If you happen to have put your mysql driver jar in shared/lib, then this 
question might explain the behavior:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_are_classes_in_my_Tomcat_installation.27s_shared.2Flib_not_seen_by_my_Web_application.3F

If your mysql server access depends on changes to the server.xml made after the 
Eclipse Tomcat server was created, see this question:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#When_I_create_my_first_Tomcat_server.2C_why_is_a_Servers_project_created_in_my_workspace.3F

If neither of these covers your situation, check the other questions to see if 
any might explain what is different between your Tomcat installation and the 
Tomcat server in Eclipse.

Cheers,
Larry

P.S. That FAQ page can be fairly slow to come up, perhaps because of its size.  
Be patient.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 enterprises.com]
 Sent: Monday, March 10, 2008 11:50 AM
 To: Len Popp; Tomcat Users List
 Subject: Re: Eclipse with tomcat and mysql

 Eclipse (Eurpoa) version 3.1.1

 I am using the Web Standard Tools. (The project I created is a Dynamic
 Web
 Project).

 I do NOT have the Sysdeo Tomcat plugin. Would this help?

 Thanks,
 Kevin

 - Original Message -
 From: Len Popp [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org;
 [EMAIL PROTECTED]
 Sent: Monday, March 10, 2008 6:42 AM
 Subject: Re: Eclipse with tomcat and mysql


  What version of Eclipse are you using, and what extensions are you
  using for your webapp project (e.g. Web Standard Tools or Sysdeo
  Tomcat plug-in)?
  --
  Len
 
  On Mon, Mar 10, 2008 at 11:32 AM,  [EMAIL PROTECTED]
 wrote:
  Hello,
 
   I'm having trouble getting Eclipse to work with Mysql/Tomcat.
 
   In Eclipse, I have set up a project and have added a Tomcat server
 and
  added the project to the server.
   The project consists of a simple example of a standard struts
  architecture for the MVC.
 
   Model: Artist.java, ArtistSearchService.java
   View: search.jsp, SearchForm.java
   Controller: ArtistSearchAction.java
 
   The ArtistSearchSerview.java connects to mysql, searches for
 Artists and
  creates Artists objects.
 
   If I deploy this to Tomcat, every thing works fine.
 
   But when I run inside Eclipse it will not connect to the database.
 I get
  the errors listed below.
   Funny thing is, in Eclipse I have also tried setting a data source
 for
  this database.
   This also works fine and I can connect to the DB from the data
 source,
  but I still get the error.
 
   So how do you use Eclipse with Tomcat and MySQL? Any ideas?
 
   Thanks in advance for the help,
   Kevin
 
   HTTP Status 500 -
 
   ---
 -
 
   type Exception report
 
   message
 
   description The server encountered an internal error () that
 prevented
  it from fulfilling this request.
 
   exception
 
   javax.servlet.ServletException: Cannot create JDBC driver of class
 ''
  for connect URL 'null'
 
 
 org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRe
 questProcessor.java:286)
 
 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
 
 
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
   root cause
 
   org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
  driver of class '' for connect URL 'null'
 
 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataS
 ource.java:1150)
 
 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSour
 ce.java:880)
 
  model.ArtistSearchService.selectArtists(ArtistSearchService.java:30)
 
 controller.ArtistSearchAction.execute(ArtistSearchAction.java:34)
 
 
 org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteA
 ction.java:58)
 
 
 org.apache.struts.chain.commands.AbstractExecuteAction.execute(Abstract
 ExecuteAction.java:67)
 
 
 org.apache.struts.chain.commands.ActionCommandBase.execute(ActionComman
 dBase.java:51)
 
  org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
 
 
 org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.ja
 va:304)
 
  org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
 
 
 org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRe
 questProcessor.java:283)
 
 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
 
 
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
   root cause
 
   java.sql.SQLException: No suitable driver

RE: [Eclipse-Tomcat] Problem by deploying from Eclipse to Tomcat

2008-02-11 Thread Larry Isaacs
There is not enough detail about your Eclipse configuration to make much of a 
guess.  Basically the exception says that the ServletRequestListener class is 
not visible to one of the listener classes loaded in your web.xml.  Either 
because it's missing (which seems not to be the case), or because your listener 
class is being loaded in a classloader that isn't allowed to see classes in 
common\lib's classloader.  Launching Tomcat with the listener class loaded by 
the system classloader would be a simple way to cause this.

Cheers,
Larry

 -Original Message-
 From: Thomas Chang [mailto:[EMAIL PROTECTED]
 Sent: Saturday, February 09, 2008 3:31 PM
 To: users@tomcat.apache.org
 Subject: Re: [Eclipse-Tomcat] Problem by deploying from Eclipse to
 Tomcat

 The servlet-api-2.4.jar is already in /common/lib.

   I doubt that's the cause. :-)


   *

   The missing class:

 javax/servlet/ServletRequestListener

 occurs in servlet-api.jar which appears to be missing in your
 configuration.  The best place for it is in
 Tomcat's  common/lib.

 -Ken

 Thomas Chang wrote:
  Hi all,
 
I am not sure if I should put my question here. But I can't google
  out the right place. Hope someone here can help. :-)
 
I built a web-app and can deploy it successfully from Tomcat
  Manager. But as I deploy it from the Eclipse, I get the following
 exception.
 
P.S.: I use Eclipse 3.4 and the WTP package.
 
Regards
 
Thomas
 

 
SCHWERWIEGEND: Error configuring application listener of class
  org.springframework.web.context.request.RequestContextListener
java.lang.NoClassDefFoundError:
  javax/servlet/ServletRequestListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at

 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at

 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl
 assLoader.java:1812)
at

 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade
 r.java:866)
at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
 r.java:1319)
at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
 r.java:1198)
at

 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.
 java:3677)
at

 org.apache.catalina.core.StandardContext.start(StandardContext.java:418
 7)
at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at

 org.apache.catalina.core.StandardService.start(StandardService.java:450
 )
at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
09.02.2008 20:57:23 org.apache.catalina.core.StandardContext
  listenerStart



 -
 Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 6.0.14 and Eclipse 3.3

2008-01-21 Thread Larry Isaacs
Alec,

I'm not aware of any specific causes for this behavior with Eclipse 3.3.x and 
WTP 2.0.x.  To begin searching for a cause, it would be helpful to know what 
happens if you unzip a new Tomcat install, create a runtime and server from 
that install in Eclipse, and try starting that server from the Servers tab.  
Does it exhibit the same behavior?

Cheers,
Larry

 -Original Message-
 From: Alec Bickerton [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 21, 2008 6:28 AM
 To: users@tomcat.apache.org
 Subject: Tomcat 6.0.14 and Eclipse 3.3

 I've been seeing some unusual behaviour when staring eclipse from the
 server tab.

 When I start tomcat the server tab never reports that tomcat as
 started.
 It always appears as either stopped or starting...

 The server is actually running an I'm able to use the installed webapps
 and do debugging so this is not a blocker for me. It is however, a
 little annoying.

 Does anyone know a workaround for this. I've seen a few reports about
 this on the Internet, but no useful suggestions.

 On other thing, under MyEclipse 6; (same workspace and launch config)
 this issue does not appear. The server starts up and shows started. in
 the server tab.

 Is it likely to be an eclipse problem, tomcat 5.5 did start correctly.

 Server launch config...
 Program arguments:
 start

 VM arguments:
 -Dcatalina.home=C:\Develop\Tomcat6_14
 -Dcatalina.base=C:\Develop\Tomcat6_14
 -Djava.endorsed.dirs=C:\Develop\Tomcat6_14\common\endorsed
 -Djava.io.tmpdir=C:/Develop/Tomcat6_14/work
 -Djava.library.path=C:/Develop/Java/JDK6/bin;C:/Develop/Tomcat6_14/bin
 -Dsun.io.useCanonCaches=false -Dcatalina.base=C:/Develop/Tomcat6_14
 -Dcatalina.home=C:/Develop/Tomcat6_14
 -Djava.endorsed.dirs=C:/Develop/Tomcat6_14/common/endorsed
 -Djava.io.tmpdir=/var/tmp -Xmx512m -XX:+AggressiveOpts
 -XX:+UseParallelGC -XX:+Inline
 -Dwtp.deploy=C:\Develop\eclipse\workspaces\ws_eclipse32


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: I got the following error while running my very simple JSP onTomcat 4.1. server

2007-12-03 Thread Larry Isaacs
One other thing to be aware of is that if you installed Tomcat 4.1.x
using the exe, and you chose to install Tomcat as a service, then the
install would copy tools.jar from the JDK to Tomcat's common/lib
directory.  This allowed the service to run off the JRE associated with
the JDK (much much easier to find via the Windows registry) instead of
the JDK itself.  I have seen cases where it was an old tools.jar in
common/lib that caused this symptom when running Tomcat in a newer JVM.

Cheers,
Larry

 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 01, 2007 5:05 PM
 To: Tomcat Users List
 Subject: RE: I got the following error while running my very simple JSP
 onTomcat 4.1. server

  From: peri [mailto:[EMAIL PROTECTED]
  Subject: I got the following error while running my very
  simple JSP onTomcat 4.1. server
 
  class file has wrong version 49.0, should be 48.0

 You appear to have multiple JRE/JDKs installed on your system.  The
 above message would be displayed by a 1.4 JVM when encountering a class
 file created for a 1.5 or newer JVM.  Try finding and removing the
 older
 JRE/JDK installations.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CLASSPATH, .jar files, packages, and so forth

2007-11-01 Thread Larry Isaacs
Classes downloaded to the client browser for execution is just
static content as far as Tomcat is concerned.  Modifying the server's
or webapp's classpath isn't going to make any difference.  It's
the client browser's classpath that needs adjusting to use the jar.
This means modifying the HTML that runs the applet.  Unfortunately,
or perhaps fortunately, it has been many years since I have messed
with such HTML, so I can't say what those modifications would look
like.  Likely something in the HTML has to point at the jar where
it lives in the content portion of the webapp.  HTH.

Cheers,
Larry

 -Original Message-
 From: Mann, Ivan H [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 31, 2007 4:26 PM
 To: users@tomcat.apache.org
 Subject: CLASSPATH, .jar files, packages, and so forth
 
 
 
 
 
  I have an application  that consists of 150 classes, organized in
  several different packages.
 
  In the past I have installed the application in
  .../webapps/appl/directories where the directory tree
corresponds
  to the package layout, and this has worked fine.
 
  I am trying to change this to using .jar files for a couple of
  reasons.  I took one package and created a jar file like this:
 
  cd webapps/appl/
  jar cvf schedule.jar applet/schedule/*.class
  mv schedule.jar WEB-INF/lib
  rm applet/schedule/*.class
 
  I modified setupclasspath.sh to read WEB-INF/lib and add all .jar
  files to the CLASSPATH before starting tomcat.  Now when I try to
  access one of the classes that I put into schedule.jar it throws a
  NoClassDefFoundError.
 
  If I run a test program with CLASSPATH pointing to the
webapps/appl
  directory and WEB-INF/lib/schedule.jar it works fine.  In tomcat it
  doesn't find the class.  I would suspect that there an issue with
the
  way I build the jar file, but I can't figure out why it works
outside
  of tomcat but not inside.
 
  What I would really like is a cookbook document telling me how to
  distribute an application in jar files to the web.  I have Googled
  many combinations of words and can't find one.  If anybody has one
of
  those I would really appreciate it.  I thing I am missing a step
 here,
  possibly making the manifest, but I just don't know what that
missing
  step is.
 
  Thanks for the help.
 
  Ivan Mann
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can I specify the Tomcat directory?

2007-10-08 Thread Larry Isaacs
I've reinstalled the Tomcat server isn't much detail to go on.
See if the following link helps by explaining the Tomcat support in
Eclipse:

http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php

It covers WTP 1.5.x, but the majority of the info applies to WTP 2.0.x
as well.

Cheers,
Larry

 -Original Message-
 From: Jaime Almeida [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 08, 2007 11:14 AM
 To: users@tomcat.apache.org
 Subject: How can I specify the Tomcat directory?
 
 Hello.
 I've reinstalled the Tomcat server v6.0 on my computer, but when I try
 to
 run my application on the Eclipse, I get the error:
 'The specified Tomcat installation directory does not exist'.
 How can I specify the Tomcat installation directory?
 What am I missing in the configurations of the Eclipse?
 Waiting for a reply,
 with the best regards,
 Jaime Almeida.
  
 IPLNet WebMail http://www.net.ipl.pt/mail
  
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



RE: Fresh install of Tomcat - getting frustrated with the JSP no working

2007-10-03 Thread Larry Isaacs
If I recall correctly, in JSP spec 1.1, the argument for
handlePageException() was Exception.  In JSP spec 1.2 and later, the
argument is Throwable.  It would appear you have a servlet.jar from
Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running
against, causing the method signature mismatch.  Make sure you don't
have a copy of servlet.jar in the WEB-INF/lib of your webapp or
somewhere else involved with the running server, such as in the
lib/ext directory of your JDK or JRE.

In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet
API classes are found in servlet-api.jar, with both located in the lib
directory of the Tomcat 6 installation.  Any servlet.jar you find
involved with this server would contain out of date classes for this
server.

Cheers,
Larry

 -Original Message-
 From: niblz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 03, 2007 4:29 AM
 To: users@tomcat.apache.org
 Subject: Fresh install of Tomcat - getting frustrated with the JSP no
 working
 
 
 Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the
 newest
 versions from their sites)
 I have tried many things, but still while html and servlet work, JSP
 just
 won't work!
 I even tried using this Tomcat version and help -
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 But still nothing
 This are the errors I get
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
An
 error occurred at line: 22 in the generated java fileThe method
 getJspApplicationContext(ServletContext) is undefined for the type
 JspFactory An error occurred at line: 82 in the generated java fileThe
 method handlePageException(Exception) in the type PageContext is not
 applicable for the arguments (Throwable) Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:92)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 23)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:317)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.14
 logs
 
 and this one
 HTTP Status 500 -

---
 -
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
 Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:85)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 15)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:308)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.10
 logs.
 
 
 What can I do please?
 
 Thank you!
 
 --
 View this message in context: http://www.nabble.com/Fresh-install-of-
 Tomcat---getting-frustrated-with-the-JSP-no-working-
 tf4560454.html#a13014781
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AJP Flush Packet causing text/plain output

2007-09-25 Thread Larry Reisler
Thanks for your reply.  There is a holiday here right now, so I'm not sure if I 
will be able to get to file the Bugzilla issue before the holiday break.

We tried a few different versions of mod_jk (the early ones had other issues), 
but all the latest ones showed the problem.  We are currently using mod_jk 
1.2.25.

In desperation, I was able to create a patch to mod_jk that seems to prevent 
the symptom from occurring.  Here is the diff for the file jk_ajp_common.c:
1742,1751d1741
 // Removing extra flush buffer if we do not need it.
 if (headeratclient == JK_FALSE) {
 int code = (int)jk_b_pget_byte(op-reply,0);
 unsigned int len = (unsigned int)jk_b_pget_int(op-reply,1);
 if ((code == JK_AJP13_SEND_BODY_CHUNK)  (len == 0)) {
 jk_log(l, JK_LOG_DEBUG, Received flushbuffer -- ignoring);
 continue;
 }
 }



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AJP Flush Packet causing text/plain output

2007-09-25 Thread Larry Reisler
I understand your hesitation.  I agree that my method was poor in terms of 
encapsulation, but was elegant in terms of its size, that it did not change any 
of the function signatures, and that it was easy to understand.

The holiday has begun here, and I am off for this week -- I will try to test 
the patch ASAP.

Thanks so much for your help.

Larry.



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 8:58 PM
To: Tomcat Users List
Subject: Re: AJP Flush Packet causing text/plain output

Hi Lary,

Larry Reisler wrote:
 Thanks for your reply.  There is a holiday here right now, so I'm not
 sure if I will be able to get to file the Bugzilla issue before the
 holiday break.

Maybe this time we are faster than our request ticketing ...

 We tried a few different versions of mod_jk (the early ones had other
 issues), but all the latest ones showed the problem.  We are
 currently using mod_jk 1.2.25.
 
 In desperation, I was able to create a patch to mod_jk that seems to
 prevent the symptom from occurring.  Here is the diff for the file
 jk_ajp_common.c: 1742,1751d1741 

 // Removing extra flush buffer if we do not need it.
 if (headeratclient == JK_FALSE) {
 int code = (int)jk_b_pget_byte(op-reply,0);
 unsigned int len = (unsigned int)jk_b_pget_int(op-reply,1);
 if ((code == JK_AJP13_SEND_BODY_CHUNK)  (len == 0)) {
 jk_log(l, JK_LOG_DEBUG, Received flushbuffer -- ignoring);
 continue;
 }
 }


I'm a little reluctant to use your approach. It should work, but the 
peeking for the message code and length does not belong into the get 
reply function. The best place for the patch would be in the callback 
handling, but there we don't know, if we already received the headers.

So either we pass some additional info to the callback handling (status 
info about the request processing stage), or we prevent the flushing 
later. I decided to move an already existing flag response_started 
from the web server private data to  the public service struct and use 
it inside the callback handler.

This patch was committted 
(http://svn.apache.org/viewvc?view=revrevision=579349). You can find a 
simple download form of it under

http://people.apache.org/~rjung/mod_jk-dev/patches/flush-before-header.patch

The patch looks lengthy, but in fact did only small changes.

It would be helpful, if you could try it with your reproduction scenario.

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AJP Flush Packet causing text/plain output

2007-09-24 Thread Larry Reisler
We recently switched our development JBOSS instance from 4.05GA to 4.21GA, 
where we are have been using mod_jk for connecting an Apache front end server 
(2.2) to the Tomcat AppServer. We have noticed periodic times when the apache 
web server will return data with a content-type of plain/text (the server 
default) instead of the real content-type, and a chunked encoding (even if the 
AppServer was producing a non-chunked content). We tried switch to 
mod_proxy_ajp, but got the same result. 

A bit of sleuthing (2 days X 2 engineers) revealed that the AJP connection on 
Tomcat is sending a SEND_BODY_CHUNK (which I assume is a flush packet) 
periodically that seem to be confusing mod_jk. We can see in the mod_jk and 
mod_proxy_ajp debug log that the correct headers are coming from the Tomcat 
server. However, it seems like mod_jk and mod_proxy_ajp are losing all the 
header information regarding the packet (including the Powered by headers, 
content-type, content-length, cookies, etc.). 

In normal operation, for a sample small transaction, we would see this sequence 
in response: 
SEND_HEADERS 
SEND_BODY_CHUNK 
END_RESPONSE 

When the output would come out as text/plain, we would see this sequence: 
SEND_BODY_CHUNK 
SEND_HEADERS 
SEND_BODY_CHUNK 
END_RESPONSE 

Is there something we should have configured differently so that mod_jk or 
mod_proxy_ajp will behave better?

 



Re: Something other than localhost on OS X

2007-07-26 Thread Larry Meadors

Why not just add that host name in /etc/hosts?

Larry


On 7/24/07, Colin H [EMAIL PROTECTED] wrote:

Hi,

I am trying to do something that I figure should be pretty simple -
accessing my tomcat container from something other than localhost.  So far
as I can tell, I should be adding a Host/ entry to server.xml with the
host I want to access tomcat as.  On OS X, hosts in the local subnet can be
accessed as hostname.local - so, for example, typing 'ssh
[EMAIL PROTECTED]' on host1 will ssh to host2 authenticating as someuser
(this is working - i.e. host2.local can be resolved form host1).  If you
type 'hostname' on host1, it returns 'host1.local'

   So the scenario is that I have tomcat deployed and working on host2 port
8080, and want to access it from host1.  I don't want to muck around with
apache and mod_jk etc.  Been there many times before, always find it
annoying.  In any case, I shouldn't need to, as far as I can tell, as tomcat
should be able to do the job.  I am adding the following to the
server.xmlfile, after the Host name=localhost  / entry -

Host name=host2.local autoDeploy=false deployOnStartup=false
deployXML=false configClass=
org.jboss.web.tomcat.security.config.JBossContextConfig
Valve className=org.jboss.web.tomcat.service.jca.CachedConnectionValve
cachedConnectionManagerObjectName=jboss.jca:service=CachedConnectionManager
transactionManagerObjectName=jboss:service=TransactionManager /
/Host

and would like the following URL

'http://host2.local:8080/context' to work from host1.  '
http://localhost:8080/context' already works from a browser on host2.

I realise I am using the tomcat embedded within JBoss, but it should be the
same - I have the following specific questions

1.  Is this the right approach in general (ignoring specific of JBooss or
whatever)?
2.  Is there something tricky about the OS X host naming mechanisms that
could be causing me some problems?
3.  Any other ideas why this might not be working?

Thanks,

Colin



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-07 Thread Larry Meadors

I think you'd be better off spending your time (== money) on CPU, RAM,
and disk space than doing this. It's one of those ideas that looks
good on paper, but sucks in practice.

Larry


On 6/7/07, rhodebump [EMAIL PROTECTED] wrote:


I have 5 war files, each containing the springframework, hibernate jars,
tapestry jars, lots of jars so that each war file is 30 megs.

I wonder, from a performance/memory perspective would it be better to move
these common library jars into the /tomcat/common/lib directory, or should I
keep them in their individual war file structures?

I understand how moving the stuff into /common/lib means everything uses the
save version, but what is best for performance?

Thanks!

--
View this message in context: 
http://www.nabble.com/30-Mb-of-common-jars-in-each-of-5-war-files%2C-should-i-consolidate--tf3884425.html#a11009847
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebApp really slow, Where do I start looking?

2007-06-01 Thread Larry Meadors

Are the database and the tomcat server on the same machine?

Can you explain a little more about your synchronized code? I have
done several really big web apps with iBATIS, and haven't needed to
sync anything...

Larry


On 6/1/07, Stéphane Hanser [EMAIL PROTECTED] wrote:

You are right about synchronized blocks. I removed every synchronized
instruction for tests purposes and it unleashed the cpu ;)

It may be a problem with memory too. By disabling the cache of iBatis I
noticed an overloading of the CPU, which is understandable considering the
circumstance.

However, removing some synchronized blocks will cause concurrent access
issues when a user mass clicks. Is it possible to configure tomcat to
queue one's requests instead of executing the in parallel ?

Thanks,

Stéphane H.

PS: thanks for the jmeter tip ;)


-Message d'origine-
De: David Delbecq [mailto:[EMAIL PROTECTED]
Envoyé: vendredi 1 juin 2007 10:59
À: Tomcat Users List
Objet: Re: WebApp really slow, Where do I start looking?

Considering CPU usage, it is not
1) a java memory problem, if java memory was full, garbage collector
would start using lots of cpu
2) a time consuming java code.

It might be one of following
1) synchronized blocks in your code, that would prevent 2 simultaneoous
users from doing some operations.
2) use of SingleThreadModel, which has same effect as above
3) Network congestion, you server simply can't send the response to
client due to a too small network pipe (80 requests / second resulting
each in an about 20k response need a bandwidth of more than 12Mbits)
4) A too small physical memory on system. Eg you configure tomcat to use
1G memory but your server has only 512M available, resulting in memory
pagination (swap) and sleeping of java process during pagination process
(typically, on unix server, you will see a high % of CPU dedicated to
system instead of idle when this happen)


One way to test your server performance during heavy is to use apache
jmeter.


En l'instant précis du 01/06/07 10:48, Stéphane Hanser s'exprimait en
ces termes:
 Hello,

 I've been working on my project for months now, it is my first WebApp
 project. Yesterday, I deployed the project on my dedicated server and
 a soon as I reached about 80 users, the webapp became really slow.
 However, the cpu usage of the server was very low (never more than
 15-20%). I have no idea of what is the cause of this slowness (server
 config, bad programming..).

 Can someone help me to diagnostic the problem? Where shoul I start
 looking?

 thanks in advance,

 Stéphane H.





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Getting 404 when trying to access default page in Tomcat when running in Eclipse

2007-05-16 Thread Larry Isaacs
A FAQ I've written has been submitted, but hasn't made it to
the Web Tools web site yet.  For the time being, the answer to
your question can be viewed here as Troubleshooting question #5:

https://bugs.eclipse.org/bugs/attachment.cgi?id=67392#trouble_5

Cheers,
Larry 

 -Original Message-
 From: Morten Simonsen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 16, 2007 4:13 AM
 To: users@tomcat.apache.org
 Subject: Getting 404 when trying to access default page in 
 Tomcat when running in Eclipse
 
 Hi
 
 I have tried everything I can think of, but can't make the 
 default page http://localhost:8080/ appear when I run Tomcat 
 inside Eclipse. When I run Tomcat outside Eclipse, then I get 
 the default page, no sweat! One difference I can see with my 
 naked eye, is that there is some kind of basic authentication 
 when I access the default page outside Eclipse, but no 
 authentication when I access the default page inside Eclipse. 
 
 I positive that the server.xml and web.xml are pretty correct 
 (I can find the definition for the default-servlet, the 
 web.xml is loaded, the server.xml is loaded, etc...) Still, 
 there is no response other than 404. I can also not find any 
 way to trigger a debug-mode (log) for the server. 
 
 I am getting pretty frustrated now, so if someone can please 
 help me, I would be very glad.
 
 thanks
 Morten Simonsen
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat5.5 is not starting on CENTOS 4

2007-05-14 Thread Larry Meadors

Try catalina.sh run and see if you get some more info.

Also make sure that all of those directories exist and that you have
adequate rights to them.

Larry


On 5/14/07, reym [EMAIL PROTECTED] wrote:


Hi All,

I have installed Tomcat5.5 on CENTOS 4, which is located on a remote
machine, and I have configured the environment variables, and everything
else. However when I try to start Tomcat, using this command:

 $CATALINA_HOME/bin/startup.sh

I only get as far as this (this is what is shown in PUTTY):

Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:   /usr/java/latest

And no further... What am i doing wrong??? Please advise. Thanks in advance.
I look forward to hearing from you somebody soon.

Kind regards.
--
View this message in context: 
http://www.nabble.com/Tomcat5.5-is-not-starting-on-CENTOS-4-tf3752519.html#a10604296
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem switching to port 80

2007-04-25 Thread Larry Meadors

Looks like something else is listening on port 80. Is IIS running?

Larry


On 4/25/07, John Pedersen [EMAIL PROTECTED] wrote:

Hi,

I have an app running fine on port 8080, but nothing works when I
switch to port 80 -

in server.xml, changing:

Connector port=8080 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 /

to

Connector port=80 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 /

I get this error message:

SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port)  is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
at 
org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
at org.apache.catalina.connector.Connector.start(Connector.java:1132)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:457)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler
start failed: java.lang.Exception: Socket bind failed: [730048] Only
one usage of each socket address (protocol/network address/port)  is
normally permitted.
at org.apache.catalina.connector.Connector.start(Connector.java:1139)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:457)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start

I guess there must be something else using port 80? but I can't see it
( tried netstat).

I am running W2000, tomcat 6.

Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
playing with settings, but am getting nowhere.

Any suggestions?

Thanks,

John

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot get a connection, pool exhausted

2007-04-23 Thread Larry Meadors

Simple question - are there more than 100 requests active when this happens?

Larry


On 4/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Now instead of set connection static i just create a new one for each query to 
perform, so if there are concurrent queries it shouldn't cause any problem:


   private Connection getConnection() throws Exception {
 // get context: provides the starting point for resolution of names
 Context ctx = new InitialContext();
 if (ctx == null) {
   throw new Exception(No Context);
 }
 // retrieve datasource
 DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/xxDB);
 if (ds == null) {
   throw new Exception(No Datasource);
 }
 // return db connection
 return ds.getConnection();
   }

   public void doSomething() {
 Connection con = null;
 Statement stmt = null;
 try {
   // get connection
   con = getConnection();
   if (con == null) {
 throw new Exception(No Connection);
   }
   stmt = con.createStatement();
   stmt.executeUpdate(UPDATE yy SET `zz`=0 WHERE `ww`='oo');
 }
 catch (Exception e1) {
   //
 }
 // close resources
 finally {
   try {
 stmt.close();
 stmt = null;
   }
   catch (Exception e2) {
 //
   }
   try {
 con.close();
 con = null;
   }
   catch (Exception e3) {
 //
   }
 }
   }

is there anything else i should change for getting the pool connection to work?
Thanks in advance.


-- Initial Header ---

From  : [EMAIL PROTECTED] [EMAIL PROTECTED]
To  : users users@tomcat.apache.org
Cc  :
Date  : Sat, 21 Apr 2007 10:08:21 +0200
Subject : Cannot get a connection, pool exhausted

 Hello,
 i'm trying to achieve DBCP with tomcat 5.5.9. I thought to have done things right since 
the application could connect to db, but after a night that the application was running, in 
the morning, in logs, i saw a lot of Cannot get a connection, pool exhausted 
errors.
 This is my configuration:

 SERVER.XML:

  Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
   Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener /

  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 maxHttpHeaderSize=8192 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 /
 Engine name=Catalina defaultHost=localhost
 Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase /
 Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true liveDeploy=true 
xmlValidation=false xmlNamespaceAware=false
   /Host
   /Engine
   /Service
   /Server

 CONTEXT.XML:

 Context path=/xx docBase=xx debug=5 reloadable=true 
crossContext=true
   Resource
 name=jdbc/xxDB
 auth=Container
 type=javax.sql.DataSource
 maxActive=100
 maxIdle=30
 maxWait=1
 username=user
 password=pass
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://127.0.0.1:3306/xx_xx?autoReconnect=true/
 /Context

 WEB.XML:


 ?xml version=1.0 encoding=UTF-8?
 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-namexx/display-name
   listener
 listener-classxxx.ApplicationWatch/listener-class
   /listener
   servlet
 servlet-namehtmlcontent/servlet-name
 servlet-classxxx.HtmlContentServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-namehtmlcontent/servlet-name
 url-pattern/htmlcontent.view/url-pattern
   /servlet-mapping
   resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/xxDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref
   security-constraint
 display-nameSecurity Constraint/display-name
 web-resource-collection
   web-resource-nameProtected Area/web-resource-name
   url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   role-namexx/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodBASIC/auth-method
 realm-nameProtected Area/realm-name
   /login-config
   security

RE: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread Larry Isaacs
The presence of /usr/share/tomcat5 in the servlet-api.jar
path suggests you are using a packaged install of Tomcat.  While
doing some Eclipse Web Tools testing on SUSE 10.x (I think 10.1),
the servlet-api.jar it was installed as a dependency of the
Tomcat install and was symlinked as [servletapi5].jar.  It worked
fine as a symlink, but for this install, you won't be able to use
standard (i.e. Apache Tomcat download equivalent) batch scripts
or names which aren't compatible with alterations made to create
the packaged Tomcat install.  There isn't enough info to tell why
startup is looking for a jar named servlet-api.jar.  The packaged
install wouldn't normally do that.

Cheers,
Larry

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 13, 2007 1:56 PM
 To: Tomcat Users List
 Subject: Re: Apache - tomcat connection on Suse Lnux
 
 Looks like the error says it all.  Tomcat can't find 
 servlet-api.jar in common/lib.  Check that it really exists 
 there and isn't a symlink. 
 Tomcat isn't known for tolerating symlinks all that well.
 
 --David
 
 dianelane wrote:
  On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 
  (coonector with Apache2) to run web applicatons.
  I do foolow the Apache Tomcat Coonector - webserver how-to, 
 but have errors.
 
  Java and Tomcat installed from Suse repository via YAst.
  mod_jk.so downloaded and stored in /usr/lib/apache2 
  /etc/tomcat5/base/workers.properties modified as follows ...
  #workers.tomcat_home=/var/tomcat3
  workers.tomcat_home=/usr/share/tomcat5
  #
  # workers.java_home should point to your Java installation. 
 Normally # 
  you should have a bin and lib directories beneath it.
  #
  #workers.java_home=/opt/IBMJava2-13
  workers.java_home=/usr/lib/java
  ...
 
  in /etc/apache2/httpd.con file added last line Include 
  /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
 
  /ets/tomcat5/base/server.xml modified as follows:
Listener 
 className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener
  
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
 Listener
  debug=0/
Listener className=org.apache.jk.config.ApacheConfig 
  modJk=/usr/lib/apache2/mod_jk.so /
 
  tomcat restarted with error 7 and log
  files
 
  start.log:
  Using CATALINA_BASE:   /srv/www/tomcat5/base/
  Using CATALINA_HOME:   /usr/share/tomcat5
  Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
  Using JAVA_HOME:   /usr/lib/jvm/java
 
  catalina.out:
  Bootstrap: Class loader creation threw exception
  java.lang.IllegalArgumentException: addRepositoryInternal:
  repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
  at
  
 org.apache.catalina.loader.StandardClassLoader.addRepositoryIn
 ternal(StandardClassLoader.java:957)
  at
  
 org.apache.catalina.loader.StandardClassLoader.init(Standard
 ClassLoader.java:153)
  at
  
 org.apache.catalina.startup.ClassLoaderFactory.createClassLoad
 er(ClassLoaderFactory.java:207)
  at
  
 org.apache.catalina.startup.Bootstrap.createClassLoader(Bootst
 rap.java:163)
  at
  
 org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstr
 ap.java:104)
  at 
 org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
  at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
  Caused by: java.util.zip.ZipException: No such file or directory
  at java.util.zip.ZipFile.open(Native Method)
  at java.util.zip.ZipFile.init(ZipFile.java:203)
  at java.util.jar.JarFile.init(JarFile.java:132)
  at java.util.jar.JarFile.init(JarFile.java:70)
  at
  
 org.apache.catalina.loader.StandardClassLoader.addRepositoryIn
 ternal(StandardClassLoader.java:944)
  ... 6 more
 
  Could you help me?
  thank you

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat policy file, advice and clarification please

2007-02-07 Thread Larry Isaacs
It is likely that some other class in your webapp is on the
stack when the permission check occurs and it causing the
check to fail.  You could try .../WEB-INF/- to expand
the grant to the entire webapp and see what happens.

To diagnose this kind of exception, you can add the following
system property to your Tomcat startup:

-Djava.security.debug=access,failure

In the volumes of log output created, search for access
denied.  A little beyond where you find this, look for
domain that failed.  That will tell you what is missing
the required permission.  Note that some permission failures
are normal and won't cause a problem.

Cheers,
Larry

 -Original Message-
 From: Hugues Ferland [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 06, 2007 5:30 PM
 To: users@tomcat.apache.org
 Subject: Tomcat policy file, advice and clarification please
 
 Hi,
 
 I have a Tomcat 5.5 installation on Debian Linux with Java 1.6.
 
 I have a web application that create its own connection to an 
 Oracle database. The ojdbc14.jar is included in the 
 WEB-INF/lib directory of the web application.
 
 Now with the default configuration with security enabled, a 
 SecurityException java.lang.RuntimePermission 
 getClassLoader is thrown.
 
 I tried to apply a security policy to ojdbc14.jar with grant 
 AllPermission, but without success. This is what I added to 
 /etc/tomcat5.5/policy.d/50user.policy:
 
 grant codeBase file:/the path to the web 
 application/WEB-INF/lib/ojdbc.jar {
permission java.security.AllPermission; }
 
 This did not work. One particularity of the web application 
 is that I do not deploy it with a war file. I created it 
 using a context xml file in 
 ${catalina.home}/conf/Catalina/localhost/context name.xml.
 
 Also the docBase point outside the ${catalina.home}.
 
 Of course, I'd like to know what I'm doing wrong... I looked 
 on google, tomcat-docs, and other places without any luck... 
 Maybe somebody could point me in the right direction? Or 
 better yet tell me what is wrong :)
 
 Thanks,
 
 Hugues
 
   
 -
 All new Yahoo! Mail
 -
 Get news delivered. Enjoy RSS feeds right on your Mail page.
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat policy file, advice and clarification please

2007-02-07 Thread Larry Isaacs
Hi Huges,

The standard Tomcat 5.5 policy file includes:

grant codeBase file:${catalina.home}/common/- {
permission java.security.AllPermission;
};

which grants permission to the common/endorsed jars.

It is possible for code to programmatically grant itself some
extra permissions, such as permission to use getClassLoader,
an not impose this permission on any of the classes involved
in the calling of this code.  In the absence of this programmatic
handling of permissions, all callers must have the permission,
i.e. all classes in the stack above where the permission check
occurs must have the permission.  It is likely that you have a
servlet, filter, listener, or some other class in your webapp
that is involved in calling ojdbc.jar.  Since it wasn't
being granted the getClassLoader permission, it was causing
the exception once permission was granted to ojdbc.jar.

Cheers,
Larry

 -Original Message-
 From: Hugues Ferland [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 07, 2007 3:30 PM
 To: Tomcat Users List
 Subject: RE: Tomcat policy file, advice and clarification please
 
 Hi Larry,
 
 Thank you very much!
 
 That was it. I'm not sure I understand well what the context 
 of a checkPermission is made of...  hum... Is it that  it 
 uses the context from the web apps to checkPermission...? 
 But then why is checkPermission for my jar in common/endorsed 
 succeed for getClassLoader but fail for SocketPermission? I 
 did not find anything for that in Tomcat's policies files.
 
 Thanks again for your help!
 
 Hugues
 
 
 Larry Isaacs [EMAIL PROTECTED] wrote: It is likely that 
 some other class in your webapp is on the stack when the 
 permission check occurs and it causing the check to fail.  
 You could try .../WEB-INF/- to expand the grant to the 
 entire webapp and see what happens.
 
 To diagnose this kind of exception, you can add the following 
 system property to your Tomcat startup:
 
 -Djava.security.debug=access,failure
 
 In the volumes of log output created, search for access 
 denied.  A little beyond where you find this, look for 
 domain that failed.  That will tell you what is missing the 
 required permission.  Note that some permission failures are 
 normal and won't cause a problem.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Hugues Ferland [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 06, 2007 5:30 PM
  To: users@tomcat.apache.org
  Subject: Tomcat policy file, advice and clarification please
  
  Hi,
  
  I have a Tomcat 5.5 installation on Debian Linux with Java 1.6.
  
  I have a web application that create its own connection to 
 an Oracle 
  database. The ojdbc14.jar is included in the WEB-INF/lib 
 directory of 
  the web application.
  
  Now with the default configuration with security enabled, a 
  SecurityException java.lang.RuntimePermission getClassLoader is 
  thrown.
  
  I tried to apply a security policy to ojdbc14.jar with grant 
  AllPermission, but without success. This is what I added to
  /etc/tomcat5.5/policy.d/50user.policy:
  
  grant codeBase file:/
  application/WEB-INF/lib/ojdbc.jar {
 permission java.security.AllPermission; }
  
  This did not work. One particularity of the web application 
 is that I 
  do not deploy it with a war file. I created it using a context xml 
  file in ${catalina.home}/conf/Catalina/localhost/.xml.
  
  Also the docBase point outside the ${catalina.home}.
  
  Of course, I'd like to know what I'm doing wrong... I looked on 
  google, tomcat-docs, and other places without any luck...
  Maybe somebody could point me in the right direction? Or better yet 
  tell me what is wrong :)
  
  Thanks,
  
  Hugues
  
 
  -
  All new Yahoo! Mail
  -
  Get news delivered. Enjoy RSS feeds right on your Mail page.
  
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
   
 -
 All new Yahoo! Mail
 -
 Get news delivered. Enjoy RSS feeds right on your Mail page.
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Context problem in tomcat 5.5

2006-12-05 Thread Larry Isaacs
The URL http://localhost:8080/samena/, in the absence of a
welcome file such as index.jsp, will request a directory
listing.  However, in Tomcat 5.5, directory listings are
disabled by default, which will result in the error you see.
I would guess that you either need to enable directory
listings (see the conf/web.xml file) or add a welcome file
to your webapp.

Also disabled is the non-spec legacy /servlet/classname
method of executing servlets, which may have allowed your
web.xml to work elsewhere. This is why servlet mappings
are needed to execute your servlets as noted by Chuck.

Cheers,
Larry 

 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 05, 2006 10:18 AM
 To: Tomcat Users List
 Subject: RE: Context problem in tomcat 5.5
 
  From: Rizwan Ahmad [mailto:[EMAIL PROTECTED]
  Subject: Context problem in tomcat 5.5
  
  When I startup tomcat it automatically unpacks war file but 
 when I try 
  to access my website using http://localhost:8080/samena/ it 
 says The 
  requested resource (/samena/) is not available.
 
 Your web.xml file is missing servlet-mapping entries.  Look 
 at the servlet spec for definition and the various Tomcat 
 web.xml files for examples.
 
  I also don't find any context name specified anywhere for 
  http://localhost:8080/servlets-examples/ provided with the tomcat.
 
 The context name is determined by the name of the directory 
 or .war file the application is in.  In the above case, 
 webapps/servlets-examples automatically results in the above context.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Webapp runs on Tomcat 5.5.9 but not 5.5.20

2006-11-06 Thread Larry Isaacs
Just in case, does your web application display a directory
listing in 5.5.9?  If so, be aware that directory listings
have been turned off in conf/web.xml for 5.5.20 (I forget in
which version this occurred) due to the potential of a DOS
attack if your web application contains lots of files.  Other
URLs that don't request a directory listing should work.

Cheers,
Larry

 -Original Message-
 From: John Langan [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 06, 2006 2:07 PM
 To: users@tomcat.apache.org
 Subject: Webapp runs on Tomcat 5.5.9 but not 5.5.20
 
 Webapp runs on Tomcat 5.5.9 but not 5.5.20
 
  
 
 I compile my war file using eclipse and it runs no problem on 
 Tomcat 5.5.9 but if I try to run the same war on 5.5.20 then 
 I get the error report
 
 The requested resource (/ProjectName/) is not available.
 
  
 
 I have tried various things with no luck including editing 
 C:\apache-tomcat-5.5.20\conf\server.xml,
 
 C:\apache-tomcat-5.5.20\conf\Catalina\localhost\context.xml and
 
 C:\apache-tomcat-5.5.20\conf\Catalina\localhost\ProjectName.xml.
 
  
 
 I'm really stumped so any suggestions as to why an identical 
 webapp runs on one version of Tomcat but not a more recent 
 one would be gratefully received.
 
 I'm using Struts, Windows XP and JDK 1.5.0_09.
 
  
 
 John.
 
  
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache with Windows 98

2006-10-26 Thread Larry Meadors

Dude, that is just sick and wrong.

Larry


On 10/26/06, Eric [EMAIL PROTECTED] wrote:

is it possible to run apache 3.3 and 4.1 in windows 98? if so, can you
please teach me on how to configure it to run in windows 98 platform?
thanks.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: run php jsp on the same server

2006-10-16 Thread Larry Meadors

Why not just run resin with quercus? Works pretty much outta the box.

Larry


On 10/16/06, Steve Ochani [EMAIL PROTECTED] wrote:

On 16 Oct 2006 at 16:12, Christopher Schultz wrote:


 I seem to recall some hack to get PHP actually running /inside/
 Tomcat. Am I smoking crack, or was that real? Sounds like a damn sexy
 hack if it's true.

I've seen it mentioned here and there.

Google search turned up some interesting results, including:

http://wiki.apache.org/tomcat/UsingPhp


-Steve O.





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: run php jsp on the same server

2006-10-16 Thread Larry Meadors

OK, pay one way (with cash) or another (with time)...which can you make more of?

:-)

Larry


On 10/16/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Larry Meadors
 Subject: Re: run php  jsp on the same server

 Why not just run resin with quercus? Works pretty much outta the box.

Probably because of the following quote from Caucho's download page:

Resin Professional is commercial software. Users must purchase
deployment licenses, allowing us to develop and support the highest
quality web application software.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Classloader Question

2006-10-10 Thread Larry Isaacs
Since you are using Tomcat 5, check out the shared.loader
property specified in the catalina.properties file of your
Tomcat instances.  You could change it to use catalina.home
instead of catalina.base, or add an additional path.

Cheers,
Larry

 -Original Message-
 From: Fran Varin [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 10, 2006 12:49 PM
 To: users@tomcat.apache.org
 Subject: Classloader Question
 
 
 We are running multiple Tomcat 5.5 instances as Windows 
 services. We have some .jar files that are common between the 
 multiple Tomcat instances. We have been searching for a way 
 to configure Tomcat in such a way where we could share the 
 .jar files across those multiple instances. 
 
 According to what we understand about the Tomcat class 
 loaders, we could place the .jar files at the java_home 
 level. But, this is not advisable since it really is intended 
 to be used for runtime system support. We currently have the 
 .jar files placed in the shared/lib path. This allows us 
 access to the .jar files from each application within a given 
 instance of Tomcat. But, we cannot share those .jar files 
 across Tomcat instances. 
 
 Is there a location where we could store .jar files with the 
 intent of sharing them with multiple running instances of 
 Tomcat and each one's associated application? 
 --
 View this message in context: 
 http://www.nabble.com/Classloader-Question-tf2417987.html#a6740606
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat plugin sysdeo

2006-09-27 Thread Larry Isaacs
Feel free to ask Web Tools questions on the Web Tools newsgroup,
see http://www.eclipse.org/newsgroups/.  Other comments below.

Cheers,
Larry

 hallo,
 
 thanks for the antworts.
 
 after first Antwort. i have installed the WTP plugin and it 
 seems good to work with servlets. but i have some problems with jsps :
 
 i make a new project -- dynamic web project
 
  then i can add a new servlet  to this project and i can test 
 it under eclipse (in this case what i must to do is only edit 
 the web.xml file). 
 this is really good but my question ist.
 the folder architecture is not the same as the architecture 
 under tomcat. but if i make a war file from my eclipse 
 project than it works under tomcat. can this directory 
 differences make a problem??

No.  Assembly of the project into a webapp image occurs when you
do certain things with the project, like export it as a WAR file
or publish it to a server.

 
 the second question is :
 how can i add a jsp to this project???

Just create the JSP file in the WebContent folder or a subfolder
of that folder.  You can use File - New - Other - Web - JSP to
get the built-in JSP templates that are available.

 
 if i add a servlet, it will be placed under src folder but if 
 i try to add a jsp then i must to place it under Webcontent. 
 make it a problem ??? and must i edit the web.xml file for 
 jsp file too???

This is not required if you access the JSP by its name.  It is
possible to create a declaration and mapping that will allow
you to access the JSP using a URL of your own design.  At least
for the portion beyond the context name of the URL.

 
 and another question. this is not a tomcat question but maybe 
 can anybody give me an answer.
 
 i want to use jsp servlet and ejb. for example with a html 
 form i will take the login information from an user and then 
 make a connection with the DB and check whether this info 
 true is or not.
 in this scenario what is for what responsible???
 should ejb with the DB communicate?if yes how can i realize it?
 
 only the logic :) not the code :)
 
 thanks a lot
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Usage of Ibatis in production

2006-07-29 Thread Larry Meadors

I was a Hibernate (2.x) user before finding out about iBATIS.

Hibernate has it's place, but for high-performance, nothing beats
iBATIS and hand-written SQL.

It is certainly worth your time to look into.

Larry


On 7/29/06, Phil (waex) [EMAIL PROTECTED] wrote:

Hi,
Sorry for if this question is slightly off topic, I'm revisiting my work
practices at the moment and I'm considering the usage of various frameworks
to replace hand coding.
I was wondering if any of the users in the list use Ibatis in production /
commercial systems for data persistence to RDB, or if someone have some
dreadful stories prevent me from looking further into it. It looks to me
that it is quite easy to use and the learning curve is not as steep as
Hibernate for instance.

Thanks,
Philippe



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Usage of Ibatis in production

2006-07-29 Thread Larry Meadors

I almost agree, but one point of clarification: iBATIS is not ORM,
which is a way to map tables and views to Java beans.

iBATIS is SQL mapping, and there are a few key differences. First and
foremost is that you can map from anything to anything.

Not just tables and views to beans, but also queries or stored
procedures to beans or Maps or even XML - one way to look at iBATIS is
just as JDBC made simple. No more connection /statement/resultset
resource management, no more indexed parameter mapping, no more
StringBuilder SQL statement builders. Just simple (or complex) SQL
mapped to java objects.

For some interesting reading on why I use tools like iBATIS instead of
ORM tools, here are some articles on the topic...

http://www.codinghorror.com/blog/archives/000621.html

http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx

Larry


On 7/29/06, Tomi NA [EMAIL PROTECTED] wrote:

On 7/29/06, Phil (waex) [EMAIL PROTECTED] wrote:
 Hi,
 Sorry for if this question is slightly off topic, I'm revisiting my work
 practices at the moment and I'm considering the usage of various frameworks
 to replace hand coding.
 I was wondering if any of the users in the list use Ibatis in production /
 commercial systems for data persistence to RDB, or if someone have some
 dreadful stories prevent me from looking further into it. It looks to me
 that it is quite easy to use and the learning curve is not as steep as
 Hibernate for instance.

Use whatever ORM technology you like - iBatis, Hibernate, Cayenne -
just don't fall back to writing volumes of mixed Java or JSP and SQL
code.
You'll always be able to handcode (e.g. in stored procedures) a couple
of critical points of your application, but for most applications,
you'll be jumping for joy working with clean OO code, leaving all the
gory details (sql injection, statement construction etc.) to the ORM
framework.

Cheers,
t.n.a.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat , wondoze , Unable to find a javac compiler;

2006-07-27 Thread Larry Meadors

Might be the space...

Larry


On 7/27/06, Randy Paries [EMAIL PROTECTED] wrote:

unfortuntaly i have to setup tomcat on windoze.
i have it working on tons of linux boxs, and this has been a royle
pain. Ok enough whinning.

so when i try to display a jsp is get the error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


in the tomcat monitor i have Use default selected

in the XP env vars i have
CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04

so what have i missed

Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Installation Trouble

2006-06-12 Thread Larry Meadors

When I click on that link, I get an error that looks nothing like a
tomcat error - something else is running on port 8080, so you have 2
options:

1) Edit $CATALINA_HOME/conf/server.xml to run on another port

-or-

2) Kill (or reconfigure) the other app listening on port 8080

Larry


On 6/12/06, omkar tilak [EMAIL PROTECTED] wrote:

Hi,
   I'm trying to install Tomcat on one our department servers. I've
already un-tared the tomcat distribution into folder
/opt/research/apache-tomcat-5.5.17. Accordingly, my CATALINA_HOME
variable is set to /opt/research/apache-tomcat-5.5.17 and JAVA_HOME
variable is set to /usr/local/java/jdk1.5.0_03. But even after starting
up tomcat using startup.sh, http://magellan.cs.iupui.edu:8080/ URL
gives me Error: 404
Location: / File Not Found / . Any suggestions to get tomcat working
properly? Thanks




Duncan is in his grave;
After life's fitful fever he sleeps well;
Treason has done his worst: nor steel, nor poison,
Malice domestic, foreign levy, nothing,
Can touch him further.

Macbeth: Act 3: Scene 2
The palace.
=
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP Compilation Errors - Tomcat 5.5.17

2006-05-31 Thread Larry Isaacs
This implies you are picking up older Servlet 2.2/JSP 1.1
API classes somehow, which is overriding the desired
Servlet 2.4/JSP 2.0 API classes.  The API classes are
backward compatible, but not forward compatible as this
case illustrates.  I don't know enough about Fedora to
say how this could come about with what you are copying
to the second system.  It does imply the classpath isn't
what you are assuming it to be.  Check around for j2ee.jar
or servlet.jar somehow getting into the picture.  HTH.

Cheers,
Larry

 -Original Message-
 From: AC [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 31, 2006 1:48 PM
 To: users@tomcat.apache.org
 Subject: JSP Compilation Errors - Tomcat 5.5.17
 
 Hi,
 
 I'm working on setting up a couple of new webservers -- 
 Fedora with Apache 2.2.2, jdk 1.5.0_06 and tomcat 5.5.17.  I 
 successfully got everything working on the first, and then 
 tar'd up the entire setup (all 3 apps are on a dedicated 
 filesystem) and copied it over to the second machine.  When I 
 untar'd it and it started up, it's unable to compile any jsp 
 pages...gives the
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 Generated servlet error:
 The method handlePageException(Exception) in the type 
 PageContext is not applicable for the arguments (Throwable)
 
 error.
 
 I've tried reinstalling the O/S to no avail, as well as the 
 apache/java/tomcat, but it just doesn't seem to want to work.
 
 Any ideas?
 
 Thanks
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To 
 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need inputs on connection pool

2006-04-05 Thread Larry Meadors
Calling close() on a pooled connection simply returns it to the pool,
however, i have seen some cases where calling ti twice closes it for
real. Don't do that.

If you are interested in other options that eliminate that concern,
you may want to try iBATIS - you would still use SQL, but it manages
the connections, statements, resultsets, etc, and maps the results of
the SQL to objects.

Larry


On 4/5/06, Abh N [EMAIL PROTECTED] wrote:
 Hi,

   we are implementing the connection pooling in our application.

   connections are taken from the data source.

   After getting the connection i need to confirm whether i have to explictly 
 close the connection
like conn.close ()

   i want to know in above case whether connection will be release to the pool 
 or will get closed.

   i have a doubt as in above case the connection might be getting closed and 
 might not be available for re-use.




 -
  Jiyo cricket on Yahoo! India cricket
 Yahoo! Messenger Mobile Stay in touch with your buddies all the time.


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



Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-01 Thread Larry Meadors
Sounds like you may have a JRE instead of a JDK.

From a command like do:
 cd $JAVA_HOME
 find -iname javac

You should see one listed as './bin/javac' after running that second command.

Larry



On 4/1/06, Martin Schulz [EMAIL PROTECTED] wrote:
 My webapps needs to access the javac compiler classes from tools.jar.

 This appears to work on dev environment on Windows, but it doesn't
 in a deployment environment:
 Solaris 9
 JDK 1.5.0_06

 The app hits a java.lang.ClassNotFoundException: com.sun.tools.javac.Main

 According to the documentation, tools.jar should always be in the
 class path:
 http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 Looking at the startup scripts (I think I saw it in the doumentation too
 somewhere) there is a 'javac' option (in catalina.sh), which appears
 to be in some state of disrepair.  At least the order of arguments
 passed from startup.sh does not match how catalina.sh looks at the args,
 nor does catalina.sh actually consume the 'javac', or evaluate it
 as a valid command.

 I guess I'm confused at this stage as to what to believe and how to proceed.

Martin

 -
 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: shared/lib problem

2006-03-11 Thread Larry Meadors
Unless you *HAVE* to put jars in common/lib or shared/lib, don't.

You'll save a few bytes of disk space, but waste more time on goofy
classloding crap (like this) that will end up costing you more than
added disk space would.

Larry


On 3/10/06, Iratxe Etxeberria Sainz-Ezquerra
[EMAIL PROTECTED] wrote:
 I have a problem with libraries in shared/lib. I am using tomcat
 5.0.28. I have some libraries of the application, (for example
 spring-aop.jar..). When I have these libraries in application: in
 ..WEB-INF/lib they are loaded ok.

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



RE: [tomcat] : request.setCharacterEncoding (UTF-8) doesn't work ?

2006-03-07 Thread Larry Isaacs
Assuming you are using a version of Tomcat 5, you will have to
modify something on the Connector to fix this, easily.

If you want request.setCharacterEncoding(UTF-8) to affect the
encoding of GET query parameters (not just POST parameters),
then you must set useBodyEncodingForURI=true on the Connector.
The default value of useBodyEncodingForURI is false for
Tomcat 5, so GET query parameters are assumed to be encoded
according to the URIEncoding attribute setting and
setCharacterEncoding() doesn't effect their encoding.

Cheers,
Larry

 -Original Message-
 From: sol myr [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 5:11 AM
 To: users@tomcat.apache.org
 Subject: [tomcat] : request.setCharacterEncoding (UTF-8) 
 doesn't work ?
 
 Hi,

   I'm having a problem with  
 HttpServletRequest.setCharacterEncoding(UTF-8).
   Basically, tomcat seems to ignore it completely, and assume 
 latin1 encoding.

   Here's the details:

   - I have an html  form  where user should type data in *Chinese*.

   - The browser (IE6) knows that the form data should be sent 
 to the server, encoded as  UTF-8  ( this encoding is 
 mentioned in my content-type as well as in  from 
 accept-charset=UTF-8  ).

   - I can actually see that the browser  sends the data 
 correctly (this is a GET, so I can see the encoding)... 

   - On the servlet size, I write:
 request.setCharacterEncoding(UTF-8);
 String p=request.getParameter(name);

   Unfortunatelly, this simply doesn't work.  Tomcat reads the 
 parameters as if they were latin1 ... I can extract them by 
 forcefully converting back to utf-8, but it's ugly and not portable...

   I know you can configure tomcat's  Connector   to use 
 utf-8, but I really don't want to do it ( client has a 
 standard Tomcat installation, and I'm absolutely not allowed 
 to touch it).
   Is there any reason why tomcat would ignore my 
 request.setCharacterEncoding ? 
   Am I doing something wrong, or is Tomcat just ignoring the  
 j2ee spec in this point ?

   Thanks
 
   
 -
 Brings words and photos together (easily) with  PhotoMail  - 
 it's free and works with Yahoo! Mail.
 

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



RE: Tomcat 3 -- servlets don't reload..

2006-03-01 Thread Larry Isaacs
I has been quite a while since I have used Tomcat 3.3.x.
My recollection is that accessing the changed servlet would
trigger a reload of the webapp.  This differs from the newer
Tomcats which have a background thread checking for changes.
Also, with a default configuration, I don't recall anything
special that was needed beyond setting the context to be
reloadable.  I can't say why this isn't working for you.

As for the manager, Tomcat came with an admin webapp.  However,
it never got far enough along to be worthy of its own manual.
It's mentioned briefly in the User's Guide, but I think that is
about it.  If you want a real manager/admin webapp, you will
need to upgrade to a newer Tomcat.

Cheers,
Larry

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Frances
 Sent: Tuesday, February 28, 2006 12:49 PM
 To: users@tomcat.apache.org
 Subject: Tomcat 3 -- servlets don't reload..
 
 when I make changes to a servlet I don't see changes unless I 
 turn tomcat off and on...  this is a huge pain, it's at work, 
 where we can't be turning Tomcat off and on all day long 
 whenever we make changes to a servlet..  Is there a way 
 around this?  (Does Tomcat 3 come with a Manager?  I can't 
 find manager-howto.html among docs (which does come with 
 Tomcat 5..)  many thanks..
 
 Frances
 
 
 -
 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: starting tomcat with opts - FC4

2006-02-19 Thread Larry Meadors
I would think $CATALINA_HOME/bin/setenv.sh - it is an optional file,
and gets called by $CATALINA_HOME/bin/catalina.sh (in the standard
tomcat distribution).

Larry


On 2/19/06, kevin [EMAIL PROTECTED] wrote:
 Where is the best place of RHFC5 to add the code to start tomcat5 with 
 CATALINA_OPTS=-Djava.awt.headless=true

 Would it be in the dtomcat5 script in /usr/bin

 Thanks

 KP


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



RE: ClassLoader/Security Manager Question

2006-01-20 Thread Larry Isaacs
For reasons that are difficult to predict or calculate,
some other protection domain (i.e. codeBase) for somebody
in the stack may be missing this permission.  I've given
up trying to figure these out after the obvious doesn't
fix it.

Try adding:

 -Djava.security.debug=access,failure

to your Tomcat startup arguments.  Hopefully you can capture
the output around the point of failure.  There will be a lot
of output.

Look for access denied.  That will give you the missing
permission.  Not to far below that you can find the domain
that failed, which will give you the codeBase missing the
permission.  It is not unusual to see something unexpected.
Somewhere below that you can see the permissions that this
domain does currently have.  This is where you might find that
a permission you tried to grant has a typo, so it doesn't serve
its purpose.  Give it a try and see if anything turns up.

Cheers,
Larry

 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 20, 2006 3:46 PM
 To: 'Tomcat Users List'
 Subject: ClassLoader/Security Manager Question
 
 I'm trying to get my app to run under the security manager 
 and I'm hitting some problems. 
 
 I have class B, derived from class A, in Jar B in the 
 WEB-INF/lib directory
 
 Class A is in Jar A in the shared/lib directory.
 
 I created an entry in the catalina.policy file:
 
 grant codeBase file:${catalina.base}/shared/- {
 permission java.lang.RuntimePermission 
 accessClassInPackage.*;
 permission java.security.AllPermission; };
 
 When a method defined in Class A uses reflection to get the 
 constructors for Class B, the following error message happens:
 
 01/20/2006 13:24:36 java.security.AccessControlException: 
 access denied (java.lang.RuntimePermission 
 accessDeclaredMembers) at 
 java.security.AccessControlContext.checkPermission(AccessContr
 olContext.java
 :264)
 at 
 java.security.AccessController.checkPermission(AccessControlle
 r.java:427)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
 at 
 java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
 at java.lang.Class.checkMemberAccess(Class.java:2125)
 at java.lang.Class.getDeclaredConstructor(Class.java:1952)
 
 I've done some research and it seems like what I'm trying to 
 do should work if I specify accessClassInPackage. I've tried 
 explicitly setting the class A package in the 
 accessClassInPackage statement but I'm not making any headway.
 
 I would rather not put Jar A in WEB-INF/lib because I have 
 something like 100 contexts that all use that jar and I'm 
 already hitting issues with PermGenSpace. I also can't put 
 Jar B in shared/lib because of design (or lack thereof).
 
 Does anyone have any ideas (other than the obvious one of 
 putting Jar A in WEB-INF/lib)?
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
  
 
 
 -
 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: Error loop for R - Tomcat 3.3.1a

2006-01-10 Thread Larry Isaacs
Sid,

The code where the exception is occurring is:

private final String getAbsolutePathRelativeToContext(String 
relativeUrlPath) {
String path = relativeUrlPath;

if (!path.startsWith(/)) {
String uri = (String) 
request.getAttribute(javax.servlet.include.servlet_path);
if (uri == null)
uri = ((HttpServletRequest) request).getServletPath();
401 String baseURI = uri.substring(0, uri.lastIndexOf('/'));
path = baseURI+'/'+path;
}

return path;
}

The code is trying to convert the weblmpagetop.jsp relative
path to a path from the root of the webapp.  What Jasper has to
work with to establish where weblmpagetop.jsp is located is
failing the uri.lastIndexOf('/').  This suggests the problem
is related to the forwards that are occurring prior to reaching
the include.  Perhaps there is something that needs to start with
a '/' that doesn't.

I can't say that this isn't due to a quirk, bug, or spec ambiguity,
as opposed the webapp doing something wrong with respect to
the Servlet 2.2 spec.  It sounds like you are stuck with 3.3.1
as is.  Hopefully a reasonable workaround can be found.

Cheers,
Larry
 

 -Original Message-
 From: Siddhartha Mehta [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 10, 2006 1:50 AM
 To: users@tomcat.apache.org
 Subject: Error loop for R - Tomcat 3.3.1a
 
   I am currently working on a web application that uses 
 Tomcat 4.1.27 and JDK 1.4.2_03.
 
 The same piece of code now needs to be supported on Tomcat 
 3.3.1 and JDK 1.4.2_08. I managed to get the classes, jsps 
 coompile and built by modifying the ant script. In fact even 
 the application runs perfect and the functionalities are 
 working as expected. Although, all is not good as it seems 
 so. In the backend, the tomcat - startup windows isn't quite 
 happy with the changes. I repeatedly get the following error 
 and I can make out very little from it.
 
 I can think of possible cause as this code in my jsp but not 
 really sure:
 
 
 jsp:include page=weblmpagetop.jsp flush=true
  jsp:param name=disable-session-validation value=true /
  jsp:param name=body-title-text value=%= title % /
  jsp:param name=body-location-text value=%= location 
 % / /jsp:include 
 
 Exception thrown in tomcat-start up window is below:
 
 2006-01-10 11:48:04 - Ctx(/WebLM) : Exception in R( /WebLM + 
 /weblmlogin.jsp + n
 ull) - javax.servlet.ServletException: String index out of range: -1
 at 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
 textImpl.java:460)
 at com.avaya.weblm.weblmlogin._jspService(Unknown Source)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
 :574)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
 at org.apache.tomcat.core.Handler.service(Handler.java:235)
 at 
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
 85)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispa
 tcherImpl.java:272)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatc
 herImpl.java:174)
 at 
 com.avaya.weblm.WebLMServlet.forwardToNextPage(Unknown Source)
 at com.avaya.weblm.WebLMClientLogin.doPost(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
 :574)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
 at org.apache.tomcat.core.Handler.service(Handler.java:235)
 at 
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
 85)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispa
 tcherImpl.java:272)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatc
 herImpl.java:174)
 at 
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
 a:423)
 at com.avaya.weblm.weblmlogin._jspService(Unknown Source)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
 :574)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
 at org.apache.tomcat.core.Handler.service(Handler.java:235)
 at 
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
 85)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispa
 tcherImpl.java:272)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatc

RE: Error loop for R - Tomcat 3.3.1a

2006-01-10 Thread Larry Isaacs
I'm afraid I don't have any simple guesses as to
what to change.  It appears there are multiple forwards
occurring and it may be the multiple that is the
root cause of this behavior.  You can experiment with
changes to see what happens, or try to run tomcat in
a debugger to see if you can determine what
((HttpServletRequest) request).getServletPath() is
returning and why it doesn't have the expected '/'.
If you want to try the latter, source for Tomcat 3.3.1
or 3.3.1.a can be found here:

http://archive.apache.org/dist/tomcat/tomcat-3/archive/

An alternative to debugging is to create a classes
directory under lib/container and extract the source
for PageContextImpl into the package appropriate
subdirectory.  Then add System.out.println()s, and
compile.  When Tomcat is run, the PageContextImpl under
classes will take precedence over the one in
jasper.jar, allowing you to gather clues.

HTH,
Larry


 -Original Message-
 From: Siddhartha Mehta [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 10, 2006 8:51 AM
 To: Tomcat Users List
 Subject: RE: Error loop for R - Tomcat 3.3.1a
 
 Hey Larry,

   Finally a refresh click brought a smile on my face :-)

   Yeah, it is one of those scenarios where people want 
 backward support as against to moving forward.

   One thing that I dont understand is that the UIs are 
 working very well. In fact I am able to change the password 
 (that is when these exceptions are thrown) and is updated as 
 well. Then why this backend exception. Any thoughts here?

   Also, there is a forward that is called before the 
 include as you pointed out. Do you have any ideas on what 
 tweaking I can try?

   Thanks again for your reply.

   Sid

   
 
 Larry Isaacs [EMAIL PROTECTED] wrote:
   Sid,
 
 The code where the exception is occurring is:
 
 private final String getAbsolutePathRelativeToContext(String 
 relativeUrlPath) { String path = relativeUrlPath;
 
 if (!path.startsWith(/)) {
 String uri = (String) 
 request.getAttribute(javax.servlet.include.servlet_path);
 if (uri == null)
 uri = ((HttpServletRequest) request).getServletPath();
 401 String baseURI = uri.substring(0, uri.lastIndexOf('/')); 
 path = baseURI+'/'+path; }
 
 return path;
 }
 
 The code is trying to convert the weblmpagetop.jsp relative 
 path to a path from the root of the webapp. What Jasper has 
 to work with to establish where weblmpagetop.jsp is located 
 is failing the uri.lastIndexOf('/'). This suggests the 
 problem is related to the forwards that are occurring prior 
 to reaching the include. Perhaps there is something that 
 needs to start with a '/' that doesn't.
 
 I can't say that this isn't due to a quirk, bug, or spec 
 ambiguity, as opposed the webapp doing something wrong with 
 respect to the Servlet 2.2 spec. It sounds like you are stuck 
 with 3.3.1 as is. Hopefully a reasonable workaround can be found.
 
 Cheers,
 Larry
 
 
  -Original Message-
  From: Siddhartha Mehta [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, January 10, 2006 1:50 AM
  To: users@tomcat.apache.org
  Subject: Error loop for R - Tomcat 3.3.1a
  
  I am currently working on a web application that uses Tomcat 4.1.27 
  and JDK 1.4.2_03.
  
  The same piece of code now needs to be supported on Tomcat
  3.3.1 and JDK 1.4.2_08. I managed to get the classes, jsps coompile 
  and built by modifying the ant script. In fact even the application 
  runs perfect and the functionalities are working as expected. 
  Although, all is not good as it seems so. In the backend, 
 the tomcat - 
  startup windows isn't quite happy with the changes. I 
 repeatedly get 
  the following error and I can make out very little from it.
  
  I can think of possible cause as this code in my jsp but not really 
  sure:
  
  
  
  
   name=body-title-text
   % name=body-location-text
  
  Exception thrown in tomcat-start up window is below:
  
  2006-01-10 11:48:04 - Ctx(/WebLM) : Exception in R( /WebLM + 
  /weblmlogin.jsp + n
  ull) - javax.servlet.ServletException: String index out of 
 range: -1 
  at 
  
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
  textImpl.java:460)
  at com.avaya.weblm.weblmlogin._jspService(Unknown Source) at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
  at
  
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
  :574)
  at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
  at org.apache.tomcat.core.Handler.service(Handler.java:235)
  at
  
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
  85)
  at
  
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispa
  tcherImpl.java:272)
  at
  
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatc
  herImpl.java:174)
  at
  com.avaya.weblm.WebLMServlet.forwardToNextPage(Unknown Source) at 
  com.avaya.weblm.WebLMClientLogin.doPost(Unknown Source

Re: How to get Novell Id in Tomcat/Java

2006-01-09 Thread Larry Meadors
You can't unless they have authenticated to the web app, you do not
know who they are.

So, which is it then: We are not doing any kind of authentication
since this is running on the Intranet and all employees have access to
this application. or Oracle 9i DB User authenication?

I am confused...

:-D

Larry


On 1/9/06, Ritchie Gillam [EMAIL PROTECTED] wrote:
 I have already searched the archives but have found nothing related to my 
 problem.

 I have a Phone Directory Java Application running on our Intranet.   If a 
 user requires a change to their Phone record or someone else they send an 
 email to our Call Centre requesting the change.   How can I get the Novell Id 
 of the user and use it as the FROM email address to show who the email is 
 coming from?

 All I have read is about Active Directory and JNDIRealms which we are not 
 using.

 We are not doing any kind of authentication since this is running on the 
 Intranet and all employees have access to this application.

 Oracle 9i DB User authenication.
 Tomcat 5.5.7
 JDK 1.5.0
 Sun Solaris 9

 Thanks in advance


 Ritchie





 -
 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: UnsupportedClassVersionError

2005-12-08 Thread Larry Isaacs
I believe the message:

java.lang.UnsupportedClassVersionError: 
com/sun/tools/javac/Main (Unsupported major.minor version 49.0)

indicates that while running with 1.4.2, you are attempting to
use a tools.jar from a JDK 1.5.x.  The simplest way I know to
encounter this is to install Tomcat using the exe on Windows
with JAVA_HOME pointing to a JDK 1.5.x.  During the installation
process, tools.jar will be copied from the JDK to the
common/lib directory of the installation.  As long as you use
this installation with 1.5 you are okay.  But if you switch
back to using 1.4.x, you will get this symptom because 1.4
doesn' know how to load the newer format classes in the 1.5
tools.jar.

Assuming the diagnosis above is correct, how to address this
depends on how you are running Tomcat.  If running as a service,
I think the only option is to overwrite the tools.jar in
common/lib with a version from JDK 1.4.x.  If running using
batch scripts, and don't care about running it as a service,
I believe you can delete the tools.jar in common/lib and
ensure your JAVA_HOME points to a JDK.

HTH.

Cheers,
Larry

 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, December 08, 2005 8:06 AM
 To: 'Tomcat Users List'
 Subject: UnsupportedClassVersionError
 
 Hi,
 
  
 
 I recently uploaded an updated Struts application to a remote 
 server. Now I get this message (below: 
 UnsupportedClassVersionError). I am using Tomcat 5.0.27. I do 
 have 5.5 on that system, but everything points to 5.0.27 (as 
 far as I can tell). I am running Java 1.4.2_01_b06. I have 
 the same setup on my dev machine--except Tomcat 5.5 is not on 
 that system--and everything works fine. 
 
  
 
 Thanks for your help.
 
  
 
 (I already tried to email this under the wrong email address. 
 Sorry if both show up.)
 
  
 
 2005-12-08 04:30:59 
 NamingContextListener[/Catalina/localhost]:   Resource
 parameters for jdbc/portal = ResourceParams[name=jdbc/portal, 
 parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory,
 maxWait=1, maxActive=10, password=small1, 
 url=jdbc:mysql://127.0.0.1:3306/fortune?autoReconnect=true,
 driverClassName=com.mysql.jdbc.Driver, maxIdle=5, username=fortune}]
 
  
 
 2005-12-08 04:30:59 
 NamingContextListener[/Catalina/localhost]:   Adding
 resource ref jdbc/portal
 
  
 
 2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:
 ResourceRef[className=javax.sql.DataSource,factoryClassLocatio
 n=null,factory
 ClassName=org.apache.naming.factory.ResourceFactory,{type=scop
 e,content=Shar
 eable},{type=auth,content=Container},{type=factory,content=org
 .apache.common
 s.dbcp.BasicDataSourceFactory},{type=maxWait,content=1},{t
 ype=maxActive,
 content=10},{type=password,content=small1},{type=url,content=j
 dbc:mysql://12
 7.0.0.1:3306/fortune?autoReconnect=true},{type=driverClassName
 ,content=com.m
 ysql.jdbc.Driver},{type=maxIdle,content=5},{type=username,cont
 ent=fortune}]
 
  
 
 2005-12-08 04:30:59 
 NamingContextListener[/Catalina/localhost]:   Resource
 parameters for mail/Session = 
 ResourceParams[name=mail/Session, 
 parameters={mail.smtp.host=mars.webappcabaret.net}]
 
  
 
 2005-12-08 04:30:59 
 NamingContextListener[/Catalina/localhost]:   Adding
 resource ref mail/Session
 
  
 
 2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:
 ResourceRef[className=javax.mail.Session,factoryClassLocation=
 null,factoryCl
 assName=org.apache.naming.factory.ResourceFactory,{type=scope,
 content=Sharea
 ble},{type=auth,content=Container},{type=mail.smtp.host,conten
 t=mars.webappc
 abaret.net}]
 
  
 
 2005-12-08 04:30:59 
 NamingContextListener[/Catalina/localhost]:   Resource
 parameters for UserTransaction = null
 
  
 
 2005-12-08 04:32:43 StandardWrapperValve[jsp]: 
 Servlet.service() for servlet jsp threw exception
 
  
 
 java.lang.UnsupportedClassVersionError: 
 com/sun/tools/javac/Main (Unsupported major.minor version 49.0)
 
  
 
   at java.lang.ClassLoader.defineClass0(Native Method)
 
  
 
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
 
  
 
   at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:123)
 
  
 
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 
  
 
   at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
 
  
 
   at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
 
  
 
   at java.security.AccessController.doPrivileged(Native Method)
 
  
 
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 
  
 
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 
  
 
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
 
  
 
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 
  
 
   at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoader
 .java:803)
 
  
 
   at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoader

Apache, Tomcat Tomcat Connector 1.2.15

2005-12-03 Thread Larry Morroni

Hi,
I have the following setup:
Sun Solaris 9
Apache 2.0.54
Tomcat 5.5.12
Tomcat Connectors 1.2.15

I run a small ISP.  We would like to setup one tomcat server instance to 
handle multiple low-volume tomcat sites.  Right now, the only way I can 
use the connector per domain is by putting the contents of the site in 
tomcat/webapps/ROOT and then adding: JkMount  /* worker1
to the httpd.conf file.  This setup requires a separate tomcat process 
for every site.  I think the overhead of this might get a little out of 
hand(maybe I am wrong here).  I'd really like to see if I could use my 
setup to have multiple tomcat sites running under one process.  Any 
advice is appreciated.



--
Larry Morroni ([EMAIL PROTECTED])
voice:  610.891.9922
http://www.morroni.com

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



Re: Tomcat suddenly not working

2005-11-29 Thread Larry Meadors
Have you cleared the tomcat work directory?

LArry


On 11/29/05, Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] wrote:
 I just had a look in the catalina.out and I have an error with log4j:
 log4j:WARN Failed to set property [maxBackupIndex] to value 10  // Keep 10
 backup file maximum.
 and then:
 log4j:WARN Failed to set property [maxBackupIndex] to value 10  // Keep 10
 backup file maximum.
 Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
 SEVERE: IOException while loading persisted sessions:
 java.io.InvalidClassException: lucent.com.bean.UtilBea
 n; local class incompatible: stream classdesc serialVersionUID =
 5090820210408318777, local class serialVers
 ionUID = 4263214301996391941
 java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
 incompatible: stream classdesc serialVe
 rsionUID = 5090820210408318777, local class serialVersionUID =
 4263214301996391941
 ..

 What does it mean??



 -Original Message-
 From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
 Sent: martes, 29 de noviembre de 2005 21:58
 To: 'Tomcat Users List'; 'Tomcat Users List'
 Subject: RE: Tomcat suddenly not working


 Let me add more info:
 Tomcat version: 5.5.9
 JVM Version 1.5.0-04-b05
 OS Name = SunOS
 OS Version = 5.9

  I must have done something but I have no idea what!!
 Please help me!

 -Original Message-
 From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
 Sent: martes, 29 de noviembre de 2005 21:50
 To: 'Tomcat Users List'
 Subject: Tomcat suddenly not working


 Hello,
 I have tomcat
 everything was working fine and suddenly nothing is!!
 I was doing a shutdown.sh and now I can't even start it up.
 I get the following error:
 This release of Apache Tomcat was packaged to run on J2SE 5.0
 or later. It can be run on earlier JVMs by downloading and
 installing a compatibility package from the Apache Tomcat
 binary download page.
 In addition, when I do a ps -ef| grep i tomcat
 I get:
  tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
   tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
   tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
   tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
   tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
   tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
   tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

 Please, help

 -
 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]



Backing up a web application?

2005-11-01 Thread Larry Mulcahy

My question is:

Is there a straightforward way to back up a web application in Tomcat (5.0.28)?
By this I mean make a copy of a deployed webapp with a different application 
context.

I'd like to deploy a new version of a web application on a production server
while retaining the old version in case of problems.

--
Larry Mulcahy   Please address email to [EMAIL PROTECTED]
PGP public key at:  Good system software should be free, like air
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0x2C4C5A03
AIM id: FleshMonster

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



Re: Tracking

2005-10-25 Thread Larry Meadors
Man, this feels like telling someone how to shoot their foot off, but this
would be shorter:

new Exception().printStackTrace();

Larry


On 10/25/05, Steve Stearns [EMAIL PROTECTED] wrote:

 Charles P. Killmer wrote:

 I have a bunch of JSP files that all instantiate a single class file.
 Is there a way for the class file to log which file called it and
 ideally from which line the call was made?
 
 There might be a better way to do this but off the top of my head I
 should think this would work if you added it to your JSP pages:

 %
 try {
 throw new RuntimeException(Log call);
 }
 catch (RuntimeException e) {
 e.printStackTrace();
 }
 %

 ---Steve

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