"Tomás Tormo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi David
>
> I'm using tomcat 5.028 in Ubuntu 6.10 . I've written a java applicattion
> wich uses a wrapper to communicate with an applicattion written in C, wich
> is the "core" of my applicattion. Both the wrapper a
>> Sorry - I guess I wasn't specific enough. The HTTP status code that I
>> got from Apache was 200 hence the OK. I assumed that it was probably 200
>> since I was actually able to communicate with Apache itself, even though
>> its request to tomcat was unavailable. Or unless I am missing som
"fredk2" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi,
>
> Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious
> about something.
> In what case do you use mod_jk jni ?
>
TC 3.3.x is the only version that supports mod_jk's JNI module. The main
reaso
Hi David
That is just macro syntax. The real issue is why/how to avoid the security
violation on using xmlhttprequest when launching the webapp from localhost or
externally. I dont understand what to put where and how to access it so to
allow xmlhttprequest to execute.
David Smith <[EMAIL P
No comment on the whole bean construct other than to say that's too
complicated for my tastes.
My personal preference on the whole resources inside of WEB-INF front is
to just place the resources outside of WEB-INF. Then configure a
security constraint or write a filter on the request to hand
Hi David
I did it partially this way, and it works. My objects in the js file are
executing.
http://:/
decarta javascript api example
/extPages/myScripts.js">
However I still get the "Permission denied to call XMLHttpRequest.open... I
thought by putting a jsp:forward outside my WEB-INF
As for that last bit, I have found
that you can specify the path as /FolderInWebApp/Script/myScript.js
You still need either the context path or make it relative to the page's
URL or the client won't be able to resolve it. This doesn't work like
the jsp internals that are aware of the context
Hi Everybody,
I am trying to use struts to build web application. I just download
struts2.0.9 version and eclipse(Europo) j2ee develpers.I have tomcat5.5. I
dont know how to configure and use struts in this eclipse and collaborate
them to create projects. I am learning struts and trying to run s
Hi David
Thanks this is EXACTLY the syntax I was looking for and doing precisely what I
expect.
David Smith <[EMAIL PROTECTED]> wrote: If you are linking from inside a jsp
page and using jsp spec 1.2+ /
servlet spec 2.4+, you can do this:
src="${request.contextPath}/intPages/myScripts.js">
If you are linking from inside a jsp page and using jsp spec 1.2+ /
servlet spec 2.4+, you can do this:
src="${request.contextPath}/intPages/myScripts.js">
The comment is there if you are using xml valid jsp to prevent tomcat
from collapsing the script tag and breaking it in IE.
Hi All,
I have been upgrading our web application using (Tomcat 5.x) and our EJB
Container (weblogic 10) to java 5. While deploying the new java 5 compiled
war file in tomcat I get the following exceptions when I attempt to make
remote calls to weblogic 10:
Sep 7, 2007 10:32:53 AM org.apache.ca
Hi,
Ok, let me try to help you anyway.
Inside the web-inf directory, you usualy store classes and classloader
related stuff, like .jar or .properties files. Storing "*.js" files
inside this direcory could possibly mean two things:
1) Your are not really accessing .js files directly. Instead, yo
hmm what exactly do you need ajax for? From my recollection, ajax is
simply a method of making mini-requests to the server so the interaction
with your webapp is a bit more fluid. As for that last bit, I have found
that you can specify the path as /FolderInWebApp/Script/myScript.js
instead of using
Hi Marcus
Sorry. I have an ajax page. It works. I need to add other technologies to
it, the easiest way is with TC. I want to "graft" on ajax to TC technology,
and got the error about directly accessing security violations. But the
javascript code is not executing, so I was hoping someone h
Hi,
These questions sound really strange to me. Are you using an AJAX
framework like DWR ? If not, I guess you should give it a try:
http://getahead.org/dwr . You can easily find installing and deployment
instructions there.
Yours,
Marcus
-Mensagem original-
De: Chris Pat [mailto:[EMAIL
Hello
Any tips on serving a ajax page with tomcat? I am now calling the page with a
jsp:forward outside of the web-inf. Do I also have to fully unc path to the
*.js files, like src=localhost:8080/context/intPages/myScripts.js ?
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Subject: RE: Connection pooling, is it the right way to do it?
> >
> > I can find the part where doc says that context shouldn't be
> > put in server.xml but in context.xml, but can't see the part
> > where docbase and path shouldn't be spec
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: Re: classpath problems with a custom valve
>
> What is confusing to me is why when i put my jar into
> server/lib, the web app doesn't also have access to
> classes loaded from there.
Look at the 5.5 classloader hierarchy:
Bootst
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Arend,
Arend P. van der Veen wrote:
> The problem is that I must include seperate entries
> for each error-code. Is there a way of catching all of the errors with
> one error code?
No.
> I have the same question for exception catching.
Yes:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Dehmlow wrote:
> '<%=response.encodeURL("test/") %>'
This should work.
> '<%="test;jsessionid="+request.getSession().getId() %>'
Don't do this; find out what the problem is and fix that. I realize this
is only a test, but it's goo
ok thanks
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Subject: RE: Connection pooling, is it the right way to do it?
> >
> > I can find the part where doc says that context shouldn't be
> > put in server.xml but in context.xml, but can't see the part
> > where docbase and path should
To answer a couple of your questions.
I am getting ready to release jamon 2.7 which will monitor performance of
tomcat 5.5 and tomcat 6 and other http related stats for the server and have
them viewable in a searchable/sortable webpage. It will have summary stats
like which pages are currently ex
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: Re: classpath problems with a custom valve
>
> It is still a bit mysterious and not ideal as installation
> requires a class put in server/classes as well as the jar in
> common/lib, but it will do.
Using a valve is by necessity tying you
That worked. I created my valve as a single class and put it in
server/classes. I kept my jar in common/lib. I tried inheriting from the
valve in my jar and that didn't work, so i copied that code into a new
package and it worked fine. It is still a bit mysterious and not ideal as
installation
Hi,
I have been looking through the documentation to see if it is possible
to change the default error pages in tomcat. For example, I currently
have entries like
404
/error.html
in my web.xml file. The problem is that I must include seperate entries
for each error-code. Is
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: Connection pooling, is it the right way to do it?
>
> I can find the part where doc says that context shouldn't be
> put in server.xml but in context.xml, but can't see the part
> where docbase and path shouldn't be specified.
Many thanks for your reply.
Is it always implied that if an apache module is deemed 'thread safe' it
also implies that it will work in "prefork" environment maybe at the cost of
raw performance ?
Thanks again - Fred
Rainer Jung-3 wrote:
>
> fredk2 wrote:
>> Hi,
>>
>> The documentation for mo
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Subject: RE: Connection pooling, is it the right way to do it?
> >
> > at this link
> > http://www.onjava.com/pub/a/onjava/2006/04/19/database-connect
> > ion-pooling-with-tomcat.html i see the two parameters, but i
> > suppose there are cor
Hi,
Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious
about something.
In what case do you use mod_jk jni ?
Thank you - Fred
--
View this message in context:
http://www.nabble.com/when-does-use-mod_jk-and-jni--tf4417743.html#a12600560
Sent from the Tomcat - User mailin
fredk2 wrote:
Hi,
The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork
says:
"In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM
(Multi-Processing Module), some areas of mod_jk code need to be synchronized
to make it thread-safe. Because configure can
Hi,
The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork
says:
"In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM
(Multi-Processing Module), some areas of mod_jk code need to be synchronized
to make it thread-safe. Because configure can not easily detec
[EMAIL PROTECTED] wrote:
Hi
I am going through all of the potential settings I can set for mod_jk
and am not sure how the route property in mod_jk might be used.
I understand that this help to differentiate different servers in a load
balanced cluster to prevent sessions getting mixed up and t
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: Re: classpath problems with a custom valve
>
> I get the following exception which seems odd as I saw the missing
class in
> catalina.jar and I compiled against it.
Java classloading hierarchy is not bidirectional - classes can see only
up
Alright now I have another problem which is baffling me:
I have:
<%@ page session="true" %>
'<%=response.encodeURL("test/") %>'
in a jsp page.
the result is always 'test/'
so i tried forcing:
'<%="test;jsessionid="+request.getSession().getId() %>'
And the result looks like i expect it too
But w
ok, my reading skills are lacking. I put the jar in common/lib. I get the
following exception which seems odd as I saw the missing class in
catalina.jar and I compiled against it.
Sep 10, 2007 2:24:03 PM org.apache.tomcat.util.digester.DigesterstartElement
SEVERE: Begin event threw error
java.la
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: Re: classpath problems with a custom valve
>
> common/lib is for jars are only needed by web apps whereas
> shared/lib is for web apps AND tomcat.
Read the doc again - you have it backwards.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONF
I've had good luck creating timed events with java.util.Timer and
java.util.TimerTask. No external libs needed...
D
Ben Souther wrote:
Hehe.
It's amazing what you can do with one line of code using cron and wget.
On Thu, 2007-09-06 at 17:43, Christopher Schultz wrote:
-BEGIN PG
i apologize for the typo. I actually meant to say i put the jar in
shared/lib. Based on the documentation I think that is where it should go.
common/lib is for jars are only needed by web apps whereas shared/lib is for
web apps AND tomcat. Being as the valve should be used by tomcat i put it
in
Well, I have a couple of web applications which suck
up a thread for such things as well. I do it so that I
can schedule processes through this single application
and the end people do not need anything else, and also
because if they had to admin their own servers in
these instances it would just l
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: Re: classpath problems with a custom valve
>
> based on this document I placed my jar in server/lib as both
> web apps and tomcat need access to the classes in this jar.
What part of the Tomcat doc led you to that conclusion? It's clear
I had been too quick with it before, and came up with
what I think is a better fix. I haven't submitted a
patch, but I suppose I could. I work on the NetBeans
project and it would be about the same. For anyone
interested in this issue it is at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=4334
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
> Thanks for your answer. I guess I have to clarify my situation here a
> bit: We are creating an application which will run as a kind of slave
> to another (for us completely unknown) application server. This server
> has a kind of custom sess
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben,
Ben Souther wrote:
> Hehe.
>
> It's amazing what you can do with one line of code using cron and wget.
For real.
I've never found an application where it makes sense to have a scheduled
job run inside the webapp.
I realize that lots of folks
based on this document I placed my jar in server/lib as both web apps and
tomcat need access to the classes in this jar. Still it will not boot. If
i use a servlet filter that is in the same jar everything works fine, so it
has something to do with the Valve.
WARNING: Catalina.start using conf/
On 9/10/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> Thomas Gelzhaeuser wrote:
> > - if the session identifier is known - use the session for the request
> > with which the session was started.
>
> You can make any request to a Tomcat server using a session id encoded
> in the URL like this
Hehe.
It's amazing what you can do with one line of code using cron and wget.
On Thu, 2007-09-06 at 17:43, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Doesn't anyone know how to use cron anymore?
>
> Sheesh...
>
> - -chris
>
> Andrew Hole wrote:
> > I
Hi
I am going through all of the potential settings I can set for mod_jk
and am not sure how the route property in mod_jk might be used.
I understand that this help to differentiate different servers in a load
balanced cluster to prevent sessions getting mixed up and to do session
stickyness.
I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Neil,
Neil Aggarwal wrote:
> When I load that url, I get an error in the tomcat log
> but the error page does not come up on the browser.
What /do/ you get in the browser?
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Commen
> From: Steve Souza [mailto:[EMAIL PROTECTED]
> Subject: classpath problems with a custom valve
>
> Shouldn't my war be able to see the classes from a jar
> put into server/lib?
No - read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
You probably need to put your jar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
Thomas Gelzhaeuser wrote:
> - if the session identifier is known - use the session for the request
> with which the session was started.
You can make any request to a Tomcat server using a session id encoded
in the URL like this:
http://host
The caviot to my question was that I wanted to force session rewritting for
only one servlet. But I now see the flaw in this if another servlet in the
same context sets a cookie (jsessionid) that cookie will now be set for the
all other servlets as well. The solution is to use the cookies=false in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wade,
Wade Chandler wrote:
> Do you want to file a bug or do you want me to? I'm
> looking at the Tomcat 6.0.9 source code.
Even if nobody decides to do anything, please PLEASE log this bug and
get this discussion into bugzilla.
Thanks,
- -chris
--
You can just set "cookies=false" in the element in the app's
context.xml file.
See the docs for your version of Tomcat for details.
--
Len
On 9/10/07, Michael Dehmlow <[EMAIL PROTECTED]> wrote:
>
> Hello I'm looking for a way to force url session tracking regardless of
> whether the user has co
Hello I'm looking for a way to force url session tracking regardless of
whether the user has cookies enabled. My thoughts right now are to create a
session filter that deletes the cookie on the way out the door. if this
seems like a good idea who should I go about deleting the the cookie.
--
Vie
I posted a question earlier, but now have some more info
I have a custom valve that monitors page accesses in tomcat. It works in
tomcat 6, and under tomcat 5.5 that comes bundled with jboss. I can not get
it to work in tomcat 5.5.25. I put the jar in server/lib and the war I
install that re
Hello:
I added this error-page directive in my web.xml for an
app I am developing using Struts 2:
java.lang.Exception
/error.action
The error.action exists and loads correctly:
http://cbsweb.jammconsulting.com/cbsweb/error.action
I then created a jsp which throws an exception:
<%t
Hi Charles,
I think I might get it work OK by change to another JVM (1.5.09). Probably
the incompatible version of JVM.
You save me a lot of work.
Thank you so much.
Harry
Caldarale, Charles R wrote:
>
>> From: Gia Hieu Dinh [mailto:[EMAIL PROTECTED]
>> Subject: Graphics2D problems with Tomca
The stack doesn't indicate this to be a graphics environment problem.
Further, it looks like from the stack that you are on a Windows
environment where there should always be a graphics environemt. It does
indicate it can't load a file or library. What version of Java do you have?
--David
> From: Gia Hieu Dinh [mailto:[EMAIL PROTECTED]
> Subject: Graphics2D problems with Tomcat 5.5.23 on Windows machine
>
> Exception in thread "Image Fetcher 0"
> java.lang.UnsatisfiedLinkError: no jpeg in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
>
Hi,
I encounter a problem with Image Resize on Apache Tomcat 5.5.23. I have
Tomcat installed on Windows machine, but whenever I call some
function/method/declaration from java.awt (i.e.
BufferedImage.createGraphics) it raises the following problem:
Exception in thread "Image Fetcher 0" java.lan
> From: David Smith [mailto:[EMAIL PROTECTED]
> Subject: Re: *SPAM* Re: How to change the CLASSPATH in tomcat
> 5.028 for aconcrete webservice
>
> I still think setting CLASSPATH should be an absolutely last resort.
Strongly agree, and even trying to do so is likely a complete waste of
time.
T
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: Connection pooling, is it the right way to do it?
>
> at this link
> http://www.onjava.com/pub/a/onjava/2006/04/19/database-connect
> ion-pooling-with-tomcat.html i see the two parameters, but i
> suppose there are correct since
Changing to the default for retries fixed our problem.
I still have one question. How does retries > 1 work for a loadbalancer with
sticky requests?
A user started a session on a worker and got a jvmRoute to that worker in
its session cookie.
The worker fails and is put in error state. Will a sti
I'm not sure what you are getting at. If the webapp is started in
tomcat, you just need to use the jkmount directive to tell apache to
send those urls back to tomcat. I'm not sure what this context.xml
directory is or why you are worried about it. The *file* context.xml is
just an XML fragme
Hello!
How can I call from Apache HTTP Server using mod_jk, an web application that
is not on Context.XML Directory?
Basically I've an application located on WEBAPPS, but WEBAPPS is not
Context.XML directory.
Could you help me please?
Thanks a lot
Hi all.
I have a small problem here and could use some toughts how to handle that.
A client to my tomcat application will send me a kind of session
identifier as part of the request. Is it possible somehow to emulate
the following behaviour:
- if the session identifier is unknown - start a new s
Can you post a) the working classpath from the command line and b) the
stack trace you get when it's launched as a webservice?
One other thought that comes to mind is you might want to check all your
environment variables as a user and as a webservice -- see if the
installation created somethi
> From: Irvine, Chuck R [EQ] [mailto:[EMAIL PROTECTED]
> There are many in the company I work for that would like to leverage
> open source software in general and and Tomcat in particular. However,
> our legal staff resists the idea because of perceived legal risks. I
> know that there are compan
Hi David
I'm using tomcat 5.028 in Ubuntu 6.10 . I've written a java
applicattion wich uses a wrapper to communicate with an applicattion
written in C, wich is the "core" of my applicattion. Both the wrapper
and the core are third party applicattions, and because of that i don't
have the so
I wold STRONLY recommend you DO NOT touch the CLASSPATH env variable.
It's just a horrible idea. What is it about your webservice that
requires the alteration of CLASSPATH? Can you describe that a bit
more? The standard classloader structure works very well in virtually
all other cases.
-
Hi,
Is there a way to prevent Tomcat to delete the webappname.xml from
conf/Catalina/localhost at every redeployment?
I have application specific environment settings there, but at redeploy
it gets deleted and I lose the settings. I have tried with and
without context.xml in META-INF in my war.
Sorry I didn't respond earlier -- it's been a busy weekend. Comments
inline...
--David
[EMAIL PROTECTED] wrote:
Hi.
1. Your docBase and path attributes are at best optional. As long as
your context.xml is delivered in your webapp's META-INF folder, it
should be used automagically.
Hi again
I've tried to set the classpath in catalina.sh in order to have my own
classpath set when tomcat starts up ( I show it in catalina.sh as well
and it looks good). But my problem is that when I show it in my
webservice (using
System.out.println(System.getProperty("java.class.path")))
Hi Damien,
Damien Corbishley wrote:
Good morning Rainer,
bash-3.00# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.55
Server built: Mar 5 2007 11:10:17
Server's Module Magic Number: 20020903:11
Architecture: 32-bit
Server compiled with
-D APACHE_MPM_DIR="server/mpm/worker"
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Subject: RE: Connection pooling, is it the right way to do it?
> >
> > I'm using Tomcat 5.5.9.
>
> Which is nearly 2.5 years old. Anytime you utilize invalid parameters,
> you run the risk of encountering undefined behavior in any level of
Good morning Rainer,
bash-3.00# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.55
Server built: Mar 5 2007 11:10:17
Server's Module Magic Number: 20020903:11
Architecture: 32-bit
Server compiled with
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IP
Hello
I would like to change the classpath for a concrete webservice in
Tomcat 5.028 because the webservice has to use a concrete folder in
order to work. This folder should be in the CLASSPATH in order to make
the webservice work properly and because the webservice can't find it,
it doesn't
77 matches
Mail list logo