Re: DB2/Tomcat Connection pooling problem

2007-02-04 Thread olivier nouguier

Hi
Are you you sure that select 1 is a valid query under DB2?
It is under mysql but it is not under DB2/AS400  !
HIH

On 2/2/07, Pete [EMAIL PROTECTED] wrote:


Thanks Tim.

More information to my intial question:
-I have also installed Websphere App Server on this machine and
configured the application to work correctly there.
-Shutdown WAS to run Tomcat
-I have Tomcat working on my home server with a mysql database, so I
do have something working!

I also get this error:
SEVERE: Null component
Catalina:type=DataSource,path=/TestWeb,host=localhost,class=
javax.sql.DataSource,name=jdbc/PhoenixDB

When trying to use the DB2DataSourceFactory instead of the dbcp one...
Context
Resource
name=jdbc/PhoenixDB
auth=Container
type=javax.sql.DataSource
factory=com.ibm.db2.jcc.DB2DataSourceFactory
driverClassName=com.ibm.db2.jcc.DB2Driver
validationQuery=SELECT 1
loginTimeout=10
connectionProperties=currentSchema=T;
maxWait=5000
username=uid
password=pwd
testOnBorrow=true
driverType=4
url=jdbc:db2://test:5/TDB
/
/Context

Thanks,
-P

- Original Message 
From: Tim Lucia [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 2, 2007 1:29:05 PM
Subject: RE: DB2/Tomcat Connection pooling problem

 Also in V6, it seems to be using a version of dbcp associated with
tomcat
 as opposed to commons. (org.apache.tomcat.dbcp.*) Has some underlying
 behavior changed as well here?

This is the standard behavior with 5.5.x -- DBCP is repackaged under the
Tomcat package (presumably) to avoid conflicts with commons DBCP.

Tim




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it
now.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie
et toi dans les pleurs.
Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs
et toi dans la joie.


Re: log4j and CLASSPATH problems on linux

2007-02-04 Thread Gaurav Kushwaha

Log4j loads log4j.properties from the classpath of the classloader that
loaded itself(log4j classes). In your case, log4j is loaded by tomcat
classloader, since it is present in $TOMCAT_HOME/lib. Classes and files
under WEB-INF/classes are not visible to that classloader, hence the
problem.

Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.

On 2/3/07, Oren Livne [EMAIL PROTECTED] wrote:


Dear All:

I'm running tomcat 6.0.7 beta on a linux redhat 8 system. Here are my
questions:
1. I tried to set up some useful libraries in directories outside
$tomcat_home/lib but they were not recognized.
I did that by setting:
CLASSPATH=/srv/lib/hibernate-
3.2.1.GA:/srv/lib/hibernate-tools-3.2.0.beta8:/srv/lib/j2ee-1.4:/srv/lib/misc:/srv/lib/struts-1.3.5
export CLASSPATH
and restarting tomcat, but it didn't find my libraries. So I put them
all under $tomcat_home/lib. Is that right?

2. I deployed a web application called Catalog to tomcat (it uses
Struts 1.3.5 and Hibernate 3.2.1 GA), and placed log4.properties under
webapps/Catalog/WEB-INF/classes. It is not recognized, and I get these
warnings:

log4j:WARN No appenders could be found for logger
(net.ruready.struts.filter.FindItemFilter).
log4j:WARN Please initialize the log4j system properly.

Also, I don't see any output although my log4j is configured to output
messages. On my windows XP system,
I see messages and I can declare libraries outside tomcat, but I'm using
MyEclipse 5.1 so I don't know how it's done
behind the scenes.

3. When I run my app, it hangs trying to access the database. I have a
hibernate.cfg.xml which works on windows, but once again,
I am not sure what is going on because I don't see any log messages on
linux.

What am I doing wrong, and how should I configure tomcat and my web app?
Attached below please find my relevant config files.

Thanks so much in advance,
Oren

=
Classpath: empty
[EMAIL PROTECTED] lib]$ echo $CLASSPATH

[EMAIL PROTECTED] lib]$

web apps dir:
[EMAIL PROTECTED] lib]$ ls $webapps/
Catalog  docs  examples  host-manager  manager  ROOT
[EMAIL PROTECTED] lib]$

classes directory (I thought it is automatically added to the app's
classpath!):
[EMAIL PROTECTED] lib]$ ls /srv/tomcat/webapps/Catalog/WEB-INF/classes/
ApplicationResources.properties  hibernate.struts.cfg.xml
netproject.version
hibernate.cfg.xmlhibernate.test.cfg.xmlols.properties
hibernate.stand_alone.cfg.xmllog4j.properties
ols_states.properties

log4j.properties:
# Appenders (Output Streams)
==

### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L
- %m%n

### direct messages to file catalog.log ###
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=catalog.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L -
%m%n

# All Classes  Packages
==
# Format: logger=LOGLEVEL, appender1, appender2, etc. will set the log
level to
# LOGLEVEL and direct the output to all appenders that follow.

log4j.rootLogger=INFO, stdout

# RUReady
=

log4j.logger.net.ruready=DEBUG, stdout

# Struts
==

log4j.logger.org.apache.struts.util=ERROR, stdout

# Hibernate
===

#log4j.logger.org.hibernate=info
#log4j.logger.org.hibernate=debug

# Hibernate
===

#log4j.logger.org.hibernate=info
#log4j.logger.org.hibernate=debug

### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=debug

### log just the SQL
#log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=debug

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=debug

### log HQL parse trees
#log4j.logger.org.hibernate.hql=debug

### log cache activity ###
#log4j.logger.org.hibernate.cache=debug

### log transaction activity
#log4j.logger.org.hibernate.transaction=debug

### log JDBC resource acquisition
#log4j.logger.org.hibernate.jdbc=debug

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###

#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace

Tomcat library directory:
[EMAIL PROTECTED] lib]$ ls /srv/tomcat/lib
activation.jar  commons-logging.jar
junit.jar
annotations-api.jar

Re: Tomcat and JSP Issue

2007-02-04 Thread Gaurav Kushwaha

A pair of curly brackets constitute a logical block. A variable declared
inside a block is visible within that block and the blocks contained in that
block. In your case the place where you are using the variable myname is
outside the block where u declared it. Hence the problem. Can you please
paste the code that you have written after moving it up one block. With all
the blocks intact though.

Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.

On 2/3/07, Pid [EMAIL PROTECTED] wrote:


can you provide another test case, or an example of a real exception?

variables defined inside the try/catch aren't available outside of it,
so maybe you're using them inside it normally.


Jason Friedman wrote:
 Russell,

 I tried that but seems the same problem is still there.

 I used to define lots of variables inside try/catch and it works
 for all JSP pages. Honestly I dont think there is a problem with
 the code. My machine is Linux btw.


 On 2/2/07, Pitre, Russell [EMAIL PROTECTED] wrote:
 You have the myname variable declared inside the try/catch statement.
 Try declaring it outside of the try/catch.


 %@ pagelanguage=java contentType=text/html
 import= java.util.*,java.io.*,java.sql.*%
 %
  String myname:
 try{
 myname = Jason;
 }catch(Exception e){
 e.printStackTrace();
 }
 %
 html
 body
 This is a html, my name is %=myname%/body
 /html

 -Original Message-
 From: Jason Friedman [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 02, 2007 2:47 PM
 To: users@tomcat.apache.org
 Subject: Tomcat and JSP Issue

 My tomcat works perfectly normal before today. I did nothing to it,
 but now even the simplest JSP code gives errors:

 whatswrong.jsp
 ===
 %@ pagelanguage=java contentType=text/html
 import= java.util.*,java.io.*,java.sql.*%
 %
 try{
 String myname = Jason;
 }catch(Exception e){
 e.printStackTrace();
 }
 %
 html
 body
 This is a html, my name is %=myname%/body
 /html
 ===

 Here are the errors:
 ===
 HTTP Status 500 -type Exception reportmessage

 description The server encountered an internal error () that prevented
 it from fulfilling this request.
 exception

 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: 20 in the jsp file: /whatswrong.jsp

 Generated servlet error:
 [javac] Compiling 1 source file

 /home/yasong/apache-tomcat-4.1.34
/work/Standalone/localhost/_/whatswrong
 _jsp.java:57:
 cannot resolve symbol
 symbol  : variable myname
 location: class org.apache.jsp.whatswrong_jsp
   out.print(myname);
 ^
 1 error
 at
 org.apache.jasper.compiler.DefaultErrorHandler.javacError
(DefaultErrorHa
 ndler.java:85)
 at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(
ErrorDispatcher.ja
 va:248)
 at
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:343)
 at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
 at
 org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.ja
 va:427)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.ja
 va:142)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:240)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(Applica
 tionFilterChain.java:198)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilt
 erChain.java:144)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValv
 e.java:209)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:595)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:4
 32)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
 at
 org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValv
 e.java:138)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:595)
 at
 org.apache.catalina.valves.CertificatesValve.invoke(
CertificatesValve.ja
 va:197)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:593)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:4
 32)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java
:245
 9)
 at
 org.apache.catalina.core.StandardHostValve.invoke(

Re: Tomcat can't find my Filter

2007-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Allen,

(Note that I've moved some things around in here)

aladdin wrote:
 IfModule !mod_jk.c
   LoadModule jk_module libexec/mod_jk.so

   JkWorkersFile /etc/tomcat5.5/workers.properties
   JkLogFile /usr/share/tomcat5.5/logs/mod_jk.log

   JkLogLevel emerg
 /IfModule

This configuration should probably come before all of your VirtualHost
directives, though it might not matter. Note that I've moved all generic
mod_jk configuration inside the IfModule section. You will get fewer
errors in your log file when mod_jk is not available this way.

Let's consider this:

 VirtualHost localhost
 ServerName localhost

 JkMount /infoisland ajp13
 JkMount /infoisland/* ajp13
 /VirtualHost

For these URLs, only requests to http://localhost/infoisland will be
forwarded to Tomcat. So, if you use
http://www.infoisland.com/infoisland, you won't get what you want.

These directives should probably be inside of your VirtualHost for
infoisland, along with the rest of them.

Consider modifying your configuration fort infoisland's VirtualHost
like this:

 VirtualHost *:80
   ServerName www.infoisland.net
   DocumentRoot /var/www/infoisland
   Directory /
   Options FollowSymLinks
   AllowOverride None
   /Directory
 
   Directory /var/www/infoisland
   Options Indexes FollowSymLinks MultiViews
   AllowOverride None
   Order allow,deny
   allow from all
   # Uncomment this directive is you want to see apache2's
   # default start page (in /apache2-default) when you go to /
   #RedirectMatch ^/$ /apache2-default/
   /Directory
 
   ServerAdmin [EMAIL PROTECTED]
   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   Directory /usr/lib/cgi-bin
   AllowOverride None
   Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
   Order allow,deny
   Allow from all
   /Directory
 
   ErrorLog /var/log/apache2/error.log
 
   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel debug
 
   CustomLog /var/log/apache2/access.log combined
   ServerSignature On
 
 Alias /doc/ /usr/share/doc/
 Directory /usr/share/doc/
 Options Indexes MultiViews FollowSymLinks
 AllowOverride None
 Order deny,allow
 Deny from all
 Allow from 127.0.0.0/255.0.0.0 ::1/128
 /Directory
 
 Alias /forums /var/www/pubhtm/forums
 Directory /var/www/pubhtm/forums
 Options Indexes MultiViews FollowSymLinks
 AllowOverride None
 Allow from all
 /Directory

#
# Put your mod_jk configuration here:
#

[pasted]

 # Java Server Pages
 JkMount /*.jsp ajp13_worker
 # JkMount /infoisland/*.jsp ajp13_worker

 # Servlets
 # JkMount /infoisland/login ajp13_worker
 # JkMount /infoisland/register ajp13_worker
 # JkMount /infoisland/topicsAdmin ajp13_worker
 JkMount /infoisland/* ajp13_worker
 JkMount /servlet/* ajp13_worker
 JkMount /members/* ajp13_worker
 JkMount /members/servlet/* ajp13_worker
 JkMount /*/servlet/* ajp13_worker

#
# End of mod_jk configuration
#

 /VirtualHost
 And, on the app side, here's the web.xml entry for the filter:
 
 [CODE]
   !-- Filters Here --
   filter
 filter-nameCheckUser/filter-name
 filter-classinfoIsland.CheckUser/filter-class
 init-param
   param-nameloginPage/param-name
   param-value/login.jsp/param-value
 /init-param
   /filter
 
   filter-mapping
 filter-nameCheckUser/filter-name
 url-pattern/members/*/url-pattern
   /filter-mapping

It looks like this filter should only be active for URLs pointing to
/members/[anything], and not other URLs. What URL are you trying, and
what is the result?

Another quick question: It looks like you are implementing your own
authentication mechanism, and using filter-mapping as a crude
authorization configuration. Why not use the built-in container-managed
authentication and authorization provided by Tomcat?

Finally, it looks like your problem is a stray uppercase character in
your configuration. This:

 filter-classinfoIsland.CheckUser/filter-class

Does not match this:
 and here is the WEB-INF/classes/infoisland listing, showing the CheckUser
 class:
[BOLD]-rwxr-xr-x 1 anw anw 3899 2007-02-02 18:10 CheckUser.class*[/BOLD]

You should have used infoisland.CheckUser.

Your directory listings are inconsistent (in one place, you /do/ have
infoIsland, and in the other, you have infoisland). Which is it?

 SEVERE: Exception starting filter CheckUser
 java.lang.ClassNotFoundException: infoIsland.CheckUser

 I have also tried putting a infoisland.jar file in the WEB-INF/lib directory,
 with exactly the same results.

This is where your JAR file 

Re: [OT] how to make a scheduled event on tomcat

2007-02-04 Thread Gaurav Kushwaha

Thanks Chirstopher for a detailed reply. A very insightful and convincing
mail indeed. My problem is I have never tried writing a cron job before. So
I have no idea on how to go about it. Hence I will try quartz first. Going
by its description here, it should serve my purpose for the time being.
Still a big thanks to everyone for pitching in.
Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.


On 2/2/07, Christopher Schultz [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jacob,

Jacob Rhoden wrote:
 Christopher Schultz wrote:
 You're better off not using Tomcat for this kind of thing. That's what
 cron and other system software packages are for.

 I am curious, I find that moving the cron activities into the war file,
 simplifies greatly the task of deployment and maintenance, why would you
 not  do  it this way?

Here are several reasons not to implement batch scheduling into your web
application:

1. It is generally not part of the application, but part of the
   system that you are building. I like to keep components as
   simple and discrete as they can possibly be, instead of building
   one monster component.

2. While every two weeks was not clearly defined by the OP, I take
   it to mean actually every 14 days or so without interruption. In
   order to do that with a webapp, you'll need a lot of code to manage
   the schedule: the last time the event was triggered, how long before
   the next event, what happens if the server is down when the event
   should occur, etc. Otherwise, webapp reloads (which ought to be
   rare in production, but still...) will interfere with scheduling.

3. The webapp is limited to the permissions associated with the JVM.
   Unless you use Runtime.exec (which is arguably a mistake from a
   webapp), you are stuck running as tomcat or whatever user
   you run.

4. Following #3, you may have to alter your security manager's
   privileges if you want to do anything interesting. Perhaps
   this is not a big deal, but if you have to open-up your security
   manager, you might be compromising security in other parts of your
   application.

5. Your batch job runs at the same priority as the webapp. Yes, you can
   set the thread priority, but you can't nice the process or anything
   like that.

6. If there's a problem with your batch job, it could bring down your
   entire application. (Then again, that's what testing is for).
   Seriously, though. If your batch job starts to use more memory than
   you thought it would, your webapp users could start to feel the
   effects through sluggish server responses, etc.

Here are several reasons to use cron instead:

1. Cron is already written, so you don't have to write a bunch of code
   to manage your schedule just to get batch processing to run.

2. The counter-arguments to everything above: you can nice a process,
   run it under any uid you want, it runs in its own separate memory
   space, etc.

3. When configured to do so, cron automatically emails you a report
   for your cron job, so you know what's up.

The bottom line for me is that scheduled jobs like this are (usually)
simply not part of the webapp, so they don't belong in there. No
reasonable production web application is just a fire-and-forget WAR file
deployment. A deployment process containing an upgrade to your cron job
(which is probably unlikely to change across release anyway) should not
be unmanageable for someone whose job it is to do deployments.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw0fm9CaO5/Lv0PARAjXwAJ0TYsoP4SfAdgEfP4J7AAPMDYW2nACgtKxf
rybxmprS5YtR2cmaA9Un8LU=
=3oeA
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how to make a scheduled event on tomcat

2007-02-04 Thread Gaurav Kushwaha

Thanks Chirstopher for a detailed reply. A very insightful and convincing
mail indeed. My problem is I have never tried writing a cron job before. So
I have no idea on how to go about it. Hence I will try quartz first. Going
by its description here, it should serve my purpose for the time being.
Still a big thanks to everyone for pitching in.
Regards,
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.

On 2/2/07, Christopher Schultz [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jacob,

Jacob Rhoden wrote:
 Christopher Schultz wrote:
 You're better off not using Tomcat for this kind of thing. That's what
 cron and other system software packages are for.

 I am curious, I find that moving the cron activities into the war file,
 simplifies greatly the task of deployment and maintenance, why would you
 not  do  it this way?

Here are several reasons not to implement batch scheduling into your web
application:

1. It is generally not part of the application, but part of the
   system that you are building. I like to keep components as
   simple and discrete as they can possibly be, instead of building
   one monster component.

2. While every two weeks was not clearly defined by the OP, I take
   it to mean actually every 14 days or so without interruption. In
   order to do that with a webapp, you'll need a lot of code to manage
   the schedule: the last time the event was triggered, how long before
   the next event, what happens if the server is down when the event
   should occur, etc. Otherwise, webapp reloads (which ought to be
   rare in production, but still...) will interfere with scheduling.

3. The webapp is limited to the permissions associated with the JVM.
   Unless you use Runtime.exec (which is arguably a mistake from a
   webapp), you are stuck running as tomcat or whatever user
   you run.

4. Following #3, you may have to alter your security manager's
   privileges if you want to do anything interesting. Perhaps
   this is not a big deal, but if you have to open-up your security
   manager, you might be compromising security in other parts of your
   application.

5. Your batch job runs at the same priority as the webapp. Yes, you can
   set the thread priority, but you can't nice the process or anything
   like that.

6. If there's a problem with your batch job, it could bring down your
   entire application. (Then again, that's what testing is for).
   Seriously, though. If your batch job starts to use more memory than
   you thought it would, your webapp users could start to feel the
   effects through sluggish server responses, etc.

Here are several reasons to use cron instead:

1. Cron is already written, so you don't have to write a bunch of code
   to manage your schedule just to get batch processing to run.

2. The counter-arguments to everything above: you can nice a process,
   run it under any uid you want, it runs in its own separate memory
   space, etc.

3. When configured to do so, cron automatically emails you a report
   for your cron job, so you know what's up.

The bottom line for me is that scheduled jobs like this are (usually)
simply not part of the webapp, so they don't belong in there. No
reasonable production web application is just a fire-and-forget WAR file
deployment. A deployment process containing an upgrade to your cron job
(which is probably unlikely to change across release anyway) should not
be unmanageable for someone whose job it is to do deployments.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw0fm9CaO5/Lv0PARAjXwAJ0TYsoP4SfAdgEfP4J7AAPMDYW2nACgtKxf
rybxmprS5YtR2cmaA9Un8LU=
=3oeA
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Help me implement comet !!!

2007-02-04 Thread Le Phuoc Canh
Thanks Mark Thomas about comet URL in tomcat, but
i have implement a class following :
public class testComet extends HttpServlet implements CometProcessor{
event ()...
}
 
this will be have 2 servlet, one for normal http connection, and one for
comet. How can i do for this class just recognize comet connection ?
When i link to this servlet, it alway warning that i haven't got doGet
function, and never call event function of CometProcessor.
Please help me.
Thanks  Best Regard.


Re: Help me implement comet !!!

2007-02-04 Thread Martin Gainty
please first check 
1)that you are indeed posting HTTP GET
2)you do indeed have doGet method coded in your testComet class
...
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Le Phuoc Canh [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, February 04, 2007 8:48 PM
Subject: Help me implement comet !!!


 Thanks Mark Thomas about comet URL in tomcat, but
 i have implement a class following :
public class testComet extends HttpServlet implements CometProcessor{
event ()...
}
 
 this will be have 2 servlet, one for normal http connection, and one for
 comet. How can i do for this class just recognize comet connection ?
 When i link to this servlet, it alway warning that i haven't got doGet
 function, and never call event function of CometProcessor.
 Please help me.
 Thanks  Best Regard.


Tomcat plugn for Eclipse

2007-02-04 Thread Awaneesh Shatmanyu
Hi All,

 

 

I want Tomcat plug-in for Eclipse 3.2 Can anyone mail me the link where
to download. My Tomcat version is 6.

 

Regards,

Awaneesh  

 

 

 



Re: Tomcat plugn for Eclipse

2007-02-04 Thread Mohsen Saboorian

Hi,

User WTP (Web Tools Project), plugin:
http://www.eclipse.org/webtools

For simplicity, you would better download an all-in-one package.

On 2/5/07, Awaneesh Shatmanyu [EMAIL PROTECTED] wrote:

Hi All,





I want Tomcat plug-in for Eclipse 3.2 Can anyone mail me the link where
to download. My Tomcat version is 6.



Regards,

Awaneesh










-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]