Re: Session Goes Away (?)

2003-11-30 Thread Cliff Willsher
Merrill,

I had the similar problem (Tomcat 5) but found that my firewall (Zone Alarm 
Pro) was blocking session cookies. If the cookie can't be set then you get 
a new session each time.

Incidentally, Zone Alarm Pro seems to have a bug whereby it blocks session 
cookies from localhost even if they are enabled for all else.

Cliff

At 18:06 29/11/2003 -0600, you wrote:
I'm running Tomcat 4.1.27 standalone on Windows XP Pro using IE.

I've been developing my first web application in JSP with some 
success--then I decided to converted it into servlets. [sigh...]

I tried following the examples in Dustin Callaway's INSIDE SERVLETS, 
Second Edition.  The structure he proposes for the servlet is simple 
enough (detail omitted):

1. session = request.getSession(true);

2. if (session.isNew()), then output an HTML page.  In this case, the page 
contains a form with my servlet as the ACTION destination.

3. Else (i.e., if not isNew()), process whatever the form returned.

My problem is that if I print session, then I find that everytime I enter 
the servlet, I have a different session.  If I print the result of 
getRequestedSessionId(), it's differnt too. Also, I've tried doing a 
session.setAttribute(), but it's always null on the return to the servlet. 
This all implies that I'm constantly getting a different session object.

getMaxInactiveInterval() = 1800, so the session isn't being artificially 
invalidated by a ultra-short timeout.

Any suggestions?

Merrill Cornish

-
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: html not working

2003-11-30 Thread Timo
George,
It seems that you having problems resolving relative references, can you
tell me where your images are located in relative form to your web context,
also tell me what is your href tags that you used to display the images.

Timo
- Original Message - 
From: George Esperanza [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 29, 2003 5:16 AM
Subject: html not working


 Hello,

 Sorry for posting this question.  I'm new to tomcat
 and i'm wondering why i can't access my html files.
 I'm using tomcat 4.1 on windows 98. If i renamed an
 html file to jsp extension i can access it, but the
 images on that page are not shown.  I don't know
 what's wrong with my tomcat server.  Please help.

 Thanks

 George

 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.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: Tomcat 5.0.14 classloader bug

2003-11-30 Thread Ben Souther
Not sure but, don't classes need to be in a package in order to work from jar 
files?


On Friday 28 November 2003 07:40 pm, you wrote:
 Hello,

 I think I've stumbled into a bug in the webapp classloader in Tomcat
 5.0.14.

 Consider the following servlet, which I mapped to /* for testing
 convenience.

 import java.io.*;
 import java.net.URL;
 import javax.servlet.ServletException;
 import javax.servlet.http.*;

 public class Test extends HttpServlet
 {
  public void service(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException
  {
  PrintWriter out = res.getWriter();
  URL rsrc = getClass().getResource(Test.class);
  String tst = rsrc.toString()+ : +
  rsrc.openStream()+ : +
  getClass().getResourceAsStream(Test.class);
  out.println(tst);
  out.close();
  }
 }


 When I put the compiled class file in ROOT/WEB-INF/classes
 and visit http://localhost:8080/ after a server startup, I get the
 following page:

 file:/jakarta-tomcat-5.0.14/webapps/ROOT/WEB-INF/classes/Test.class :
 [EMAIL PROTECTED] : [EMAIL PROTECTED]


 When I create a jar file with just that class inside, put it in
 ROOT/WEB-INF/lib (after removing everything from ROOT/WEB-INF/classes
 before) and visit http://localhost:8080/ after a server restart, I get
 the following page:

 HTTP Status 500 -
 type Exception report
 message
 description The server encountered an internal error () that prevented
 it from fulfilling this request.
 exception
 java.io.FileNotFoundException:
 /jakarta-tomcat-5.0.14/work/Catalina/localhost/_/loader/Test.class
 (No such file or directory)
 java.io.FileInputStream.open(Native Method)
 java.io.FileInputStream.(FileInputStream.java:106)
 java.io.FileInputStream.(FileInputStream.java:66)
 sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:
69)
 sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnectio
n.java:156) java.net.URL.openStream(URL.java:913)
 Test.service(Test.java:13)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 The openStream() method has thrown this exception, and the
 getResourceAsStream(Test.class) method returns null.

 There's clearly something wrong here, since the file is indeed not
 available on that location. The work directory
 /jakarta-tomcat-5.0.14/work/Catalina/localhost/_ just contains one
 file: tldCache.ser and no directory loader at all.

 I've looked through the sources and found some things in
 org.apache.catalina.loader.WebappClassLoader.

 On line 552, the following is done:

 public void setWorkDir(File workDir) {
  this.loaderDir = new File(workDir, loader);
 }

 Which is where the loader directory comes from.

 On line 1085, the following is done:

 if (repository.endsWith(.jar)) {
  // Copy binary content to the work directory if not present
  File resourceFile = new File(loaderDir, name);
  url = resourceFile.toURL();
 }

 On line 1814, I found this:

 // Extract resources contained in JAR to the workdir
 if (!(path.endsWith(.class))) {
  byte[] buf = new byte[1024];
  File resourceFile = new File
  (loaderDir, jarEntry.getName());
  if (!resourceFile.exists()) {
  ...

 To me it seems that the code on line 1085 assumes that the code on line
 1814 has already been executed before, somehow this isn't the case which
 leads to unretrieval resources when they are stored in jar files.

 I hope I identified this issue correctly and that it can be fixed for
 the next release.

 Best regards,

 Geert

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



Re: tomcat session invalidate

2003-11-30 Thread bsouther
The memory won't be released until the Garbage Collector (GC) is run. 
The JVM determines when to run GC based on the available memory.



On Friday 28 November 2003 05:38 am, you wrote:
 Hi,
 I've notice that Tomcat (v.4.1.29) does not release memory on session
 invalidate event...
 I try to create many session (with a stress tool like grinder) and i've set
 session life time to 1 minute.
 Tomcat memory occupation stretch to increase ... inexplicably, in my
 opinion.
 When destroy session event occurs memory does not recycle...

 Thanks for help

 ---
 giluka

 Questa e-mail e' stata verificata dal sistema di antivirus della Siva
 S.P.A.


 -
 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: html not working

2003-11-30 Thread George Esperanza

--- Timo [EMAIL PROTECTED] wrote:
 George,
 It seems that you having problems resolving relative
 references, can you
 tell me where your images are located in relative
 form to your web context,

my images are also located together with my html
files.

 also tell me what is your href tags that you used to
 display the images.

here's my simple html file:

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01
Transitional//EN
html
head
  titleTitle Background/title
  meta http-equiv=content-type
 content=text/html; charset=ISO-8859-1
/head
body
 background=./taxiback.jpg
br
/body
/html

If i saved this in an HTML file my tomcat server
cannot find the file but if i renamed it to JSP
Netscape or IE can open it but without the background
image (taxiback.jpg).   If i open it directly with my
browser (as HTML) it looks fine.  

I'm converting my CGI applications into JSP and i'm
new to Java and Tomcat.

Thanks 

George
 
 Timo


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



RE: request.getremoteAddr() returning 127.0.0.1 (localhost)

2003-11-30 Thread George Sexton
What connector are you using? Are you fronting Tomcat with a web server?
If so, how is it being done?

-Original Message-
From: Kilic, Hakan [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2003 4:07 PM
To: 'Tomcat Users List'
Subject: request.getremoteAddr() returning 127.0.0.1 (localhost)


Hi all,

I've searched the email archive and bugzilla, and come across bug 20041:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20041 back from June
2003.

I'm using Tomcat 4.1.24 Standalone, and I've attached the server.xml
file
I'm using (I'm using the Catalina connector).

Does anyone know what the problem is and if there is a workaround to
this? 

Thanks!

-Hakan




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



Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Antonio Fiol Bonnín
Ron Andersen wrote:

Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?
 

Hello,

You can write a ServletFilter, and a HttpServletResponse wrapper to 
achieve the same results.

Look into java.util.zip.*

-- I never said it was easy ;-)

Antonio Fiol

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


Re: Session Goes Away (?)

2003-11-30 Thread Merrill Cornish
 my firewall (Zone Alarm Pro) was blocking session cookies.

Interesting.  I'm also using Zone Alert Pro.  I'll try turning it off and see what 
happens.

Thanks,
Merrill

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



Apache Tomcat/4.1.18 Upload a WAR file

2003-11-30 Thread Juan Ignacio Garcia
Hello, I have suse 9.0 which cames with tomcat/4.1.18. The problem is 
that the form that appears in others version to upload war files in the 
manager doesn't appear in this one. What's wrong in the configuration. 
How can I change that?

Thanks,

Ignacio



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


Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Jacob Kjome
The Coyote connector supports this already.  No need to write a servlet 
filter.  Look in server.xml or the tomcat docs for details.

Jake

At 03:16 PM 11/30/2003 +0100, you wrote:
Ron Andersen wrote:

Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?

Hello,

You can write a ServletFilter, and a HttpServletResponse wrapper to 
achieve the same results.

Look into java.util.zip.*

-- I never said it was easy ;-)

Antonio Fiol

-
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: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Ron Andersen
Thanks! 
 
I was reading the Wrox's Professional Tomcat book and it states that Tomcat's web 
servers does not support Virtual Hosts. Does it now support Virtual Hosts?

Jacob Kjome [EMAIL PROTECTED] wrote:

The Coyote connector supports this already. No need to write a servlet 
filter. Look in server.xml or the tomcat docs for details.

Jake

At 03:16 PM 11/30/2003 +0100, you wrote:
Ron Andersen wrote:

Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?


Hello,

You can write a ServletFilter, and a HttpServletResponse wrapper to 
achieve the same results.

Look into java.util.zip.*

-- I never said it was easy ;-)

Antonio Fiol


-
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!?
Protect your identity with Yahoo! Mail AddressGuard

Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Remy Maucherat
Ron Andersen wrote:
Thanks!

I was reading the Wrox's Professional Tomcat book and it states
that Tomcat's web servers does not support Virtual Hosts. Does it now
support Virtual Hosts?
The book is wrong: even Tomcat 4.0 supported vhosts.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Jacob Kjome
You should verify information with the official Tomcat docs before posting 
questions here.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

If you don't find the answers in Tomcat's own docs, then don't hesitate to 
ask further questions.

Jake

At 07:39 AM 11/30/2003 -0800, you wrote:
Thanks!

I was reading the Wrox's Professional Tomcat book and it states that 
Tomcat's web servers does not support Virtual Hosts. Does it now support 
Virtual Hosts?

Jacob Kjome [EMAIL PROTECTED] wrote:

The Coyote connector supports this already. No need to write a servlet
filter. Look in server.xml or the tomcat docs for details.
Jake

At 03:16 PM 11/30/2003 +0100, you wrote:
Ron Andersen wrote:

Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?


Hello,

You can write a ServletFilter, and a HttpServletResponse wrapper to
achieve the same results.

Look into java.util.zip.*

-- I never said it was easy ;-)

Antonio Fiol


-
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!?
Protect your identity with Yahoo! Mail AddressGuard


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


Re: Tomcat 4.0.x memory leak (not javac)

2003-11-30 Thread Sven Köhler
It's a known bug, but not fixed in 4.1.x, it still exists there.  I
am not sure if it still exists in 5.0.x.
Thanks Dave.  If anyone could provide some more information on this,
that would be helpful.  I would really like to fix it because it's 
really annoying me.  We have two CRITICAL web applications on one 
server.  We don't want to have to continually down the entire tomcat
server just to reload a webapp.
Bugs have been filed for this issue against 4.1.x and they have been 
marked as WONTFIX.  Best to try to reproduce the problem on 5.0.x and 
if the bug still exists there, file a report in bugzilla if one does 
not already exist.
Where can I find this information?  Is there a bugzilla for tomcat or 
something?  If so, I would like to go there so I can see if there's any 
information indicating where in the code it would be.  I could go 
searching myself, but I've never dove into the Tomcat code before! :)
Could you post the bugid or even a link to the bug-report? i'm also 
interested in the porblem.

I would also be interested in a description of the javac-memory-leak. It 
has become a myth and nobody can explain it. I don't find a bug-report 
in both Sun's and Tomact's bug-databases.



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


Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Ron Andersen
ok..but by the way..it would be extremely helpful if Tomcat's web site would have 
search functinality..

Jacob Kjome [EMAIL PROTECTED] wrote:
You should verify information with the official Tomcat docs before posting 
questions here.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

If you don't find the answers in Tomcat's own docs, then don't hesitate to 
ask further questions.

Jake

At 07:39 AM 11/30/2003 -0800, you wrote:
Thanks!

I was reading the Wrox's Professional Tomcat book and it states that 
Tomcat's web servers does not support Virtual Hosts. Does it now support 
Virtual Hosts?

Jacob Kjome wrote:

The Coyote connector supports this already. No need to write a servlet
filter. Look in server.xml or the tomcat docs for details.

Jake

At 03:16 PM 11/30/2003 +0100, you wrote:
 Ron Andersen wrote:
 
 Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?
 
 
 Hello,
 
 You can write a ServletFilter, and a HttpServletResponse wrapper to
 achieve the same results.
 
 Look into java.util.zip.*
 
 -- I never said it was easy ;-)
 
 Antonio Fiol
 
 
 -
 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!?
Protect your identity with Yahoo! Mail AddressGuard


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



-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread QM
: Date: Sun, 30 Nov 2003 09:24:41 -0800 (PST)
: From: Ron Andersen [EMAIL PROTECTED]
: 
: ok..but by the way..it would be extremely helpful if Tomcat's web site would have 
search functinality..

Google has a handy feature for this -- add site:host to your search
terms.  For example:

site:jakarta.apache.org tomcat gzip

-QM

--

C++ / Java / SSL
http://www.brandxdev.net/


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



Re: Tomcat 4.0.x memory leak (not javac)

2003-11-30 Thread Trenton D. Adams
Sven Köhler wrote:
It's a known bug, but not fixed in 4.1.x, it still exists there.  I
am not sure if it still exists in 5.0.x.


Thanks Dave.  If anyone could provide some more information on this,
that would be helpful.  I would really like to fix it because it's 
really annoying me.  We have two CRITICAL web applications on one 
server.  We don't want to have to continually down the entire tomcat
server just to reload a webapp.


Bugs have been filed for this issue against 4.1.x and they have been 
marked as WONTFIX.  Best to try to reproduce the problem on 5.0.x and 
if the bug still exists there, file a report in bugzilla if one does 
not already exist.


Where can I find this information?  Is there a bugzilla for tomcat or 
something?  If so, I would like to go there so I can see if there's 
any information indicating where in the code it would be.  I could go 
searching myself, but I've never dove into the Tomcat code before! :)


Could you post the bugid or even a link to the bug-report? i'm also 
interested in the porblem.

I would also be interested in a description of the javac-memory-leak. It 
has become a myth and nobody can explain it. I don't find a bug-report 
in both Sun's and Tomact's bug-databases.
I found it once but I can't find it again.  I was pretty sure I entered 
memory leak in the summary field and came up with results, but it 
doesn't work now.

Anyhow, the javac bug is referenced in the release notes of 4.0.x.  I 
don't think it's a javac bug but a tomcat bug with the interface into 
the javac classes.  After all, it's not referenced in the release notes 
for the newer versions of tomcat.



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


__ 
   This communication is intended for the use of the recipient to whom it
   is addressed, and may contain confidential, personal, and or privileged
   information. Please contact us immediately if you are not the intended
   recipient of this communication, and do not copy, distribute, or take
   action relying on it. Any communications received in error, or
   subsequent reply, should be deleted or destroyed.
---

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


Re: GZIP-encoding/mod_gzip and Tomcat??

2003-11-30 Thread Trenton D. Adams
No need for it in the connector if you're using apache! :)  You can get 
a mod_gzip module and do it from Apache which would probably be faster.

Jacob Kjome wrote:
The Coyote connector supports this already.  No need to write a servlet 
filter.  Look in server.xml or the tomcat docs for details.

Jake

At 03:16 PM 11/30/2003 +0100, you wrote:

Ron Andersen wrote:

Is GZIP-encoding/mod_gzip avaliable in Tomcats web server?

Hello,

You can write a ServletFilter, and a HttpServletResponse wrapper to 
achieve the same results.

Look into java.util.zip.*

-- I never said it was easy ;-)

Antonio Fiol

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


__ 
   This communication is intended for the use of the recipient to whom it
   is addressed, and may contain confidential, personal, and or privileged
   information. Please contact us immediately if you are not the intended
   recipient of this communication, and do not copy, distribute, or take
   action relying on it. Any communications received in error, or
   subsequent reply, should be deleted or destroyed.
---

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


JSPC Jasper compiler crash.

2003-11-30 Thread Alex Kowalenko

Does anyone know why the JSPC Jasper compiler would throw a null exception
on the following file. Within Tomcat 4.0,4.1,5.0 it works fine. However,
pre-compiling it causes it to throw a exception as follows. The significant
feature of the JSP file is that it uses a custom taglib.

Do I have to somehow give the japser compiler special options to locate the
taglib, or does it work it out from the normal taglib definitions in the
application's filesystem.

The JSP file:

%@ taglib prefix=ihook uri=/ihook %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

table width=80% border=0
  tr
tdihook:calendar
baseURL=list.jsp?location=${webApp.webRoomBooking.location}
month=${webApp.webRoomBooking.prevMonth}
highlight=${webApp.webRoomBooking.date}
left=-3/
/td
tdihook:calendar
baseURL=list.jsp?location=${webApp.webRoomBooking.location}
month=${webApp.webRoomBooking.date}
highlight=${webApp.webRoomBooking.date}/
/td
tdihook:calendar
baseURL=list.jsp?location=${webApp.webRoomBooking.location}
month=${webApp.webRoomBooking.nextMonth}
highlight=${webApp.webRoomBooking.date}
right=3/
/td
  /tr
/table

The ant build tag is:jspc:

target name=jspc depends=init
taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${TOMCAT}/server/lib
include name=*.jar/
/fileset
fileset dir=${TOMCAT}/common/lib
include name=*.jar/
/fileset
/classpath
/taskdef

echo message=Tomcat is ${TOMCAT}/
jasper2
 validateXml=false
 uriroot=${SRC}
 webXmlFragment=${SRC}/WEB-INF/generated_web.xml
 outputDir=${SRC}/WEB-INF/src /
  /target

The verbose output is:
 [echo] Tomcat is F:/Tomcat4.1
  [jasper2] Error in class org.apache.jasper.JspC
2003-12-01 11:06:36 - ERROR-the file '\roombooking\dates.jsp' generated the
following general exception: java.lang.NullPointerException

BUILD FAILED
file:D:/Alex/Release/iHookWeb/build.xml:68:
org.apache.jasper.JasperException: Error compiling \roombooking\dates.jsp
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: org.apache.jasper.JasperException: Error compiling
\roombooking\dates.jsp
at org.apache.jasper.JspC.processFile(JspC.java:596)
at org.apache.jasper.JspC.execute(JspC.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
... 9 more
--- Nested Exception ---
org.apache.jasper.JasperException: Error compiling \roombooking\dates.jsp
at org.apache.jasper.JspC.processFile(JspC.java:596)
at org.apache.jasper.JspC.execute(JspC.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

Alex



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



Possible custom tag incompatibility between 4.1.27 and 4.0.3

2003-11-30 Thread Ely Eshel
Hi!
I developed a custom tag on Tomcat 4.1.27 and tried to deploy it on 4.0.3.
I get the following error:
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/tlds/testtaglib.tld: Internal Error: File
/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd not found

My web.xml entry is:
taglib
taglib-uri/WEB-INF/tlds/testtaglib.tld/taglib-uri
taglib-location/WEB-INF/tlds/testtaglib.tld/taglib-location
/taglib

My testtaglib.tld file is:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE taglib
PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd;
taglib
tlib-version1.0/tlib-version
jsp-version2.0/jsp-version
short-nametesttaglibs/short-name
uri/WEB-INF/tlds/testtaglib.tld/uri
tag
  namegetWebServer/name
  tag-class
 taglibs.testtaglib.GetWebServerTag
  /tag-class
  body-contentempty/body-content
/tag
/taglib

My taglib directive in the JSP is:
%@ taglib prefix=testtag uri=/WEB-INF/tlds/testtaglib.tld%

I am not sure that the problem is with Tomcat versions, but I cannot figure
out what else is wrong. I have no control over the 4.0.3 environment, so I
cannot experiment with it at all.
Thanks,
-- Ely



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



Garbage Collection issues

2003-11-30 Thread Neal
My Tomcat 4.1 (hosted on Linux) seems to have a problem in recent months
with crashing due to unavailable free RAM.  Specifically I get a
java.error.outOfMemory exception.  If check the RAM available
(Runtime.getRuntime().totalMemory()), I can see it ticking down through
the week.  If explicitly run garbage collection however my RAM totally
frees up and all is well (Runtime.getRuntime().gc();).

Why would this happen?  Surely this isn't due to a programming error on
my part, otherwise, the resources should automatically released whenever
the JRE performs periodic garbage collection. Isn't that correct?
Anyone have any theories as to what this may mean and what the best
solution would be?

Thanks.
Neal



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



Opening .JSP file through Apache without using mod_jk connector ?

2003-11-30 Thread somashekara D M
Hi all,

Is is possible to open .JSP files through Apache Server without using 
Mod_JK connector. Currently I'using Mod_JK connector 4.1.27 between 
Apache 2.0.40 and Tomcat 2.1.47 on Red Hat Linux 9.0.

Can anyone help me on this ?

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


How can we know Tomcat is running or not through Standalone Java Prog

2003-11-30 Thread dakavara
Hi,


How can we know Tomcat is running or not through Standalone Java Program.


Thanks in Advance,
Ashok.D

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