You can use:
response.setContentType("text/xml; charset=utf-8");
This works for TC 3-5.
"Simone - Dev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
> I made a servlet that generates a XML response that must be in UTF-8
> because it can include any type of chars (Jap
You can try using '-debug' to see what JVMs it finds.
I'm guessing that you are using jsvc v1.0 with a 1.4.x JVM (which doesn't
work well). You could try upgrading to the CVS HEAD version.
"Mariano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Adding -jvm server to the command l
I want the tld file to be packaged in the jar file along with the custom
class so that it is a reusable component, so I don't want to put it in
WEB-INF.
- Original Message -
From: "Adam Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 5:57
How about the original question. It seems we got off subject here. Can
someone please read the original post and see if you have a solution.
Thanks.
-Original Message-
From: Joyce Li [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 4:38 PM
To: 'Tomcat Users List'
Subject: RE: Data
Apache and tomcat are on the same box. I'd prefer to be able to do it
the way I did in the past. Has this feature been intentionally removed
from jk2?
Jack
Keene, David wrote:
Try looking at mod_rewrite with the proxy mode on. There were a couple
of email yesterday about it.
dave
-Origina
Hello,
I am trying to use tomcat as a container for my program which is not a
web-application. I can't see a way of specifying the context to be used, as
it is automatically selected by web-apps based on their name. I tried
configuring the default context for the datasource that my application
:I am new to tomcat so bear with me. I set tomcat 5 up on a server today and
: it is working. I then setup webMathematica 2 and that is working fine. However,
: when I go to the address http://localhost the page shown is the default tomcat
: page. What I would like to do is have the address htt
Try looking at mod_rewrite with the proxy mode on. There were a couple
of email yesterday about it.
dave
-Original Message-
From: Jack Lauman [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 5:08 PM
To: Tomcat Users List
Subject: Repost... no response from numerous posts
I've post
I've posted this same question on the apache and tomcat lists for the
past six weeks and gotten no answers. Not even an insult saying the
question was stupid. If I could find the answer in the docs I wouldn't
be asking.
I have virtual host in apache 2.0.49 with mod_jk2 its DocumentRoot is
do
You can try changing default page in web.xml.
Regards
Paresh
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 4:36 PM
To: [EMAIL PROTECTED]
Subject: Re:Default Page
Thank you for the resonse, but that is not what i'm looking to do. I have
Thank you for the resonse, but that is not what i'm looking to do. I have
already changed the port to 80, but Tomcat still loads the "Congrats you set up
tomcat successfully" page. What I want to do is change tomcat 5 to load the
webMathematica webapp page by default instead. Anyone know how to a
Hi,
I am new to tomcat so bear with me. I set tomcat 5 up on a server today and
it is working. I then setup webMathematica 2 and that is working fine. However,
when I go to the address http://localhost the page shown is the default tomcat
page. What I would like to do is have the address http://
I thought this map may not work either.
in my web.xml I mapped the servlet as following:
servlet>
testJSP
texcel.testJSP.spiderClass
testJSP
/testJSP
All me jsp of frames are in ROOT/texcel/testjsp/
when frame2.jsp makes the frame1.jsp submit to "testJSP". t
I am seeing some weird behavior with Apache and Tomcat. When I quickly
refresh the page from the browser, sometimes the wrong page appears. We
have two web sites on our server with virtual hosts. If I am reloading a
page on web site A, sometimes a page from web site B appears. This seems
to
partServlet
gov.tresc.sgip.PartServlet
partServlet
/servlet/partServlet/*
In this example, to access the servlet you could use
http://localhost:8080/sgip/servlet/partServlet
Daxin Zuo wrote:
You are right, after I send my last email to this list, I tested it with
full URL
You are right, after I send my last email to this list, I tested it with
full URL of the servlet. It worked well. So I need to tell Tomcat that it is
a servlet.
The previous problem is that Tomcat add the relative path before the servlet
name.
Could you please give the example for the servlet name
Does anyone had this problem? or does anyone uses tomcat inside a soft link?
thanks
Emerson Cargnin wrote:
Maybe this is a little offtopic, although highly related.
I was used to use a symlink to access tomcat, so I could change the
version just changing the softlink.
Eg: /opt/tomcat points to /o
AFAIK, submiting from a frame is the same as a single page. What was the
error msg you've got?
Probably, it has some problem in the servlet mapping... did you try to
load the jsp alone in the browser and submit it? if it doens't work, it
doens't has to do with the frames at all.
Emerson
Daxin Z
I use Apache 2.4.9, Tomcat 4.1.9.
In a JSP, there there are three frames in a frameset. the script of each
frame is JSP.
Can a JSP in one frame submit to a Servlet? I did a test and failed. Please
confirm or teach me how to do.
Thanks
-
Stella
I believe you are correct. There are two places that this is usually
set. One is in the
/j2sdk/jre/lib/security directroy/java.policy. The other location is in
/tomcat/conf/catalina.policy
Permissions for the JVM/Tomcat to open sockets, read directories, etc.
are controlled in these fi
Hans,
Thanks very much for your reply. I think it might still be related,
because the null pointer exception I got is from
DelegatingConnection.close(). However, I never thought it's bugs of
dbcp or Oracle driver, since if I setup the datasource manually
(following the example code in DBCP we
Hello all,
I made a servlet that generates a XML response that must be in UTF-8
because it can include any type of chars (Jap, Arabs, chinese, russian
and so on)
I developed it on Tomcat 5.0.x and I used, to set the correct encoding,
the method setCharacterEncoding before calling the out.getWriter
org.apache.jasper.JasperException: Unable to get connection, DataSource
invalid: "Unable to connect to any hosts due to exception:
java.security.AccessControlException: access denied
(java.util.PropertyPermission file.encoding rea
exerpt from my web.xml file
javax.servlet.jsp.j
Oops! Misread the stacktrace I am afraid my previous mail does not
apply to your problem... sorry ...
hmm perhaps I should go get some sleep
At 14:09 11/06/2004 -0700, Joyce Li wrote:
I also have 1 problem related the database connection which needs help.
I used to have the infamous No su
Hi,
we had the problem you describe as well.
I thought it was a bug in the dbcp common classes, so I decompiled them
and changed the source which fixed it.
However apparently that was not the way to go, since it is caused by a bug
in the oracle driver.
I posted my original emails concerning thi
I also have 1 problem related the database connection which needs help.
I used to have the infamous No suitable driver error, but after I
corrected my connect string by adding schema into it (defined in
context.html), it works for me:
url
jdbc:oracle:thin:@::
After this,
> I assumed the forcing of cookies and sessions.
Me too. Most web applications that need to be concerned about repeat
requests are likely to be dependant on session objects one way or another.
> And with that, a good weekend to all ;)
An excellent idea!
Kind regards
Harry
---
We've got the exact same issue in our environment at all. Every time we
define a datasource, we have to restart Tomcat so that datasource can be
accessed. Additionally, when using a traditional web server frontend, like
Apache or IIS, with mod_jk or mod_jk2, we have to restart the web serve
Shapira, Yoav wrote:
Hi,
That's an interesting approach: I'm glad it works for you. You and
others should carefully consider using this approach, however, if you
have clients that may refuse to join in a session. Such clients do
exist, and the HttpSession guidelines mandate that your servlet(s) b
Hi,
That's an interesting approach: I'm glad it works for you. You and
others should carefully consider using this approach, however, if you
have clients that may refuse to join in a session. Such clients do
exist, and the HttpSession guidelines mandate that your servlet(s) be
accommodating of t
I've just come off implementing something very much like what Wade has
recommended, and it works a treat.
Note the use of a finally block to release the session lock, which is cool.
Basically, the first request sets a flag stored in the session object so
that no other (subsequent) request will be
I'm having trouble accessing a database connection after war
redeployment. I've read the documentation several times and went
through suggestions posted in the mailing lists, but nothing has worked.
I prefer the approach of having the context.xml file in the META-INF
directory in the war itself.
Hi,
>I had this in the new
>URL(http://4526353&[EMAIL PROTECTED]@##$#$$%(()))*(*&&^%^%^)
and
>it passed. I was expecting to get some error. Should I?
No, you shouldn't get an error. It's a valid but nonsensical URL. If
you're not clear why this is valid, and are interested, look at RFC
2396.
Hi Yoav,
I had this in the new
URL(http://4526353&[EMAIL PROTECTED]@##$#$$%(()))*(*&&^%^%^) and
it passed. I was expecting to get some error. Should I?
Ike
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 3:43 PM
To: Tomcat Users List
Subjec
Hi,
>Let's say that I don't want to mess with my working server.xml. If I
>have an application that's accessed via "webapps/myapp/jsp/index.html",
>where would I put the RemoteAddrValve code? Do I create a context
>fragment called webapps/myapp.xml and put it there? I'd rather not
have
>to add
Let's say that I don't want to mess with my working server.xml. If I
have an application that's accessed via "webapps/myapp/jsp/index.html",
where would I put the RemoteAddrValve code? Do I create a context
fragment called webapps/myapp.xml and put it there? I'd rather not have
to add a context
I am running Apache 2.0.49 / jk2 2.0.4 / tomcat 4.1.29
I have several ip-based virtual hosts set up through Apache which use jk2 to
get to tomcat. My problem is that I can bypass Apache settings for the
domain by changing the ipaddress used for those domains with a client.
Example configuration:
Hi,
As the Valve config reference doc says, you can put a Valve inside an
Engine, Host, or Context. It applies at whatever scope you put it. So
if you have a Valve inside a Context, it only applies to that context.
If you have a Valve inside a Host, it applies to all Contexts within the
Host, in
hi Jason,
thx a lot for your reply. i am, unfortunately, stuck
with Tomcat 4.1.x.
i don't have any problems getting jspc to generate
.java files for jsps that exist in a hierarchical
(sp?) tree. for instance, my jsps are scattered under
my web root folder, in sub folders, etc..
my problem is t
I have seen many posts on this subject, but no definitive answers. It's
said that you can use the RemoteAddrValve and RemoteHostValve to allow
different degrees of access to different applications published under
webapps, but how?
The admin.xml example uses a context fragment. If I have another
Maybe this is a little offtopic, although highly related.
I was used to use a symlink to access tomcat, so I could change the
version just changing the softlink.
Eg: /opt/tomcat points to /opt/tomcats/jakarta-tomcat-5.0.25/
This worked fine, but when I updated my system from 5.0.19 to 5.0.25, an
Hi Woodchuck,
I just fought the exact same thing for two weeks and
this is what I discovered:
If you want to precompile all the JSPs with a package
name other than org.apache.jsp you have to use the -p
option and give it a new package name. This doesn't
really work, as you may have already disco
Marc,
The only issue with having jars in common/lib, is that any static class
variables are shared across every webapp, as the class loader only loads
these classes once per server. Classes under webapp/WEB-INF/lib are loaded
once per webapp and invisible to other webapps.
For example, if you'r
Everything is being created through Ant - the problem appeared to be
resolved when I modified the javac task to use UTF-8 encoding, though
I'm still not clear on why this issue would only be visible when the
files go through the WAR/JAR process first. Very unclear on that. But,
the problem appe
Thanks much! The following article was very informative:
http://www.javaworld.com/javaworld/jw-04-2004/jw-0419-multibytes_p.html
adding 'encoding="UTF-8"' to my JAVAC tasks in my Ant's build.xml seemed
to have taken care of the problem I was seeing. The article was
informative in many other ways,
Hi, i have similar problems but the errors are different and i not sure
if theses errors are criticals, and worts is that i don't have response
about theses issues
[Thu Jun 10 20:29:16 2004] (error) [jk_handler_response.c (200)]: Error
ajp_process_callback - write failed
[Thu Jun 10 20:29:16 2
Ok, I can't figure this out. I'm sure it's simple and I'm just missing it.
I created a tomcat server initially with a self-signed certificate to move
forward with testing while our cert authority was re-gen-ing a certificate
for us.
Now, create a new keystore with the root certificate importe
Works for me. I was just looking for the explanation. I'll give it a
go with 5.0.25 but I trust you on this one. :)
Charlie
Shapira, Yoav said the following on 6/11/2004 10:21 AM:
Hi,
shared/lib works on tomcat 5.0.25. It's trivial to test and verify for
yourself.
The user reported this on 4.1
And this one too:
[Fri Jun 11 16:20:59 2004] [error] mod_jk2.handler() Error connecting to
tomcat 3, status 200
Thanks
-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: 11 June 2004 04:21 PM
To: '[EMAIL PROTECTED]'
Subject: jk2 error explanations
Greetings.
Could
Greetings.
Could anyone tell me what these error messages mean (I know they indicate
problems connecting to the AJP worker and Tomcat) - but is there a list of
what the status codes etc actually indicate?
[Fri Jun 11 16:18:54 2004] [error] ajp13.service() Error forwarding
ajp13:localhost:8009 1 1
Hi,
shared/lib works on tomcat 5.0.25. It's trivial to test and verify for
yourself.
The user reported this on 4.1.30, which is in maintenance mode where
only showstopper and security bugs would be fixed, and further an OK
workaround (using common/lib) exists. I didn't even try to confirm or
re
OK I'll leave it in common/lib. The problem with WEB-INF/lib is that is
takes too much time to update all webapps. We have a rather cumbersome
environment. Each app has to go through four environments (development,
integration, certification, production) before it is available to the
customer. Hop
I have seen this happen as well. I'm fine with putting jars in either
the common/lib or the WEB-INF/lib, but how come shared/lib doesn't work
at all? Nothing that gets placed in that directory shows up in the
classloader. Is there something I need to configure to get those jars
to load?
Thanks f
I, also, don't have my web application packaged as a war (actually it is
but I expand it myself and remove the WAR as part of the build process).
Even with autoDeploy="false" you get double initialization if you have a
context declaration that redefines the default context path. I don't
have a
Hi,
It's OK to leave it in common/lib. (IMHO it's also fine to have a copy
for each webapp in WEB-INF/lib, but you stated you don't want that).
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Wangenheim, Marc [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 11, 200
I need some help trying to get a shared jar to work in shared/lib. I've
searched the archives and found many posts with this issue but no fix.
Win2k
Tomcat 4.1.30
JDK 1.42_03
My webapps are based on a framework I developed that is contained within
one jar. Up until now I have included this jar w
| you can specify the path using this line in the httpd.conf look this
doc http://jakarta.apache.org/tomcat/faq/connectors.html
|* JK2 doesn't seem to be using my settings in my |workers2.properties|
file such as creating the shm file or mapping the URIs listed to Tomcat,
what's wrong? * JK2 i
Try command: "workersFile"="D:\tomcat\conf\workers2.properties"
And/or the path syntax for unix..
-Ursprüngliche Nachricht-
Von: syn uw [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 11. Juni 2004 10:10
An: [EMAIL PROTECTED]
Betreff: Apache / mod_jk2 and config/log file location specificati
hi,
when i pre-compile my jsps, i found that Tomcat only
likes them when they are compiled with the package
"org.apache.jsp".
if i change the generated *_jsp.java files (before
compiling) to a different package that is anything but
"org.apache.jsp", Tomcat fails to load them when I try
to access
Tim Funk wrote:
Would request.getServerName() work?
Ordinarily that would be sufficient, but in this case, I want to know
the actually host name attribute, as getServerName parses information
from the request it could possibly contain the name of an Alias or an IP
address, or neither in the case
May be you can use these options in the jk2.properties
serverRoot=/usr/local/apache
apr.jniModeSo=/usr/local/apache/modules/mod_jk2.so
syn uw wrote:
Hello,
I have just installed the latest version of mod_jk2 with Apache 1.3.29
on Linux and wanted to know how I can specify to mod_jk2 where he
sh
You could just put the tld in WEB-INF and reference it from the web.xml.
This is the entry in my web.xml for the taglib I use all the time:
http://localhost/myapp/asl
/WEB-INF/asl.tld
asl.tld is physically present in WEB-INF.
Don't know if th
Hi,
Windows service works for me. 5.0.12 is not stable and is a useless
base for comparison.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 11, 2004 2:16 AM
>To: Tomcat Users List
>Subject: RE: Wha
Hi,
Yeah, it could be. A WAR packaging is not essential for this to happen.
As long as autoDeploy and explicit declarations both exist, you'll get
this..
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Paul Wallace [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 1
would this work if the user keeps hitting the f5 key (ie refresh)
-steve
Wade Chandler wrote:
Shapira, Yoav wrote:
Hi,
You can use JavaScript to disable form elements, thereby graying them
out and preventing the user from clicking again.
Yoav Shapira
Millennium Research Informatics
-Original M
I would like to ask this question again.
(B
(BPlease tell me how to use "maxCount" value in
(Bstruts-config.xml.
(B
(BAm I correct if I set "maxCount=-1"?
(BOur system is running properly when the value is -1.
(B
(BGeorge
(B
(B__
(BDo You Y
I have been been trying to jar up a custom taglib java class along with the
corresponding tld file. However I keep getting an error indicating that it cannot find
a file named "META-INF/taglib.tld".
I have followed instructions in this doc:
http://www.ibm.com/developerworks/java/library/j-jsp09
Hello,
I have just installed the latest version of mod_jk2 with Apache 1.3.29 on
Linux and wanted to know how I can specify to mod_jk2 where he should look
for the workers2.properties config file and where he should write the
jk2.log log file ?
I had a look into the documentation but I cannot f
In that case I'd suggest putting the the JAVA_OPTS in the
$TOMCAT_HOME/bin/catalina.sh. Add the line
JAVA_OPTS="-server" to somewhere near the top of the file.
On Fri, 2004-06-11 at 07:28, Mariano wrote:
> With this opts in CATALINA_OPTS i get this message error:
>
> jsvc error: Invalid option -
Hi All,
I want tomcat to serve multiple domains.
Say I have two domains www.karnhuis.nl and www.connecties.com
They both have a different web site. (no alias).
I would like tomcat to serve both sites.
How can I accomplish this?
I tried this in my server.xml :
Sorry I'm a newbie so I'm asking trivial questions for you but I can't find
the error!!!
If I put my cut&paste servlet from a tutorial I've no proble, it works.
If I use a virtual host, a "not found error" appears.
The web.xml is:
Servlets test
Examples
login
cha
One thing that doesn't work properly compared to 5.0.12 is the Windows service.
It can be installed but no jsp page will be compiled (applies to 5.0.24 too).
FATAL: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalC
One thing that doesn't work properly compared to 5.0.12 is the Windows service.
It can be installed but no jsp page will be compiled (applies to 5.0.24 too).
FATAL: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalC
Try Quartz http://www.quartzscheduler.org/quartz/
Tom Kochanowicz
-Original Message-
From: Gabi [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 2:03 AM
To: [EMAIL PROTECTED]
Subject: Execute servlet at an interval.
Hello, I'm going to migrate a Resin to Tomcat application, I'm be
74 matches
Mail list logo