We're still using 4.0.x in production. We use(d) an ant/jspc target and got
the same error message. It went away when I forked the java process:
java classname=org.apache.jasper.JspC
fork=yes failonerror=yes output=compile-jsp.log
...
;)
-Original Message-
From: Felipe Schnack
Or you could use the mockobjects project (www.mockobjects.com) to write
JUnit testcases which require no physical database connection. You can set
up the sql statements you expect your code to execute and the data you
expect to be returned. Using mock objects you can also simulate database
failure
The compiled tomcat code (class org.apache.catalina.session.StandardSession)
is calling a method not available at runtime. That probably means that the
tomcat code was compiled with a later version of either the jdk or the
servlet jars than the version you are running tomcat with. I've just
although you can, in theory, wrap the original request in a
javax.servlet.http.HttpServletRequestWrapper with getMethod() overridden to
return the required value. (If you want to)
-Original Message-
From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Barker
Sent: 03 December 2002
John,
I've dug out some old code and i think you may have to set initial values
for the OUT parameters as well.
We used functions with oracle 8i with no problems in this way:
One of the CallableStatements we prepared with {?=call
pk_housekeeping.f_purge_inactive_consumers(?)} and used as below:
Maybe reading the code wrong but you're declaring the variable rs on the
third line of doGet(...) but putting the return value of the
stmt.executeQuery() in a variable called rset. Then you call next() on the
original variable, which is null ;)
A few other points:
You are definately loading the
1) alter the catalina.bat file:
... extract ...
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
%DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath
%CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_H
OME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS%
change the memory settings for the DOS console. When I run TC under windows
I have the initial environment memory set to 4096 (the maximum available
through the UI).
-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: 05 June 2002 07:06
To: Tomcat Users List
Subject:
With out looking at the HttpServlet source to confirm i would guess that:
In servlet 2 the member variable basepath is assigned a value after the
super class (HttpServlet) constructor returns but before the servlets
init(...) method is called by the servlet container. Therefore at the time
of
Puneet,
Fairly certain that puneet has to be either a bona fide DNS name (or for
development an alias in your hosts file)
Jon
-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: 08 June 2002 20:22
To: Xinji Gu
Subject: problem..plz help me out
Hi friends, this is
The error you are getting is the JSP parser mistaking the data %=
application.getInitParameter( as the value for the driver parameter of the
sql:setDataSource tag. Then it reports a parsing error as the next parameter
is sees is jdbc.driver with no '=', and hence no value, after it.
If you
No trailing semi-colon. No trailing slash.
:)
-Original Message-
From: STEVE BURRUS [mailto:[EMAIL PROTECTED]]
Sent: 08 September 2002 20:53
To: [EMAIL PROTECTED]
Subject: Still need help w. Tomcat installation
I STILL need some degree of help/assistance from someone in this
There are 3 linefeeds in your jsp before the code that generates the xml.
Remove them and you should be ok.
There has been a discussion on this before on this list. Search the archives
:)
-Original Message-
From: Alexander Stage [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2002 12:12
... and if you are only changing included files then touch the jsp doing the
include
-Original Message-
From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 13:47
To: Tomcat User Help
Subject: RE: RE: Reloading .jsp-Pages
thats the point: it doesn't recompile
the file again, restarted the server. guess:
still from server-cache...
i guess the 'reloadable'-switch doesnt work for some reason...
-Ursprüngliche Nachricht-
Von: jon wingfield [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. September 2002 15:21
An: Tomcat Users List
Betreff: RE: RE
You've had 4.0.4 in a test environment and is stable. Deploy it. It's the
most stable of the 4.0.x tomcat tree.
Then put 4.1.x in the test environment and if is stable after system/uat
testing migrate your production environment to that release of tomcat.
There are a number of implementation
Open the InitSnoop.java source file. If the first line is not:
package com.justatest.test;
then that is your problem. The directory structure under WEB-INF/classes
maps to the package stucture of your servlet and other java classes deployed
in the webapp.
Change the package name to the right
The following will work:
pageContext.getServletContext().getAttribute(dbPool);
-Original Message-
From: Jason Johnston [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2002 17:25
To: Tomcat Users List
Subject: Retrieving ServletContext Objects via PageContext
This may be a stupid
you've got a NullPointerException at line 35 of RPCRouterServlet. Have a
look at javadoc or java source for that class. Your request is probably not
passing some parameter the servlet requires (as a best guess). Tomcat
returns an html error report and the soap client is expecting a response
with
Have you seen:
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/FileRename
Policy.html
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/DefaultFil
eRenamePolicy.html
We use an implementation of FileRenamePolicy when instantiating the
MultipartRequest. This may
The oreilly MultipartRequest uses DefaultFileRenamePolicy as, funnily
enough, a default when constructing as you have it in your code.
Later versions of the API (since 9thMay02) have overloaded constructors
where you can specify the FileRenamePolicy. The policy is asked to rename
the file before
Two stabs in the dark:
Does the user running tomcat have write permissions to the work directory?
Out of disk space on the /var/tomcat/work/ filesystem?
-Original Message-
From: Skorupski Pawe ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 11:05
To: '[EMAIL PROTECTED]'
Subject:
)
at java.lang.Thread.run(Compiled Code)
-Original Message-
From: jon wingfield [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:21 PM
To: Tomcat Users List
Subject: RE: Does anybody know ?- error 500
Two stabs in the dark:
Does the user running tomcat have write permissions to the work
you could extract it from servletContext.getRealPath(/);
-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 12:51
To: [EMAIL PROTECTED]
Subject: Getting the name of the context
Hi,
I have a requirement where i need to know the name of the context i
I've never used solaris8 so the following may be in error, but here goes.
On linux using seems not only to put the process in the background but
also seems to be nohup (no hang up).
On hp-ux 10/11 using seems only to put the process in the background and
NOT nohup.
So, i surmise that solaris8
You can't rely on the destroy() method on the servlet for this purpose. The
container has the right to unload servlets when it chooses as a part of
resources management. If you are using a servlet 2.3 spec container use the
ServletContextListener as Jake suggests.
flame-retardent-suit
Death to
It's a ClassNotFoundException wrapped by a ServletException then a
JasperException. The classloader can't find
com.oreilly.servlet.MultipartRequest class (and probably the o'reilly jar)
at runtime.
-Original Message-
From: Sam Seaver [mailto:[EMAIL PROTECTED]]
Sent: 08 October 2002 22:46
your web.xml file for the xsltExample webapp refers to the servlet 2.3
specification dtd and you are running tomcat 3.x which is an implementation
of the servlet 2.2 specification. Tomcat has a cached version of the dtd in
one of the jar files that are part of the distribution. This is in case
tomcat doesn't use the classpath. It derives where tools.jar is from the
JAVA_HOME environment variables. Your application classes should be placed
under CATALINE_HOME/webapps/YOUR_WEBAPP_NAME/WEB-INF/classes and your
application jar files (ie cos.jar) under
is WEB_INF a typo? it needs to be WEB-INF
-Original Message-
From: Shanniew [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 08:04
To: [EMAIL PROTECTED]
Subject: Unable to compile JSP
I have already set the JAVA_HOME, CATALINA_HOME.
\webapps\myjsp\WEB_INF\classes
it to be, is there a
default somewhere that I'm missing?
cheers
S
From: jon wingfield [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Error with multipartParser
Date: Fri, 11 Oct 2002 11:11:38 +0100
tomcat doesn't use the classpath. It derives where
i use pstree -aup.
Very useful with multiple java apps running on one server :)
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 20:15
To: Tomcat Users List
Subject: Naive question thread
Saw a post in the naive question thread earlier today that
Just googled serving wml from tomcat and this article was one of the first:
http://www.javaworld.com/javaworld/javatips/jw-javatip123.html
HTH,
Jon
Quoting Vano Beridze [EMAIL PROTECTED]:
Hello
I would like to serve WAP clients from my existing WEB App
Could you please provide me with
Are you using log4j? If you are then chack out the
org.apache.log4j.net.SMPTAppender. It sends a mail each time a message
of the required severity is logged.
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html
example of log4j.properies portion for this appender:
Problem with serialization:
1) Client asks for singleton from webapp and stores it as an instance
variable.
2) Client get serialized to some persistance store (db, jms message
queue, whatever)
3) webapp goes away (dies, gets shutdown, whatever)
4) webapp restored
5) Client deserialized.
Which
Did someone say Booch utility?
http://www.javaworld.com/javaworld/jw-04-1999/jw-04-toolbox.html
see page 2. Actually, this entire set of articles on threading is excellent.
Felipe Schnack wrote:
These days I was thinking
It's not so uncommon to have uses for singleton classes in our
Just a thought. Have you set your CATALINA_TMPDIR environment variable?
Its default value is $CATALINA_BASE/temp which doesn't exist by default ;)
klavs klavsen wrote:
Hi guys,
I've gotten help from John Turner on this problem of mine (where
/manager works, and /admin gives me a 404.
The error
If you are trying to generate a 500 by accessing a url outside a context
then the error page defined within the context won't get triggered.
Where are you putting your error-page tags? You could try altering the
web.xml in tomcats conf directory...
[EMAIL PROTECTED] wrote:
Thank you for the
According to the j2se javadocs neither keys nor values in a Hashtable
can be null. It looks like the variable hs returned from getFruits(...)
is null...
HTH,
Jon
Mufaddal wrote:
Hi ...
in my doPost() I do some processing and then I do
HashSet hs = getFruits(userName);
For jdk1.4 you should be able to set the
networkaddress.cache.negative.ttl system property to control this.
(Assuming the lookups are made using the java.net.* sub-system)
http://java.sun.com/j2se/1.4/docs/guide/net/properties.html
http://java.sun.com/j2se/1.4.1/networking-relnotes.html
We're
Try:
sctx.getInitParameter(...) instead of sctx.getAttribute(...)
Günter Kukies wrote:
Hello,
I want to read some context-param from web.xml within a filter. But the getAttribute is always null.
There is no problem to get the same context-param within a Servlet.
Thanks
Günter
Here is the
http://www.javaworld.com/javaworld/javaqa/2001-04/01-qa-0406-import.html
Reynir Hübner wrote:
Hi,
I'm wondering what kind of performance decrease (if any) it has to use wildcards in jsp import lines.
example :
%@ page import=java.util.* %
.. but not :
%@ page import=java.util.ArrayList %
via a static method on java.util.Locale. In your case the Locale call
will be
Locale.setDefault(new Locale(br, PT));
You may also want to set the TimeZone in a similar manner.
Felipe Schnack wrote:
How can i set the default locale of my application? There is a system
property to do that? I
try setting the following system properties:
*http.proxyHost*
*http.proxyPort*
http://java.sun.com/j2se/1.4/docs/guide/net/properties.html
Alberto A C A S Magalhães wrote:
**
Este email assim como os ficheiros que possa ter em
And if, for example, you have a UK-en application hosted in a data
centre in Germany...
Drew Sudell wrote:
Yes, but this is an per-instance attribute, isn't it? How could I
make it be set in all f Tomcat's VMs?
Maybe a java -D option?
On Thu, 2003-02-27 at 14:38, Jon Wingfield wrote:
via
A compiled jsp is a servlet. The content returned from a servlet can be
pretty much anything ;)
Most likely the returned content will be text/html
Anthony Smith wrote:
I did not know where ask to else this question.
Is there a mime-type for a jsp? If so, what is it?
Given the way your page is currently set up, this should work:
snip
EditorContent content = (EditorContent)pageContext.getAttribute(content);
/snip
I can't remember exactly how the TagExtraInfo stuff works but have a
look at the compiled jsp (the .java src file) in tomcat's work
directory.
My dev machine is XP. I haven't set an explicit classpath and everything
works fine. So long as JAVA_HOME is set correctly to a JDK installation
everything is sweet. Tomcat has all the jars it needs to compile jsp files.
I read the link. It says to set the classpath so that DEVELOPERS can
Your jdk is installed at c:\jdk1.4.1 but your echo says c:\jdk1.4
Is that a typo?
Denise Mangano wrote:
Thanks everyone for answering. I changed my JAVA_HOME to c:\jdk1.4.1 and
restarted Tomcat. I still get the same error.
The exact error in the log file is: Unable to find a javac
Looks like you've using OpenEJB ;)
The OpenEJB distro comes with a war file, which looks like it's been
expanded to a context by your tomcat install. However, the war file
doesn't contain the required OpenEJB jar files (which probably need to
be put in common/lib or server/lib).
The class file
I may be wrong but...
This list knows nothing (as such) about [EMAIL PROTECTED]
Here's what i believe is happening:
1) You post to the list.
2) List delivers said post to all subscribers. One subscriber is, say,
[EMAIL PROTECTED]
3) The Mail Daemon/Post Master at logicaonline.com rejects the
Ok. Looks like you're running a JRE on Solaris. Jsp compilation requires
a JDK installation. As to the exception above was detected in native
code outside the VM error; have you installed the OS patches required
for that version of java?
http://java.sun.com/j2se/1.3/install-patches.html
Is that the entirety of your web.xml? The error looks like the parser
can't find the definition of the listener element, it hasn't even got
to the point of worrying about element order yet.
Have you got an xml prolog and a doctype at the top of the file? eg:
?xml version=1.0
It is finding the jar, otherwise you'd be having a completely different
error message. ;)
The error implies you are compiling against a different version of the
commons-fileupload component than the 4.1.24 src was written against.
The 4.1.24 binary release bundled
Not a bug. Standard behaviour. Chack out the Manager element in the
server.xml
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html
If you haven't got a Manager explicitly added in the server.xml a
default is used (stores serialized sessions in a file SESSIONS.ser under
the
Even though your Servlet is loaded on startup the container (ie tomcat)
is free to unload and reload servlets at any time. This is why it is so
much better (IMO) to use ServletContextListeners for application
configuration. Does your servlet create empty maps even if they already
exist on the
+1
Reynir Hübner wrote:
Scarab.
Check out www.tigris.org
It's excellent.
hope it helps
-reynir
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 29. júlí 2003 12:55
To: 'Tomcat Users List'
Subject: [ot] RE: Bugs, Issues, Tasks, Patches, CVS
integration - which is
You should be able to set this by modifying your server.xml and all
context.xml files:
Set the workDir attribute for your Host (or for the individual Contexts)
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
Set
ah the old IE + SSL + cacheing problem ;)
Try adding:
final String userAgent = request.getHeader(user-agent);
if (response.containsHeader(Pragma)
userAgent!=null
userAgent.toUpperCase().indexOf(MSIE)-1) {
response.setHeader(Pragma, public);
}
Solved it for us.
Jon
Rob Tomlin
Cool. Was just writing a response about the headers tomcat adds when
using a security restraint. But you've already worked it out...
I've only seen the problem when using IE with SSL + security constraint
but i guess it's more of a general problem. :(
Jon
Rob Tomlin wrote:
ah the old IE + SSL
Your HttpSessionActivationListener must be an object bound to the session.
So, in your HttpSessionListener's sessionCreated method add the
HttpSessionActivationListener to the session as an attribute.
HTH,
Jon
Kal Govindu wrote:
Hi Yoav,
Ok, now my listener class implements a
You could have a look at the MockObjects project on sourceforge.
http://mockobjects.sourceforge.net
http://mockobjects.sourceforge.net/javadoc/1.4/
All our servlets, filters, DAO code etc are tested using Mocks :)
It's great not needing a db or remote connection or even a servlet
container when
Thanks for the info. I should have RTFM ;)
Mauricio Nuñez wrote:
Hi
With RH 8, you can see the threads using the option -m
Att
Mauricio
El Jue 07 Ago 2003 09:17, Jon Wingfield escribió:
Yep. Since RH 8 the ps command only shows the main java process. In
previous versions ps showed
erm. can't you just use init parameters in the web.xml: section
SRV.2.3.2 in the servlet 2.3 spec.
If the location is for one servlet use a servlet init param otherwise
use a servlet context init param. In the latter case you can access it
in your servlet by doing (for example):
String value =
Yep. Since RH 8 the ps command only shows the main java process. In
previous versions ps showed the parent process and a child process for
each thread the java app spawned. The previous behaviour often lead to
confusion relating to memory assignment so i guess that's why RH changed
it.
Looks like Struts has a dependency on Commons Logging which is using
Log4j under the hood. The commons logging jar is being loaded from a
higher level classloader (common/lib or server/lib) and can't access
classes only provided by a lower classloader (your webapp).
Maybe try having the
I agree with Nix, use a connection pool.
One connection per user may be ok when you've got, say, 5 concurrent
users but when you've got 1000, 1, Not scalable.
http://tomcatfaq.sourceforge.net/database.html
Yikes, calling release() in doStartTag() stops any state being
accessible to child (body) tags. That would kill our custom iterator tags.
You could have your tags implement the TryCatchFinally interface,
instead. That way you'll have a chance to reset state before reuse:
As Andy remarked: the call request.getCookies(); should return null if
there are no cookies submitted. This behaviour is specified in the
JavaDocs for both the Servlet 2.2 and 2.3 specs. Tomcat 3 was in error
and the behaviour has been corrected for Tomcat 4 and later.
HTH,
Jon
Paul wrote:
I think the connectionTimeout parameter controls how long the container
waits before giving up on trying to obtain a request processor from the
pool. Once the processor has been obtained a runaway/blocked process can
stop the processor from being released.
One way to get around this would be,
This is a JBuilder problem not a Tomcat problem. The JBuilder JSP
compiler
(com.borland.jbuilder.webserverglue.tomcat.jsp.JasperSunJavaCompiler
from your stacktrace) can't find the tools.jar of your jdk. Is it in the
path JBuilder uses to run the embedded Tomcat?
Bob Hacker wrote:
I am
Ah. That rings a bell. You could be running into the problem where for
large pages the generated java method _jspService(...) is too long
(32k, i think) and the compilation fails. The use of a lot of custom
tags REALLY bumps up the size of the generated java code.
In jasper 2 (used in 4.1.x)
What happens if you also set
-Djavax.net.ssl.keyStore=c:\...
-Djavax.net.ssl.keyStorePassword=password
Mayne, Peter wrote:
I have an application running in Tomcat 4.1.18 using JDK 1.4.1 on Windows XP
that makes connections to https://...;.
If I add the web server's certificate's CA to
Try changing the filename from jsafe.zip to jsafe.jar. The classloader
used for the lib directories only picks up jar files, not zip files.
HTH,
Jon
Seeling Thomas wrote:
Hallo,
I am using a commercial application which now has
a servlet interface in its latest version (Tivoli Framework 4.1).
This is a wild stab in the dark but here goes. How much RAM have you got
in your XP box? Is the compilation of the jsp/jsps by ant running out of
memory? (I think the compilation is out-of-process, but i may be wrong.)
If you think you have enough memory then play around with the -Xms and
-Xmx
I think in servlet spec 2.4 there is an event generated just before the
session is invalidated. Until then:
I implemented a HttpSessionAttributeListener. When a session is about to
be invalidated all its attributes are removed. So, if you have an
attribute which lasts for the lifetime of the
You can do a static include of a page which has your default imports:
%@ include file=/a_load_of_imports.jsp %
Tim Funk wrote:
No - you have to explicitly import the classes and/or taglibs.
-Tim
Gavin, Rick wrote:
Hi all,
Does anyone know if you can include classes and taglibs in all jsp
Have a look in the tomcat log files. Either catalina.out or
localhost_log.date.txt. I'll bet there's an exception in one of those.
If a jsp scriptlet or custom tag throws an uncaught exception Tomcat may
not be able to forward to any predefined error pages because part of the
response has already
nope. That'll be an NT, XP, 2000 feature. ;)
Set up your web applications to use log4j (or some other logging
package). Convert all System.out.println(...), System.err.println(...),
e.printStackTrace() calls etc to use the logging. You won't need to look
at the DOS window any more.
Also,
We had this for content types that IE didn't know about, including
application/x-zip-compressed and application/octet
By default we have a filter which sets cache headers for everything:
snip
httpResponse.setHeader(Cache-Control, no-cache);
httpResponse.setHeader(Pragma, no-cache);
/snip
For
You could also take a look at JEdit (www.jedit.org). It's a free, open
source java ide that has a community writing plug-ins to do most of the
things mentioned in previous posts. :)
[EMAIL PROTECTED] wrote:
thanks for the replies u got me going , although the IDE looks sweet ,
similar to
adding out.txt only redirects std out. You need to redirect std err,
which in dos, i think, is 2 err.txt
so:
catalina.bat run out.txt 2 err.txt should do what you want.
Also on windows 2000 you should be able to set the dos window buffer to,
say, . Then the exceptions won't scroll off
I'm fairly certain classes deployed to web-app\WEB-INF\classes have to
be in packages.
So your Fruit class should be deployed to
web-app\WEB-INF\classes\com\stevensons
if the Fruit class is in the com.stevensons package.
In your jsp you also MUST import the class you want to use. eg:
%@ page
I just looked at the code you posted. I think it's a
NullPointerException within line 33 of your LoginServlet
int kode = Integer.parseInt(request.getParameter(kode));
This will throw an NPE if the kode parameter is not set...
Is your MIDLet TextField empty when you get this error?
If not, check
If you had
String name = config.getInitParameter(companyName);
it might work ;)
HTH,
Jon
Michael Jones wrote:
Hello-
I'm trying to store some values in my server.xml and then get them with my
Servlet.
I followed the instructions at:
parameters to
webapps.
The Parameter tags within server.xml are related to Resources (Data
Sources etc) and probably not what you want.
Jon
Jon Wingfield wrote:
If you had
String name = config.getInitParameter(companyName);
it might work ;)
HTH,
Jon
Michael Jones wrote:
Hello-
I'm trying
http://www.cygwin.com/
I'm using grep, tail and scp on windows xp all the time :)
I also like gVim on windows. http://www.vim.org/
Shaw, Laurence wrote:
Does anyone know where I can find a workable version awk for Windows,( and for that matter most common [U}[Lin]ix utilities) that will run on
The answer's in the question ;)
Tomcat is not a J2EE Server but an implementation of the Servlet
Specification (which is but a part of the whole J2EE spec).
Tomcat's JNDI lookups are in-process only.
Need an open source J2EE container? Have a look at JBoss...
Hassan Sajjad wrote:
Hi
Can anyone
/tomcat-4.1-doc/jndi-resources-howto.html
Have fun,
Jon
Hassan Sajjad wrote:
Jon Wingfield, thanks for your reply.
My application is a Web Application (.war) only, no ejb's etc. However,
since I'm using Composite View Pattern (aka Templating), I want different
parts to be combined into One View, all
And of course:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool
Although I'm not sure how actively maintained Tyrex is these days.
http://sourceforge.net/projects/tyrex/
Jon
Jon Wingfield wrote:
There is always a way ;)
Saw
JAVA_OPTS only works for standalone startup not as a service.
Found this by googling.
http://forum.java.sun.com/thread.jsp?thread=290568forum=33message=1211179
Solution is about six down and by user dfortae
HTH,
Jon
shyam wrote:
Hi,
I not sure about tomcat 3.2.1. In tomcat 4 I have used the
No need to change the script. I normally set an Environment variable in
the same place I define JAVA_HOME
Go to Control Panel \ System \ Advanced tab \ Environment variables...
Well, that's where it is on XP, which i'm currently running.
HTH,
Jon
Giorgio Ponza wrote:
[EMAIL PROTECTED] ha
I may be way off but...
I don't think
http://myserver.com/portal
maps to
/portal/* ajp13
http://myserver.com/portal/
or
http://myserver.com/portal/whatever.jsp
probably will, though.
Give it a go, may work,
Jon
Wilson, Allen wrote:
Bill..thanks for the reply...
I will read through the link you
not know how to tell..when I check the running ports I see the 8009 port
running but it does not hand to Tomcat
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 2:09 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
I
Download the binary not the source zip:
http://jakarta.apache.org/site/binindex.cgi
If you execute catalina run instead of startup you'll see the error in
the same shell.
HTH,
Jon
[EMAIL PROTECTED] wrote:
Hi,
I have installed Tomcat on my windows machine and set the CATALINA_HOME
and
This is probably a classloader issue. The Realm will load classes from
the server classloader. Your webapp will also load the same classes in
its own classloader. The two types of CrmPrincipal are not assignable so
a ClassCastException results. Try placing the CrmPrincipal class in
common/lib
That '!' in your code is very important. Remove it. Read Section
JSP.2.11 of the JSP spec to see why you need to remove it ;)
HTH,
Jon
Viswanatha Rao wrote:
1. I access jsp as
http://localhost:8080/mycode/hello.jsp?firstname=viswalastname=rao
2. I have jsp code in my application
So you added an instance of TestTomcatNotifications to a session as an
attribute? That's the only way you'll get HttpSessionActivationListener
events.
You added a listener element to your web.xml registering
TestTomcatNotifications as a HttpSessionListener?
On shutdown sessionDestroyed(...)
The 46 and 45 are magic numbers that the java compiler puts into
byte-code. It looks like you are trying to compile with a older (and
incompatible) version of javac than the servlet classes were compiled
against.
I've seen this before when an installation of Oracle added jdk1.1.8 when
I was
I'm sure the stackTrace of the thrown exception would give you more
information ;)
The code as written would try to load the file myprop.prop from the
current working directory. This will be where you executed startup.sh
from. If it's not there then you'll probably get a FileNotFoundException.
1 - 100 of 269 matches
Mail list logo