Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr
Hi Maciej, I'm connecting from Tomcat to ActiveMQ with this configuration: META-INF/context.xml: Context ... Resource name=jms/ConnectionFactory auth=Container type=org.apache.activemq.ActiveMQConnectionFactory description=JMS

Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr
with JDBC resources there, so I didn't try it. Try the configuration above. This must work for you! PETR On 6/2/06, Maciej Łabędzki [EMAIL PROTECTED] wrote: Hadraba Petr napisał(a): Hi Maciej, I'm connecting from Tomcat to ActiveMQ with this configuration: Thx, but how it corresponds to my

Re: File deletion problem

2006-05-10 Thread Hadraba Petr
Hi vasu! What files do you want to delete? The files your application is using? If yes, maybe you forgot call f.close()... Maybe... My idea... PETR On 5/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Setup: Tomcat - 5.0.28 Java- 1.4.2 OS - Windows XP Problem:

Re: Unable to get tomcat default page

2006-05-09 Thread Hadraba Petr
Hmm, you are running Windows, don't you? Windows XP! It looks like a firewall issue... Try to enable the port 8080 for localhost---sorry, I'm not Windows Firewall expert... Have a nice night PETR On 5/9/06, Java Newbee [EMAIL PROTECTED] wrote: When i am not connected to internet, i get the

Re: Plan to support Servlet 2.5 spec

2006-05-03 Thread Hadraba Petr
Yes! Glassfish is cool;-) Also most of the sources are available -- https://glassfish.dev.java.net Glassfish is more strict then Tomcat; I'm using Glassfish for debugging and testing. PETR On 5/3/06, Bernhard Slominski [EMAIL PROTECTED] wrote: -Ursprüngliche Nachricht- Von:

Re: Properties file problem

2006-04-21 Thread Hadraba Petr
Hi Vikas, some details: I see you're correctly using the getClass.getResource() (I'm using getServletContext().getResourceAsStream() or getServletContext().getResource()). But, Why are you creating resources? You see all the war content in the host OS filesystem because of unpackWars=true. This

Re: error listener start during aplication start up

2006-04-21 Thread Hadraba Petr
Hi, this warning says that tomcat is using log4j, but can't find the configuration file /common/classes/log4j.properties. But I don't know how tell tomcat to ignore log4j.jar.:-( More info about Tomcat vs. Log4j: http://tomcat.apache.org/tomcat-5.5-doc/logging.html PETR On 4/21/06, lee

Re: Relative Link Question

2006-04-17 Thread Hadraba Petr
Hi, you have two options: 1. move your application to the ROOT by renaming your war to ROOT.war (case sensitive) or 2. use mod_rewrite. PETR On 4/17/06, biai [EMAIL PROTECTED] wrote: Hi. I have the same question as you do. When you get the answer, please email me to [EMAIL PROTECTED]

Re: Relative Link Question

2006-04-15 Thread Hadraba Petr
Hi, maybe the base / element will solve your problem... PETR On 4/15/06, Arshad Mahmood [EMAIL PROTECTED] wrote: Hi, Hmm. What are you trying to do? Surely your images are not actually in a directory called /webapp/images/ Your images are probably at the top level of your docBase. The

Re: PostgreSQL access via JNDI

2006-04-05 Thread Hadraba Petr
Hi, I'm successfuly using PostgreSQL 8.1.3 with Tomcat 5.5.15 with JDBC drivers 405 (build)... I have the Resource ... / definition in the META-INF/context.xml and in the WEB-INF/web.xml I have the resource-ref/ element. The resource-env-ref/ I'm using for the ActiveMQ client connection. Also

Re: tomcat users file

2006-04-03 Thread Hadraba Petr
Hi, check if the different user has read permissions for the /opt/jakarta-tomcat-5.5.9/conf/tomcat-users.xml.new file PETR On 4/3/06, Ali Kassem [EMAIL PROTECTED] wrote: Hi I am using tomcat 5.5.9 with linux, and jdk1.5.0_6 When I start the tomcat as root user every thing it started, but

Re: ./configure --enable-ssl

2006-03-31 Thread Hadraba Petr
Hi, I'm using OpenSSL and have no problems... PETR On 3/31/06, Indraveni [EMAIL PROTECTED] wrote: Hi friends, If we are giving the apcahe configuration command as ./configure --enable-ssl then which ssl packages does the system require. ssl support since I am facingan error

Re: Web Application doesn't recognize domains using tomcat

2006-03-27 Thread Hadraba Petr
Hi Lety, so, in short, I don't understand your problem. But, probably your links (the a / element) have broken the href URL. Am I right? Please, describe more your problem. I didn't find any problems about URLs in the Tomcat 5.5.x... PETR On 3/25/06, Benitez Badillo, Leticia [EMAIL PROTECTED]

Re: Distinguish between users and robots in access log?

2006-03-27 Thread Hadraba Petr
Hi Scott, look at awstats ( http://awstats.sourceforge.net ). This projects parses Apache httpd's logs and can determine who's bot and who's not. Maybe you find there some insteresting informations. PETR On 3/27/06, Jon Wingfield [EMAIL PROTECTED] wrote: Looks like you are running the default

Re: Check if file exists in WEB-INF folder

2006-03-24 Thread Hadraba Petr
Hello, be careful using filesystem directly. This piece of code will not work if the unpackWARs=no. Use getServletContext().getResource(/WEB-INF/jsp/test.jsp) == null instead. This will work for both options: for unpacked WARs and packed WARs. PETR On 3/23/06, Rapthor [EMAIL PROTECTED] wrote:

Re: [OT] How does Synchronized code interact with other applications

2006-03-21 Thread Hadraba Petr
Hi, On 3/20/06, David Kerber [EMAIL PROTECTED] wrote: Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: [OT] How does Synchronized code interact with other applications Ok. So if I were to port the Delphi app to java and run it as another thread in my

Solution: Connecting from Tomcat to ActiveMQ

2006-03-18 Thread Hadraba Petr
Hi all friends, I spent two days solving this problem and because there is not so complex informations about this in the internet, I find this helpful. I hope, this will help. I need to connect from Tomcat web application into the standalone ActiveMQ broker. I repeat -- standalone broker. But I

Re: Mapping different different folders in a webapp to different urls

2006-03-13 Thread Hadraba Petr
Hi, and what about to write a servlet filter? I have my test domain with several virtual hosts IN CNAME to localhost (or any other IP where is Tomcat listening) in my DNS. I wrote an simple filter which parses virtual host name (request.getLocalName() -- always contains full computer name from

Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread Hadraba Petr
Sorry, for my posting, but On 3/8/06, David Delbecq [EMAIL PROTECTED] wrote: Buddy wu a écrit : 2006/3/7, David Kerber [EMAIL PROTECTED]: Context caseSensitive=false thanks a lot. it worked. and I think someone discussed other problem of these question maybe right. but my goal is

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-06 Thread Hadraba Petr
ODBC stuff in your setup program). This driver is relatively new (compared to jConnect) and was introduced with ASA 8 (I think). Currently we have ASA 9.x. Earlier version only could use jConnect. Cheers Thomas Hadraba Petr wrote: Hi, I studied something about Sybase ASA and here

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-05 Thread Hadraba Petr
:802) This means it does not find the driver jar file. I put it in all possible directories (lib directories of the webapp, tomcats common/lib and shared/lib) but all without success. Do I have to set a CLASSPATH somewhere?? Tom Hadraba Petr wrote: Hi, I'm not using Sybase under

Re: Tomcat 5.X dies after some time

2006-03-03 Thread Hadraba Petr
Hi, I saw this error yesterday. I tried to run second instance of the Tomcat. First tomcat was configured to use port 8080 and redirect port 8443 The second instance was configured to port 9080 and redirect 9443 When I tried to start the new instance, the error about port 8005 occured... In

Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-03 Thread Hadraba Petr
Hi, I'm not using Sybase under Tomcat; I have PostgreSQL... Eclipse? My configuration is, Eclipse does not modify Tomcat configuration (this is the default) In your WebContent under META-INF create context.xml with the Resource ... / definition. The Context / element does not require any

Re: Problems Starting Tomcat

2006-03-03 Thread Hadraba Petr
Hi, do you have the tomcat-users.xml file in the $CATALINA_HOME/conf directory? The user database I think is the file storing user names, roles and their passwords... Hope it helps PETR On 3/3/06, C Rose [EMAIL PROTECTED] wrote: Hi all I'm having problems starting Tomcat after my home

Re: images

2006-02-22 Thread Hadraba Petr
Hmm, I wrote simple servlet which finds corresponding image in webapp resources and sends it to the client. This servlet also sets some headers like Last-Modified etc:-( I'm writing web application which uses SEO, supports XHTML, WML etc and I don't want to have tons of servlets:-( If you want,

Re: how to get help if no answer from this list?

2006-02-20 Thread Hadraba Petr
Hi, did you try to copy the `activation.jar' in the common/lib/ (or common/endorsed/ if newer version then in JRE) directory? This path is _always_ included in the CLASSPATH by the startup scripts... I have there JDBC drivers, xalan, xerces (in the common/endorsed-) and it works fine. And the

Re: Assistance required

2006-02-16 Thread Hadraba Petr
Try upgrade from GNU Java (which is the default JVM in the Fedora distribution) to the Sun Java 5. GNU Java has too many issues because of is not in the final version (I remembere) :-( PETR On 2/16/06, Medha Parathasarathy [EMAIL PROTECTED] wrote: I have gone through the server.xml model

Re: default webapp not understanding

2006-02-14 Thread Hadraba Petr
Hi, no, you must delete whole the original contents of the existing directory webapps/ROOT and deploy your own ROOT.war web application. Be careful. The `ROOT' word is case sensitive. The default URL mapping is: http://[machine]:[port]/[context]/[servlet]/ where machine is currently localhost,

Re: jdbc context

2006-02-13 Thread Hadraba Petr
Hi, maybe helps this, but it's working on Tomcat 5.5.15:-( http://mail-archives.apache.org/mod_mbox/tomcat-users/200602.mbox/[EMAIL PROTECTED] PETR On 2/13/06, chen jacky [EMAIL PROTECTED] wrote: hi, Do you mean add the following code in the web.xml? resource-ref descriptionDB