Thanks Filip,
I figured something was going on to stop it loading on subsequent
attempts -
most of my testing was on non-servlet classes - but I want to have one
point
of entry for getting properties (my util is a singleton). The servlets
trip
it up.
I just want to be able to pick up the .pr
ic It works ...
This is the best approach that I may Used
Thanks Sreeni ..
On 5/4/06, Sreenivasulu R Gaddam <[EMAIL PROTECTED]> wrote:
Instead of hardcoding, you can define a variable in
the web.xml as
jndiproperties
relativepathtowebapp/jndi.properties
jndi properti
"Sanjeeb Kumar Sahoo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When can I start to download some development builds that I can use to try
> things out. I am particular interested in the resource injection stuff.
>
There aren't any binary builds yet. You'll have to build yo
Also, depending on the Tomcat version (windows installer) the JAVA_HOME is
actually read from registry and not environment entry.
On 5/3/06, Jacob Fenwick <[EMAIL PROTECTED]> wrote:
It should point to the location of your JDK.
Examples:
Windows:
set JAVA_HOME=C:\sun-jdk-1.5.0.06
Linux:
export
Hi,
I am load testing a webapp running on Tomcat 5.5.12 (windoze). Once in a
while I see the following in Tomcat's log:
SEVERE: Servlet.service() for servlet StatusServlet threw exception
java.lang.NullPointerException
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(Interna
I'm having problems with FORM authentication with Tomcat 5.5.17.
BASIC authentication works OK. (This is a follow up to a question I
posted in March related to PDFs and form authentication and
mod_proxy_ajp -- similar problem, simpler configuration.)
I'm trying to use the container managed sec
It should point to the location of your JDK.
Examples:
Windows:
set JAVA_HOME=C:\sun-jdk-1.5.0.06
Linux:
export JAVA_HOME=/opt/sun-jdk-1.5.0.06
Gustav Wiberg wrote:
Hi there!
Se down below. I get that fault when I try to run an ischolar
application.
It seems to be the JAVAHOME-variable th
Hi there!
Se down below. I get that fault when I try to run an ischolar application.
It seems to be the JAVAHOME-variable that isn't registrered. But where do I
find that specific variable? (can't find it)
is jvm and JAVAHOME the same?
Should this variable point to the JVM-client?
Best regards
On the IIS machine, connector is installed by default
under the directory
C:\Program Files\Apache Software Foundation\Jakarta
Isapi Redirector\
Under C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\conf directory you
will find two configuration files
uriworkermap.properties
HellO.
All my servers are running windows.
I have IIS running on a seperate physical server and I'm attempting to get the
redirector2.dll to direct traffic from the IIS server to the seperate physical
server where Tomcat is running. So far I have been able to get IIS to
successfully (shows
Hi again!
aaah. I have the default-page files for Tomcat now... The problem was that
an application named ischolar put that application with .jsp-files in
c:\tomcat\webb\root\ but in fact the path to Tomcat was in a totally
diffrent path.
Thanx for all help with Tomcat. Now it's "just" up to
Thanks a lot Sreeni.
Yes it is pointing to JDK 1.4.
Thanks again,
Rumpa Giri
Sreenivasulu R Gaddam <[EMAIL PROTECTED]> wrote:
Tomcat takes the jvm path from the registry
parameters.
you can look at the jvm paramter at
\HKEY_LOCAL_MACHINE\SOFTWARE\Apache sotware
foundation\procrun2.0
Thanks for your take. Could you please explain why setting up multiple
services is better than multiple connectors?
thanks
-nikita
Chris Berthold wrote:
Your on the right path. Instead of multiple connectors though, you need to
setup multiple services with a single connector on a different po
Your on the right path. Instead of multiple connectors though, you need to
setup multiple services with a single connector on a different port. You
will end up with essentially two web roots and applications under each.
Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941
Hi there!
Ok, I didn't know that I should access http://localhost:8080 when accessing
Tomcat-pages. But now I can do that. And I can run jsp-examples. But I can't
see the files (that are default for Tomcat). Any ideas?`
Best regards
/Gustav Wiberg
- Original Message -
From: Marc F
most of the time, the default page to be pulled up is the index.jsp under
your webapp, whether that is ROOT or your context.
On 5/3/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
Hi!
I have now started Tomcat and accessed the Tomcat-default page
http://localhost:8080/
But I can't figure out wh
If you are on a linux based machine you could create a symbolic link to the
WEB-INF folder and link it to a different, say deployment application. For
instance:
WebApp1/WEB-INF -> WebApp2/linkedFolder
This way you would make changes to WebApp2/linkedFolder using WebDAV but the
changes would occur
Hi!
I have now started Tomcat and accessed the Tomcat-default page
http://localhost:8080/
But I can't figure out where the default page is located
Through Tomcat default-page, I look at a few examples and the jsp-examples
succesfully executes! :-)
http://localhost:8080/jsp-examples/
I can't
On 5/3/06, Darryl Miles <[EMAIL PROTECTED]> wrote:
Maybe a useful URL to help address this matter when it bites, look for
the java code in the forum thread:
http://forum.hibernate.org/viewtopic.php?t=935948&start=150
Something to put at the end of your
javax.servlet.ServletContextListener#conte
On 5/3/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Leon Rosenberg ha scritto:
> Even if it doesn't, is this a real problem? I mean reloading a webapp
> in production environment is a greater nogo than using a singleton,
> isn't it?
>
Yes it is! In our case we have an webapp update system tha
Tomcat takes the jvm path from the registry
parameters.
you can look at the jvm paramter at
\HKEY_LOCAL_MACHINE\SOFTWARE\Apache sotware
foundation\procrun2.0\tomcat5\paramters\java
under registry entries.
You can change these values by editing registry or by
running tomcat5w.exe under /bin.
Options I've seen suggested to this:
1) Write a servlet that passes through the content of resources.
2) Internal redirect via a servlet or filter.
Either should work. All that's really forbidden is direct client access
to the contents of WEB-INF.
--David
Marc Farrow wrote:
> I think the Serv
Hi,
I have a webapp with two servlets: LoginServlet and AdminServlet. I
would like LoginServlet to only respond to requests coming to port 8080,
and AdminServlet to respond to requests coming only to 8081. The only
(rather non-portable way of doing this) of which I can think so far is:
-in s
Instead of hardcoding, you can define a variable in
the web.xml as
jndiproperties
relativepathtowebapp/jndi.properties
jndi properties
and get the path name from the servlet context real
path as follows.
String propsFilePath =
ServletContext.getRealPath(ServletConte
if you want to be able to reload it, I suggest that you load it using a
FileInputstream, and not getResourceAsStream from the class loader.
if you load it through the class loader, the class loader doesn't reload
it until restart.
Filip
Chris Ward wrote:
Hi all,
I've build a little util clas
--- Peter Crowther <[EMAIL PROTECTED]>
wrote:
> > From: Dong, Roland [mailto:[EMAIL PROTECTED]
>
> > That is not an option. Thanks. I am wondering if
> that can be
> > configured
> > in catalina.policy? Played with it but can't make
> it work.
>
> Not to my knowledge.
>
> What you *could* do
--- Eric Anderson <[EMAIL PROTECTED]> wrote:
> When I re-deploy my war file in Tomcat 5.5.16, it
> fails because the
> listener can't start. And when I look at the context
> directory contents
> all the folders are there but not the files. Anyone
> know why?
>
> Eric
I have never had any luck wit
Maybe a useful URL to help address this matter when it bites, look for
the java code in the forum thread:
http://forum.hibernate.org/viewtopic.php?t=935948&start=150
Something to put at the end of your
javax.servlet.ServletContextListener#contextDestroyed(ServletContextEvent).
Abstracting
Hi all,
I've build a little util class for sucking in properties. When I use it
from "command line" progs it seems to work okay, but when I call it from
a servlet it never seems to load an *updated* version of the
.properties file.
I am using a HashMap to cache the Properties and associated ti
When I re-deploy my war file in Tomcat 5.5.16, it fails because the
listener can't start. And when I look at the context directory contents
all the folders are there but not the files. Anyone know why?
Eric
-
To unsubscribe, e-ma
Maybe you need to have:
...SNIP...
In your META-INF/context.xml or maybe the above is needed only in newer
version of 5.5.x.
Darryl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
> From: Dong, Roland [mailto:[EMAIL PROTECTED]
> That is not an option. Thanks. I am wondering if that can be
> configured
> in catalina.policy? Played with it but can't make it work.
Not to my knowledge.
What you *could* do is the following:
- Install a second instance of Tomcat
- Set its we
Marc
Maybe you are right. Thanks.
-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 12:27 PM
To: Tomcat Users List
Subject: Re: Allow web access to /WEB-INF?
I think the Servlet Specs do not allow this, so I doubt any Servlet
container will al
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> I mean reloading a webapp
> in production environment is a greater nogo than using a singleton,
> isn't it?
Given the number of posts in here about OOMEs over the last year or so
that have been traced down to running out of PermGen due to reloadi
That is not an option. Thanks. I am wondering if that can be configured
in catalina.policy? Played with it but can't make it work.
Thanks again,
-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 12:32 PM
To: Tomcat Users List
Subj
We did hardcode the JDK15, that's why I don't understand the error.
-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 11:53 AM
To: Tomcat Users List
Subject: Re: iSeries AS400 Install
you will have to read docs on AS400 to see how to set enviro
why don't you just workaround it and move the files you need accessed
outside the WEB-INF directory,
Dong, Roland wrote:
Is there a way to have web access to /WEB-INF? I want to have this
capability to access a directory under /WEB-INF by URL. Is there a way
to configure that?
I understand th
I think the Servlet Specs do not allow this, so I doubt any Servlet
container will allow this via HTTP. You can do it via File/Stream I/O
however.
On 5/3/06, Dong, Roland <[EMAIL PROTECTED]> wrote:
Is there a way to have web access to /WEB-INF? I want to have this
capability to access a dir
Is there a way to have web access to /WEB-INF? I want to have this
capability to access a directory under /WEB-INF by URL. Is there a way
to configure that?
I understand the secruity concern on this, but it is an internal
application and we want to use WebDav to access that directory.
Thanks
Ri
Thanks Tim,
Thanks Peter,
I have been looking all day, and only found entries for how to use
mod_proxy
to connect to tomcat - rather than the other way around!
Will definitely have a look at these!
Thanks again,
Andrew
PS: Have you ever compared running (mod_proxy|mod_jk)+apache+tomcat
v
you will have to read docs on AS400 to see how to set environment
variables. Or you can modify the startup script to hard-code your JDK you
want to use.
On 5/3/06, Mike Scherer <[EMAIL PROTECTED]> wrote:
We are installing Tomcat 5.5.17 on an AS400 V5R3. We have installed J2SE
5.0 but the syst
We installed the tomcat service using the following script. We had a question
regarding what JAVA_HOME the tomcat use once you create the service? Does it
depend on the system property defined %JAVA_HOME% or does the path present in
the following batch file (if hard coded) takes precedence?
Look here:
PippoProxy
http://www.javaworld.com/javaworld/jw-02-2005/jw-0228-pippo_p.html
Last year at google summer camp
http://j2ep.sourceforge.net/
But Apache mod_proxy has very much good perfomance and configure
options :-)
Regards
Peter
Am 03.05.2006 um 17:08 schrieb Andrew Miehs:
Dear Chris,
I am well aware of this - which is why I said it is NORMALLY the
other way around.
In our case though, our static content - images, etc are handled by
stand alone
image servers - ie: image.mydomain.com and our dynamic content comes
from www.mydomain.com.
I have the issue that
See http://j2ep.sourceforge.net/
-Tim
Andrew Miehs wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear List,
I have an application where I need to use tomcat as a reverse proxy for
certain URLs.
Yes - I know normally it is the other way around, but not in this case.
Is there a re
hi,
I am using tomcat 5.0.30 with jdk 1.5 in linux (ubuntu) platform.
When i try to commit changes in Admin Console (after change some thing) it
will save the changes, but
it log out me from the session.
When i investigate the code i saw this commit action
will call the storeConfig method of the
We are installing Tomcat
5.5.17 on an AS400 V5R3. We have installed J2SE 5.0 but the system does not
seem to recognize it.
The messages below occur when we try to start Tomcat. I think
jdk15 is J2SE 5.0.
I understand that we can have multiple JDK’s on the iSeries
but how do we specify wh
I think your having a similar problem as this guy:
http://forum.sun.com/jive/thread.jspa?threadID=93443&messageID=322051
There is a link that might help in that thread.
Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941 . 371 . 8110 x 205
-Original Message-
From:
Leon Rosenberg ha scritto:
Even if it doesn't, is this a real problem? I mean reloading a webapp
in production environment is a greater nogo than using a singleton,
isn't it?
Yes it is! In our case we have an webapp update system that undeploys
the old webapp and deploys a new version.
And an
The Apache web server already has this functionality built in using
mod_proxy. I would think Tomcat would not be well suited for doing this
sort of task. Apache is going to be much more I/O efficient and has been
tested and debugged for a VERY long time.
Chris Berthold
IT Systems Analyst
Commerci
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear List,
I have an application where I need to use tomcat as a reverse proxy
for certain URLs.
Yes - I know normally it is the other way around, but not in this case.
Is there a reverse proxy solution already out there for tomcat? or do
I ne
Hi!
I cannot deploy a project made with Sun Java Studio Creator 2 to a Tomcat
5.5.16, if I use a JDBC datasource.
I configured the Data resource in Tomcat adminstrator with the same url and
driver, than my dev env.
I got this message
javax.servlet.ServletException: L'exécution de la servlet
Great- thanks a lot for that. I'll have a read up, but it's obviously
going to be hard recoding the digested passwords when i don't know the
original.
Mark Thomas wrote:
digby wrote:
Is there anything to be aware of when (confusingly) you're doing DIGEST
authentication with a standard JDBC re
On 5/3/06, Peter Crowther <[EMAIL PROTECTED]> wrote:
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Could you explain it a bit more? What's the difference whether I have
> 10 instances of the same class or just one for reloading?
In a Singleton:
- the class holds a reference to the classloa
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Could you explain it a bit more? What's the difference whether I have
> 10 instances of the same class or just one for reloading?
In a Singleton:
- the class holds a reference to the classloader;
- the class holds a reference to the singleton i
On 5/3/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Thomas Bolding ha scritto:
> Indeed. If it is within the same context this is trivial - look into
> singleton design pattern.
It's a bad idea to use singletons in a web application, especially when
the application needs to be reloaded (this
How about JMS stuff ? For example Commons Messenger -
http://jakarta.apache.org/commons/sandbox/messenger/. Does anybody
used it ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Or better yet, use ServletContext#getResourceAsStream() as follows:
Properties jndiProps = new Properties() ;
try {
jndiProps.load( getServletContext().getResourceAsStream(
"/any/webapp/relative/folder/jndi.properties" ) ) ;
} catch ( IOException ioe ) {
// Log and handle error
}
This works w
Hi Tim,
I've read the article. I think I get all the ideas. In Tomcat
should be in classloader path right ? like in lib or classes folder ?
I'll try that.
Thanks
On 5/3/06, Tim Lucia <[EMAIL PROTECTED]> wrote:
No. It has to be under a location accessible via the classpath. The JSPs
a
ic... i think this is what i need.
thx,
feris
On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote:
i never tried it with default ctor, used it as
new InitialContext(jndiProperties);
using DirectoryFinding methods may help you like below.
String realPath = request.getRealPath(request.getCont
i never tried it with default ctor, used it as
new InitialContext(jndiProperties);
using DirectoryFinding methods may help you like below.
String realPath = request.getRealPath(request.getContextPath());
That should return the path up to where you have your servlet context.
-Original Messa
My only suggestion here is to use some type of generic naming convention.
We use the deprecated MOD_JK2, but it is similar in that it has a properties
file as well.
We just have our URI mappings to something like this and we are asking our
users to use the /servlet* URI for all servlet calls. T
I had a similar problem, I use Apache, but the concepts are the same. Create
another virtual host specifically for your Tomcat deployments and map them
to Tomcat. It will definitely simplify your day and configuration.
Otherwise I believe you would have to do some rewrite rules and that just
gets u
Probably a Java expert could help more, but I think you can use a
ResourceBundle (and place the properties in your package with your java
class files) to retrieve it or even a URL to load the properties file.
URL method psuedo code:
Properties props = new Properties();
URL url = new URL(http://lo
No. It has to be under a location accessible via the classpath. The JSPs
are web content. Read this:
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html
Tim
-Original Message-
From: Feris Thia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 8:56 AM
To:
Hello,
I have Tomcat and IIS successfully communicating with the AJP
1.3/isapi_redirect setup, however, I do have a question about the URL
mappings. I'd like to provide someone the ability to upload/FTP WARs and
have them automatically deploy and served with IIS without having to
edit the
Ic so we cannot just load it from the directory where jsp are and
use this code ?
=
InitialContext jndiContext = new InitialContext();
=
On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote:
i think , it is actully r
i think , it is actully related to where you are looking for.
i think you can put it anyware as long as the diretory you put it is
accessible.
http://asahin.net
private static final String CONFIG_FILE="resources/jndi.properties";
FileInputStream fis = new FileInputStream(CONFIG_FILE);
Hi,
I try to put jndi.properties under the same folder with JSP page. But
it's not working. Where should I put it ?
--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA
--
>> From: Samuli Elomaa [mailto:[EMAIL PROTECTED]
>> Is there any otherway for two servlets in same tomcat to communicate
>> together except by http requests? Eg. could two servlets use
>> somekind of shared memory? or send signals to each other?
>
>Both could in theory rendezvous at a common fi
Thanks,
Solved the problem by using singleton, hopefully I won't end up with
deadlock in somepoint.
Samuli
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The "root" folder in tomcat is R00T (all caps, tomcat is case sensitive)
and you need to replace the whole webapp ROOT with your iScholar webapp.
Just copying the iScholar webapp to the webapps/ROOT folder won't do
it. Basically, just trash or rename ROOT, then copy iScholar to the
webapps fol
Yes!
Glassfish is cool;-)
Also most of the sources are available -- https://glassfish.dev.java.net
Glassfish is "more strict" then Tomcat; I'm using Glassfish for
debugging and testing.
PETR
On 5/3/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote:
> -Ursprüngliche Nachricht-
> Von:
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 3. Mai 2006 13:06
> An: Tomcat Users List
> Betreff: Re: Plan to support Servlet 2.5 spec
>
>
> When can I start to download some development builds that I
> can use to
> try things out.
Since you have Tomcat running as a service, then you should be able to
access Tomcat via http://localhost:8080. Is this true? Can you also access
Apache at http://localhost? If both of these are true and you have Apache
seen from the outside work via http://www.yourdomain.com, then you will need
When can I start to download some development builds that I can use to
try things out. I am particular interested in the resource injection stuff.
Thanks,
Sahoo
Tim Funk wrote:
JSP2.1, Servlet spec 2.5 support will be in tomcat 6. Launch date is
unknown. There first has to be the round of alp
Hi,
We're using Tomcat 5.5.9 on our development PCs because it closely
replicates our chosen production environment (JBoss 4.0.2). What we
would like to do is configure Tomcat to enforce that all session
variables must be Serializable, so any development errors are caught
early and not during
JSP2.1, Servlet spec 2.5 support will be in tomcat 6. Launch date is unknown.
There first has to be the round of alpha, beta testing.
-Tim
Sanjeeb Kumar Sahoo wrote:
Hi,
Is there schedule for supporting Servlet 2.5 spec? Which version of
Tomcat will it be?
Hi!
I'm a newbie using this Tomcat-application. I figured out that it is a
application that in some way acts as a containter for Java-applications?
(like Apache Server could as a a containter for PHP?) Don't know if I have
got this right or not.
I have Windows XP Pro Edition. I have installe
There is a bug in mozilla when using client side XSLT:
https://bugzilla.mozilla.org/show_bug.cgi?id=334179
Basically, the problem is that mozilla ends a response when it sees a
redirect or forward.
Since I am using client side XSL to transform XML, I get an error when,
say, a 404 happens bec
Hello
What is the connection between Busy and Acc in mod_jk ?
We see that mod_jk tries to balance out Acc but Busy values are different.
Is there any logic in the algorithm that monitors Busy values when taking
load balancing decisions ?
lbfactor=1
for 6 nodes with 2 groups (3 nodes per group)
> From: Samuli Elomaa [mailto:[EMAIL PROTECTED]
> Is there any otherway for two servlets in same tomcat to communicate
> together except by http requests? Eg. could two servlets use
> somekind of shared memory? or send signals to each other?
Both could in theory rendezvous at a common filename
Thomas Bolding ha scritto:
Indeed. If it is within the same context this is trivial - look into
singleton design pattern.
It's a bad idea to use singletons in a web application, especially when
the application needs to be reloaded (this is one of the causes that
make lots of people write abou
Indeed. If it is within the same context this is trivial - look into
singleton design pattern. If the servlets are from different contexts
you will have to enable crosscontext in your server.xml I assume.
In any case be aware of race conditions/dead locks - Java5.0 has new
semaphore types which mi
Hi,
Is there any otherway for two servlets in same tomcat to communicate
together except by http requests? Eg. could two servlets use somekind
of shared memory? or send signals to each other?
Samuli
-
To unsubscribe, e-mail
85 matches
Mail list logo