I `m calling a bean from a jsp page that return HttpServletRequest
snippet
HttpServletRequest req= myBean.getMessage();
out.write(req.getParameter(mess));
where mess is a variable that was set in the bean
My problem jsp can`t compile I got the following errors
Jasper in turn uses JDT to compile JSPs into servlets and JDT is currently
only JDK 1.4 compliant. To use 1.5 features in your JSP you will thus have
to replace jasper.
This questions has been brought up a couple of times so search the
archives or look at
can you show me the com.MyBean.java ' source code?
how does class MyBean get the HttpServletRequest ?
Have you passed the request to class MyBean?
2006/1/11, marju jalloh [EMAIL PROTECTED]:
I `m calling a bean from a jsp page that return HttpServletRequest
snippet
HttpServletRequest req=
Hi,
I `m calling a bean from a jsp page that return HttpServletRequest
snippet
HttpServletRequest req= myBean.getMessage();
out.write(req.getParameter(mess));
where mess is a variable that was set in the bean
My problem jsp can`t compile I got the following errors
Dola Woolfe wrote:
Hi,
I'd like to use java 1.5 features in my jsp code, in
particular generics. But the jasper compiler really
doesn't like it. Any setting to fix this:
Use Tomcat = 5.5.10 which comes with JDT from Eclipse 3.1 and supports Java
5.
Regards
mks
Your underlying problem is the exclamation mark at the start of your
scriptlet. This makes the jsp ompiler put free standing code into the
init method or creates methods on the servlet that you can call within
your jsp. Without the exclamation mark the compiler inlines the
scriptlet into the
I have a new computer and I have installed the latest version of Tomcat 5 and
reinstalled the Sun One Studio 4 which I still had a setup file. The example
servlets and jsp's work fine but my servlets - that worked fine on my old pc
with tomcat 4 - now don't work, the jsps are working fine but
Thanks George and to Tim for his answer also - George's example seems to
be a reliable indicator of its capability. I am going to load test the
site on a pure Tomcat install - I will let you all know how it goes ;)
I would love still to hear of any other examples of pure Tomcat
installs. It
Make sure tomcat is returning the header:
Content-Type: video/x-ms-wmv
You can confirm this via telnet:
telnet MYSERVER 80
HEAD /MY/foo.wmv HTTP/1.1
Host: MYSERVER
Connection: close
You can add the header in $CATALINA_HOME/conf/web.xml or in web.xml of your
webapp.
-Tim
Mark Winslow
Its the response header:
Content-Type: application/pdf;charset=ISO-8859-1
I can't recall the resolution to this issue. I believe a tomcat update fixes
this. An issue similar to this was discussed in Bugzilla.
The main issue is your using a JSP. The JSP is calling
response.setCharacterset().
### Adam Johnston [EMAIL PROTECTED] wrote message to
George Sexton [EMAIL PROTECTED], Tomcat Users List
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
Thanks George and to Tim for his answer also - George's example seems to
be a reliable
### Adam Johnston [EMAIL PROTECTED] wrote message to
George Sexton [EMAIL PROTECTED], Tomcat Users List
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
Thanks George and to Tim for his answer also - George's example seems
to be a reliable
Hello, I'm seeing this exception in catalina.out of Tomcat 5.5.15 (2 node
cluster). This is Tomcat code, so I'm wondering if I should fix something or if
the problem is inside Tomcat? Ronald. SEVERE: Unable to serialize delta
request for sessionid [F63F9EDF02547D7610359C7A990650A7]
Migrating from Tomcat 4.x to 5.5.x
The application uses an application scope bean and for some reason the 5.5.x
container is continuously initializing the bean.
jsp snippet
jsp:useBean id=ADMIN class=com.foo.bar.Admin scope=application /
com.foo.bar.Admin Constructor
public Admin() throws
Hi,
During initilization of my c3p0 connection pool by hibernate the below
printed exception occurs. The exception causes a failure in the c3p0
initilization and thus hibernate and my application.
Does anyone know what might cause this behavour?
The folowing bugs describe a similair problem.
Hi everyone,
I am trying to create a ClassLoader for my application so then I will not have
to reload all the hibernate and struts when a new class is compiled.
Then my problems started:
I do not know where to put my special ClassLoader.
I got lots of classcast exceptions until I found that a
I like the sound of that idea - videos tend to change rarely, and are
prime candidates for caching. Is anyone actually using this
configuration?
Thanks.
-Original Message-
From: Wouter Boers [mailto:[EMAIL PROTECTED]
Sent: 10 January 2006 16:01
To: 'Tomcat Users List'
Subject: RE: Using
Dear group,
I have been looking at how to best serve static content from my web-site.
Most of the content is static.
I was looking at using Apache as a front to Tomcat and have that all up and
running. The problem is securing the content. I have written an Apache plug-in
using
Adam,
I think I just posted a question on nearly this same topic.
I found something called Pippo for static content and would be easier to
configure as it sits in Tomcat.
Do you have security considerations? Have you had to add modules for securing
content in Apache?
Adam
Mark,
i guess setting
HttpServletResponse.setHeader(Content-Type,video/x-ms-wmv);
when generating your response should help with that.
Regards,
Thomas
[EMAIL PROTECTED] schrieb am 10.01.2006 21:38:54:
Hello,
I am unable to properly serve up wmv files.
Despite adding the
During initilization of my c3p0 connection pool by hibernate the below
printed
exception occurs. The exception causes a failure in the c3p0
initilization and
thus hibernate and my application.
Does anyone know what might cause this behavour?
Seems like it is the catalina class loader
I am trying to have all requests that come to the Tomcat Server be redirected
to another web server. What is the best/easiest was to do this?
I have Tomcat 5.5.7 installed and I do not have or want to install Apache.
I have did a search through the archives and have found nothing.
Any
Hi
How can i change the default classloading hierarchy in Tomcat 5.5.9 ? And
would that affect in my Tomcat setup anyway?
Please reply to my query because i am stucked up badly at this problem.
-Original Message-
From: Nehal Sangoi [mailto:[EMAIL PROTECTED]
Sent: Friday, January 06,
I would consider integrating this as part of your application and stay just
standalone tomcat (or load balanced tomcat). Keep it simple.
http://www.opensymphony.com/oscache/
Very useful.
__
This email has been scanned for all viruses by the MessageLabs SkyScan
I'm trying to get to the session from a tag. I have a bean stored there
that I want to use in my tag. How can I retrieve this. I can't find this
information anywhere.
Thanks.
Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
--
In every revolution, there is one
Not sure I fully agree with you - not about Apache being a great stable
product - as I do agree with that. However, I have been using Tomcat since
version 3 - and settled on using Tomcat (since version 5.0.x) standalone as
I found greater stability, speed and reliance than with using it in
Without knowing how your web.xml file was defined, it seems to me a context
root problem. Sun has its own way to define the path of a context root in its
sun-web.xml file, unlike tomcat which uses the application name as the default
root path. If you use Sun's Studio to package and deploy
Ah!!! That's what I was looking for.
Thanks so much!
David Delbecq wrote:
getJspContext().getAttribute(someKey,PageContext.SESSION_SCOPE)
Le Mercredi 11 Janvier 2006 16:19, Thom Hehl a écrit :
This explains the code I found. What if you extend SimpleTagSupport.
What's the difference?
Put a security constraint in your web.xml for the resources you want to
secure.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
-Original Message-
From: ALEX HYDE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 6:23 AM
To:
Read:
http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt
Specifically, search for
Enabling invoker servlet:
Essentially, you need to do URL mapping in your web.xml for your servlets.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
-Original
kavallappa chiru wrote:
Hi
How can i cretae exe file from java class file , so that i can run java
application without running java classfile from the command prompt. I just want
click on the icon to run it as we are all doing in windows.
You have an ASF licensed solution at:
Dear All,
I have a JSP like the following
html
head
.
.
/head
body
frameset
frame
/frame
frame src=a.jsp
/frameset
.
.
/body
html
where .. is for html code.
If I try to access html
Couple of ways you may consider:
- Ask your network administrator to change your DNS mapping or IP
address mapping.
- Use the build-in balancer of tomcat as a proxy to redirect the traffic
(see the load balancer section of tomcat doc).
- Apache or HW load balancer.
ND
-Original Message-
Hi,
When I use our application with tomcat 5.5.12 it seems
it does not need a javac ,I mean I can get it running
with a jre as JAVA_HOME, however for some reasons we
cant use 5.5.12 and when I try to use an older version
of tomcat 5.0.28 or 4.1.31 it says that the jre wont
be sufficient at
I have a requirement where I have to use the jre in
the final verison of product cant ship it with
J2sdk... and I am using 1.4.2_07 jre. It seemed it was
fine with 5.5.12, where most of the pages from my
webapps application came up but there were some other
issues. But in the older version of
CARROLL, MIKE (CONTRACTOR) wrote:
My client has a requirement to upgrade to a Tomcat version greater then
5.5.12, but the next release up 5.5.15 is still listed as _Beta_ on
http://tomcat.apache.org However, when I look under
http://archive.apache.org/dist/tomcat/tomcat-5/ it shows a non-beta
Jignesh Shah wrote:
When I use our application with tomcat 5.5.12 it seems
it does not need a javac ,I mean I can get it running
with a jre as JAVA_HOME, however for some reasons we
cant use 5.5.12 and when I try to use an older version
of tomcat 5.0.28 or 4.1.31 it says that the jre wont
be
From: Samara, Fadi N Mr ACSIM/ASPEX
[mailto:[EMAIL PROTECTED]
Subject: RE: tomcat and javac (UNCLASSIFIED)
Which Java version are you using ?
If you are referring to JAVA_HOME as the environment variable, then it
should point to your java sdk not jre
Not true with Tomcat 5.5 levels -
Hello,
In our current application I need to link to a file that resides
outside of the webapp directory. On another application we allowed the
users upload files and stored them in the webapp directory, which made
deployment a royal pain. This time we are storing the files in a
location
--- Ritchie Gillam [EMAIL PROTECTED] wrote:
I am trying to have all requests that come to the
Tomcat Server be redirected to another web server.
What is the best/easiest was to do this?
I have Tomcat 5.5.7 installed and I do not have or
want to install Apache.
I have did a search
Why not just store the file in a database as a BLOB? Let the database
worry about where they go...
-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 2:16 PM
To: Tomcat Users List
Subject: Accessing Files outside of WebApp
Hello,
In
I have a problem for configure SSL protocol using keytool
C:\Tomcat55\webapps\ROOTkeytool -genkey -alias tomcat -keyalg RSA -keystore .ke
ystore
Enter keystore password: eileen
What is your first and last name?
[Unknown]: iosev
What is the name of your organizational unit?
i need configure SSL protocolo (https) with tomcat 5.5.12, but I don´t know
configure, I used documentation of tomcat but I have a error, someone may
explain me this process.
Regrards.
Iósev Pérez Rivero
Estudiante 4to. Año
Universidad de las Ciencias Informáticas
What I do for my application is creat a URL mapping
/binaries/*
That maps to a servlet that then reads the files from the source directory,
and transmits them out the OutputStream.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
-Original Message-
Thanks for the tools.jar tip.. I plugged the tools.jar
in the JRE disabled the JRE check in setclasspath.sh
and I was all set.. 4.1.31 works fine with JRE.
- Jignesh
--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:
From: Samara, Fadi N Mr ACSIM/ASPEX
[mailto:[EMAIL PROTECTED]
Even then I have to bring out the byte array into somewhere so that
they're link is active. Like I said I'd rather not do any type of copy
over for this link.
Plus I'm not too keep on Blobs in databases anyway.
I think the other's suggestion of the Servlet mapping will do great. Thanks for
Sorry,
keep = keen
-Zach
Zach Moazeni wrote:
Even then I have to bring out the byte array into somewhere so that
they're link is active. Like I said I'd rather not do any type of copy
over for this link.
Plus I'm not too keep on Blobs in databases anyway.
I think the other's suggestion of
Hi,
I have written a servlet and deployed successfully under
tomcat_root\webapps\examples\WEB-INF\classes with all the servlet class files
sitting there. However, if I move the servlet class files to a separate
directory called myservlet, for example tomcat_root\webapps\myservlet, the
servlet
From: William Mok [mailto:[EMAIL PROTECTED]
Subject: tomcat deploy configuration
However, if I move the servlet class files to a
separate directory called myservlet, for example
tomcat_root\webapps\myservlet, the servlet
fails to deploy. (servlet not found error)
What is the minimum
Hello all,
I have scoured Google and the list archives, it seems
like somebody must have had this issue before but I
can't find any record of it.
(all on a single host)
Tomcat 5.5.12
Apache 1.3.28
mod_jk
Mandrake Linux 9.1
Struts 1.2.4
My problem is that, while using my application (via
Thanks.
- Original Message -
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 11:55 AM
Subject: RE: tomcat deploy configuration
From: William Mok [mailto:[EMAIL PROTECTED]
Subject: tomcat deploy
From: William Mok [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat deploy configuration
The requested resource (/dbtrax/servlet/PlexEngineDemo)
is not available.
url-pattern/servlet/PlexEngine/url-pattern
Your mapping is for /servlet/PlexEngine but you tried to reference
- Original Message -
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 12:13 PM
Subject: RE: tomcat deploy configuration
From: William Mok [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat deploy configuration
Alrighty,
I was able to push the download to the client with this snipbit of code
I wrote:
File file = new
File(C:\\wolverine-documents\\inquiryDocs\\1010\\Operations Use Cases
V1.3.doc);
FileInputStream fin = new FileInputStream(file);
byte[] bytes = new
Can you please send me the txt of the registry file? I will check it
out
and
make sure there is nothing that I have not already done.
Tom
I sent this in private, but I decided to post it back to the list just
in case it is useful to someone else:
Tom,
I'm pasting the contents of the
Also one other thing...hitting the Servlet via
./FileDownloader/MyDoc.doc?id=#{doc.id} (using JSF)
Doesnt' seem to hit the servlet, but going to
./FileDownloader?id=#{doc.id}
does.
Thanks for any input
-Zach
Zach Moazeni wrote:
Alrighty,
I was able to push the download to the client
It certainly would be nice if ASP and ASP.NET had a binary to which you
could pass the file to and receive the output. You could then map .asp
files as CGI's.
-Zach
Brantley Hobbs wrote:
Can you please send me the txt of the registry file? I will check it
out
and
make sure there
-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 3:37 PM
To: Tomcat Users List
Subject: Re: Tomcat IIS-redirector help
It certainly would be nice if ASP and ASP.NET had a binary to which
you
could pass the file to and receive the
Bah, a coworker had me try
servlet-mapping
servlet-nameFileDownloadServlet/servlet-name
url-pattern/FileDownloader/*/url-pattern
/servlet-mapping
and everything is Groovy.
Thanks for all the previous help.
-Zach
Zach Moazeni wrote:
Also one other thing...hitting the Servlet via
I've a similar situation where I have to provide million of check images.
What I did was to create a context - using a simple xml file in webapps -
for each context.
- Original Message -
From: Zach Moazeni [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday,
Jan 11, 2006 2:59:44 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 11, 2006 2:59:44 PM
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory
init
INFO: Error initializing SocketFactory
java.io.FileNotFoundException: server.pem (No such
file
http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/20051204175733.82684.qmail%40web50613.mail.yahoo.com
--- Iosev Perez Rivero [EMAIL PROTECTED] wrote:
i need configure SSL protocolo (https) with tomcat 5.5.12, but I don´t know
configure, I used
documentation of tomcat but
Simple question: What's the most idiot proof way to start Tomcat at boot
on SuSE Enterprise Linux version 9?
Nigel DeFreitas
Insurance Services Office
201 469 3939
I am sorry. The link is
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html
--- Dhaval Patel [EMAIL PROTECTED] wrote:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/20051204175733.82684.qmail%40web50613.mail.yahoo.com
--- Iosev Perez Rivero [EMAIL
[EMAIL PROTECTED] 01/11/2006 2:14:15 PM
Simple question: What's the most idiot proof way to start Tomcat at boot
on SuSE Enterprise Linux version 9?
Nigel DeFreitas
Insurance Services Office
201 469 3939
I've had good luck with SLES9.1 by having a symbolic link in /etc/init.d/rc3.d
called
On 1/11/06, Michel Costa [EMAIL PROTECTED] wrote:
Hi everyone,
I am trying to create a ClassLoader for my application so then I will not
have to reload all the hibernate and struts when a new class is compiled.
Could you please explain why this is a problem ? Is the startup time an issue ?
If you are using the Tomcat version that ships with SLES9 (version 5.0.x I
believe) just use the /etc/init.d/tomcat script. There is usually a symbolic
link created and you can just issue one of the following from a root command
prompt:
rctomcat start
rctomcat stop
rctomcat restart
I have successfully installed the Tomcat 5.5.12 Server on a Windows 2000
System for training and dev purposes.
JSP appears to be processing correctly save for 2 examples - slightly Off
Topic here...
SVG (Scalable Vector Graphics) /jsp-examples/jsp2/jspx/svgexample.html
The SVG sample appears to
From: Brendan Stephens [mailto:[EMAIL PROTECTED]
Subject: Client Errors: 5.5.12 JSP XML Samples
XHTML Basic Example /jsp-examples/jsp2/jspx/basic.jspx
There appears to be something about the DOCTYPE declaration
that IE does not like for the XHTML Basic Example.
Can anyone confirm this
Hi Chuck,
Can you let me know which dir in Tomcat 5.5.12 has the java compiler?
Thanks,
Jimmy
From: Samara, Fadi N Mr ACSIM/ASPEX
[mailto:[EMAIL PROTECTED]
Subject: RE: tomcat and javac (UNCLASSIFIED)
Which Java version are you using ?
If you are referring to JAVA_HOME as
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat and javac (UNCLASSIFIED)
Can you let me know which dir in Tomcat 5.5.12 has the
java compiler?
There are three jasper-*.jar files in common/lib. The actual Java
compiler appears to be in jasper-compiler-jdt.jar; I
I am unable to get a 2 node cluster to work. I am using 5.5.15, as I
saw in an email that prior versions are broken.
when i start node A i see the following written to the log:
1064 INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.
I
Aren't you missing the mcastBindAddr property? We're just going
through the test setup for clustering with 5.5.15 and it's working
pretty well, here's a snippet from our config:
Engine name=Aconex defaultHost=192.168.0.219
jvmRoute=worker2
Realm
From: Pete Alvin [mailto:[EMAIL PROTECTED]
Subject: Tomcat integegrated with Apache
I'm trying to get Tomcat running on a new BSD box and my IT guys says
that a connector isn't necessary because it's integrated with Apache.
You have to configure the connector in Tomcat and, depending on
Hi
Thank You for giving some direction to work upon. I will try and test the
way you have suggested and reply my findings...
Regards
Nehal
-Original Message-
From: Michel Costa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 10:17 PM
To: [EMAIL PROTECTED]
Subject: RE:
My war file looks like
mywar.war
+--WEB-INF
+--my.mapfile.txt
+--... other dirs
Within my jsp, i am trying to reference my.mapfile.txt
as an URL
This code works fine in Jetty but fails when we switch
to TC 5.5.x
%
URL myURL =
application.getResource(/my.mapfile.txt);
%
i am getting an
Hello,
Does anyone have a suggested way to selectively, inside a simple JSP or
Servlet, cause the built-in Tomcat form-login to be presented?
Currently, I'm doing the following:
-Have protected URI inside my webapp, e.g. /login/, configured with a
security-constraint in web.xml. (this works
You appear to be attempting to import (last step) the certificate
request you created. Instead, you should be waiting for / getting back
your CA's signed version of your CSR, then import that.. Otherwise,
create self signed cert to import, if you dont need users to trust your
claimed identity.
Mike wrote:
Hello all,
I have scoured Google and the list archives, it seems
like somebody must have had this issue before but I
can't find any record of it.
(all on a single host)
Tomcat 5.5.12
Apache 1.3.28
mod_jk
Mandrake Linux 9.1
Struts 1.2.4
My problem is that, while using my
Never mind I changed it to
Thread.currentThread().getContextClassLoader().getResource
to get it working.
--- todd darsten [EMAIL PROTECTED] wrote:
My war file looks like
mywar.war
+--WEB-INF
+--my.mapfile.txt
+--... other dirs
Within my jsp, i am trying to reference
80 matches
Mail list logo