java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
Hi all,
I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the 
error as 
java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is 
coming.
 
Thanks,
Jagadish


-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
HI  Andoni, 
Thanks for the reply, It uses association that too unidirectional, I 
have seen the option in sun forum as have you explained to me. I tried to 
compile classes like this for just to get that error. This scenario won't 
compile, It gave me a error saying cycling inheritence.
Do you know any other scenarios which could cause this problem.
 
Thanks,
Jagadish

Andoni [EMAIL PROTECTED] wrote:
Hi Jagadish,

Do you have a drawing of all your inheritance relationships? This error seems 
to be caused by a circular inheritance relationship i.e.:

class ClassOne extends ClassTwo {
...
}

class ClassTwo extends ClassOne {
...
}

Obviously there could be many more than two classes involved so it may be best 
to draw out the class tree. Specially if it is complicated.

Hope that helps.

Andoni.

- Original Message - 
From: Jagadeesha T 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, October 05, 2005 9:01 AM
Subject: java.lang.ClassCircularityError


Hi all,
I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as 
java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is 
coming.

Thanks,
Jagadish


-
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort. 


-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T

HI,
  Thanks for the reply, It is being working correctly all these days. Only once 
I got this error.After restarting the server worked fine. Only one time I got 
this error. But I have not done 
as you mentioned. I am very curious to know why is this suddenly came which was 
working all these days and gone after restarted the server.
 
Thanks,
Jagadish 

Leon Rosenberg [EMAIL PROTECTED] wrote:
Just some thoughts...

if you write two classes A and B
B extends A
then compile
then put B into deployment
change B to not extend A and A to extend B, compile A
put A into deployment
Then you'll probably have your runtime circularity.

Try to delete all your class files and recompile your application from scratch.

regards
Leon

On 10/5/05, Jagadeesha T wrote:
 HI Andoni,
 Thanks for the reply, It uses association that too unidirectional, I have 
 seen the option in sun forum as have you explained to me. I tried to compile 
 classes like this for just to get that error. This scenario won't compile, It 
 gave me a error saying cycling inheritence.
 Do you know any other scenarios which could cause this problem.

 Thanks,
 Jagadish

 Andoni wrote:
 Hi Jagadish,

 Do you have a drawing of all your inheritance relationships? This error seems 
 to be caused by a circular inheritance relationship i.e.:

 class ClassOne extends ClassTwo {
 ...
 }

 class ClassTwo extends ClassOne {
 ...
 }

 Obviously there could be many more than two classes involved so it may be 
 best to draw out the class tree. Specially if it is complicated.

 Hope that helps.

 Andoni.

 - Original Message -
 From: Jagadeesha T
 To: tomcat-user@jakarta.apache.org
 Sent: Wednesday, October 05, 2005 9:01 AM
 Subject: java.lang.ClassCircularityError


 Hi all,
 I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error 
 as
 java.lang.ClassCircularityError(myclass). Does anybody know wahy this error 
 is coming.

 Thanks,
 Jagadish


 -
 Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort.


 -
 Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort.


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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Generic Types support in Tomcat?

2005-09-27 Thread Bjørn T Johansen
So how is this affecting the use of Tomcat 5.5.9?
I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I 
need to do
to discover Tomcat 5.5.9 shortcomings with respect to Java 5?


Regards,

BTJ

Christoph Kutzinski wrote:
 What's what story?
 
 Java 5 features are not supported in latest tomcat stable (5.5.9), but
 are in the latest alphas (5.5.10-5.5.12)
 Just as I said in my previous mail.
 
 Seak, Teng-Fong wrote:
 
 I've received an announcement mail telling that 5.5.12 is in alpha
 phase!  So what's this story?  Actually, I'm more interested in using
 the new for loop in Java5 than using generic.

 Christoph Kutzinski wrote:


 Hi,

 it is only since 5.5.10
 5.5.10 was already released, but it is only supposed to be alpha.
 I.e. not recommended for production use.
 I have no idea, when the next stable tomcat version will be released


 Christoph





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

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

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



Re: Generic Types support in Tomcat?

2005-09-27 Thread Bjørn T Johansen
Nope, I am just using the default installation and configurations...

BTJ

Christoph Kutzinski wrote:
 To be honest, I never tried it with 5.5.9
 I just concluded it from the release notes and other posts on this
 mailing list.
 
 AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs.
 Maybe you have configured tomcat to use Suns javac?
 
 Bjørn T Johansen wrote:
 
 So how is this affecting the use of Tomcat 5.5.9?
 I am using Java 5 features with Tomcat 5.5.9 without any problems, so
 what do I need to do
 to discover Tomcat 5.5.9 shortcomings with respect to Java 5?


 Regards,

 BTJ

 Christoph Kutzinski wrote:

 What's what story?

 Java 5 features are not supported in latest tomcat stable (5.5.9), but
 are in the latest alphas (5.5.10-5.5.12)
 Just as I said in my previous mail.

 Seak, Teng-Fong wrote:


I've received an announcement mail telling that 5.5.12 is in alpha
 phase!  So what's this story?  Actually, I'm more interested in using
 the new for loop in Java5 than using generic.

 Christoph Kutzinski wrote:



 Hi,

 it is only since 5.5.10
 5.5.10 was already released, but it is only supposed to be alpha.
 I.e. not recommended for production use.
 I have no idea, when the next stable tomcat version will be released


 Christoph






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

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



Re: Generic Types support in Tomcat?

2005-09-27 Thread Bjørn T Johansen
Nope, I am using it in the java server code, not jsp...
Hence my question :)


BTJ

Christoph Kutzinski wrote:
 To be clear: You are using Java 5 features (generics, for-each loop
 etc.) in JSPs?
 
 Bjørn T Johansen wrote:
 
 Nope, I am just using the default installation and configurations...

 BTJ

 Christoph Kutzinski wrote:

 To be honest, I never tried it with 5.5.9
 I just concluded it from the release notes and other posts on this
 mailing list.

 AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs.
 Maybe you have configured tomcat to use Suns javac?

 Bjørn T Johansen wrote:


 So how is this affecting the use of Tomcat 5.5.9?
 I am using Java 5 features with Tomcat 5.5.9 without any problems, so
 what do I need to do
 to discover Tomcat 5.5.9 shortcomings with respect to Java 5?


 Regards,

 BTJ

 Christoph Kutzinski wrote:


 What's what story?

 Java 5 features are not supported in latest tomcat stable (5.5.9), but
 are in the latest alphas (5.5.10-5.5.12)
 Just as I said in my previous mail.

 Seak, Teng-Fong wrote:



   I've received an announcement mail telling that 5.5.12 is in alpha
 phase!  So what's this story?  Actually, I'm more interested in using
 the new for loop in Java5 than using generic.

 Christoph Kutzinski wrote:




 Hi,

 it is only since 5.5.10
 5.5.10 was already released, but it is only supposed to be alpha.
 I.e. not recommended for production use.
 I have no idea, when the next stable tomcat version will be released


 Christoph







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



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



Charset configurations for JSP pages

2005-09-20 Thread T P

Hello,

How to configure the character sets on JSP pages/HTTP replies so that
browser connecting to tomcat displays pages correctly? Currently i'm using
Tomcat-5.0.28.

I am unable to find any decent documentation on this. I have
JSP pages with character set ISO-8859-1 on disk. I reinstalled Linux
operating system. Previous installation used ISO-8859-1 character set
according to locale, new uses UTF-8. Now when browsing the site,
scandinavian characters (auml; and ouml;) are shown as ? on mozilla.
As curiosity, dynamic text coming from database is shown correctly, static
text on JSP page is not.

There are bunch of parameters and finding the right combination does not
seem to be trivial. For example there seems to be the following
parameters, for which it is hard to find extensive documentation:

On jsp page %page%-directive:
contentType
pageEncoding

On web.xml (tomcat configuration)
javaEncoding

Java system properties
file.encoding


TIA!



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



XPowered BY

2005-09-02 Thread Jagadeesha T
HI all,
   I use JBoss 3.2.6 and and Tomcat 5.0. It displays X-PoweredBY version in
Headers file, There is in web.xml to CommonHeadersFileter, InitParams, Even 
after deleting it from web.xml, it display, Is there any way to do that in 
Tomcat 5.0 with JBoss.
 
Thanks,
Jagadeesha T
 

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

document for upgrade

2005-08-22 Thread Jagadeesha T
HI, 
  Could any body tell me tomcat upgradation document location from 3.x to 4.x 
or 5.x.
 
Regards,
Jagadish
 
 


-
 Start your day with Yahoo! - make it your home page 

Upgrading from 5.0.28 to 5.5.9?

2005-08-02 Thread Bjørn T Johansen
Anything one should be aware of when moving from 5.0.28 to 5.5.9?
Also, any reasons not to make the move?


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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



Session Security

2005-07-29 Thread Jagadeesha T
Hi All,
Cookie information goes to the server in a clear text I think. I don't 
know it can be 
configured to send as a  cypher text. 
When it goes in the network to browser, If not ssl enabled, 
Cookie;Jsessionid;value can be seen through Ethereal and also copied, If 
anybody tries with that cookie with the url.
It will take the person to directly to that page.How can disable it.
Please could anybody tell me how to avoid it. 
 
Thanks,
Jagadeesha T


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

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Bjørn T Johansen
But why do you use the Tomcat that comes with SuSE 9.3??
I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's 
version...)

BTJ

Quinton Delpeche wrote:
 On Thursday 12 May 2005 13:32, Raghupathy,Gurumoorthy wrote:
 
Wht is the problem ?
 
 
 When I install Tomcat 5 (base, examples, and admin) I get an error with the 
 packages. I read that this is to do with incorrect directory names or link 
 names.
 
 On one of my other test machines I keep getting a socket exception and a 
 broken pipe exception when trying to connect via JDBC to a PostgreSQL server.
 
 My catalina.start in the log files directory indicates a problem with the 
 permissions for tomcat5.pid.
 
 Now I have spent the whole day trawling the web, searching google, trying 
 various things and even searching the archives of this mailing list and I 
 still can't solve the problem.
 
 I have now tried this on 5 different machines with two different (original) 
 sets of SuSE 9.3 discs and I still get these errors.
 
 I have tried both 1.4 and 1.5 SDKs and still these errors persist.
 
 I can't believe that I am the unfortunate person to discover this 
 problem... ...I can't be that unlucky. :(
 
 Q


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



RE: HTTP/POST request body dump

2005-04-27 Thread Gilbert, Luke T

Depending on what is meant by 'configure', the response of 'Nope.' may be 
incorrect.

Logging HTTP POST requests could easily be accomplished with a Filter using 
getInputStream().

But if you want to capture network traffic, you should probably use a tool that 
was designed for that purpose. Many programs exist that can do this. Ethereal 
(http://www.ethereal.com/) is one such program that has the added benefit of 
being Free.

Luke



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 19:37
To: Tomcat Users List
Subject: Re: HTTP/POST request body dump


Nope.

-Tim

Tuan, Frank wrote:
 Hi,

 Can I configure Tomcat to dump the body of HTTP/POST requests into some kind 
 of request log?  I would like to dump all of the request body of a SOAP web 
 service that I'm working on.  I'm using Tomcat 5.0.28.


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



CONFIDENTIALITY NOTICE

This e-mail and any attachments, as well as any documents from a file server of 
International Truck
and Engine Corporation or its affiliates, are intended for the addressee and 
may contain information
that is privileged, confidential, proprietary, or otherwise protected by law.  
Any dissemination,
distribution, or copying is prohibited.  If a confidentiality or nondisclosure 
agreement exists
between International and the recipient or the recipient's employer, this 
e-mail and any attachments
hereto, as well as any documents from a file server of International Truck and 
Engine Corporation or
its affiliates, this notice serves as marking as CONFIDENTIAL information of 
International Truck and
Engine Corporation or its affiliates.  If you have received this communication 
in error, please
contact the original sender.

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



Re: Container Managed Security?

2005-04-09 Thread Bjørn T Johansen
That doesn't help with my problem, does it? I need to create a session object 
when
a user logs in, is this possible?

BTJ

Gurumoorthy wrote:
 Use LDAP Based authentication ... I have this working very nicely only our
 servers
 Read JNDI Realm topic of tomcat
 Gurus
 - Original Message -
 From: Bjørn T Johansen [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, April 07, 2005 7:05 AM
 Subject: Container Managed Security?
 
 
 
I have a small question... I am used to providing my own authentication
 
 system when
 
developing web systems, but I am now looking into providing container
 
 based security
 
instead. But when writing authentication myself, I have full control and
 
 can put
 
differenf information that I need into the session scope. How do I do this
 
 using
 
Tomcat's FORM-based authentication? Is there some listener I can hook onto
 
 or similar?
 

Regards,

BTJ
--
--
 
 -
 
Bjørn T Johansen

[EMAIL PROTECTED]
--
 
 -
 
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange
 
 Satanic messages
 
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
--
 
 -
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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



Re: Container Managed Security?

2005-04-09 Thread Bjørn T Johansen
That seems to be what I am looking for
I will look into this... Thx... :)

BTJ

Mark Thomas wrote:
 Opps. Typo. That should be:
 
 javax.servlet.http.HttpSessionListener
 
 Mark Thomas wrote:
 
 javax.servlet.http.SessionListener

 For a summary, read the javadocs. For full details read the spec.

 Mark

 Bjørn T Johansen wrote:

 I have a small question... I am used to providing my own
 authentication system when
 developing web systems, but I am now looking into providing container
 based security
 instead. But when writing authentication myself, I have full control
 and can put
 differenf information that I need into the session scope. How do I do
 this using
 Tomcat's FORM-based authentication? Is there some listener I can hook
 onto or similar?


 Regards,

 BTJ




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



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


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



Re: Add Context Path, Tomcat 5.5.7

2005-04-08 Thread P T
Scott,

I feel your pain -- I just finished sorting out that whole thing
myself. One thing I'd definitely recommend doing is installing the
admin tool for tomcat 5 and using it to change something trivial in
your server.xml file. When it gets done making the change it strips
out all the comments as a side effect and makes the file *much*
cleaner and, in my opinion, more readable. As for your question:
if the resource is to be used for multiple applications, you could put
it in the server.xml... if not (and I'm going to presume that's the
case for you -- let me know if not) then you're much better off using
your application-specific WEB-INF\web.xml and META-INF\context.xml
files like so:


your application docbase\META-INF\context.xml would look something like:
Context path=/Foo 
 docBase=C:/Foo 
 debug=1 reloadable=true
  Resource
  auth=Container
  name=jdbc/aNameForYourDBresource
  type=javax.sql.DataSource
  password=Foo
  driverClassName=oracle.jdbc.driver.OracleDriver 
  maxIdle=3
  maxWait=5000
  username=Foo
  url=jdbc:oracle:thin:@Foo:1521:Foo
  maxActive=15/
  WatchedResourceWEB-INF/web.xml/WatchedResource
  WatchedResourceMETA-INF/context.xml/WatchedResource
/Context

and your your application docbaseWEB-INF\web.xml would then
reference the resource defined in the context above (the res-ref-name
should match the resource name)

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

   display-nameYour app's name/display-name
  description
  Slices, dices and makes fresh canned spam!
   /description

   resource-ref
  descriptionDescription of Datasource/description
  res-ref-namejdbc/aNameForYourDBresource/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
   /resource-ref
/web-app

It's helpful to think of the individual application context.xml files
being 'included' as context entries in the server.xml file (almost
like an @include, except implicit).

Hope that helps! Let me know if I can clarify anything.

Cheers,
Patrick Thomas

(PS - remember to install the jakarta commons and pooling jars
mentioned in the dbcp documentation.)

On Apr 8, 2005 11:13 AM, David Smith [EMAIL PROTECTED] wrote:
 Hi.
 
 Take a look at this for where to put Context elements:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
 This is new with Tomcat 5.0 and is continued in Tomcat 5.5
 
 --David
 
 Scott Purcell wrote:
 
 Hello,
 
 I am following the information here to add DBCP to my application.
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
 I am reading to add the Context path=/DBTest ... from the above docs. The 
 instructions say to .
 
 Configure the JNDI DataSource in Tomcat by adding a declaration for your 
 resource to $CATALINA_HOME/conf/server.xml.
 
 Add this in between the /Context tag of the examples context and the 
 /Host tag closing the localhost definition.
 
 
 
 So cool, I opened up the server.xml, but do not see any existing context or 
 host tags in it. Here is my server.xml file. Does anyone know where I put 
 the Context for the DBCP stuff? Thanks,
 
 '!-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
 
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --
 
 Server port=8005 shutdown=SHUTDOWN
 
   !-- Comment these entries out to disable JMX MBeans support used for the
administration web application --
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener 
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
   Listener 
  className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  

Container Managed Security?

2005-04-07 Thread Bjørn T Johansen
I have a small question... I am used to providing my own authentication system 
when
developing web systems, but I am now looking into providing container based 
security
instead. But when writing authentication myself, I have full control and can put
differenf information that I need into the session scope. How do I do this using
Tomcat's FORM-based authentication? Is there some listener I can hook onto or 
similar?


Regards,

BTJ
-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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



Which version to use?

2005-04-04 Thread Bjørn T Johansen
I am running Tomcat 5.0.28 at the moment and I was just wondering if I should be
using another version, newer or even older?
I see a lot of talk about version 5.5.x, is this the version maybe I should be
considering?


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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



Re: tomcat ssl configuration

2005-04-04 Thread James T. Studebaker
Did you create the keystore while logged on as the root user?


Thank you
James T. Studebaker

- Original Message - 
From: Mustafa BLKBA [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 8:24 AM
Subject: tomcat ssl configuration


I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps
in the document which is on this link but it's not working. Is there anybody
who can help me with this issue?



Thanx,

Mustafa.





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



Re: session management

2005-04-02 Thread Jagadeesha T
Hi, Thanks the reply,
 My requirement is little different.
I want to have many browser instaces (2 or more)to use the same session.
In my first.jsp, on first hit, i will get the session and store it.
Again,if the first jsp is hit for the second time. It should use the
same session. SO, I will not let it allow to create a new one. Instead use the 
one already stored for user.
I have to do like this since the user login is done from a Java 
Applacition(Swing).
If the user wants to go to a browser. User has to click on the button (Swing 
UI) that will launch the 
browser. each click on the button should launch a browser.
I want all those browsers launched for that login to use a shared session 
object.
Could you tell How can I do it.
I tried by setting the cookie at the first.jsp when the second browser 
launch(Coolke which had created at the 
first
hit).
addCookie,
  In one of the middle jsps, there is 
  response.sendRedirect(response.encodeURL(samepage?somename=somevalue))
 Every time,it is failing here, response.sendRedirect();
 //When it is reloaded i have observerd that it is not getting the cookie in 
the headers.
 I don't understand why the browser not sending the cookie. cookie is not 
disabled.
 
Scenario 2.
If all browser uses different session objects. then it works fine.
 
could you tell me is there any way to get this done?
Thanks,
Jagadish


 

Lionel Farbos [EMAIL PROTECTED] wrote:
On Thu, 31 Mar 2005 11:41:55 -0800 (PST)
Jagadeesha T wrote:

 Hi all,
 I want to set session in httpservletresponse object, Is there 
 any way to do it.
 Otherthan response.addCookie(), or 
 response.encodeURL();
 Is there any way to set the Jsession In headers, So that it gets that 
 in the next Jsp by request object, 
 If I use addCookie of response object, It fails if any where encodeURL 
 is used. 
 If i user encodeURL, every JSP needs to updated with that method.
 Please if anybody knows tell the way that can be done. 

You don't have to create yourself the cookie.
You create the HttpSession with HttpServletRequest.getSession() or 
HttpServletRequest.getSession(boolean)
Then, the session is created and the cookie JSESSIONID is added to the 
HttpServletResponse.
So, the next time you'll invoke a servlet or JSP in the same Context (with the 
same browser),
the Cookie JSESSIONID will be attached to your request.

If you have clustered your Tomcat, the JSESSIONID will have a suffix .,
so, if you use the mod_jk to load-balance your tomcat clustered servers, 
your request will be sent to the same tomcat (as the precedent).

Enjoy

 Thanks,
 Jagadeesha T
 
 
 
 -
 Do you Yahoo!?
 Better first dates. More second dates. Yahoo! Personals 

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



-
Do you Yahoo!?
 Better first dates. More second dates. Yahoo! Personals 

session management

2005-03-31 Thread Jagadeesha T
Hi all,
I want to set session in httpservletresponse object, Is there 
any way to do it.
 Otherthan response.addCookie(), or 
response.encodeURL();
Is there any way to set the Jsession In headers, So that it gets that 
in the next Jsp by request object, 
If I use addCookie of response object, It fails if any where encodeURL 
is used. 
If i user encodeURL, every JSP needs to updated with that method.
Please if anybody knows tell the way that can be done. 
 
Thanks,
Jagadeesha T



-
Do you Yahoo!?
 Better first dates. More second dates. Yahoo! Personals 

Re: Data file owner and group difficulties

2005-03-30 Thread James T. Studebaker
Yes, Tomcat runs as tomcat:nobody.  I can not run Tomcat as jims:jims since
jims is a virtual host account.  I should have mentioned this in my initial
email.  I am one of numerous users who have an account that has access
tomcat.  The file structure of the account has a webapps directory where I
install a java web application to be served by Tomcat.  The owner:group for
this account is jims:jims.  Other users will have a different owner:group.
However Tomcat runs as tomcat:nobody, the default configuration.  All users
need to have the ability to create and read data files with the owner:group
of their own accounts.  Can this be done?

Thank you
James T. Studebaker

- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 30, 2005 7:15 AM
Subject: Re: Data file owner and group difficulties


On Tue, Mar 29, 2005 at 09:31:42PM -0500, James T. Studebaker wrote:
: My servlets create data files.  The webapp is running on a Linux system.
The
: app user is jims and my group is jims.  I have to set permissions to 777
in
: order for tomcat to read data files.  When data files are created, the
user is
: tomcat and the group is nobody.

This last sentence would imply that Tomcat is running as tomcat:nobody,
and not as jims:jims as you suspect.  Run 'ps' to confirm.  Also, check
how you start Tomcat and see whether a user switch occurs there.


: Is the a configuration parameter that will result in data
: files created with a user of jims and a group of jims.  Is there
configuration
: parameters that result in tomcat being able to read data files with the
user
: jims and the group jims.

This wouldn't be set in Tomcat, but in the JVM itself.  In turn, (IIRC)
the base JVM has no way of setting ownership/permissions.

-QM


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



using a docBase outside $catalina.home ?

2005-03-29 Thread P T
Hi all,

I've checked the archives and google, but come up dry on this. I know
that with 5.5 we're no longer supposed to put contexts for individual
applications in server.xml, but none of the 'proper' ways have worked.

I've got source for an application that we're working on in
c:\share\MyAppName, and the context in
{$Catalina.home}\conf\Catalina\localhost\MyAppName.xml

MyAppName.xml contains exactly: 
Context path=/MyAppName docBase=c:\share\PMScheduler debug=0
reloadable=true/

I then start tomcat and access the /manager utility and it shows
/MyAppName in the Applications display and indicates 'false' under the
Running column. Attempting to start it produces FAIL - Application at
context path /MyAppName could not be started and no other info. The
/MyAppName folder exists but is empty.

I've also tried the method with context file in the docbase (
c:\share\PMScheduler\META-INF\context.xml ) and specifying it to the
/manager app as:
Context Path (optional): /MyAppName
XML Configuration file URL: file:C:/share/PMScheduler/META-INF/context.xml   
WAR or Directory URL:  file:C:/share/PMScheduler

This produces the same result. (Although I note that even where it
says the context is optional, it still requires it... it's not the
issue at hand, but anyone else noticing that?)

I'm stumped -- I can't imagine that the only way to work with unWAR-ed
files is to put them inside tomcats directory structure. While we're
developing it seems silly to have to reWAR the whole thing every time
we make a change to the source. Tomcat 3.3 could handle this I know --
is this just functionality that was lost along the way?

Cheers,
Patrick Thomas

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



RESOLVED - using a docBase outside $catalina.home ?

2005-03-29 Thread P T
putting a foo.xml file into conf\Catalina\localhost eventually
worked... not exactly sure why it's working, but thanks for the input
all.

~PST

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



Data file owner and group difficulties

2005-03-29 Thread James T. Studebaker





My servlets create data files. The webapp is running on a Linux 
system. The app user is jims and my group is jims. I have to set 
permissions to 777 in order for tomcat to read data files. When data files 
are created, the user is tomcat and the group is nobody. As a result my 
servlets can not read the data files created. Is the a configuration 
parameter that will result in data files created with a user of jims and a group 
of jims. Is there configuration parameters that result in tomcat being 
able to read data files with the user jims and the group jims.
Thank youJames T. Studebaker



Session Handling

2005-03-29 Thread Jagadeesha T
Hi all,
I need to launch a browser from a java application (swing) on the click of the 
button.
Each click should launch a different instance of the browser. However, all 
these instances of the browser should share the same HttpSession (created on 
the launch of the first browser instance).

Currently, have implemented this by setting a cookie in HttpServletResponse 
object.
 
response.addCookie(new Cookie(jsessionid,sessionid)) 
response.sendRedirect(NextPage),
 
 In the above approach, all browser instances share the same session. This 
works fine. 
 However, if the jsp invoked as part of sendRedirect uses response.encodeURL(), 
this approach does not work. When the encoreURL() method is used, the session 
id is not set correctly (a different session id is being set). Not sure how/why 
the session id is different in this case. 
 
 Any idea why?
 Or is there any other way of sharing a session for all the browsers.
  I am using Tomcat version 5.0,
  
 Thanks,
 Jagadeesha T
 
 
 
 
 


-
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

RE: How to redirect to a different host

2005-03-17 Thread Gilbert, Luke T

There is no way for Tomcat to do this 'out of the box'. But don't despair! 
Check out:

http://www.zlatkovic.com/httpredirectfilter.en.html

The author has released it under a very free license. I have been using the 
filter and can personally recommend it. The site seems to be down right now, so 
you'll have to check back later.

Luke

P.S. In the interest of full, squeaky clean disclosure, I've submitted a patch 
to the project.

-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 14:58
To: Tomcat Users List
Subject: How to redirect to a different host


Is there anyway to configure Tomcat (without using apache) to redirect
requests for a particular context to a new url (and host)

Here's the scenario on the main page there is a link to a shopping cart
context.  This webapp does not run on this machine, it's running on a totally
separate system, so what I want to do is:

when the context webhost:8080/shopping is requested the request is redirected
to shoppingcarthost:8080/shopping.  Is it possible to do this in the
server.xml file, or does it have to be done somewhere else.

I know how to do this with apache, but using apache is not an option in this
case.  I need to know how to to do this independent of apache.  Just using
Tomcat configuration files.

Thanks
Daniel McMillan

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



CONFIDENTIALITY NOTICE

This e-mail and any attachments, as well as any documents from a file server of 
International Truck
and Engine Corporation or its affiliates, are intended for the addressee and 
may contain information
that is privileged, confidential, proprietary, or otherwise protected by law.  
Any dissemination,
distribution, or copying is prohibited.  If a confidentiality or nondisclosure 
agreement exists
between International and the recipient or the recipient's employer, this 
e-mail and any attachments
hereto, as well as any documents from a file server of International Truck and 
Engine Corporation or
its affiliates, this notice serves as marking as CONFIDENTIAL information of 
International Truck and
Engine Corporation or its affiliates.  If you have received this communication 
in error, please
contact the original sender.

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



Configuration of https in tomcat failure

2005-03-16 Thread James T. Studebaker





I have tried over and over again to configure https for tomcat using the 
instructions found on the apache tomcat web site. I am unable to get https 
to work. I am running tomcat on a linux core 2 server, version 5.0.28 
tomcat and version 1.4.2_05 jdk. I am lost. Help.
Thank youJames T. Studebaker



Re: Configuration of https in tomcat failure

2005-03-16 Thread James T. Studebaker
IE displays:
The page cannot be displayed

No errors in the log files.  I do not have a tool to trace packets.  The
firewall does not block port 8443.
Here is connectors in server.xml:
Connector
port=8089
redirectPort=8443

/Connector
Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Connector
port=8443
scheme=https
secure=true
sslProtocol=TLS
keystoreFile=/root/.keystore

/Connector

How do I view the certificate with keytool?

Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, March 17, 2005 12:00 AM
Subject: RE: Configuration of https in tomcat failure


 From: James T. Studebaker [mailto:[EMAIL PROTECTED]
 Subject: Configuration of https in tomcat failure

 I have tried over and over again to configure https for
 tomcat using the instructions found on the apache tomcat web
 site.  I am unable to get https to work.

You need to be more specific about the problem.  Do you get error messages
on the browser?  Do you get any entries in any of the logs?  What do you see
going on with a packet trace (try Ethereal)?  Is there a firewall blocking
your ports?  What does your server.xml look like now?  Can you view your
certificate with keytool?

I've followed the Tomcat SSL how-to instructions to the letter and they've
worked perfectly on both Windows XP (Tomcat 5.0.19 and 5.5.7, JDK 1.4.2 and
1.5.0) and even our sort-of-POSIX-like mainframe environment (Tomcat 5.0.28
and 5.5.7, JDK 1.4.2), accessed with both IE6 and Firefox 1.0.1 browsers.

 - Chuck


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

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






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



how do I correct keytool error

2005-03-13 Thread James T. Studebaker





I ran the keytool utility to create a self signed certificate. I used 
the changeit password. The utility completed successfully. However 
when I used the keytool -list command I get the following error:

keytool error: java.io.IOException: Keystore was tampered with, or password 
was incorrect

Further I get the same error if I try to generate another 
certificate. How can I correct this problem?
Thank youJames T. Studebaker



Re: How to access web site from other computers

2005-03-09 Thread James T. Studebaker
When you type in http://dummy.dnsalias.net/web/JSP/login.html in the IE do
you get a tomcat error or do you get a The page cannot be displayed or do
you get some other error?

Thank you
James T. Studebaker

- Original Message - 
From: U K Laxmi [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 1:50 AM
Subject: RE: How to access web site from other computers


Thank you for the detailed info. I appreciate it. May
be, in future i may go for a static IP address. But
for testing purposes, i would like to do some wrok
around specified by you.

I went to www.dyndns.org and selected 'Dynamic DNS'
and did whatever it asked me to. I'm able to access it
locally. ie.

http://dummy.dnsalias.net/web/JSP/login.html

But not from other computers (one at office). I'm able
to ping to this machine. But not able to see the web
application. Is this is a firewall issue? How can i
identify what are the firewalls/spywares running in my
system and how to allow the IP Address to be visible.

Pls help. Thanks to everyone for the answers.

--- [EMAIL PROTECTED] wrote:

 OK.  There have been suggestions that you get a
 static ip address.  If
 your internet service provider will assign you a
 static ip address, that
 will solve your problem if you are trying to access
 the tomcat service
 using a domain name.

 However if your internet service provider is
 unwilling to provide a static
 IP address, which is the case for most providers,
 you still can access the
 tomcat service from the internet.  What you can do
 is define a dynamic dns
 service at a provider such as dyndns.org.  You can
 set up a dynamic dns
 service where the ip address is updated from a
 program you install on your
 local windows machine using one of their domains.
 You have several
 choices of such programs available on the dyndns.org
 site.  The program
 you install on your local windows machine detects
 when the IP address of
 your local machine changes.  The program then sends
 the new IP address to
 the dyndns.org service and the ip address of the
 dynamic dns service you
 set up with them is automatically updated.  This
 service is free for a
 limited number of machines.

 You could also buy a domain name from a domain name
 service provider.
 Dyndns.org does sell domain names also.  You can
 then define a dynamic dns
 service with dyndns.org just the same as described
 above using your
 domain.  I believe dyndns.org will charge you an
 annual fee for using your
 own domain name.

 Let me know if this helps.

 As a side issue you can access the tomcat service on
 your local windows
 machine from another computer on the internet in a
 test situation with out
 establishing a dynamic dns account. You can do this
 by entering a record
 in the hosts file of the computer from which you
 wish to access the tomcat
 service.  I expect you to find the host file at:
 c:/windows/system32/drivers/etc/host or
 c:/winnt/system32/drivers/etc/host.

 Enter a line in the form:
 domainname ipaddress

 Supply your domain name for the host account defined
 in tomcat
 configuration for domainname.  Do not include the
  or the  characters.
  Localhost will not work.  If you have not defined a
 host other than
 localhost in tomcat configuration, you will have to
 define another host
 account.  Supply the ip address assigned to your
 machine where tomcat is
 running for ipaddress.  Do not include the  or
 the  characters.  Here
 is an example how the line should look:

 jimstudebaker.org 65.254.62.178

 Then save the host file.  Open the IE and type in
 the url
 http://domainname:8080/.  This assumes your tomcat
 port is the default
 8080.  This obviously not a general permanent
 solution, since the internet
 dns servers do not have a record for the entry you
 put in the host file.
 It is a quick and easy way to test access to the
 service from another
 machine on the internet however.

 Good luck.

 Let me know if this was of help.

  The machine is connected to internet thro'
 broadband
  connection.
 
  --- [EMAIL PROTECTED] wrote:
  An answer to this question would require a little
  more information.
 
  When you say My computer is in network is the
  network you are refering
  to a local area network or is the window machine
  connected directly to the
  internet through a broadband connection or a dial
 up
  connection?
 
  Send a response to this question and then I can
 go
  on to the next question.
 
   -Original Message-
   From: U K Laxmi [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 08, 2005 11:13 AM
   To: Tomcat Users List
   Subject: How to access web site from other
  computers
  
  
   I've a web application developed using apache
 and
   tomcat on windows 2000 machine. I can access
 the
   application locally. ie. using
  http://localhost/web/JSP/login.html and
   also using machine name ie.
  http://dummy/web/JSP/login.html. My computer
   is in network. But i'm unable access my web

Re: how to make manager available to each virtual host

2005-02-28 Thread James T. Studebaker
Bingo!!  That did it.  Thanks.

Thank you
James T. Studebaker

- Original Message - 
From: alis asma alias [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, February 28, 2005 4:12 AM
Subject: Re: how to make manager available to each virtual host



Try this:
1. go to catalina_home/conf/Catalina/
2. open the first host folder . In my case, the first
host is localhost.
3. Let's named the first host as localhost and the
second host is X. So copy the content of the
localhost into the X host.
4. restart the tomcat.
5. Try to access the manager for the X host.
I've tried those steps and it worked.


--- James T. Studebaker [EMAIL PROTECTED]
wrote:

 Leaves

 I am running tomcat 5.0.28 on a linux fedora core 2
 machine.  I have configured virtual hosts for
 tomcat.  I wish to make the manager application
 available to each vertual host that  I have
 configured so that users can deploy applications to
 their account.  What I did is add a context to each
 virtual host and defined the varables for the
 context exactly as they are defined in the context
 found in the localhost host.

 I have gotten this approach to work on a local
 window xp1.  installation, however it fails on a
remote
 linux installation.  Can anyone give me a hint what
 needs to be done?

 Here is the error message I get:

 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: Wrapper cannot find
 servlet class
 org.apache.catalina.manager.HTMLManagerServlet or a
 class it depends on


org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:540)


org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)


org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)


org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)


org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)


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


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
 java.lang.Thread.run(Thread.java:534)


 root cause

 java.lang.ClassNotFoundException:
 org.apache.catalina.manager.HTMLManagerServlet


org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:854)


org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:721)


org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:540)


org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)


org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)


org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)


org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)


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


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
 java.lang.Thread.run(Thread.java:534)


 note The full stack trace of the root cause is
 available in the Apache Tomcat/5.0.28 logs.






 Apache Tomcat/5.0.28

 Thank you
 James T. Studebaker







__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

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






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



how to make manager available to each virtual host

2005-02-27 Thread James T. Studebaker





I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have 
configured virtual hosts for tomcat. I wish to make the manager 
application available to each vertual host that I have configured so that 
users can deploy applications to their account. What I did is add a 
context to each virtual host and defined the varables for the context exactly as 
they are defined in the context found in the localhost host.

I have gotten this approach to work on a localwindow xp installation, 
however it fails on a remote linux installation. Can anyone give me a hint 
what needs to be done?

Here is the error message I get:


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: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)


root 
cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet
	org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854)
	org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)


note 
The full stack trace of the root cause is available in the Apache 
Tomcat/5.0.28 logs.


Apache Tomcat/5.0.28
Thank youJames T. Studebaker



ClassCastException

2005-02-23 Thread Jagadeesha T
Hi,
 There is a ClassCastException when we run the JspC class with the proper 
arguments.
 I have given the detailed exception at the end of this mail,
// In org.apache.jasper.JspC class code
private void initServletContext()
{
try
{
context = new JspCServletContext(new PrintWriter(System.out), new 
URL(file: + uriRoot.replace('\\', '/') + '/'));
tldLocationsCache = new TldLocationsCache(context, true);
}
catch(MalformedURLException me)
{
System.out.println(** + me);
}
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
In this method it creates the object of jspRunTimeContext
rctxt = new JspRuntimeContext(context, this);
// end JspC class code
// In org.apache.jasper.compiler.JspRuntimeContext class 
In constructor of this class,
public JspRuntimeContext(ServletContext context, Options options){
jsps = Collections.synchronizedMap(new HashMap());
thread = null;
threadDone = false;
threadName = JspRuntimeContext;
System.setErr(new SystemLogHandler(System.err));
this.context = context;
this.options = options;
// The below line causing the exception to be thrown 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();
if(parentClassLoader == null)
parentClassLoader = (URLClassLoader)getClass().getClassLoader();
if(log.isDebugEnabled())
if(parentClassLoader != null)

log.debug(Localizer.getMessage(jsp.message.parent_class_loader_is, 
parentClassLoader.toString()));
else

log.debug(Localizer.getMessage(jsp.message.parent_class_loader_is, none));
initClassPath();
if(context instanceof JspCServletContext)
return;
if(System.getSecurityManager() != null)
 ...
 ..}
// Here it is expecting the current thread class loader to be of type 
URLClassLoader,
 which is not,it is set with the AntClassLoader2..
 Hence throwing the exception
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();
/// end of org.apache.jasper.compiler.JspRuntimeContext class 
The reason is the current thread class loader has set in JspC after 
JspRuntimeContext() object 
creation call, 
setting of current thread class loader to URLClassLoader is done in the below 
given method in JspC class
private void initClassLoader(JspCompilationContext clctxt) method
// Begin JspC class
Thread.currentThread().setContextClassLoader(loader);
// end JspC class 

The class loader, URLClassLoader is set to the current thread after the 
exception is thrown from 
org.apache.jasper.compiler.JspRuntimeContext, if it set before ,then it will 
definitely work.
--- total flow.
from JspC class,
methods flow 
Main() -- execute()--- initServletContext();
initServletContext() In this method creating the below object by calling the 
only one constructor of
org.apache.jasper.compiler.JspRuntimeContext(context, option)
--
in org.apache.jasper.compiler.JspRuntimeContext
org.apache.jasper.compiler.JspRuntimeContext
taking the current thread class loader and expecting to be as URLClassloader,
exception thrown
---
in JspC 
after this flow there is code to set the currentCLassLoader to URLClassLoader,
in initClassLoader(JspCompilationContext clctxt) method
this should be set before the creation of JspRuntimeContext object to avoid 
this exception.
---
It would be great if we have precompilation feature.
I don't know if there is any other alternatives available for this,
I think we could do this. Please let me know if this is 
considered already and have counter this problem.
---

The detailed exception is ...
The line numbers may not correct since i put some System.out.println()..
The code thrrowing the exception is 
JspRuntimeContext costructor 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();


[java] java.lang.ClassCastException
[java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
[java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[java] at 

JspC exception

2005-02-14 Thread Jagadeesha T
Hi,
JspC error while doing PreCompilation,
I 'am using ant 1.6.2 and tomcat 5. When I call jspc from ant it is 
thworing invaid  cast exception.  In JspRunTimeContext class. It is getting the 
current thread classloader  and casting to URL classloader..
 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();
This is because Thread.currentThread().getContextClassLoader() is returning 
AntClassLoader.
which is incompatible with URLClassLoader. Hence thrwoing ClassCastException.
 
The detail exception is, Please don't consider the line number in the below 
stack Trace.
The code thrwoing the exception is above given in bold font of 
org.apache.jasper.compiler.JspRuntimeContext class.
 
 
[java] java.lang.ClassCastException
[java] at 
org.apache.jasper.compiler.JspRuntimeContext.init(JspRuntimeContext.java:46)
[java] at org.apache.jasper.JspC.initServletContext(JspC.java:866)
[java] at org.apache.jasper.JspC.execute(JspC.java:735)
[java] at org.apache.jasper.JspC.main(JspC.java:71)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
[java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
[java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 
 
I 'am stuck up in this, This is a class loader issue. It would be a great help 
if anybody has a solution for this. After this exception, there is a code to 
set current thread class loader to URL classLoader in JspC.java.
 
Regards,
Jagga
 
 
 
 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

JSPC problems

2005-02-11 Thread Jagadeesha T
Hi all,
   I 'am trying to do jspPreCompilation, it is thrwing away saying. 
ClassCastExcception.
 
Class java.util.HashMap loaded from parent loader (parentFirst)
Class java.util.Collections loaded from parent loader (parentFirst)
Class java.io.ByteArrayOutputStream loaded from parent loader (parentFirst)
 [java] java.lang.ClassCastException
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [java] Caused by: java.lang.ClassCastException
 [java] at 
org.apache.jasper.compiler.JspRuntimeContext.init(JspRuntimeContext.java:95)
 [java] at org.apache.jasper.JspC.initServletContext(JspC.java:1005)
 [java] at org.apache.jasper.JspC.execute(JspC.java:870)
 [java] at org.apache.jasper.JspC.main(JspC.java:196)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] ... 13 more
 [java] --- Nested Exception ---
 [java] java.lang.ClassCastException
 [java] at org.apache.jasper.compiler.JspRuntimeContext.init
 
 
Please if anybody got this error and got it solved.Please could you help out to 
run precompilation.
 
Regards,
Jagga
 



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

jspc classcasst exception: error while casting ANTClassloader to URLclassLoader

2005-02-11 Thread Jagadeesha T


Hi all,

   it is throwing ClassCastexception in JSPRuntimeCOntext class when 
casting ANTClassLoader class to URLCLassLoader. I don't whether it is a bug. or 
configuration problems. 

Regards,

Jagga

 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Session Objects

2005-02-08 Thread Jagadeesha T
Hi all,
  I' am storing session objects in a SINGLEON class object to keep all 
active sessions. Does it give any problems in clustered enviornment since 
singleton is a static referrence.
 
Regards,
Jagga
 
 

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

RE: Session Objects

2005-02-08 Thread Jagadeesha T
Thanks for responding.
 
To manage session between an apllication and web servers. Is there any way to 
get that worked in clustered enviornment?
 
Thanks 
Jagga


Dale, Matt [EMAIL PROTECTED] wrote:

Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.

Is there any reason why you put the sessions in a singleton?

Ta
Matt

-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects


Hi all,
I' am storing session objects in a SINGLEON class object to keep all active 
sessions. Does it give any problems in clustered enviornment since singleton is 
a static referrence.

Regards,
Jagga



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

-
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

[OT] Advertising website

2005-01-28 Thread t t
Hi,
 
Does anyone know a easy and cheap (even free) way to advertise a website?
Thanks.
 
T.T.





-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

RE: [OT] Advertising website

2005-01-28 Thread t t
Thanks.

Didier McGillis [EMAIL PROTECTED] wrote:If your serious about this then there 
is no cheap and easy way. SEO 
companies get a pretty penny to do their work, and it works and results are 
pretty good. They can also give you other avenues, and the good ones will 
work within your budget.

Otherwise you will have to hire someone, it is a full time job to keep on 
track and on top of everything.

Some suggestions if you arent hiring. Label everything out-going with your 
url and email address. EVERYTHING Invoices, emails, packages, 
letterhead, employees (opps), stamps, business cards, catalogs. EVERYTHING. 
Hit the big three in the search engines/directories. Almost everyone else 
uses them for their results. Google, Inktomi/Yahoo and MSN. Worry about 
those three, find out how to work those guys.

From: t t 
Reply-To: Tomcat Users List 
To: Tomcat Users List 
Subject: [OT] Advertising website
Date: Fri, 28 Jan 2005 08:04:57 -0800 (PST)

Hi,

Does anyone know a easy and cheap (even free) way to advertise a website?
Thanks.

T.T.





-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'



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



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

Re: [OT] Advertising website

2005-01-28 Thread t t
Thanks.
 
T.T.

Filip Hanik - Dev [EMAIL PROTECTED] wrote:
SEO companies feed you a bunch of bologni (one of the recent scames IMHO), 
don't waste your money
you can read up on it their self

http://www.google.com/webmasters/

Filip

- Original Message - 
From: Didier McGillis 
To: 
Sent: Friday, January 28, 2005 10:57 AM
Subject: RE: [OT] Advertising website


If your serious about this then there is no cheap and easy way. SEO 
companies get a pretty penny to do their work, and it works and results are 
pretty good. They can also give you other avenues, and the good ones will 
work within your budget.

Otherwise you will have to hire someone, it is a full time job to keep on 
track and on top of everything.

Some suggestions if you arent hiring. Label everything out-going with your 
url and email address. EVERYTHING Invoices, emails, packages, 
letterhead, employees (opps), stamps, business cards, catalogs. EVERYTHING. 
Hit the big three in the search engines/directories. Almost everyone else 
uses them for their results. Google, Inktomi/Yahoo and MSN. Worry about 
those three, find out how to work those guys.

From: t t 
Reply-To: Tomcat Users List 
To: Tomcat Users List 
Subject: [OT] Advertising website
Date: Fri, 28 Jan 2005 08:04:57 -0800 (PST)

Hi,

Does anyone know a easy and cheap (even free) way to advertise a website?
Thanks.

T.T.





-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'



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



-
Do you Yahoo!?
 Meet the all-new My Yahoo! – Try it today! 

[OT] a website run on Tomcat and powered by Struts

2005-01-19 Thread t t
Hi, all,
I just updated www.sportslovers.net using tiles. Take a look. Any comments or 
suggestions will be appreciated!
T.T.





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

Re: Tomcat 5 architectural questions

2005-01-19 Thread T K
I grep'ed through the tomcat 5.5.4 sources and found
nio under org.apache.catalina.cluster - what's up with
that? Not currently in use?

tia

--- Tim Funk [EMAIL PROTECTED] wrote:

 There is no nio in tomcat.
 
 -Tim
 
 T K wrote:
 
  Hi,
  
  1) Is T5.0 nio based?
  2) Is T5.5 nio based?
  3) For the version that's nio based, how many
 threads
  are typically in use?
  4) Are there any articles on performance diffs
 between
  the two versions?
  5) Why would one want to use one over the other?
  6) Why would one want to use any of them over 4.1
  apart from JSP2.0 and JMX support?
  7) Are any of the T5 versions as widely deployed
 at
  ASP's as 4.1.x?
   
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: [OT] a website run on Tomcat and powered by Struts

2005-01-19 Thread t t
Thanks. I will think about it.
T. T.

Larry Meadors [EMAIL PROTECTED] wrote:
Gah! 

Get rid of that book.gif, that looks like something from a late 80's BBS. ;-)

Grab one from here instead: http://art.gnome.org/art-icons/

Larry


On Wed, 19 Jan 2005 06:59:07 -0800 (PST), t t wrote:
 Hi, all,
 I just updated www.sportslovers.net using tiles. Take a look. Any comments or 
 suggestions will be appreciated!
 T.T.
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.


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


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

RE: [OT] a website run on Tomcat and powered by Struts

2005-01-19 Thread t t
Thanks so much. That happened when I change to use Tiles.
T.T.

Mike Jackson [EMAIL PROTECTED] wrote:
You have an extra  at the top of the page for some reason.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: t t [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 19, 2005 6:59 AM
 To: Tomcat Users List
 Subject: [OT] a website run on Tomcat and powered by Struts
 
 
 Hi, all,
 I just updated www.sportslovers.net using tiles. Take a look. 
 Any comments or suggestions will be appreciated! T.T.
 
 
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
 



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



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Re: tomcat4 + postgresql jdbc

2005-01-18 Thread Bjørn T Johansen
This only enable connections from 192.168.53.2 and not the network 192.168.53.x
To enable the network, you need to write 192.168.53.0 as the ip address
BTJ
Thanks for the suggestion!

I can successfully connect with a normal Java program.
In pg_hba.conf, I've got the line

hostall all 127.0.0.1 255.255.255.255   trust
hostall all 192.168.53.2  255.255.255.0   trust

so all IP connections from the local network (192.168.53.xx) should
be accepted, even without a password...

-Oege

--
---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 21 69 15 20 Bjørnebærstien 57
Fax : +47 41 13 09 15   N-1348 Rykkinn
Cellular : +47 926 93 298   http://www.havleik.no
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5 architectural questions

2005-01-13 Thread T K
Hi,

1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
apart from JSP2.0 and JMX support?
7) Are any of the T5 versions as widely deployed at
ASP's as 4.1.x?

tia




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



[OT] Powered by Struts

2005-01-10 Thread t t
Happy new year! 
If you are a sports lover, or Tomcat lover, or Struts lover, please take a look 
at this website:
www.sportslovers.net . It's based on Struts, and running on Tomcat.
Sorry if this email bothers you.


-
Do you Yahoo!?
 The all-new My Yahoo! – Get yours free!

T5.x/JDK 1.4 comat: Confusion about versions of JMX in there

2004-12-31 Thread T K
1) The T5.0 changelog claims:
Replace MX4J 1.1.1 with the Sun JMX 1.2 RI (remm)

2) The JDK 1.4.2 compat zip contains a jmx.jar; that
apparently contains mx4j - what version?

3) So is it mx4j or SUN JMX 1.2 RI or both? Why this
mess?

/sk




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: 4.1.31: NullPointerException

2004-12-16 Thread T K
This is the entire stack trace

--- Ben Souther [EMAIL PROTECTED] wrote:

 Post the whole stackTrace
 
 On Wed, 2004-12-15 at 15:10, T K wrote:
  Any ideas about the following?
  
  2004-12-06 11:29:26 CoyoteAdapter An exception or
  error occurred in the container during the request
  processing
  java.lang.NullPointerException
  at
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at
 

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at
 

org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at
 

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at
 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at
 

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

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:534)
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Find what you need with new enhanced
 search.
  http://info.mail.yahoo.com/mail_250
  
 

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

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


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

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



Re: 4.1.31: NullPointerException

2004-12-16 Thread T K
this was in the logs

--- Ben Souther [EMAIL PROTECTED] wrote:

 Where did you get this, the logs, or off the web
 screen?
 
 
 
 On Thu, 2004-12-16 at 09:06, T K wrote:
  This is the entire stack trace
  
  --- Ben Souther [EMAIL PROTECTED] wrote:
  
   Post the whole stackTrace
   
   On Wed, 2004-12-15 at 15:10, T K wrote:
Any ideas about the following?

2004-12-06 11:29:26 CoyoteAdapter An exception
 or
error occurred in the container during the
 request
processing
java.lang.NullPointerException
at
   
  
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117)
at
   
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at
   
  
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at
   
  
 

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
   
  
 

org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at
   
  
 

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
   
  
 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
   
  
 

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

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at
 java.lang.Thread.run(Thread.java:534)



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

   
  
 

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



   
   
  
 

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

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

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



4.1.31: NullPointerException

2004-12-15 Thread T K
Any ideas about the following?

2004-12-06 11:29:26 CoyoteAdapter An exception or
error occurred in the container during the request
processing
java.lang.NullPointerException
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)



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

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



StandardManager always persists session data. Bug?

2004-12-14 Thread T K
Hi all,

we have observed that, at least 4.1.31, always
persists session data upon shutdown; we even 
tried an explicit Manager:

Manager
className=org.apache.catalina.session.StandardManager
checkInterval=7200 distributable=false
saveOnRestart=false /

to no effect. Any thoughts?

tia

/st




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Moving from 4.1.27 to 5.0.28?

2004-12-01 Thread Bjørn T Johansen
I am thinging of upgrading our prod Tomcat server from 4.1.27 to 5.0.28 (or is 5.5.4 a 
safer bet?) and I was wondering if there would be any problems when upgrading?
Anything particular I should think of?

Regards,
BTJ
--
---
Bjørn T Johansen
[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Moving from 4.1.27 to 5.0.28?

2004-12-01 Thread Bjørn T Johansen
oki, thx :)
The conclusion would be..:
- upgrade to 5.0.28 is a good thing...
- shouldn't be any/much problem doing this
BTJ
Mike Curwen wrote:
We've recently been writing the 'next version' of our main application, and
the decision was made to target TC 5.0.x, up from 4.1.x.  We experience no
major difficulties in making that move, thouogh there can be a few gotchas.
 
The one thing we noticed that changed (for the better) was error page
handling.  

Others have reported small problems regarding TC 5's more strict
interpretation of the spec in certain areas. As an example of this (though
this is from memory!) I think someone had something like:
jsp:include page=foo
/jsp:include
 
And that appealed to their sense of 'good coding' (like putting opening and
closing braces on all blocks, including one line blocks).  This worked in
Tomcat 4.x, but not in 5.x

So small things like that might catch you up, but otherwise nothing major.

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 01, 2004 7:08 AM
To: Tomcat Users List
Subject: Moving from 4.1.27 to 5.0.28?

I am thinging of upgrading our prod Tomcat server from 4.1.27 
to 5.0.28 (or is 5.5.4 a 
safer bet?) and I was wondering if there would be any 
problems when upgrading? Anything particular I should think of?

Regards,
BTJ
--
--
-
Bjørn T Johansen
[EMAIL PROTECTED]
--
-
Someone wrote:
I understand that if you play a Windows CD backwards you 
hear strange Satanic messages To which someone replied: 
It's even worse than that; play it forwards and it installs Windows
--
-

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

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


Re: Tomcat

2004-11-25 Thread Bjørn T Johansen
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html
BTJ
Allen Beacon wrote:
Sorry Quinton I should reply to the list,
as I told you that could do it.however, I was looking for something like
using a virtual server so my users can use htlm pages from Apache2 and
servlets from Tomcat and I don´t want to show in the url :8080
 I was looking for something like using a virtual server so
depending of the url the use they will use static html pages from apache2
or servlets from Tomcat.

On Friday 26 November 2004 07:02, [EMAIL PROTECTED] wrote:
Hi there,
I would like to access my pages created with applets in Tomcat by typing
the host in the URL and not having to add the default port for Tomcat
(:8080). I have Apache2 and the apache2-jakarta-tomcat connectors
installed.
I created a index.html with a meta-tag in it that automatically redirects
the
browser to the tomcat port.
I needed to keep my Apache for other purposes and changing the default
connector of Tomcat to Port 80 was not an option.
Here is my code:
html
head
meta http-equiv=refresh
content=1;URL=http://your.server.site:8080/;
/head
body
/body
/html
Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP
Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344
http://www.vippayroll.co.za/
Command, n.:
Statement presented by a human and accepted by a computer in
such a manner as to make the human feel as if he is in control.

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


Re: Tomcat

2004-11-25 Thread Bjørn T Johansen
Then you haven't configured it correctly! It is not enough to just install it...
I am using this myself without any problems...
BTJ
Allen Beacon wrote:
I have the connector installed but I still need to type :8080 in order to
access the applet pages
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html
BTJ
Allen Beacon wrote:
Sorry Quinton I should reply to the list,
as I told you that could do it.however, I was looking for something like
using a virtual server so my users can use htlm pages from Apache2 and
servlets from Tomcat and I don´t want to show in the url :8080
I was looking for something like using a virtual server so
depending of the url the use they will use static html pages from
apache2
or servlets from Tomcat.

On Friday 26 November 2004 07:02, [EMAIL PROTECTED] wrote:

Hi there,
I would like to access my pages created with applets in Tomcat by
typing
the host in the URL and not having to add the default port for Tomcat
(:8080). I have Apache2 and the apache2-jakarta-tomcat connectors
installed.
I created a index.html with a meta-tag in it that automatically
redirects
the
browser to the tomcat port.
I needed to keep my Apache for other purposes and changing the default
connector of Tomcat to Port 80 was not an option.
Here is my code:
html
head
meta http-equiv=refresh
content=1;URL=http://your.server.site:8080/;
/head
body
/body
/html
Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP
Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344
http://www.vippayroll.co.za/
Command, n.:
Statement presented by a human and accepted by a computer in
such a manner as to make the human feel as if he is in control.

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


purported javac memory leak?

2004-11-01 Thread T K
Hi all,

as most of you know the tomcat 4.1.x jasper HOW-TO
claims
there is a javac memory leak; is there a SUN bug
report
I can look up? A small test case calling
com.sun.tools.Main.compile()
repeatedly does not exhibit the problem with JDK
1.4.2.
Tomcat 5.x uses the JDT Java compiler - what
was the motivation for doing so? Just so that one
would not need the full JDK?

thanks

/st


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

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



IndexOutOfBound Exception?

2004-10-14 Thread Bjørn T Johansen
)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

And I can't figure out why this works ok in JBuilder but not elsewhere..?
Are there some setting I am missing for the Tomcat server? Something else I am missing?
Anyone have any ideas?
Regards,
BTJ
--
---
Bjørn T Johansen
[EMAIL PROTECTED]   
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IndexOutOfBound Exception?

2004-10-14 Thread Bjørn T Johansen
Well, I am using JBuilder 2005, so Tomcat 5 is included... :)
BTJ
Edouard Dalla-Costa wrote:
hello,
I am sorry but I can't help you with your problem. However, I would
like to know if you succeed to make tomcat 5 work with JBuilder. I am
trying to do it but JBuilder still try to use a tomcat 4 class which
create error. So if you could help me I will appriciate.
Thank you
Regards
Doud
On Thu, 14 Oct 2004 08:37:35 +0200, Bjørn T Johansen [EMAIL PROTECTED] wrote:
I'm not sure it this is the right place but I'm trying
I have a problem. I am trying to use Crystal Report to show reports in my webapp using
Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the 
project
to a standalone Tomcat server, I get the following error:
13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR
com.crystaldecisions.reports.reportengineinterface - Exception occured while processing
getTotaller request
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source)
at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source)
at com.crystaldecisions.reports.totaller.c.n.do(Unknown Source)
at com.crystaldecisions.reports.totaller.c.y.init(Unknown Source)
at com.crystaldecisions.reports.totaller.c.ak.a(Unknown Source)
at com.crystaldecisions.reports.totaller.c.c.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
at 
com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.if(Unknown
Source)
at com.crystaldecisions.reports.formatter.formatter.d.j.do(Unknown Source)
at 
com.crystaldecisions.reports.reportengineinterface.Engine.getGroupTree(Unknown
Source)
at
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getTotaller(Unknown 
Source)
at com.crystaldecisions.report.web.viewer.ReportAgent.else(Unknown Source)
at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown 
Source)
at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown 
Source)
at
com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source)
at
com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown 
Source)
at
org.apache.jsp.showReport_jsp._jspx_meth_crviewer_viewer_0(showReport_jsp.java:128)
at org.apache.jsp.showReport_jsp._jspService(showReport_jsp.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520

Re: Tomcat vs BEA Weblogic?

2004-09-20 Thread Bjørn T Johansen
So the conclusion would be that BEA isn't worth the cost...
And since I am used to using opensource, including Tomcat, then Tomcat seems to be the 
right way to go... (and maybe JBoss if we get that far...)

Thanks for your replies... :)
BTJ
Shapira, Yoav wrote:
Hi,
I would add a couple of minor points, as others have already covered the main ones.
You say you're only using Weblogic's JSP container.  Tomcat's JSP container (known as 
Jasper) is used not only by Tomcat, but by JBoss, JonAS, IBM's Websphere, and a number 
of other commercial products.  So by switching, you not only get a free solution (BEA 
is $ as others have noted), but one that's used by a huge customer base and with 
many support options.
As QM noted, there's no official professional services provider for Tomcat, or Apache in 
general.  The ASF cannot sanction such an official provider because of its legal 
formulation.  However, there are a number of support companies which will do Apache, Tomcat, and 
Jasper.  Some of them, such as Covalent, have an excellent track record, numerous Fortune 1000 
customers, and 24x7 support.  That should be sufficient to CYA for management, which as someone 
mentioned is always a consideration.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 19, 2004 7:32 PM
To: Tomcat Users List
Subject: Tomcat vs BEA Weblogic?
I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
are only using
the jsp-container and it is time to renew the support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or
maybe better? Does
WL have features that is missing in Tomcat? When the time comes to use EJB,
is JBoss as
good as/better than WL?
So basically, I would like some advice on why I should/shouldn't continue
with Weblogic? :)

Regards,
BTJ
--
---

Bjørn T Johansen
[EMAIL PROTECTED]
---

Someone wrote:
I understand that if you play a Windows CD backwards you hear strange
Satanic messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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


This e-mail, including any attachments, is a confidential business communication, 
and may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
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]


Tomcat vs BEA Weblogic?

2004-09-19 Thread Bjørn T Johansen
I am taking over a project that's running on Weblogic 8.1 SP3 today.. They are only using 
the jsp-container and it is time to renew the support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or maybe better? Does 
WL have features that is missing in Tomcat? When the time comes to use EJB, is JBoss as 
good as/better than WL?

So basically, I would like some advice on why I should/shouldn't continue with 
Weblogic? :)

Regards,
BTJ
--
---
Bjørn T Johansen
[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


WEB-INF/lib directory?

2004-09-16 Thread Bjørn T Johansen
In Weblogic I can have subfolders in the lib directory, isn't this possible in Tomcat? It 
seems like I need to have all my jar files directly under the lib folder...

Regards
BTJ
--
---
Bjørn T Johansen (BSc,MNIF)
[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


CGIServlet and CGI.pm upload feature

2004-07-09 Thread Brian T. Dittmer
Hey guys...I'm having some serious trouble using the file upload feature
in CGI.pm in conjunction with Tomcat 5.0.24.  When I try and upload the
file to my script for parsing the script hangs and prints nothing to the
browser (in other words it's the script is erring out).  Here's where
the plot thickens...when I try and upload a file with six or seven lines
of data it goes through fine.  When I try and upload any file 5k or so
the script hangs.  The file is just a standard text file with fields
delaminated by pipes ( | ).  Below is the error in the log file:

2004-07-09 15:53:15 StandardContext[/management]cgi: runCGI
(stderr):CGI.pm: Server closed socket during multipart read (client
aborted?).
2004-07-09 15:53:15 StandardContext[/management]cgi: runCGI: 1 lines
received on stderr


I've tried modifying the clientInputTimeout parameter in web.xml but to
no avail.  It still errors out no matter high I set it.  I've also tried
changing the timeout times in server.xml.  I'm not really sure what the
deal is.

Below is the exact form code I'm using to pass the form to the script:

FORM ACTION=cgi-bin/data_import.cgi METHOD=post
ENCTYPE=multipart/form-data
file: INPUT TYPE=file NAME=leadfile
P
INPUT TYPE=submit NAME=Submit VALUE=Submit Form
/FORM


Below is the exact perl code I'm using to grab the data:

$query = new CGI; 
$lead_file = $query-upload(leadfile);  
@lines = $lead_file;



As you can see I'm not doing anything weird or different
here...basically I'm just trying to get a text file to parse and insert
into a database.  The script works great being executed from a command
line or if you send up a few lines of text, but dies otherwise.  Any
help on this would be greatly appreciated...I haven't been able to find
any reference to this problem on the web.  Thanks a lot!



Brian Dittmer [EMAIL PROTECTED]
http://www.tracerdigital.com
(614) 795-0501


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



Anyone have the complied mod_jk for AIX 4.3.3???

2004-06-22 Thread Robert T Donnelly




Hello,  we are running Apache 1.3.19.3 and Tomcat 3.2.4 on AIX 4.3.3.  We
are have trouble compiling the mod_jk and were wondering if anyone already
has this compiled and can send the file??  Thanks!

-Bob


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



Anyone have the complied mod_jk for AIX 4.3.3???

2004-06-18 Thread Robert T Donnelly




Hello,  we are running Apache 1.3.19.3 and Tomcat 3.2.4 on AIX 4.3.3.  We
are have trouble compiling the mod_jk and were wondering if anyone already
has this compiled and can send the file??  Thanks!

-Bob


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



Anyone have the complied mod_jk for AIX 4.3.3???

2004-06-16 Thread Robert T Donnelly




Hello,  we are running Apache 1.3.19.3 and Tomcat 3.2.4 on AIX 4.3.3.  We
are have trouble compiling the mod_jk and were wondering if anyone already
has this compiled and can send the file??  Thanks!

-Bob


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



Directory Structure Problems

2004-06-10 Thread Val T.
Hi,

I've encountered a difficulty in a web site implementation, which uses
Tomcat 4.1.18 on RH Linux 8.0, MySQL 3.23.54, J2SDK 1.4.1_01, and connection
pooling with Form based authentication.  Everything was working fine, until
some tweaks were done to the proxy server.

The directory strucuture is as follows:

CATALINA_HOME/webapps/LiveSite/Restricted
CATALINA_HOME/webapps/LiveSite/[main files and folders]
CATALINA_HOME/webapps/LiveSite/Login/login.jsp

I'm told that there is an Apache proxy server set up, that forwards the
requests to Tomcat.  When it was originally set up, requests that came in
for www.companyName.com would be redirected to the LiveSite folder, and the
index.jsp page was served up.  I noticed that the URL in the browser would
display the LiveSite folder in the address bar, after www.companyName.com,
like this:

www.companyName.com/LiveSite/index.jsp.

After some tweaks were done on the proxy server, the LiveSite folder no
longer displays in the address bar.  As a matter of fact, if you include it,
you get a 404 page not found error.  This would all be fine, and an
improvement, since it hides the directory structure, if it weren't for what
it has done to the authentication process.  Everything under the Restricted
folder requires login.  So, when everything was working, a person would
login, and, once authenticated, they would be able to happily do their thing
in that admin area.

Now, however, they can login in (usually after three attempts), but the
stylesheets are no longer recognized, the javascripts are not recognized,
images are broken, and if you click on a link, you are presented with the
login screen again.  There seems to be domain/directory structure confusion
in the server.

My problem is that I don't know which server is confused.  I think that this
LiveSite folder is now the default root folder.  I tried to set this as such
in the server.xml file in Tomcat, to see if that would help.

So, whereas I'd had the context as this:

Context path=/LiveSite docBase=LiveSite debug=0 reloadable=true 

I tried changing it to this:
Context path= docBase=LiveSite debug=0 reloadable=true 

This at first looked like a good move, until I discovered that doing this
gave me the following error:

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

so I've put it back the way I had it.  At least people can view the site,
though they can't use the restricted admin area, because they keep getting
the login page coming up.  It's like the session is lost, but the log files
in Tomcat don't show an error.

In the web.xml file for the site, this is what I have for the security
constraint on the restricted folder:

security-constraint
  web-resource-collection
   web-resource-nameAdmin/web-resource-name
   !-- Define the context-relative URL(s) to be protected --
   url-pattern/Restricted/*/url-pattern
   snip...
  /web-resource-collection
  auth-constraint
   descriptiononly let the admin users login/description
   role-namerole1/role-name
   role-namerole2/role-name
  /auth-constraint
 /security-constraint

Since the problems started with tweaks that were done on the proxy server, I
think we should be looking there.  But I've been told that the problem is
probably with the site or Tomcat.  However, all of the documentation that
I've read, and the searching I've done in the archives, has brought me to a
dead end.  And I still think there must be something that either should be
done in Tomcat to accommodate the fact that requests are going through a
proxy (though the same settings that I've got on this site work on other
sites that are on the same server--they're just not the default sites), or
there should be something done to the proxy itself.

I have been searching for a solution for two days, and don't know what
direction to go in.  The Tomcat logs don't indicate that there is a problem
at all, unless I have the context path as , and searching on the
SQLException didn't get me anywhere.

If anyone can give me a direction to look, I'd be really grateful.

Thanks for any help.

Val


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



RE: Problem with error-page

2004-05-21 Thread Frank T. Murphy

Could be the size of the generated page.  Check the thread I started about
the different problem with the error-page.   In order for IE not to hijack
it it s/b bigger than 500k.

see this url

http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml


|-+
| |   Jim Kennedy|
| |   [EMAIL PROTECTED]|
| |   ring.com|
| ||
| |   05/21/2004 12:30 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
---|
  |
   |
  |   To:   'Tomcat Users List' [EMAIL PROTECTED]  
  |
  |   cc:  
   |
  |   Subject:  RE: Problem with error-page
   |
  
---|




The suggestion to change 403.jsp to something like _403.jsp did not work.
I
did however change my browser setting in the advanced section concerning
friendly error messages.  This did work.  I still don't understand why
the
IE browser distinguishes between an HTML error page and a JSP error page.
The browser, it would seem to me, would not be aware of that.

Here's the first message again:

 I am trying to configure a custom error page when users try to access an
area of my site that they don't have sufficient rights to access.

The book says this to configure this in web.xml:

 error-page
 error-code403/error-code
 location/error/403.jsp/location
 /error-page

This doesn't work for me, but

 error-page
 error-code403/error-code
 location/error/403.html/location
 /error-page

Does work.  Is there a problem with using JSP's.


I'm am using JBOSS with Tomcat, but that shouldn't matter.  It's still the
Tomcat engine.  I'm also using Struts.

I'm using Tomcat 4.1.24.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 5:32 PM
To: 'Tomcat Users List'
Subject: RE: Problem with error-page

Doooh. My quick guess was not right, then:).

Sorry.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: May 20, 2004 14:48
To: 'Tomcat Users List'
Subject: RE: Problem with error-page


DOH!  prepend is what I meant to say.

 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 20, 2004 3:45 PM
 To: 'Tomcat Users List'
 Subject: RE: Problem with error-page


 I had never thought of that!  But when I tested it, it seems
 that JASPER appends a _, and so a JSP  page that starts with
 a number should still work.




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



Different Problem with error-page

2004-05-20 Thread Frank T. Murphy
I have a different problem with the error-page.

Our goal is to have any 404's redirected to a particular web page called
act_check.html

the web.xml piece looks as follows

 error-page
error-code404/error-code
location/act_check.html/location
  /error-page

It works on netscape 7.0 but I still get the standard IE 404 page when
running IE

Any thoughts?



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



Load-Balancing

2004-05-06 Thread Adam T. Gautier
I have a three server configuration with 1 Apache (httpd) and 2 Tomcat 
(10 instances a piece) servers.  The configuration is working but it is 
a little complicated.  I choose this configuration for performance.  I 
loaded the tomcat servers with lots of RAM and let the multiple instance 
run as independant processes under linux.  This would allow, I beleieve 
for beter CPU usage.  There were serveral other reasons for my original 
choice of load balancing across multiple instances on multiple machines 
which I won't go into unless asked. But, my question is this.  Is it 
needed?  Can I get the same performance  from single tomcat instances on 
the two boxes (rely on threads instead of POSIX proccesses)?  Wouldn't 
running 1 JVM instead of 10 provide a better use of memory per machine?  
The configuration would be easier, definatly...  What are the thought of 
the others in this group?  Thanks...

[ Apache 10.10.10.20]
  |
  |
||
[Tomcat 10.10.10.100]  [Tomcat 10.10.10.101]
|   |
[APP01-01][APP02-01]
   ... ...
[APP01-10] [APP02-10]


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


RE: Service Temporarily Unavailable

2004-05-03 Thread Trieu, Jason T - CNF
Ken,

That is an indication that Apache thinks Tomcat is down.  So either your
Tomcat is not up or problems with Tomcat-Apache connection.

Jason

-Original Message-
From: Ken Ramirez [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 03, 2004 12:32 PM
To: [EMAIL PROTECTED]
Subject: Service Temporarily Unavailable


I thought I'd try this request one more time since I didn't get any
responses my first time out:

I finally got Apache2+Tomcat5+mod_jk2 all talking. I entered the address
http://myhost/jkstatus; and received the correct response page.
However, when I entered the address: httpd://myhost/jsp-examples, I
get the following output:


-
Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

Apache/2.0.49 (Unix) mod_jk2/2.0.4 Server at 192.168.1.101 Port 80

-

Does anyone have a clue here?


Thanks,

Ken


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




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


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



RE: emergency - need to get into admin app

2004-04-19 Thread Trieu, Jason T - CNF
The -Xmx parameter is part of JAVA_OPTS and not CATALINA_OPTS and you
set JAVA_OPTS in catalina.bat to increase max size (-Xmx) of your heap
memory.


Jason

-Original Message-
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 2:06 PM
To: Tomcat Users List
Subject: Re: emergency - need to get into admin app


Thanks to everyone who wrote back with suggestions.  We had a rough
time, and right now we're up because we slapped the old drives back in.
After doing that, I found CATALINA_OPTS in the Environment Variables,
and it had the -Xms and -Xmx flags after the -server one, but I called
the guy who originally set everything up for us over a year ago, and he
said he remembered that that didn't work him (we're on Win 2000 Server)
and he had to set the memory via some super long command line when
installing tomcat as a Service.  

I'm trying to find info on setting the memory with command line args
when installing Tomcat as a service, so if you have a good idea of what
needs to be on the command line when doing that in Windows, feel free to
let me know or point me to the right docs.  

Thanks,
Stephen

- Original message -
From: Peter Davison [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Mon, 19 Apr 2004 14:41:52 -0400
Subject: Re: emergency - need to get into admin app

Hi Stephen.

You need to modify the CATALINA_OPTS environment variable:
To give yourself a Gig of memory, try: 

export CATALINA_OPTS=-Xmx1024m

How you set this variable will depend on your environment/os etc.

Hope that helps.
Pete.

Quoting Stephen Charles Huey [EMAIL PROTECTED]:

 Ok, I took out the security tags and I can get in there.  Is the admin

 app where I set memory allocations in Tomcat???  I'm looking at adding

 an Environment Entry or something, but I don't know what to do with 
 this! Our total Java memory is only like 60 MB and we need at least a 
 gig! Thanks...
 
 
 - Original message -
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Date: Mon, 19 Apr 2004 14:01:14 -0400
 Subject: Re: emergency - need to get into admin app
 
 NOTE: This is an emergency fix only and will leave you wide open.
 
 Edit the admin web.xml to allow no authentication.
 
 DO NOT LEAVE IT THIS WAY.
 
 What do you logs say?
 
 What does the server.xml look like? Please post it.
 
 Doug
 
 - Original Message -
 From: Stephen Charles Huey [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, April 19, 2004 1:48 PM
 Subject: emergency - need to get into admin app
 
 
  We reloaded the drives on our web server yesterday, but Tomcat keeps

  choking, and we think it's because not enough memory is allocated, 
  and we're trying to get into the admin web application, but it keeps

  saying our password isn't correct.  Even though I set a password 
  during the install, there was nothing in the tomcat-users.xml file, 
  so I've now made it this, but we still can't get in:
  
  ?xml version='1.0' encoding='utf-8'?
  tomcat-users
  role rolename=admin/
  role rolename=manager/
  role rolename=tomcat/
  role rolename=role1/
  user username=admin password=secret roles=manager,admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=role1 password=tomcat roles=role1/
  user username=both password=tomcat roles=tomcat,role1/
  /tomcat-users
  
  I've been restarting Tomcat after saving it after each modification.
  
  My boss is literally breathing down my neck, so please write back 
  ASAP if you have a clue, b/c Google isn't helping me out all that 
  much!!!
  
  Thanks,
  Stephen
  
  
  -
  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]
 
 
 


-- 
Peter Davison
[EMAIL PROTECTED]

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


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


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



RE: Tomcat performance issue?

2004-04-12 Thread Trieu, Jason T - CNF
It could be a bug in your servlet that hangs your connection or you
might actually have a big enough load to max out your number of
concurrent Tomcat threads (maxProcessors).  If it is load, you should
look into increasing your maxProcessors.  Make sure though that you have
enough JVM heap memory (Xmx parm) to handle it or you will run into
OutOfMemory error which is worse than out-of-connections.

Jason

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 9:43 AM
To: Tomcat Users List
Subject: Re: Tomcat performance issue?


I have this same problem. It creeped up without any configuration 
changes on 4.1.27
It doesn't always print this error message out, but the effect is the
same.

SEVERE: All threads (75) are currently busy, waiting. Increase
  maxThreads (75) or check the servlet status


My apache config:

Timeouts: connection: 300keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 255 Threaded: no Forked: yes IfModule
prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   255
MaxRequestsPerChild  1000
/IfModule

Tomcat config:
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=255
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=6/

Hey, I just realized something... I think I have been having lockups 
around every 16 hours... 6 seconds! So what does that mean about 
this configuration?
Why is the connectionTimeout being reached? I think I had set it to a 
really high number because I figured I didn't want anything to ever hit
it.

Is some servlet not returning content but hanging on to a connection?

Could you explain a little further about 'bug in a servlet causing it to

not return'?
I have a stack trace, but I don't see how that helps me figure out where

my problem might be... I'm not sure what exactly to look for.

Daniel Gibby

David Rees wrote:
  

Like the messages say, all Tomcat threads are busy and you've hit the 
maximum number of threads which can be processed concurrently.  Sounds 
like you've got either a bug in a servlet causing it to not return, or 
your server is simply overloaded.  You can get a stack trace from the 
JVM to help debug this issue pretty easily.
  



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



Invaild tar?

2004-02-11 Thread Matt T. Duval
I get the following while untaring:
2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar

x
jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/ap
ache/jasper/tagplugins/jstl
tar: 0511-169 A directory checksum error on media; 804398144 not equal
to 39532.

Thank you,

Matt Duval
Sr. Network Engineer
HealthTrans
www.healthtrans.com
(720) 493-8252
6061 South Willow Drive
Suite 125
Greenwood Village, CO 80111
Transforming Healthcare, One Transaction At A Time

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



RE: Invaild tar?

2004-02-11 Thread Matt T. Duval
Why would that matter? I have been able to untar thousands of other
files including gnu files and they all work fine...

Thank you,

Matt Duval
Sr. Network Engineer
HealthTrans
www.healthtrans.com
(720) 493-8252
6061 South Willow Drive
Suite 125
Greenwood Village, CO 80111
Transforming Healthcare, One Transaction At A Time



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 11, 2004 10:42 AM
To: Tomcat Users List
Subject: Re: Invaild tar?


make sure your using gnu tar

-Tim

Matt T. Duval wrote:
 I get the following while untaring:
 2959360 bytes jakarta-tomcat-connectors-jk-1.2-src-current.tar
 
 x 
 jakarta-tomcat-5.0.18-src/jakarta-tomcat-jasper/jasper2/src/share/org/
 ap
 ache/jasper/tagplugins/jstl
 tar: 0511-169 A directory checksum error on media; 804398144 not equal
 to 39532.



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



weird tomcat questions

2004-01-08 Thread T K
Can someone please decipher the following questions?

* How does scoping work in Tomcat?

* Why would you bother using a singleton when you're working with Tomcat?

Why would scoping be different in tomcat than any other
servlet-complying container?  What does a singleton have to do
with a web container?
/tk



Re: Issue with EL disabled

2003-12-13 Thread Manolo Ramirez T.
Hi,

Make sure that your web.xml is according to the Servlet 2.4 
Specification. Tomcat disables EL evaluation for old apps.

Regards,


Manolo Ramirez T.
Olivier Moratin wrote:
Hello,
 
I am getting crazy on what could be a simple thing.
 
While the Tomcat webapp examples (accessible from the manager) run EL (${variable}) properly, my own app doesn't.
 
I just installed Tomcat and stuff and thought it was enabled by default.
 
Tomcat 5 on Windows with latest version of J2EE/J2SE.
 
Please help. I am getting irritated :))
 
Thanks a lot

-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing


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


question on manager application

2003-12-10 Thread T C K
I am in need to deploy a WAR file to a remote Tomcat4
and need to have the WAR file expanded.  Any pointers
as to what the URL to the manager app would look like (i.e
the 'war' parameter - btw, what's the difference between file:/.../foo.war
and jar:file:/.../foo.war!/ ???) and to expand the archive?
tia

-t



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


loss of session from http to https

2003-11-01 Thread Peter T. Abplanalp
hi all,

i have a tomcat 4.1.27 instance fronted by an instance of
apache 2.0.40, using jk2.  it is a commerce site and at the
point of credit card information collection goes from http
to https.  the first time a user goes from http to https,
the session information is lost (i.e. the order information)
but if the user uses https from the beginning, eveything is
fine.  the specific error i am seeing is:

org.apache.jk.server.JkCoyoteHandler action
INFO: RESET

i have done some searching on the web for this error but
nothing i have found really helps.  most responses to such
questions say something like, it is just an info type
message and can thus be ignored but the large issue of
session loss isn't addressed.

does anyone have any idea what is going on here or have any
suggestions?

thanks in advance for any and all assistance.

-- 
Peter Abplanalp
PGP: pgp.mit.edu

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



Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Manolo Ramirez T.
Hi,

I sugest that you compile the src, it's not to dificult if you now the 
steps, download it from here:

http://apache.towardex.com/jakarta/tomcat-connectors/jk/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz

to compile (in Redhat 9):

$ tar xzf XXX
$ cd XXX/jk/native/
$ sh buildconf.sh
$ ./configure --with-apxs=/usr/sbin/apxs
$ make
The binary file will be in XXX/jk/native/apache-2.0/mod_jk.so

I hope this helps.

Regards,

_
Manolo Ramirez T.


Stu Statman wrote:
I am unsure if I'm asking this question in the right forum, and while I 
did a quick look through the archives, I may be repeating a question 
that someone else has asked and has had answered. If so, I apologize.

Someone in my org is trying to put together a development server image 
(Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. 
I pointed him at 
http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, 
but it turns out that there's no binary there. It's an empty directory. 
He and I both did some surfing around, and can't seem to spot a binary 
anywhere else.

Do need to compile our own version of the binary? Is there someplace 
else I should be looking?

Thanks for the help, apologies for what's probably a noob question ...

Stu Statman

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




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


RE: Tomcat ver 4.1.27

2003-10-24 Thread Bergan, Mark T - PGPL-5
Not sure where you're at in the process but have you gone into:

Start | Settings | Control Panel | Administrative Tools | Services

and verified that Apache Tomcat 4.1 has:
Status = Started 
Startup Type = Automatic
?


 -Original Message-
 From: Hardee, Brenda G NAVSAFECEN [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 24, 2003 7:56 AM
 To: Tomcat Users List
 Subject: Tomcat ver 4.1.27
 Importance: High
 
 
 
 
  I have Tomcat ver 4.1.27 running as a service on a win2000 
 platform.  I cannot connect to the service with my browser 
 (i.e.).  If a run Tomcat in the startup script I can connect 
 with my browser.  Can anyone give me some 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]



RE: IIS and Tomcat

2003-10-23 Thread Bergan, Mark T - PGPL-5

If you need to have IIS serve static pages as well, you must also create an IIS 
virtual directory (somewhere in the ~tomcat/webapps/myresort folder) which is 
apparently mentioned nowhere.

 -Original Message-
 From: Dionne, Patrice [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 5:57 AM
 To: Tomcat Users List
 Subject: RE: IIS and Tomcat
 
 
 Yes, you can.
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: 22 octobre, 2003 14:50
 To: [EMAIL PROTECTED]
 Subject: IIS and Tomcat
 
 
 I've integrated Apache with Tomcat on numerous occasions, but 
 never on 
 IIS.  We have the following scenario:
 
 1.  We want to have a domain name - i.e. www.myresort.com - that is 
 serviced by IIS.
 2. We want to map any requests to www.myresort.com to Tomcat's 
 /myresort application.
 
 Is this possible? I know it is with Apache, but I'm not sure 
 about IIS. 
  From what I've seen from the documentation, IIS has to have 
 some sort 
 of indicator, i.e. /jk/*
 
 Thanks,
 
 Matt
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: web.xml editor

2003-10-23 Thread Bergan, Mark T - PGPL-5

NetBeans IDE 3.5.1 (It's free  got ever'thin)
Jext editor @ www.jext.org (a good free java xml/html editor)


 -Original Message-
 From: Luiz Ricardo [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 5:30 AM
 To: Tomcat-Users List
 Subject: web.xml editor
 
 
 Hi everyone,
 
 I would like to know if someone here uses some free application to
 edit web.xml files, likely this application was web-based.
 
 I also would like to know if Tomcat Team intends to do something like
 this.
 
 Thanks in advance,
 
 Luiz Ricardo
 
 
 -
 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: ResulSet Question

2003-10-21 Thread Manolo Ramirez T.
Hi,

I think that rsSN is associated with statement, so we you do 
'statement.executeQuery()' that invalidates the current ResultSet. Try 
using other statement object for the internal querys.

Regards,

___
Manolo.
[EMAIL PROTECTED] wrote:
All, 

I have the following code

rsSN = statement.executeQuery(Query);
while (rsSN.next()){
if (Frame.equals(E)){
rsFrame = statement.executeQuery(QueryFrameE);
if (rsFrame.next()){ js.append(trtd+
rsFrame.getString(ATTRIBUTE_VALUE) +/td/tr); }
} else{
rsFrame = statement.executeQuery(QueryFrameF);
if (rsFrame.next()){ js.append(trtd+
rsFrame.getString(ATTRIBUTE_VALUE) +/td/tr); }
}
}
Why it only do it once, if the ResulSet rsSN have 100 records

Thanks in advance
Salvador
-
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]


It's the Virtual Directory Stupid! was: IIS not serving static files from Tomcat -IIS; Tomcat 4.1.27; IIS 5; Win2k sp4; JK2; isapi_redi rector2

2003-10-21 Thread Bergan, Mark T - PGPL-5
Right, well, so I wrote this huge detailed message to send to y'all complete with 
actual annotated config-files with a plea to help me figure out why IIS wouldn't serve 
up the static files under the /webapps folder.  I was carefully verifying each detail 
before I clicked send...and got to thinking about IIS Virtual Directories.  ..One last 
tweak in the IIS console and Bam!

Listen carefully.  YOU NEED TO SET UP A VIRTUAL DIRECTORY IN THE IIS CONSOLE FOR 
TOMCAT APPS UNDERNEATH THE $(TOMCATBASEDIR)/webapps FOLDER!

The crowd goes, Yeah, well duh!.  I wasted days on this!  Funny, none of the 
docs/books I looked at mentioned this, but I'm not a sys-admin, just a lowly 
programmer.

Anyway, hopefully I saved some company somewhere a few bucks in configuration time.

-Mark

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



How much memory does Tomcat really use?

2003-09-25 Thread Frank T. Murphy
Does anyone have a handle on how much memory is used by java in running
tomcat?  I set the ms and mx values but it always seems that the process
overall takes up much more memory.

I asume it's overhead with the JVM talking to the operating system.
I'm trying to get a handle on how to size various servers.
I went through Sun's developer forums and I've seen this question asked
several times with no response.

I work in bothe the Solaris and windows environment.


Thanks



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



startup errors

2003-09-19 Thread Doyle Bradford T NPRI
Yan,

I had the same problem.  I reinstalled Tomcat 4.1.27 from the zip file, and now it 
seems to startup OK.

Brad



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



Exception in Tomcat?

2003-09-12 Thread Bjørn T Johansen
I have a Struts app that's running under Tomcat 4.1.27 and now and then
I get this in my log:

11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
11.sep.2003 10:44:13 org.apache.jk.common.ChannelSocket
processConnection
INFO: server has been restarted or reset this connection

Is this something I should worry about or? My app is working even if I
get these...

Regards,

BTJ

-- 
---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no
---
The stickers on the side of the box said Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better, so clearly Linux was a supported platform.
---



Re: AW: Exception in Tomcat?

2003-09-12 Thread Bjørn T Johansen
Well, the problem is that I don't use any sockets in my webapp

BTJ

On Fri, 2003-09-12 at 13:22, Nitschke Michael wrote:

 If the connection is not proper established this error occurs.
 The easiest was to fix it is to catch the exception in your application, so your 
 application would not die at every occurrence.
 Surround the socket write statement with the catch construct. 
 
 
 -Ursprüngliche Nachricht-
 Von: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 12. September 2003 13:16
 An: [EMAIL PROTECTED]
 Betreff: Exception in Tomcat?
 
 I have a Struts app that's running under Tomcat 4.1.27 and now and then
 I get this in my log:
 
 11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at
 java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at
 java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at
 org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
 at
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
 at org.apache.coyote.Response.action(Response.java:222)
 at org.apache.coyote.Response.finish(Response.java:343)
 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
 at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Thread.java:534)
 11.sep.2003 10:44:13 org.apache.jk.common.ChannelSocket
 processConnection
 INFO: server has been restarted or reset this connection
 
 Is this something I should worry about or? My app is working even if I
 get these...
 
 Regards,
 
 BTJ

-- 
---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no
---
The stickers on the side of the box said Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better, so clearly Linux was a supported platform.
---



Re: AW: Exception in Tomcat?

2003-09-12 Thread Bjørn T Johansen
Oki, thanks...

Does anyone know which settings to change?


BTJ


On Fri, 2003-09-12 at 16:09, Rob Augustinus wrote:

 there are some timeout settings you can set..(I think)
 either in apache or else.. not sure where..
 
 Holger Klawitter wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
   
 
 I have a Struts app that's running under Tomcat 4.1.27 and now and then
 I get this in my log:
 
 11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at
 
 
 
 AFAIK these errors occur when the browser (or Apache) closes the connection 
 before the page has completely being served. I haven't found anything to do 
 about it have neither found anything to improve with my webapps. Well making 
 them faster helps a bit ;-)
 
 Mit freundlichem Gru / With kind regards
  Holger Klawitter
 - --
 lists at klawitter dot de
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.2 (GNU/Linux)
 
 iD8DBQE/Ybv+1Xdt0HKSwgYRAkJyAKCb1+bRBGn1WjlaOYQc1oVVqheBYACfUSKq
 aHKlWXNKHN835+VIrbQB4/M=
 =QgpC
 -END PGP SIGNATURE-
 
 
 -
 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: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object.

2003-09-11 Thread Manolo Ramirez T.
Are you declaring the JNDI resource in DefaultContext or with 
ResourceLink? if yes, try with a normal Context and Resource.

Regards,

_
Manolo Ramirez T.
Wynkoop, Robert M wrote:
Yeah I had already tried that.  When It was not there I got this message on
Tomcat startup - java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/sql/DataSource
I'm kind of stumped on this.  Any other ideas?

Later,

Robert Wynkoop

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
If you use oracle jdbc driver, put classes12.jar in common/lib

-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED] 
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying instantiate datasource object.

The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
C:\web\Tomcat4.1\bin\bootstrap.jar;C:\jdk1.3.1_08\lib\tools.jar
-Dcatalina.home=C:\web\Tomcat4.1 -Dcatalina.base=C:\web\Tomcat4.1
org.apache.catalina.startup.Bootstrap start 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)
at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc
eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg when
if I don't have it in tomcatHome/common/lib.
C:\jdk1.3.1_08\jre\bin\java -classpath
C:\web\Tomcat4.1\bin\bootstrap.jar;C:\jdk1.3.1_08\lib\tools.jar
-Dcatalina.home=C:\web\Tomcat4.1 -Dcatalina.base=C:\web\Tomcat4.1
org.apache.catalina.startup.Bootstrap start 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)

I googled for this answer.  The most common problem is not finding the
database driver in tomcatHome/common/lib.
Later,

Robert Wynkoop

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



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


Re: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object.

2003-09-11 Thread Manolo Ramirez T.
Yep, that's what I'm talking about, check the archives, some people had 
problems with ResourceLink's and DefaultContext. Defining your context 
in a myApp.xml is the best option to avoid it, you must to follow 
Phillip Qin advise. Happy Coding!

Regards,

__
Manolo Ramirez T.
Wynkoop, Robert M wrote:
I don't know how to answer other than I have it in:
GlobalNamingResources
When you say normal context, what are we talking about? :)  
Are talking about something like:

!-- Tomcat Examples Context --
Context path=/examples   blah, blah, blah.
**snip
Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue//parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
/Context
Thanks,
Robert Wynkoop
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 9:27 AM
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
Are you declaring the JNDI resource in DefaultContext or with 
ResourceLink? if yes, try with a normal Context and Resource.

Regards,

_
Manolo Ramirez T.
Wynkoop, Robert M wrote:

Yeah I had already tried that.  When It was not there I got this message
on

Tomcat startup - java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/sql/DataSource
I'm kind of stumped on this.  Any other ideas?

Later,

Robert Wynkoop

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.
If you use oracle jdbc driver, put classes12.jar in common/lib

-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED] 
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying instantiate datasource object.

The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
C:\web\Tomcat4.1\bin\bootstrap.jar;C:\jdk1.3.1_08\lib\tools.jar
-Dcatalina.home=C:\web\Tomcat4.1 -Dcatalina.base=C:\web\Tomcat4.1
org.apache.catalina.startup.Bootstrap start 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:115)
   at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav

a:523)
   at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3

29)
   at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc

eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg
when

if I don't have it in tomcatHome/common/lib.

C:\jdk1.3.1_08\jre\bin\java -classpath
C:\web\Tomcat4.1\bin\bootstrap.jar;C:\jdk1.3.1_08\lib\tools.jar
-Dcatalina.home=C:\web\Tomcat4.1 -Dcatalina.base=C:\web\Tomcat4.1
org.apache.catalina.startup.Bootstrap start 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError:

javax/sql/DataSource
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
I googled for this answer.  The most common problem is not finding the
database driver in tomcatHome/common/lib.
Later,

Robert Wynkoop

Re: URGENT!!! Tomcat 4 download

2003-09-11 Thread Manolo Ramirez T.
Try this:

http://www.jpackage.org

[EMAIL PROTECTED] wrote:
Hi All
I am trying to download tomcat 4.1.24 rpm thro apt-get.
I am using apt-get install tomcat4 command. It gives me a bunch of
dependecies which it needs to install tomcat4. But if i download a tar
ball everything does just fine. I tried to get rpm from jakarta site but i
had no luck finding the rpms on there. Please help me solve this issue.I
think rpms is the best way to go but i'm just not able to get it to work
thanks in advance

--mohan



-
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: problems with the starting of rpm version of tomcat4-4.1.24-full.2jpp.noarch.rpmon Red Hat Advanced Server 2.1

2003-08-29 Thread Manolo Ramirez T.
Hi,

You must to install tomcat4-webapps-4.1.24-full.2jpp or configure the
ROOT context by yourself.

Regards,

_
Manolo Ramirez T.

  wrote:
 Hi,
 I want to run Tomcat4 on my newly installed redhat
 Advanced Server2.1.
 The jakartar-tomcat4.1.24.tar version do work when I
 visit http://localhost:8080/.
 But the rpm version don't work.When I visit
 http://localhost:8080/,the response is:
 HTTP Status 500 - No Context configured to process
 this request
 
 type   Status report
 
 message   No Context configured to process this
 request
 
 description  The server encountered an internal
 error (No Context configured to process this request)
 that prevented it from fulfilling this request.
 
 Can you help me out?
 Thank you!
 
 
 
 
 _
 Do You Yahoo!? 
 ?[???]?+??
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Re: Can not load JNDI DataSource in Servlet.init()

2003-08-27 Thread Manolo Ramirez T.
I try it and doGet() stop working too, the error was:

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

Anyway, I found how to configure the application context with ant (I 
think that it was not posible), so I can live without DefaultContext.

Thanks for the help.

Regards,

_
Manolo Ramirez T.
Madere, Colin wrote:
Ok, you are using a resource-ref.  But I'm not sure why since you have the
resource defined in the DefaultContext.  Try removing the resource-ref from
your web.xml and see if you get a different error.
(BTW: Better not to use attachments since this list is archived and not all
attachments work for all mail readers, etc).
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 7:01 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()

I was making more test with this, I find that if I define the resource 
in a normal context it works, but I want to use defaultcontext to work 
with ant InstallTask, or is there another way to do this?

I attached my web.xml, this is the relevant entry in server.xml:

DefaultContext debug=0 reloadable=true crossContext=true
   Resource name=jdbc/ComercialDB
auth=Container
type=javax.sql.DataSource/
   ResourceParams name=jdbc/ComercialDB
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   namemaxActive/name
   value100/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
 parameter
  nameusername/name
  value***/value
 /parameter
 parameter
  namepassword/name
  value***/value
 /parameter
 parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   nameurl/name
 
valuejdbc:mysql://localhost:3306/comercial?autoReconnect=true/value
 /parameter
   /ResourceParams

/DefaultContext





Thanks for the help Colin.

_
Manolo Ramirez T.


Madere, Colin wrote:

Well then it may be something else.  I'm essentially doing what you 
are with a JNDI datasource defined in the DefaultContext with nothing 
in the web.xml (except to pass along the JNDI name so it's not 
hard-coded).  It breaks for me (and a bunch of other people posting 
recently using 4.1.x) when I try to move that to GlobalNamingResources 
and use a ResourceLink.

Post your server.xml and web.xml (or just relevant parts), maybe it's 
something else.

-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()
No, I'm not using a ResourceLink.

_
Manolo Ramirez T.
Madere, Colin wrote:


So you are using a resource link in the DefaultContext either in
server.xml or your web.xml?
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 1:27 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()
It's in DefaultContext, I checked the related messages, it seems like 
the same problem.

Thanks for the answer.

_
Manolo Ramirez T.
Madere, Colin wrote:



How is your JNDI resource configured?  In an explicitly defined 
Context or in the DefaultContext?  ResourceLinked?

I ask because there are a number of folks with similar problems that 
look to be something missing in how JNDI datasources are handled 
internally when using DefaultContext.

See other topics:

* ResourceLink and DefaultContext
* Tomcat 4.1 DefaultContext Bug?
* Question about Tomcat Documentation
* Globally defined JNDI DataSource
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:55 PM
To: Tomcat Users List
Subject: Can not load JNDI DataSource in Servlet.init()
Hi all,

Why I can't load a JNDI resource on the init method of my servlet? 
there is no problem doing that in doGet() but on init() it doesn't 
work. the logs entry is:

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

It's the same code! What I'm missing?

this is my servlet code:





package libreria;

import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class MyServlet extends HttpServlet {

  public void init (ServletConfig config) throws ServletException{
super.init(config);
try {
Context ctx = new InitialContext();
if(ctx==null) {
System.out.println(fallo InitialContext);
return;
}
DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
if(ds

Re: Can not load JNDI DataSource in Servlet.init()

2003-08-25 Thread Manolo Ramirez T.
It's in DefaultContext, I checked the related messages, it seems like 
the same problem.

Thanks for the answer.

_
Manolo Ramirez T.
Madere, Colin wrote:
How is your JNDI resource configured?  In an explicitly defined Context or
in the DefaultContext?  ResourceLinked?
I ask because there are a number of folks with similar problems that look to
be something missing in how JNDI datasources are handled internally when
using DefaultContext.
See other topics:

* ResourceLink and DefaultContext
* Tomcat 4.1 DefaultContext Bug?
* Question about Tomcat Documentation
* Globally defined JNDI DataSource
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2003 10:55 PM
To: Tomcat Users List
Subject: Can not load JNDI DataSource in Servlet.init()

Hi all,

Why I can't load a JNDI resource on the init method of my servlet? there 
is no problem doing that in doGet() but on init() it doesn't work. the 
logs entry is:

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

It's the same code! What I'm missing?

this is my servlet code:





package libreria;

import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class MyServlet extends HttpServlet {

 public void init (ServletConfig config) throws ServletException{
super.init(config);
try {
Context ctx = new InitialContext();
if(ctx==null) {
System.out.println(fallo InitialContext);
return;
}
	DataSource ds = 
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
	if(ds==null) {
		System.out.println(fallo lookup);
		return;
	}

	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery(select * from pruebas);
	while(rs.next()) {
	 
System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs.getSt
ring(apellido));
	}
	}
	catch(Exception e) {
	e.printStackTrace();
	}
 }

 public void doGet(HttpServletRequest request, HttpServletResponse 
response) throws IOException,ServletException {
	response.setContentType(text/plain);
	PrintWriter out= response.getWriter();
	out.println(holas muchas);

try {
Context ctx = new InitialContext();
if(ctx==null) {
out.println(fallo InitialContext);
return;
}
	DataSource ds = 
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
	if(ds==null) {
		out.println(fallo lookup);
		return;
	}

	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery(select * from pruebas);
	while(rs.next()) {
	 
out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString(apelli
do));
	}
	}
	catch(Exception e) {
	e.printStackTrace(out);
	}
 }
}





Regards.

_
Manolo Ramirez T.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


Re: Can not load JNDI DataSource in Servlet.init()

2003-08-25 Thread Manolo Ramirez T.
No, I'm not using a ResourceLink.

_
Manolo Ramirez T.
Madere, Colin wrote:
So you are using a resource link in the DefaultContext either in server.xml
or your web.xml?
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 1:27 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()

It's in DefaultContext, I checked the related messages, it seems like 
the same problem.

Thanks for the answer.

_
Manolo Ramirez T.
Madere, Colin wrote:

How is your JNDI resource configured?  In an explicitly defined 
Context or in the DefaultContext?  ResourceLinked?

I ask because there are a number of folks with similar problems that 
look to be something missing in how JNDI datasources are handled 
internally when using DefaultContext.

See other topics:

* ResourceLink and DefaultContext
* Tomcat 4.1 DefaultContext Bug?
* Question about Tomcat Documentation
* Globally defined JNDI DataSource
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:55 PM
To: Tomcat Users List
Subject: Can not load JNDI DataSource in Servlet.init()
Hi all,

Why I can't load a JNDI resource on the init method of my servlet? 
there
is no problem doing that in doGet() but on init() it doesn't work. the 
logs entry is:

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

It's the same code! What I'm missing?

this is my servlet code:





package libreria;

import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class MyServlet extends HttpServlet {

public void init (ServletConfig config) throws ServletException{
super.init(config);
try {
Context ctx = new InitialContext();
if(ctx==null) {
System.out.println(fallo InitialContext);
return;
}
DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
if(ds==null) {
System.out.println(fallo lookup);
return;
}
	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery(select * from pruebas);
	while(rs.next()) {
	 
System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs
.getSt
ring(apellido));
	}
	}
	catch(Exception e) {
	e.printStackTrace();
	}
}

public void doGet(HttpServletRequest request, HttpServletResponse
response) throws IOException,ServletException {
response.setContentType(text/plain);
PrintWriter out= response.getWriter();
out.println(holas muchas);
try {
Context ctx = new InitialContext();
if(ctx==null) {
out.println(fallo InitialContext);
return;
}
DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
if(ds==null) {
out.println(fallo lookup);
return;
}
	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery(select * from pruebas);
	while(rs.next()) {
	 
out.println(rs.getInt(id)+::+rs.getString(nombre)+rs.getString(
apelli
do));
	}
	}
	catch(Exception e) {
	e.printStackTrace(out);
	}
}
}





Regards.

_
Manolo Ramirez T.
-
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]




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


Re: Can not load JNDI DataSource in Servlet.init()

2003-08-25 Thread Manolo Ramirez T.
I was making more test with this, I find that if I define the resource 
in a normal context it works, but I want to use defaultcontext to work 
with ant InstallTask, or is there another way to do this?

I attached my web.xml, this is the relevant entry in server.xml:

DefaultContext debug=0 reloadable=true crossContext=true
  Resource name=jdbc/ComercialDB
   auth=Container
   type=javax.sql.DataSource/
  ResourceParams name=jdbc/ComercialDB
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namemaxActive/name
  value100/value
/parameter
parameter
  namemaxIdle/name
  value30/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
 nameusername/name
 value***/value
/parameter
parameter
 namepassword/name
 value***/value
/parameter
parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
  nameurl/name
valuejdbc:mysql://localhost:3306/comercial?autoReconnect=true/value
/parameter
  /ResourceParams
/DefaultContext





Thanks for the help Colin.

_
Manolo Ramirez T.


Madere, Colin wrote:
Well then it may be something else.  I'm essentially doing what you are with
a JNDI datasource defined in the DefaultContext with nothing in the web.xml
(except to pass along the JNDI name so it's not hard-coded).  It breaks for
me (and a bunch of other people posting recently using 4.1.x) when I try to
move that to GlobalNamingResources and use a ResourceLink.
Post your server.xml and web.xml (or just relevant parts), maybe it's
something else.
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()

No, I'm not using a ResourceLink.

_
Manolo Ramirez T.
Madere, Colin wrote:

So you are using a resource link in the DefaultContext either in 
server.xml or your web.xml?

-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 1:27 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()
It's in DefaultContext, I checked the related messages, it seems like
the same problem.
Thanks for the answer.

_
Manolo Ramirez T.
Madere, Colin wrote:


How is your JNDI resource configured?  In an explicitly defined
Context or in the DefaultContext?  ResourceLinked?
I ask because there are a number of folks with similar problems that
look to be something missing in how JNDI datasources are handled 
internally when using DefaultContext.

See other topics:

* ResourceLink and DefaultContext
* Tomcat 4.1 DefaultContext Bug?
* Question about Tomcat Documentation
* Globally defined JNDI DataSource
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:55 PM
To: Tomcat Users List
Subject: Can not load JNDI DataSource in Servlet.init()
Hi all,

Why I can't load a JNDI resource on the init method of my servlet?
there
is no problem doing that in doGet() but on init() it doesn't work. the 
logs entry is:

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

It's the same code! What I'm missing?

this is my servlet code:





package libreria;

import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class MyServlet extends HttpServlet {

   public void init (ServletConfig config) throws ServletException{
super.init(config);
try {
Context ctx = new InitialContext();
if(ctx==null) {
System.out.println(fallo InitialContext);
return;
}
	DataSource ds = 
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
	if(ds==null) {
		System.out.println(fallo lookup);
		return;
	}

	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery(select * from pruebas);
	while(rs.next()) {
	 
System.out.println(rs.getInt(id)+::+rs.getString(nombre)+::+rs
.getSt
ring(apellido));
	}
	}
	catch(Exception e) {
	e.printStackTrace();
	}
   }

   public void doGet(HttpServletRequest request, HttpServletResponse
response) throws IOException,ServletException {
response.setContentType(text/plain);
PrintWriter out= response.getWriter();
out.println(holas muchas);
try {
Context ctx = new InitialContext();
if(ctx==null) {
out.println(fallo InitialContext);
return;
}
	DataSource ds = 
(DataSource)ctx.lookup(java:comp/env/jdbc/ComercialDB);
	if(ds==null

  1   2   3   >