Try and put this carol.properties in jakarta-tomcat/common/classes
---
Start carol.properties
# JNDI (Protocol Invocation)
carol.protocols=jrmp
# Local RMI Invocation
carol.jvm.rmi.local.call=true
#
I installed it and try to compile servlet file. But it gives an errorCannot
find symbols.
Thanks,
- Original Message
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, December 19, 2006 9:04:04 AM
Subject: Re: How to Run Servlet
athula
JSP's also have a buffer too. To make it smaller or eliminate it:
[EMAIL PROTECTED] buffer='none'%
or use out.flush() instead or response.flushBuffer()
-Tim
Richard Mundell wrote:
No one replied, so in the hope someone might have the answer to this, here's
a repost... :-)
-Original
athula bogoda wrote:
I installed it and try to compile servlet file. But it gives an errorCannot
find symbols.
Thanks,
A little more information would help. What did you try and compile and
how did you try and compile it?
Mark
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType(text/html);
athula bogoda wrote:
This is the file i tried to execute.
I also set the class path for jsp-api.jar and servlet.jar files.
But it did not work.
Your servlet needs to be in a package.
Next, how did you try and compile it when you got the Cannot find
symbols. error?
Mark
And please provide the complete terminal output of compilation process
so we can have an idea what is your problem.
Mark Thomas a écrit :
athula bogoda wrote:
This is the file i tried to execute.
I also set the class path for jsp-api.jar and servlet.jar files.
But it did not work.
Ritu,
You might want to take a look at Lambda Probe, a freeware 'manager'
application, which is like Tomcat manager on steriods!
http://www.lambdaprobe.com/
- Richard
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 12:06 AM
To:
Thanks Tim.
out.flush() wasn't doing anything unless there was already 8KB in the
buffer.
But, the JSP page directive helped:
Before setting the JSP page directive, the pre-compiled .java file that
Tomcat was creating had...
pageContext = _jspxFactory.getPageContext(this, request,
You can't mix page directives with snippets. Page directives occur at
page translation time (before the compilation process)
To eliminate buffering - try
[EMAIL PROTECTED] buffer='none'%
-Tim
Richard Mundell wrote:
Thanks Tim.
out.flush() wasn't doing anything unless there was already
Hello
I've installed tomcat 5.5.17 - this is the 8th server i install in a row
and the first one that displays this error when i start tomcat.
I googled it a bit and it refers to TOC of the war file , whoever the
same war file has been used on 2 other servers and with no issues .
Any one
Hi list,
problem-description is above.
I've defined a jdbc-realm in conf/server.xml, that is:
Realm className=org.apache.catalina.realm.JDBCRealm
connectionPassword=xxx
debug=99
userCredCol=user_pass
userTable=users
From: ben short [mailto:[EMAIL PROTECTED]
Subject: Notification of expiring sessions
I want to store user session data into a database rather than in the
session, to conserve memory.
Unless your session data is huge, you're probably consuming more memory
by accessing the data base rather
Chuck,
Valid points.
I was hoping that doing it this way would also provide me with
replication of this data between several tomcat instances. Odviously I
would need to setup session replication between them. Also it would
allow for session data persistence should tomcat be restarted etc. I
From: Simon Renshaw [mailto:[EMAIL PROTECTED]
Subject: Need help with JK2 connector/workers2.properties
I followed the instructions found at
http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html to install the
connector.
The mod_jk2 package has been deprecated for well over a year - no
Caldarale, Charles R schrieb:
From: Simon Renshaw [mailto:[EMAIL PROTECTED]
Subject: Need help with JK2 connector/workers2.properties
I followed the instructions found at
http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html to install the
connector.
The mod_jk2 package has been
At the point I'm at, I will try this.
Thanks!
-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: 19 décembre, 2006 14:29
To: Tomcat Users List
Subject: Re: Need help with JK2 connector/workers2.properties
Caldarale, Charles R schrieb:
From: Simon Renshaw
Rainer,
We upgraded mod_jk to 1.2.19 and we are still getting the same error in
mod_jk.
[Tue Dec 19 11:35:36 2006] [31691:] [warn]
ajp_get_endpoint::jk_ajp_common.c (2258): Unable to get the free endpoint
for worker myWorker from 1 slots
[Tue Dec 19 11:35:36 2006] [31691:] [info]
On 12/19/06, ben short [EMAIL PROTECTED] wrote:
I was hoping that doing it this way would also provide me with
replication of this data between several tomcat instances. Odviously I
would need to setup session replication between them. Also it would
allow for session data persistence should
Hello !
Perhaps locating the developed
apps outside the tomcat server webapps folder?
Yes, as someone teached me here, point Tomcat to your webapp directory,
instead of deploying it to a Tomcat's subdir ! Another pro : better, faster,
lighter refreshing.
And more frequent backups.
And,
I'm trying to use my own LoginModule. Its is successfully authenticating
my username but the problem is when its trying to authorize my roles.
Tried:
1. Here is the code snippet from my LoginModule commit method.
Code:
List roles = new ArrayList();
roles.add( tomcat_auth_role );
Hello, listers !
As you have certainly seen it, some sites submit their forms as many times
as you validate them. For instance, how many forums post two messages if, by
mistake, you click on the submit button twice ?
As everyone (I guess), I had to face this problem, and then... I gave
Hello,
I've installed Tomcat 5.0 on port 8081 and redirected IIS 6 to it.
It seems to work and you can try: http://www.seorally.com/jsp-examples/
But, I've deployed my own project I can see it in the tomcat manager, and
activate it through tomcat(e.g., http://www.seorally.com:8081/Arvit/
I have found a work-around (although it seems like a hack to me):
Here is the code snippet from my LoginModule commit method.
Code:
List roles = new ArrayList();
roles.add( tomcat_auth_role );
GenericPrincipal gp = new GenericPrincipal(null, username, null,
roles);
From: Wojtek Kusch [EMAIL PROTECTED]
Date: 2006/12/19 Tue AM 11:52:20 EST
To: users@tomcat.apache.org
Subject: JDBCRealm
Hallo!
I am a newbie. I am defining a JDBCRealm for my web application in the
server.xml:
Realm className=org.apache.catalina.realm.JDBCRealm
I normally need to access http://localhost:9191/luntbuild to see my
application. So in theory with that filter thing installed correctly I
should be able to access it by going to http://localhost/luntbuild?
Yes, that's our goal of integration.
But for IIS, /luntbuild does not exist. How does it
Why do you want to read POST by using reader ? I only use the stream from
request on a PUT request.
On 12/16/06, Scott Carr [EMAIL PROTECTED] wrote:
Hassan Schroeder wrote:
On 12/15/06, Scott Carr [EMAIL PROTECTED] wrote:
Does a servlet require the use of a Content-Length for the Reader to
I am creating a client - server application that will process lines like:
startjob
adduser
adduser
adduser
adduser
endjob
adduser can be an unlimited amount of times. I want to process the
lines as they come into the Servlet, that way a seperate process could
be doing something to complete
Why dont you try using PUT instead of POST ? I think put is more suitable
for this as you can stream anything to servlet.
if you insist on using post, i recommend getting the parameter and replace
the newline with some chars like ':'
this is an example on streaming an object using put
29 matches
Mail list logo