Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-21 Thread Pid
lmk wrote: hello all, I try ti use tomcat security management with DataSourceRealm but I never get authentication console, log shows that user 'Successfully passed all security constraints' I declare Realm inside server.xml: Realm className=org.apache.catalina.realm.DataSourceRealm

Re: Can't execute servlet project

2008-08-28 Thread Pid
sam wun wrote: Do I need to put mysql driver in the common/lib/ directory in linux? Yes, that's a basic requirement. If I need to have that, where can I download it? The MySQL site - you could probably have guessed that. http://dev.mysql.com/usingmysql/java/ Thanks - Original

Re: Can't execute servlet project

2008-08-28 Thread Pid
sam wun wrote: HI there, According to the tomcat online document, do I have to modify the context.xml file? $CATALINA_HOME/conf/context.xml Not that one, that one affects *all* deployed contexts. Add a context.xml file to your webapp, in the META-INF folder. DBTest/index.jsp

Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)

2008-09-03 Thread Pid
Robert K. Vanderhoek wrote: Unable to find servlet or load servlet jar from a client jar, can this be done with the default conf files? Do i have to create a web.xml file for each webapp? Yes, if you want to use servlets. web.xml provides the means to map the servlet(s) to url patterns. p

Re: Denying IP Addresses

2008-09-09 Thread Pid
Edward Song wrote: Hi all, Just soliciting some feedback on how to effectively, thwart data mining on our server. We have a reactive solution when it comes to screen scraping and data mining on Tomcat 5.5. We simply find the offending IP's and add them to the deny rules

Re: JVM per Context

2008-09-10 Thread Pid
Michael Dehmlow wrote: Thanks, my version of tomcat 5.5.26. My mistake I was looking at tomcat 3.3 documentation: http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html . Yes defining contexts in the Server.xml is

Re: Share war file / virtual hosts

2008-09-22 Thread Pid
Mathias P.W Nilsson wrote: The problem is this. I would like to set up 3 connector that points to 3 different domains One Host element and many aliases. Can this be done? The connectors are https. Connector port=443 .. address=1/ Connector port=443 .. address=2/

Re: Some Prilim questions

2008-09-24 Thread Pid
David Smith wrote: I have no idea where you are going with this ... it makes no sense to the original question. Don't worry. I think they're testing a humour module. p --David Martin Gainty wrote: the referenced jndi lookup in the webapp context is located in India and the DB is in

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Pid
DIGLLOYD INC wrote: I came across the following: -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true at this page: http://hillert.blogspot.com/2008/05/if-tomcat-is-running-out-of-memory.html I haven't tried it yet, and I don't know what it does (limits something apparently).

[OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
of peace and understanding, for Ashoka is famous for his message of freedom, tolerance, and equality. I was worn out from my exertions, but gloriously sated as I collapsed into a drunken stupor. Peace, Al, Peace. pid * or Alice, I don't mind, Al. Martin

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
David Smith wrote: Stab in the dark guess on Ithaca -- I'm one of the people that first responded to the OP and my email domain is cornell.edu, whose main campus is in Ithaca, NY Interesting... is that new? I don't remember seeing that occur before. p --David Pid wrote: Martin Gainty

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
, Peace. pid * or Alice, I don't mind, Al. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender

Re: Dynamically adding a resource to a context

2008-10-01 Thread Pid
Johnny Kewl wrote: - Original Message - From: Scott Dunbar [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, September 30, 2008 10:22 PM Subject: Dynamically adding a resource to a context Hi all, I'm honestly not positive that what I want to do is a good idea but

Re: Dynamically adding a resource to a context

2008-10-01 Thread Pid
Johnny Kewl wrote: - Original Message - From: Pid [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 01, 2008 11:50 AM Subject: Re: Dynamically adding a resource to a context http://today.java.net/pub/a/today/2005/11/17/app-managed

Re: Reloading Tomcat Server

2008-10-06 Thread Pid
Barry Fawthrop wrote: To All I have a simple website that reads third party RSS feeds and displays them. (1) I have tried with DocBuilder (2) tried with rssutils (3) Even tried with the rss xml file downloaded locally (using wget) and then a reading the local file. All three have

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread Pid
André Warnier wrote: slioch wrote: [...] I'll risk an explanation here.. I think maybe the issue is a misunderstanding of how a servlet filter works. It took me a while too, but I think I've got it in the end. Sorry if this is level 101, that's my own level. What was confusing to me at

Re: setHeader after DoFilter delegation in filter?

2008-10-11 Thread Pid
André Warnier wrote: Hi. I found an approximative example for you, here : http://www.javafaq.nu/java-example-code-237.html (searching Google for HttpServletResponseWrapper example If I remember well, what you want to achieve is : depending on the response content that the webapp generates,

Re: Why can NOT run Tomcat on my Laptop

2008-10-11 Thread Pid
IceManPat wrote: Hi Guys, I am new to Tomcat . I have downloaded the installer for windows (apache-tomcat-6.0.18) , it installed successfully on my machine . But whenever I try to start the service it just not running the buffer bar will go for about 1,2 seconds then it just stopped.

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-14 Thread Pid
David Smith wrote: André Warnier wrote: David Smith wrote: Caldarale, Charles R wrote: ... for that Microsoft should be awarded the opposite of the Nobel peace prize. - Chuck That would be the Darwin award :-) --David Now, call me thick, but that one I don't get. Google for the

Re: tom cat error

2008-10-16 Thread Pid
Frank Uccello wrote: OS: Windows 2003 Server SP2 Tomcat: 5.5 Java: 1.5 I am not sure what you mean about configs. I do know if mean tomcat or my app configuration there are exactly the same as the tomcat instances that work only thing the port change and name change but everything else

Re: MySQL DBCP Connection Example?

2008-10-20 Thread Pid
Markus Schönhaber wrote: Martin Gainty: Im not baiting you but rebutting your wrong answer to davids right answer you pick fights with people and state what they say is wrong without doing any research Oh, please, this is ridiculous! You are wrong - as you are so often. And all the foot

Re: Committing sendRedirect()

2008-10-21 Thread Pid
Tore Eriksson wrote: Hello everybody, As I found a solution to my problem, I thought I would share it in case someone else comes up against the same issue. The reason for the client not acting on the redirect is that sendRedirect does not send any Content-length header, and the client will

Re: Tomcat is running but page is not displayed

2008-10-22 Thread Pid
Danny_HY052 wrote: Hi, I am using Tomcat 5 for my j2ee application which uses JSP, servlets , java and oracle 10g at the backend. When the tomcat is running i am able to access the application, however, after some time when i try again to access the application i get Page cannot be

Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Pid
Kevin SeongHyun Lee wrote: Hello, I'm trying to use JavaMail and the necessary libraries are in the WEB-INF/lib of my application. It works fine in my development environment. However, the problem is that after it is installed in the production environment and tries to send an email, it

Re: 140.211.11.130

2008-10-31 Thread Pid
Philippe Couas wrote: Hi, My UNIX logs give me trace OU_PKTS_DROP DST=140.211.11.130 . It seems that is apache foundation ? Why ? Because you're viewing a page at Apache.org? Without more information it's not going to be very easy to provide much more of an insight. Perhaps you could

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Pid
André Warnier wrote: Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: Tomcat threads, II

2008-11-12 Thread Pid
, 131340k used, 1166224k free,95148k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 6226 tomcat55 25 0 506m 191m 10m S 0.0 37.9 140:26.15 java 5937 root 22 0 267m 26m 8056 S 0.0 5.2 25:26.88 java 24608 root 23 0 260m 15m 9332 S

Re: Get Security subject from Tomcat

2008-11-13 Thread Pid
Christopher Schultz wrote: Arash, Arash Bizhan zadeh wrote: Sure [reading the servlet API] might help. Reading my mail would have helped too. I need the Subject not the principal. Ouch. You're gonna get the cold shoulder with that kind of snarkiness. Your original message said

Re: Get Security subject from Tomcat

2008-11-13 Thread Pid
Pid wrote: Christopher Schultz wrote: Arash, Arash Bizhan zadeh wrote: Sure [reading the servlet API] might help. Reading my mail would have helped too. I need the Subject not the principal. Ouch. You're gonna get the cold shoulder with that kind of snarkiness. Your original message said

Re: Form Based Authenticattion - j_security_check does not redirect from http to https

2008-12-09 Thread Pid
SKantS wrote: Justin Randall-5 wrote: Hello, Are you using other filters? If you are you will need the method to look like the below: public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {

Re: Tomcat resources

2008-12-10 Thread Pid
Caldarale, Charles R wrote: From: Kees de Kooter [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat resources Is this some would-be turing machine babbling away or is there are genuine question here? Might be time to repost Andre's list... http://marc.info/?l=tomcat-userm=122823060425367w=2

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Pid
Pedro wrote: Thanks for stating the obvious Tim, in 5.5 the 'server' directory is supposed to be the correct place! the question is if the implementation is valid. You referred to ClassNotFoundException's - his answer is therefore valid. Perhaps you can elaborate on when you're getting this

Re: Adding NTLM Auth to the Entire tomcat instance

2007-10-25 Thread Pid
Peter Kahn wrote: Can someone let me know how to setup NTLM authentication such that all access to tomcat is restricted to users in a specific group? I have an instance of tomcat and it is serving several opengrok web apps. Each opengrop app is pointing at a different source tree. I want to

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Pid
[EMAIL PROTECTED] wrote: After installing JDK, and adding the following in the startup.sh script file: export JAVA_HOME=/usr/java6_64/sdk/. It started . How to test it [cemcp62]/usr/apache-tomcat-6.0.14/bin./startup.sh Using CATALINA_BASE: /usr/apache-tomcat-6.0.14 Using CATALINA_HOME:

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Pid
://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#MemoryRealm You may also find that taking a few minutes to have a browse around the configuration documents is enlightening. p Pid [EMAIL PROTECTED] 10/25/2007 12:38 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat

Re: Hidden form fields not found in request

2007-10-26 Thread Pid
Ognjen Blagojevic wrote: Hi Ashok, Ashok Venkat wrote: In the below code, i am submitting a form to itself in the onload method and changing some hidden form field values. After the form is submitted, the hidden values are not available in the request object.As a result, the page gets

Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Pedro wrote: OK PID then you tell me where the jar goes hey? That's a lot of attitude for someone who wants help from the list. Or am I misreading your tone? I refer to my previous question: Perhaps you can elaborate on when you're getting this exception if we're to help you. (An actual

[OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Peter Stavrinides wrote: The most common reason...blah blah You know pid, just because people ask questions doesn't mean they are stupid, so why treat them that way? If you can read 'carefully' you can notice that the path was given as well as the relevant config in server.xml. So

Re: [OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Pid wrote: Peter Stavrinides wrote: The most common reason...blah blah You know pid, just because people ask questions doesn't mean they are stupid, so why treat them that way? If you can read 'carefully' you can notice that the path was given as well as the relevant config in server.xml. So

Re: 'wan' application in 5.5.25

2007-10-29 Thread Pid
Ankit Dangi wrote: Hi all, I was earlier using Apache Tomcat 5.5.20, and now am using 5.5.25. In the 'webapps' directory, I created an application with the name as 'wan'. It works fine with .20, and doesn't work with .25. When I changed the name of my application from 'wan' to something

Re: Tomcat Static Content

2007-11-02 Thread Pid
Tony Anecito wrote: Hi All, Is there any good references on how to use Tomcat as a web server? I currently use Tomcat behind an apache server and thinking removing the Apache server but I do not know if Tomcat would make a good web server. I use PHP with Apache and need to be able to

Re: Tomcat Static Content

2007-11-03 Thread Pid
. There are a number of ways to handle PHP, some more actively developed than others. Search the list archives using MARC, or Nabble, for historic threads about PHP, it comes up about once a week. p Regards, -T --- Pid [EMAIL PROTECTED] wrote: Tony Anecito wrote: Hi All, Is there any good

Re: Using tomcat as proxy server

2007-11-03 Thread Pid
Meryl Silverburgh wrote: HI, Can you please tell me where can i find documentation for setting up Tomcat as a proxy server? Tomcat is in many ways an excellent server, it is however primarily a Servlet Container and not directly comparable to other applications, like, say, Apache HTTPD. If

Re: Tomcat 3.3.1a problem

2007-11-05 Thread Pid
Marko Krejic wrote: Hi, We are running Tomcat 3.3.1a on a Windows Server 2003. A apache server is also installed on the machine as a proxy and it is connected with the tomcat through AJP12. Tomcat is running on JDK1.4.2_13. The silence you experienced is people being dumbfounded that

Re: running! a servlet at tomcat startup

2007-11-05 Thread Pid
Wade Chandler wrote: Yes, and in the listener I would then utilize some kind of other web client to actually perform a first request. You can use something like HttpClient or one of the command line text browsers and Runtime.exec. It would probably be easier than trying to simulate with

Re: Tomcat 3.3.1a problem

2007-11-06 Thread Pid
Mark Thomas wrote: Pid wrote: Marko Krejic wrote: Hi, We are running Tomcat 3.3.1a on a Windows Server 2003. A apache server is also installed on the machine as a proxy and it is connected with the tomcat through AJP12. Tomcat is running on JDK1.4.2_13. The silence you experienced

Re: Tomcat 3.3.1a problem

2007-11-06 Thread Pid
Bill Barker wrote: I don't recognize the problem, but AJP12 was deprecated even for 3.3.1a (which, for Pid's benifit, was a single security issue bugfix release from 3.3.1). Hat duly tipped. p - To start a new topic,

Re: virtual host for subdomains

2007-11-09 Thread Pid
Kwok Ng wrote: Hi folks, I notice some BLOG websites assign the subdomains to the registered users, like user1.mydomain.com user2.mydomain.com If I use the tomcat to do this, do I use the virtual host configuration? If so, do I use the same docBase to point to one war file with

Re: j_security_check redirect after login

2007-11-09 Thread Pid
Nicholas Sushkin wrote: On Thursday 08 November 2007, you wrote: The question I had was what happens when you directly request the login form and successfully login. Tomcat will give you an error page saying something along the lines the login page was accessed directly. It won't let

Re: speed up the server

2007-11-09 Thread Pid
Peter Crowther wrote: From: tbt [mailto:[EMAIL PROTECTED] it was working very fast before being deployed. About 30 people login simultaneously to this application. Once this happens the application is very slow. How many concurrent users do you test with, before you deploy? 30? Or one

Re: How to disable Session Persistence in Tomcat 5.5.9

2007-11-15 Thread Pid
Kristin Coles wrote: Hey Charles, Thank you very much for the detailed explanation. I did the following to disable session persistence, but. #Tomcat\conf\server.xml Host name=kristin appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false

Re: tomcat process doesn't stop

2007-11-16 Thread Pid
loredana loredana wrote: well, I don't know exactly what to tell you. the guys at networking installed java and tomcat and everything else. On tomcat release notes I see it says Apache Tomcat Version 6.0.14 annd when I run java -version I get java version 1.4.2_15 Java(TM) 2 Runtime

Re: Problem with session activation after restart

2007-11-16 Thread Pid
I think your problem may be rooted in a misunderstanding* of this listeners purpose. Perhaps you can elaborate on what you're trying to achieve? HttpSessionActivationListener.sessionDidActivate() is called when a session is retrieved from a persisted state or moved to another JVM. It's

Re: problem with tomcat 6

2007-11-16 Thread Pid
Andrew123 wrote: When I start tomcat with my application, I get an exception: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(Unknown Source)

Re: Problem with session activation after restart

2007-11-16 Thread Pid
understand me. Best regards Jacek On Nov 16, 2007 12:49 PM, Pid [EMAIL PROTECTED] wrote: I think your problem may be rooted in a misunderstanding* of this listeners purpose. Perhaps you can elaborate on what you're trying to achieve? HttpSessionActivationListener.sessionDidActivate

Re: Initial Setup: The type java.lang.Object cannot be resolved.

2007-11-16 Thread Pid
Ian Pushee wrote: Any help or suggestions would be greatly appreciated. Use a proper JVM? Sounds like yours is knackered. There's another free JDK from a company called Bun, or something. Sounds like that anyway. ;o) p Thanks, -Ian

Re: Upgrade from mod_jk to mod_proxy_ajp

2007-11-17 Thread Pid
Gmail User wrote: On Nov 9, 2007 11:19 PM, Gmail User [EMAIL PROTECTED] wrote: Any ideas would be appreciated. Just a follow-up since I never got a reply to this--or Gmail is hiding replies from me again. As I found out, Tomcat always worked and going back to mod_jk on httpd-2.2.6 side

Re: javax/mail/address

2007-11-20 Thread Pid
Post your JDBC/Datasource config(s), (sans passwords obviously). Where is it defined, in a context.xml or server.xml? p Dustin Fortin wrote: In catalina.out this error is new: Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at

Re: How to have a request timeout ?

2007-11-22 Thread Pid
christophe blin wrote: Hi, I'd like to cancel a servlet request if it took more than 5 seconds. ATM, I know this is not possible directly via a tomcat configuration (in fact I found no servlet container with this option). By googling and doing a lot of tries (mainly based on

Re: How to have a request timeout ?

2007-11-22 Thread Pid
christophe blin wrote: Pid-2 wrote: Can you elaborate on the reason behind this requirement? sure ! first some background : 1/ my servlet is a web service (done with spring exporter and xfire if that matters) 2/ the client is not a browser but the PHP SOAP extension 3/ 5 seconds

Re: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Pid
Have you inadvertently included a jar file with the servlet-api in your WEB-INF/lib directory? That often causes problems like this. p Giancarlo Frison wrote: Hi all, I have Tomcat/6.0.14 and i'm trying to launch the catalina.sh throught this script: export JAVA_HOME=/opt/java export

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Pid
David Gagnon wrote: Hi all, I reading the doc for hours now and searching the web without success. Maybe my understanding of virtual hosting is wrong. if any of you can just correct my understanding and point me in the right direction I will greatly appreciate it. I have an

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Pid
Rocco Scappatura wrote: I want to access this URL using the following alias in my browser: http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone) So I need to link a virtual host to an application right? I look to but alias in the context.xml file .. I haven't found

Re: Tomcat 6 virtual host problem please help

2007-11-23 Thread Pid
Rocco Scappatura wrote: On Nov 22, 2007 3:18 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: But I get the sad surprise that indeed roller/blog is not a valid path on the filesystem. It is merely a path of a context created on the fly from data cointained in the roller data base (I

Re: Tomcat 6 virtual host problem please help

2007-11-23 Thread Pid
Rocco Scappatura wrote: 2) Suppose that I have another level inside the root webapps dir (eg: http://mysite.com:8080/toto/subdir/hello.jpg) and I would like to access to the URL above with http://alias1.com:8080/hello.jpg. How I behave myself in this situation? :-( If you mean a second

Re: configure my web app as default app i nstead of root in tomcat 6.0‏

2007-11-22 Thread Pid
Yonatan Menahem wrote: That solved my problem. Although, I couldn't figure out how to do it using the context element as described in the documentation. I just undeployed the ROOT and deployed myApp.war instead in the / Context Path. Did you define an additional host in server.xml, or are

Re: multithreaded with taglibs

2007-11-25 Thread Pid
Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ Why are you doing this with a tag, rather than sending the parameter

Re: Rewrite Rules for JSP Site

2007-11-26 Thread Pid
Laxmilal Menaria wrote: Hello Everyone, I have created a web site using jsp pages and struts framework, and configured it on https using Tomcat WebServer. After compilation of my java files, it creates war file. And now I have copied files to C:\Program Files\Apache Software

Re: multithreaded with taglibs

2007-11-26 Thread Pid
- From: Pid [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 11:53 AM To: Tomcat Users List Subject: Re: multithreaded with taglibs Yair Ben-Meir wrote: Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page

Re: mod_proxy_html setup

2007-11-27 Thread Pid
Rocco Scappatura wrote: I have some problem after reversing proxy a web app. After many research I inferred that mod_proxy_html could solve the problem of accessing my web app through reverse proxy. My big clue is to: 1) find the exact instructions to setup mod_proxy_html 2) find

Re: Tomcat data source

2007-12-05 Thread Pid
Roberto Pellegrino wrote: DataSource defined on webApp context are accessed by similar url : java:comp/env/jdbc/dataSourceName. Now. Is't possible use with a url datasource that are only defined in GlobalNamingResources (in server.xml) using the name ??? ResourceLink ... In your

Re: post new service request

2007-12-11 Thread Pid
Kovacs, Robert wrote: Hello, I would like to initiate a new feature request for TomCat connectors, but I've founded only possibilities reporting bugs. enhancement is an option in bugzilla. p Thanks: Robert -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED]

Re: JkMount changing webapp context

2007-12-11 Thread Pid
Carlo Montanari wrote: I'm not sure whether this is the best mailing list for the question, feel free to blame me if it isn't. I have a simple configuration with apache 2.2.6, mod_jk 1.2.25 and tomcat 6.0.14. In tomcat I have a web application running, say /myapp, that I want to publish in

Re: problem in loading class file

2007-12-14 Thread Pid
David Smith wrote: I mean the path to cib.expserver.plugin.basics.ExpressServer, which your tomcat is complaining about not being able to find. Anyway... taking a closer look at the code you posted, I think the URI you are using won't work file:/c:Tud/Server/program/bin should probably be

Re: ActionErrors.validate()

2007-12-20 Thread Pid
AbelMacAdam wrote: Hi all, I just started reading a book about Struts, and are now learning about Error Handling. To validate the input of the user in the forum, you need to write your own implementation of org.apache.struts.action.ActionErrors. The class ActionErrors has its own method

Re: how to run a simple jsp file

2007-12-21 Thread Pid
Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an error number 500. When I run JSP files not containing any Java code at all, Everything works. It seems like the problem comes from Java

Re: Enhancing Tomcat Speed

2007-12-22 Thread Pid
Richard Reyes wrote: Hi All, Please send suggestions on how to improve the tomcat performance. Do you mean that you want to improve Tomcat's performance, or the web application(s) you are deploying on Tomcat? p Thanks in advance. Richard

Re: AW: Enhancing Tomcat Speed

2007-12-23 Thread Pid
Richard Reyes wrote: Hi All, - Version: 5.5 but would upgrading to 6 be wise? - OS: Cent OS - Kind of App: Webapp with MySQL DB. Have you guys heard of Appfuse. - We created it using Spring and Webwork - I'm comparing my current performance to the performance when its deployed only on

Re: AW: Enhancing Tomcat Speed

2007-12-23 Thread Pid
Richard G. Reyes wrote: Hi Pid, All, Hope you could tell me more about caching...isn't it automatic in tomcat? Not until you've profiled your app and tuned the DB accesses - which is where most of your slowdown is likely to be. Caching is esoteric and application specific, and can refer

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread Pid
Martin Gainty wrote: Abel put jsp-api.jar in /WEB-INF/lib M- *Never* do that. It will already be present in tomcat/server/lib or tomcat/lib depending on your version, copying it to WEB-INF/lib will cause your app and web server to behave unpredictably, and likely fail to work as intended. p

Re: jdbc sql update doesn't work

2007-12-30 Thread Pid
rameau rameau1982 wrote: hi! When trying to do an update on my database via JDBC it doesn't do anything. I give you the sources and if somebody can help me it would be great! thank's! PS: everything else works perfectly. What do the logs say? p

Re: PDF problem on IE from JSP

2008-01-16 Thread Pid
Jonadan wrote: Hi, I am generating PDF documents from JSP directly to output stream. However when I try it from IE, it does not work properly. Sometime nothing happens. Sometimes, show data corruption error. Sometimes connection error, etc. I suspect it may be something to do with partial

Re: PDF problem on IE from JSP

2008-01-18 Thread Pid
Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? Are you delivering your PDF over an HTTPS connection? It's not a Tomcat problem, it's probably an IE problem. Some versions of IE have issues with responses that contain

Re: Comet Development

2008-01-21 Thread Pid
Siobhan wrote: This page doesn't describe where to put this code. Can you explain that? I should have spotted this earlier sorry, are you not clear on how to construct a java web application? Lots of stuff around (Google is your friend) to explain how to make a basic web app, a Comet app is

Re: Comet Development

2008-01-22 Thread Pid
Siobhan wrote: No, I have successfully created many java web applications, but for some reason can not seem to successfully create a comet one. Something is not working and I don't know what. I've taken all the code, placed it where I thought it should be placed, but still something doesn't

Re: Cannot activate Tomcat Manager

2008-01-29 Thread Pid
Jonathan Mast wrote: I'm having trouble enabling the Manager webapp on Tomcat I've altered the server.xml and tomcat-users.xml files appropriately but when I type in www.mysite.com/manager I get an error saying the location doesn't exist. On my local Windoze machine, I've gotten the Manager

Re: appBase

2008-02-03 Thread Pid
Paul Wallace wrote: Hi, Using Tomcat 5.5 I wish to provide my own appBase to a relative or fully formed path e.g: Host name=localhost appBase=C:/mypath/mysite unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false or Host name=localhost

Re: j_security_check

2008-02-03 Thread Pid
execution of TestServlet. regards, Pid This code works just fine on tomcat 5.0. After upgrading to 6.0, i am seeing this bizarre behaviour Any thoughts? Never miss a thing. Make Yahoo your home page

Re: j_security_check

2008-02-03 Thread Pid
The second POST should still occur, but it should occur after the initial GET is recovered after authentication. Your confusion is that you are seeing the 1st GET, when you expect (incorrectly) the POST. When you make the first request, you are not authenticated, which causes the 401 the

Re: appBase

2008-02-03 Thread Pid
(please only reply to the list). What errors are described in tomcat/logs/catalina.out or any other relevant log files? (e.g. the log for localhost) Which OS are you deploying on? p Paul Wallace wrote: Thanks Pid, My folder structure is as you expected. In server.xml I have: Host

Re: Need help with multiple sites in server.xml file, almost there but not quite!

2008-02-09 Thread Pid
bump what? your message starts here charley wrote: bump? anyone? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] and

Re: running different versions of the same app

2008-02-17 Thread Pid
John Pedersen wrote: Hi, I want to experiment on using different styles and layouts in my pages. use a javascript CSS style switcher, or select a different CSS sheet based on a URL parameter. In order to get www.appName.com pointing at my app, I have had to put the app into the ROOT

Re: running different versions of the same app

2008-02-17 Thread Pid
John Pedersen wrote: 'how easy do you need development to be?' How easy can it get? Yes, I can switch the css easy enough, but the changes are more than just styles. And I want to test the app with real customers. I don't want them using subdirectories. What I would like is webapps/version1/

Re: Strange Redirection

2008-02-28 Thread Pid
Stephen Nelson-Smith wrote: I have deployed an application under Tomcat, fronted by Apache. I am experiencing what looks like strange redirects when I try to use the application. The front page is a login screen, but if I try to login, Tomcat attempts to locate a resource called /Login.jsp,

Re: Can't start tomcat 5.5.26 service on windows

2008-03-11 Thread Pid
Eric Hawkes wrote: Hi, The GUI has proved useful for debugging, but didn't solve the problem. It appears to read/write the registry, so settings made from the command line are picked up in the GUI tool, and vice versa. Our Java setup is slightly non-standard. I'm not sure how

Re: Changing HTTP port from 8080 prevents HTTPS redirects, Tomcat 5.5

2008-03-11 Thread Pid
OS? JVM version? Tomcat version? p mikebgx wrote: 8090 is in quotes btw, ie 8090 mikebgx wrote: Hi, When I change Tomcat's HTTP port to other than 8080, redirections to SSL port (8443) stop working. With HTTP port set to 8080 it all works fine. The only change I make is editing

Re: a question about user athentication

2007-07-02 Thread Pid
is_maximum wrote: Hi experts I am using Tomcat 5.5 and struts framework and security filter in order to authenticate users like the others I am using j_security_check action but my problem is that I have a field in my user table namely status which represent whether the user is available or

Re: How to deploy a web app on tomcat.. help needed plz.. :)

2007-07-17 Thread Pid
It looks like you've configured one .war per servlet. Have you replaced some of the old config with some new stuff in the login app? If you were able to request the URL '/LoginApp' there should probably be a file called LoginApp.war, which would need to contain some more config in it's

Re: How to replace jar which was already loaded?

2007-07-17 Thread Pid
In your Context definition you can state which files should be watched for changes. WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResourceWEB-INF/lib/worker.jar/WatchedResource p hanasaki wrote: If you go this way... remember the following ClassLoader cl1 = new URLClassLoader(urls);

Re: Regarding Text field editor in JSP

2007-07-20 Thread Pid
Girish Havaldar wrote: Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. http://www.fckeditor.net/ is quite good and has java module. p smime.p7s

  1   2   3   4   5   6   7   8   9   10   >