Working fine on Tomcat 5.0 but not on 5.5.7

2005-03-07 Thread micky none
Hi Friends,
I have this simple method which works fine on my system(Tomcat 5.0,jdk 
1.5)..but not on the server(Tomcat 5.5.7,jdk1.5).Can someone explain me why:


-
String syear = null;
int selectedYear = 0;
try{
syear = request.getParameter(year);
  if (syear != null){
  selectedYear = Integer.parseInt(syear);
  session.setAttribute(syear_sess,new Integer(selectedYear));
  }
  else{
  if(session.getAttribute(syear_sess) != null)
selectedYear = ((Integer)session.getAttribute(syear_sess)).intValue();
  else
  {
syear = 2005;
selectedYear = Integer.parseInt(syear);
  }

}
}catch (IllegalArgumentException _e){
throw new Exception(selectedYear error);
}
--
year is a combo box name.The error this code throws is:

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

An error occurred at line: 12 in the jsp file: /CheckPointsAwarded.jsp
Generated servlet error:
Type mismatch: cannot convert from Integer to int



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

--

Please help.Thanks

DBCP Object not closed- urgent help reuired.

2005-03-02 Thread micky none
Hi friends,
i've a program that takes in date from the user in a text box.Everything works 
fine except the log files shows something like this:

--

(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
DBCP object created 2005-03-01 23:06:58 by the following code was never closed:
java.lang.Exception
at org.apache.commons.dbcp.AbandonedTrace.init(AbandonedTrace.java:96)
at org.apache.commons.dbcp.AbandonedTrace.init(AbandonedTrace.java:79)
at 
org.apache.commons.dbcp.DelegatingStatement.init(DelegatingStatement.java:60)
at 
org.apache.commons.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java:173)
at 
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createStatement(PoolingDataSource.java:209)
at com.ResSet.getResultSet(ResSet.java:30)
at com.TournamentDollars.retArrayList(TournamentDollars.java:119)
at 
org.apache.jsp.BonusReleased_jsp._jspService(org.apache.jsp.BonusReleased_jsp:158)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service

--

whereas i am calling the close method at the end of my JSP,after i am finished 
with my data display.The close method that i call is:


---
 public void close()
  {
   try { results.close(); } catch (Exception ex) {}
   try { st.close(); } catch (Exception ex) {}
   try { con.close(); } catch (Exception ex) {}
  }



Please help me friends asap,it's really urgent for me,your help would be really 
appreciated.Waitin for your replies,
bye

tomcat 5.5.7 startup

2005-02-13 Thread micky none
Hi,
I am also having a somewat similar problem.I installed tomcat5.5.7 on my 
windows xp system through the *.exe file.The server starts and stops properly 
but i dont know why I am not able to see the index file.When i give the command 
http://localhost:8080/,it displays nothing.I even tried to ping localhost 
and that works.Can someone please tell me where I am goin wrong.
thanks


On Sun, 13 Feb 2005 PM wrote :
I discover from where came the trouble...
JAVA_HOME pointed on J2SDK 1.4.2 and not JDK 5.0.
i changed it and not the scripts are working...
thanks a lot for help.

but admin application doesn't work :(

Maileen


--- Ben Souther [EMAIL PROTECTED] wrote:

  Are you running with a full JDK or just a JRE?
 
 
  On Sun, 2005-02-13 at 08:17, P.M wrote:
   Hi,
  
   Based on information from people of this list, i
  tried
   to use the startup.bat file to start tomcat
  server...
   but it doesn't work...in fact it's worse than
  windows
   installation with services. at least service works
  and
   i can use tomcat server.
  
   The startup.bat file seems to not work correctly
  under
   windows XP SP2.
  
   Does anyone have the same problem than me or am i
  the
   only one ?
  
   i tried to uncompress the zip file of tomcat 5.5.7
   under C:\ or to place file under C:\tomcat5, but
   nothing changed...
  
   so what's wrong on my PC ?
  
   thx,
   Maileen
  
  
  
   __
   Do you Yahoo!?
   Yahoo! Mail - now with 250MB free storage. Learn
  more.
   http://info.mail.yahoo.com/mail_250
  
  
 
-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. 
Every once in a while, one or the other just starts spinning out of 
control and clocking wall time.

This is on hp ux version 11.  New machines, lots of resources (16  Gig 
of RAM)

Any ideas?
Thanks,
Micky
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:
Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state? 
Sounds like an inifinite loop.

-Tim
Micky Williamson wrote:
I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other 
just starts spinning out of control and clocking wall time.

This is on hp ux version 11.  New machines, lots of resources (16  
Gig of RAM)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
Filip,
thanks for the information.
I did notice that on our test servers, it doesn't happen as frequently.
And in the production server.xml we had:
 Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=pooled/

In the test one it was:
 Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=asynchronous/

What is the better way?
Filip Hanik - Dev wrote:
probably is the multi cast receiver that freaks out.
This can happen if the network cable is unplugged. I will add in a sleep on the 
receiver so that even in this case it wont freak
out.
so in the scenario above, its a known problem, checking in a fix right now.
if you do provide a dump however, we will know more.
or even better, profiling it.
Filip
- Original Message -
From: Micky Williamson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 1:24 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:
 

Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state?
Sounds like an inifinite loop.
-Tim
Micky Williamson wrote:
   

I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other
just starts spinning out of control and clocking wall time.
This is on hp ux version 11.  New machines, lots of resources (16
Gig of RAM)
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
hmm
is there any difference in performance with pooled vs async?  The OS is 
HPUX 11

Filip Hanik - Dev wrote:
ah, you might be having problems with the java.nio package, (TCP)
as the conf below you are mentioning, are using those settings.
asynch doesn't require an ack message, and some VM's on some platforms have 
problems sending data back on a NIO channel.
linux had this issue unless you set LD_ASSUME_KERNEL for example,
Filip
- Original Message - 
From: Micky Williamson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 2:44 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically

Filip,
thanks for the information.
I did notice that on our test servers, it doesn't happen as frequently.
And in the production server.xml we had:
 Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=pooled/

In the test one it was:
 Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=asynchronous/

What is the better way?
Filip Hanik - Dev wrote:
 

probably is the multi cast receiver that freaks out.
This can happen if the network cable is unplugged. I will add in a sleep on the 
receiver so that even in this case it wont freak
out.
so in the scenario above, its a known problem, checking in a fix right now.
if you do provide a dump however, we will know more.
or even better, profiling it.
Filip
- Original Message -
From: Micky Williamson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 1:24 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:

   

Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state?
Sounds like an inifinite loop.
-Tim
Micky Williamson wrote:
  

 

I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other
just starts spinning out of control and clocking wall time.
This is on hp ux version 11.  New machines, lots of resources (16
Gig of RAM)


   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Type mismatch: cannot convert from long to Long

2005-02-01 Thread micky none
Hi Friends,
I went for help in the java forums,but I think you might help me better with 
this.I have a jsp that runs fine on my system,but when i upload it on the 
server it starts throwing this error:

Generated servlet error:
Type mismatch: cannot convert from long to Long

And the other thing is when i undeploy a war file on the server(5.5.7),the 
entry still remains there,altough the running status  turns to false...but on 
my system(5.0)..when i undeploy a file,the entry too is deleted.Might be,the 
server is not refllecting the changes i made to my JSP and loading the same old 
JSP.I dont know what the problem is and what to do??Can someone help me please??
Configuration:
Server-Tomcat 5.5.7
Jdk-1.5.0_01

My workstation:
Server-Tomcat 5.0
Jdk-1.5.0

My thead in the java forum is:
http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0

Re: AW: Type mismatch: cannot convert from long to Long

2005-02-01 Thread micky none
thanks christoph,
I think the casting is fine...coz i have shown the code to the java guys.And 
even if i restart the server,the entries still remains there
and works fine...i.e its not undeploying it,thought it shows the message OK - 
Undeployed application at context path /xxx
And the other thing is when i restart the server it doesnt works properly 
unless i explictily kill the java processes.
And finally can you please tell me in which file the autodeploy=true entry 
goes.This work is really important for me,any help wud be appreciated



On Tue, 01 Feb 2005 [EMAIL PROTECTED] wrote :
autodeploying war files has to be configured in the webserver.
It seems that it isn't.
Perhaps you have an acces to the configurationfile of your productive
tomcat, than you can add the host element an attribute like autoDeploy=true,
else, try to restart the server.
The other thing, the exeption that you get, seems like a wrong
cast in your jsp.
Perhaps you have another version of tomcat than your provider.
So it could come to conflicts.


--
  BMW Group
  Herr Christoph Emmersberger
  Praktikant
  mailto: [EMAIL PROTECTED]
  Url: http://www.bmwgroup.de
--


 -Ursprüngliche Nachricht-
 Von: micky none [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 1. Februar 2005 15:29
 An: Tomcat Users List
 Betreff: Type mismatch: cannot convert from long to Long
 
 
 Hi Friends,
 I went for help in the java forums,but I think you might help
 me better with this.I have a jsp that runs fine on my
 system,but when i upload it on the server it starts throwing
 this error:
 
 Generated servlet error:
 Type mismatch: cannot convert from long to Long
 
 And the other thing is when i undeploy a war file on the
 server(5.5.7),the entry still remains there,altough the
 running status  turns to false...but on my system(5.0)..when
 i undeploy a file,the entry too is deleted.Might be,the server
 is not refllecting the changes i made to my JSP and loading
 the same old JSP.I dont know what the problem is and what to
 do??Can someone help me please??
 Configuration:
 Server-Tomcat 5.5.7
 Jdk-1.5.0_01
 
 My workstation:
 Server-Tomcat 5.0
 Jdk-1.5.0
 
 My thead in the java forum is:
 http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I guess this is a BUG!!!

2005-02-01 Thread micky none

Can anyone please tell me if it's a BUGi think it is one.
I'm using Tomcat5.5.7 and i am not able to undeploy the file,it shows that the 
file is undeployed 
and loads the new file.But it still keeps showing the old file contents.Can 
anyone tell me what's the fix??
Secondly,the server does not restarts until I explicitly use the kill 
proccess_id for the java process.
Please enlighten me.

Specifying context details in web.xml

2005-01-31 Thread micky none
Hi Friends,
I need to ask you guys that is it possible that I can move the context details 
from my server.xml to web.xml.Like when i make a war,i want that i should 
specify the database url,driver,username,password etc. details .Presently i 
have 2 contexts(one for alpha databse other for the live one)in the server.xml 
file in the server.But i need these details in my web.xml.Can you tell me if I 
can do soany help would be appreciated.
Thanks

Dynamic Connection

2005-01-26 Thread micky none
Hi Friends,
I want to dynamically configure the database,username and password 
settings,instead of putting them in conf/server.xml.In other words,I dont know 
beforehand which database to use,
with which username and password.It all depends upon the person and the machine 
from which it tries to make a connection.In yet another words,I just need to do 
what the BasicDataSource is doing i.e get the 
connection details before making a connection.I am not quite sure if you got my 
point,but this is what i've been asked to do and I 
have no clue as to where to go or what to do.If anyone of you got my 
point,please help me.
Thanks

Re: Re: Dynamic Connection

2005-01-26 Thread micky none
Thanks David,
I am already using the Datasource class to vreate a connection.For eg.
Context ctx = (Context) init.lookup(java:comp/env);
ds = (DataSource) ctx.lookup(jdbc/abc);
The problem is that to know which database is selected I am trying to do 
exactly what the BasicDataSource class does,if that's possible.Is there any way 
by which I can read the environment variables that TOMCAT has setplease 
help.


On Thu, 27 Jan 2005 David Smith wrote :
Sounds like you can just about totally abandon the idea of using any pooling 
functions provided by DBCP.  If I were designing, I'd construct an object that 
implements javax.sql.DataSource and store it in the session as soon as you 
know what db is being used.  Then on each request, get the DS from the session 
and use it as needed.  Just be sure you only store the DS in the session -- 
don't store the connections.

I'm sure there are other ideas out there as well.

--David

micky none wrote:

Hi Friends,
I want to dynamically configure the database,username and password 
settings,instead of putting them in conf/server.xml.In other words,I dont 
know beforehand which database to use,
with which username and password.It all depends upon the person and the 
machine from which it tries to make a connection.In yet another words,I just 
need to do what the BasicDataSource is doing i.e get the connection details 
before making a connection.I am not quite sure if you got my point,but this 
is what i've been asked to do and I have no clue as to where to go or what to 
do.If anyone of you got my point,please help me.
Thanks
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Packing web application

2005-01-25 Thread micky none
Hi Friends,
I have a application with the following file structure:
Tomcat5.0
  webapps
project
WEB-INF
  classes
   bean
 *.java files  
  web.xml 
*.jsp files  

I want to package in into a war.The more tutorials I go through the more 
confused I get.I tried using the ant-1.6.2 and in turn busted my server.I even 
followed a tutorial and tried:
catalina_home/webapps:/jar cvf project.war
But when I tried to rerun it onto different machine,it failed.Can someone 
please give me directions to the right and easy path.Any help would be 
appreciated.Thanks.

p.s:Someone even told me just make a project.zip and rename it to project.war 
and it should work.
  

Re: Packing web application

2005-01-25 Thread micky none
Hi Friends,
I am still waiting for your replies.I am also sendin you my web.xml file:
  ?xml version=1.0 encoding=ISO-8859-1 ? 
- web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  display-nameTITLE/display-name 
  session-timeout30/session-timeout 
- servlet
  servlet-nameTR/servlet-name 
  servlet-classbean.TR/servlet-class 
  servlet-nameA1/servlet-name 
  servlet-classbean.A1/servlet-class 
  servlet-nameT1/servlet-name 
  servlet-classbean.T1/servlet-class 
  load-on-startup1/load-on-startup 
- init-param
  param-namename/param-name 
  param-valuevalue/param-value 
  /init-param
  /servlet
  /web-app 
 
When i try to do this:
C:\Tomcat 5.0\webapps\projectjar cvf project.war

It gives me the error:
'c' flag requires that input files be specified..
Please help me.





On Tue, 25 Jan 2005 micky none wrote :
Hi Friends,
I have a application with the following file structure:
Tomcat5.0
   webapps
 project
 WEB-INF
   classes
bean
  *.java files
   web.xml
 *.jsp files

I want to package in into a war.The more tutorials I go through the more 
confused I get.I tried using the ant-1.6.2 and in turn busted my server.I even 
followed a tutorial and tried:
catalina_home/webapps:/jar cvf project.war
But when I tried to rerun it onto different machine,it failed.Can someone 
please give me directions to the right and easy path.Any help would be 
appreciated.Thanks.

p.s:Someone even told me just make a project.zip and rename it to project.war 
and it should work.


Re: Re: Re: ConnectionPooling

2005-01-20 Thread micky none
Thanks Doug,Harry and rest of my friends,
After going thru the links ,I was able to make it work.Before I end this thread 
I just want to clarify some doubts.I am querying a database ,but I have some 
delay getting back the results.Now I want to check if the query is causing the 
delay or am I going wrong with allocating connections.So,I want to log all my 
program steps in a log file,can u just tell me what code I have to add and 
where?? Would this code help me??
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt
timestamp=true/

Looking for these answers and thanks for your generous help.
cheers.



On Thu, 20 Jan 2005 Parsons Technical Services wrote :
People who have to figure out how to use other peoples work either have messy 
hair or are bald.

There are three main pages for reference:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html

Now the basics. There are four pieces to the puzzle.

I am going for a Global Setup.

First is the server.xml Resource and ResourceParams elements. It appears that 
you have these. Connects to the database and create a pool of connections.

Second is the web.xml entry for the resource-ref.

Third is the Resource link placed in the apps context.

Fourth is the calling of the resource from code.

When you say use to BasicDataSource to see thw no. of active connections  is 
this you application or something built into Tomcat?

Doug

- Original Message - From: micky none [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, January 19, 2005 4:54 PM
Subject: Re: Re: ConnectionPooling


Tried that too my friend,isn't there any sure shot answer for this one..im 
like half mad after this...as of now.


On Thu, 20 Jan 2005 Harry Mantheakis wrote :
This may not help, but try swapping the order of the ResourceParams and
Resource elements in your 'server.xml' file.

Also, you seem to be declaring the DefaultContext element three times (!)
which seems wrong.

HTH

Harry Mantheakis


  Hi Friends,
  This is my first message on this list.I want to use the dbcp connection
  pooling.I set up the server.xml according to an example,but when i  
  trying to
  use to BasicDataSource to see thw no. of active connections it's  throwing
  errors.I tried searching a lot but to no use.If I go into the  
  administrator
  tool,it shows nothing there?I am using tomcat5.0..please tell me ..where  
  i am
  going wrong and if there is any other way to see the number of active
  connections.
 
 
  Here's my server.xml,please tell me if there's anything wrong with it:
 
  Logger className=org.apache.catalina.logger.FileLogger  
  directory=logs
  prefix=localhost_log. suffix=.txt timestamp=true /
  DefaultContext reloadable=true /
  DefaultContext path=/database docBase=database debug=0
  reloadable=true /
  - DefaultContext
  - ResourceParams name=jdbc/conversion
  - parameter
  nameusername/name
  value/value
  /parameter
  - parameter
  namepassword/name
  value/value
  /parameter
  - parameter
  namedriverClassName/name
  valuecom.ibm.db2.jcc.DB2Driver/value
  /parameter
  - parameter
  nameurl/name
  valuejdbc:db2j:net/value
  /parameter
  - parameter
  nameremoveAbandoned/name
  valuetrue/value
  /parameter
  - parameter
  nameremoveAbandonedTimeout/name
  value0/value
  /parameter
  - parameter
  namelogAbandoned/name
  valuetrue/value
  /parameter
  - parameter
  namemaxActive/name
  value1/value
  /parameter
  - parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  /ResourceParams
  Resource name=jdbc/conversion auth=Container  
  type=javax.sql.DataSource
  /
  /DefaultContext
  Loader className=org.apache.catalina.loader.WebappLoader
  loaderClass=org.apache.catalina.loader.WebappClassLoader  
  checkInterval=3
  /
  /Host
 
  please,please,please help me...its very urgent.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Logger file

2005-01-20 Thread micky none

Hi Friends,
I am using this file for outputting log data,can someone please tell me how to 
save this data to some file instead of outputting,so that I can have a look at 
it later on...
any help would be appreciated
 import org.apache.log4j.Logger;
 import org.apache.log4j.BasicConfigurator;


 public class MyApp {

   static Logger logger = Logger.getLogger(MyApp.class);

   public static void main(String[] args) {


 BasicConfigurator.configure();

 logger.info(Entering application.);
 System.out.println(Log file);

 logger.info(Exiting application.);
   }
 }


ConnectionPooling

2005-01-19 Thread micky none
Hi Friends,
This is my first message on this list.I want to use the dbcp connection 
pooling.I set up the server.xml according to an example,but when i trying to 
use to BasicDataSource to see thw no. of active connections it's throwing 
errors.I tried searching a lot but to no use.If I go into the administrator 
tool,it shows nothing there?I am using tomcat5.0..please tell me ..where i am 
going wrong and if there is any other way to see the number of active 
connections.  


Here's my server.xml,please tell me if there's anything wrong with it:

Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=localhost_log. suffix=.txt timestamp=true / 
  DefaultContext reloadable=true / 
  DefaultContext path=/database docBase=database debug=0 
reloadable=true / 
- DefaultContext
- ResourceParams name=jdbc/conversion
- parameter
  nameusername/name 
  value/value 
  /parameter
- parameter
  namepassword/name 
  value/value 
  /parameter
- parameter
  namedriverClassName/name 
  valuecom.ibm.db2.jcc.DB2Driver/value 
  /parameter
- parameter
  nameurl/name 
  valuejdbc:db2j:net/value 
  /parameter
- parameter
  nameremoveAbandoned/name 
  valuetrue/value 
  /parameter
- parameter
  nameremoveAbandonedTimeout/name 
  value0/value 
  /parameter
- parameter
  namelogAbandoned/name 
  valuetrue/value 
  /parameter
- parameter
  namemaxActive/name 
  value1/value 
  /parameter
- parameter
  namefactory/name 
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value 
  /parameter
  /ResourceParams
  Resource name=jdbc/conversion auth=Container type=javax.sql.DataSource 
/ 
  /DefaultContext
  Loader className=org.apache.catalina.loader.WebappLoader 
loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=3 / 
  /Host

please,please,please help me...its very urgent.

Re: Re: ConnectionPooling

2005-01-19 Thread micky none
Tried that too my friend,isn't there any sure shot answer for this one..im like 
half mad after this...as of now.


On Thu, 20 Jan 2005 Harry Mantheakis wrote :
This may not help, but try swapping the order of the ResourceParams and
Resource elements in your 'server.xml' file.

Also, you seem to be declaring the DefaultContext element three times (!)
which seems wrong.

HTH

Harry Mantheakis


  Hi Friends,
  This is my first message on this list.I want to use the dbcp connection
  pooling.I set up the server.xml according to an example,but when i trying to
  use to BasicDataSource to see thw no. of active connections it's throwing
  errors.I tried searching a lot but to no use.If I go into the administrator
  tool,it shows nothing there?I am using tomcat5.0..please tell me ..where i 
  am
  going wrong and if there is any other way to see the number of active
  connections.
 
 
  Here's my server.xml,please tell me if there's anything wrong with it:
 
  Logger className=org.apache.catalina.logger.FileLogger directory=logs
  prefix=localhost_log. suffix=.txt timestamp=true /
  DefaultContext reloadable=true /
  DefaultContext path=/database docBase=database debug=0
  reloadable=true /
  - DefaultContext
  - ResourceParams name=jdbc/conversion
  - parameter
  nameusername/name
  value/value
  /parameter
  - parameter
  namepassword/name
  value/value
  /parameter
  - parameter
  namedriverClassName/name
  valuecom.ibm.db2.jcc.DB2Driver/value
  /parameter
  - parameter
  nameurl/name
  valuejdbc:db2j:net/value
  /parameter
  - parameter
  nameremoveAbandoned/name
  valuetrue/value
  /parameter
  - parameter
  nameremoveAbandonedTimeout/name
  value0/value
  /parameter
  - parameter
  namelogAbandoned/name
  valuetrue/value
  /parameter
  - parameter
  namemaxActive/name
  value1/value
  /parameter
  - parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  /ResourceParams
  Resource name=jdbc/conversion auth=Container 
  type=javax.sql.DataSource
  /
  /DefaultContext
  Loader className=org.apache.catalina.loader.WebappLoader
  loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=3
  /
  /Host
 
  please,please,please help me...its very urgent.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connection aborted by peer: socket write error

2001-11-26 Thread Micky I. Mimo

Tomcat: 3.2

OS: windows 2000

JDK: 1.3.1

IE:5.5

We are getting a Connection aborted by peer: socket write error. Does
anyone know how to resolve this issue? The error log output is below. I
did a scan of the tomcat archives and found that a lot of posts show
that this is a known problem. I would like to resolve this problem
without upgrading to tomcat 3.3  or changing our browser from IE. The
funny thing is that we do not see this error occurring on our Solaris or
Linux servers. But on our windows 2000 systems the error eventually
kills the tomcat session. Anyone's help is appreciated. My understanding
is that the problem is caused by lack of support of HTTP Status 304 in
Tomcat 3.2 stand alone
server Is this so? Any ideas on how to work around this issue with out
moving to Tomcat 4.0?


[java] Forwarding to : /error.jsp

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IllegalStateException
in: R( /BlueXchange + /error.jsp + null) OutputS

tream is already being used for this request

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Apache and mod_webapp (Warn Error!)

2001-11-01 Thread Micky I. Mimo

you need to compile the apache with DSO support.

see web site below on how to compile. 

http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0/README.html

 

-Original Message-
From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 5:42 PM
To: Tomcat Users List
Subject: Apache and mod_webapp (Warn Error!)


I loaded the mod_webapp.so and i get the following error when i do 
apachectl start

[warn] Loaded DSO /usr/lib/apache/1.3/mod_webapp.so uses plain Apache 
1.3 API, this module might crash under EAPI! (please recompile it with -
DEAPI)

I am running Apache 1.3 that comes as a deb package
Any ideas?

Thanks in advance

-- 
Marko Sarunac
[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Viewing this mailing list online

2001-10-26 Thread Micky I. Mimo

any list search engine will do the job. 
http://marc.theaimsgroup.com/ or 
http://www.mail-archive.com/lists.html#j
 

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: Viewing this mailing list online


Can we view this mailing list online rather that receive it by e-mail.
It's
currently running at hundreds of messages per day (a testament to how
popular Tomcat is)

Regards
Donie




Trying to run Tomcat with SSL

2001-10-19 Thread Micky Kwik

I installed JSSE 1.0.2 according to the instructions on the Tomcat website.
All seemed fine. However when I try  to start Tomcat with SSL, I get the
next Exception:

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/net/ServerSocketFactory

It looks like classes can't be found, but I checked CLASSPATH several times
and the JSSE packages are included. What else can it be?




RE: Using mod_jk with Apache-Tomcat

2001-10-03 Thread Micky I. Mimo

Use only Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf-auto at the
bottom of http.conf file. Also, send me the out put of you
mod_jk.conf-auto file. 

-Original Message-
From: Nathan Pfrimmer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 11:05 AM
To: Brian Richards; [EMAIL PROTECTED]
Subject: RE: Using mod_jk with Apache-Tomcat


Actually, I've tried forward slashes...
The line is actually:

Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf-auto

I've also tried:
Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf

It doesn't fix the Apache service start problem, both with forward, and
backward slashes.  I've also tried it without the quotation marks.

Nathan

-Original Message-
From: Brian Richards [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Using mod_jk with Apache-Tomcat


try changing the path to use forward slashes like
D:/jakarta-tomcat-3.2.3/conf/tomcat.conf

-Brian
- Original Message -
From: Nathan Pfrimmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 9:23 AM
Subject: Using mod_jk with Apache-Tomcat


 I don't think my Apache-Tomcat connection is working.

 If I add the line:
 Include d:\jakarta-tomcat-3.2.3\conf\tomcat.conf

 to the Apache/conf/httpd.conf file (as directed by the documentation),
and
 then try to start the Apache server I get an error pop-up box:

 Microsoft Management Console - Could not start the Apache service on
Local
 Computer.  The service did not return an error.  This could be an
internal
 Windows error or an internal service error.  If the problem persists,
 contact your system administrator.

 Platform:
 Windows 2000
 Apache 1.3
 Tomcat 3.2.3

 Nathan Pfrimmer
 Co-op Student
 Professional Services, Central Europe
 Open Text Corporation
 Munich, Germany








RE: Using mod_jk with Apache-Tomcat

2001-10-03 Thread Micky I. Mimo

No, put the dll in the apache directory for modules. 

-Original Message-
From: Nathan Pfrimmer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 12:08 PM
To: Micky I. Mimo; [EMAIL PROTECTED]
Subject: RE: Using mod_jk with Apache-Tomcat


Yeah, mod_jk.dll was in the D:\jakarta-tomcat-3.2.3\modules\ directory.
I
tried commenting this line out in mod_jk.conf-auto, and I still got the
error when trying to start the Apache server.  I did notice failures in
the
mod_jk.log file though.  I've attached it.



-Original Message-
From: Micky I. Mimo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 5:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Using mod_jk with Apache-Tomcat


did you put LoadModule jk_module modules/mod_jk.dll in the correct
directory. try to comment out this line and see if you get the same
error. If not then you may have a problem with the dll.

-Original Message-
From: Nathan Pfrimmer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 11:32 AM
To: [EMAIL PROTECTED]; Brian Richards;
[EMAIL PROTECTED]
Subject: RE: Using mod_jk with Apache-Tomcat


I am putting the include right at the bottom of httpd.conf.  I've
included
the mod_jk.conf-auto file.

-Original Message-
From: Micky I. Mimo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 5:25 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Brian
Richards
Subject: RE: Using mod_jk with Apache-Tomcat


Use only Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf-auto at the
bottom of http.conf file. Also, send me the out put of you
mod_jk.conf-auto file.

-Original Message-
From: Nathan Pfrimmer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 11:05 AM
To: Brian Richards; [EMAIL PROTECTED]
Subject: RE: Using mod_jk with Apache-Tomcat


Actually, I've tried forward slashes...
The line is actually:

Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf-auto

I've also tried:
Include d:\jakarta-tomcat-3.2.3\conf\mod_jk.conf

It doesn't fix the Apache service start problem, both with forward, and
backward slashes.  I've also tried it without the quotation marks.

Nathan

-Original Message-
From: Brian Richards [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Using mod_jk with Apache-Tomcat


try changing the path to use forward slashes like
D:/jakarta-tomcat-3.2.3/conf/tomcat.conf

-Brian
- Original Message -
From: Nathan Pfrimmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 9:23 AM
Subject: Using mod_jk with Apache-Tomcat


 I don't think my Apache-Tomcat connection is working.

 If I add the line:
 Include d:\jakarta-tomcat-3.2.3\conf\tomcat.conf

 to the Apache/conf/httpd.conf file (as directed by the documentation),
and
 then try to start the Apache server I get an error pop-up box:

 Microsoft Management Console - Could not start the Apache service on
Local
 Computer.  The service did not return an error.  This could be an
internal
 Windows error or an internal service error.  If the problem persists,
 contact your system administrator.

 Platform:
 Windows 2000
 Apache 1.3
 Tomcat 3.2.3

 Nathan Pfrimmer
 Co-op Student
 Professional Services, Central Europe
 Open Text Corporation
 Munich, Germany






RE: PLEASE READ LIST ADMINISTRATORS (original subject was . )

2001-03-21 Thread Micky I. Mimo

lets not get vulgar their are children listing?

Michael Mimo
Systems Specialist
Voice: 781-457-1317 
[EMAIL PROTECTED]

 



-Original Message-
From: Scott Barr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )


I hope I am misunderstanding your message, Arif.

Scott

- Original Message -
From: Arif Tayebali [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 21, 2001 11:08 AM
Subject: RE: PLEASE READ LIST ADMINISTRATORS (original subject was . )


 That spam shit is more foul than ur new born eating swine!

 -Original Message-
 From: Scott Barr [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 20, 2001 4:40 PM
 To: [EMAIL PROTECTED]
 Subject: PLEASE READ LIST ADMINISTRATORS (original subject was . )
 Importance: High


 PLEASE READ LIST ADMINISTRATORS

 Is there anyway you can stomp this garbage?
 By U.S. laws, this may not be considered spam, but I didn't ask to be
put
on
 this companies mailing list, yet they (spammers in general) seem to
have
 targeted yet another public forum for intelligent exchange of ideas.

 Thanks
 Scott


 - Original Message -
 From: [EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2001 2:33 PM
 Subject: .


 
  The Internet's Finest and Most Reliable Bulk Email Provider!
 
  Since 1996, Tech Data Technologies has provided bulk email service
to
 thousands of well-satisfied customers. We offer the most competitive
prices
 in the industry, made possible by our high percentage of repeat
business.
We
 have the most advanced, direct email technology, employed by only a
 knowledgeable few in the world.
 
  We have over 160 million active email addresses, increasing our list
at
 the rate of half a million to one million a month. We will put your
product
 or service instantly and directly into the hands of millions of
prospects!
 You will have instant, guaranteed results, something no other form of
 marketing can claim. Our turn around time is a remarkable 24 hours.
 
  Our email addresses are sorted by country, state, city and target.
Your
 marketing campaign will speed with pinpoint accuracy to your desired
 audience!
 
  Call us for a free consultation at 323 876 6148  [U.S.A.].
 
  For a limited time, take advantage of our special -- Three million
general
 U.S. emails for just $600 per million! We include, at no cost, a
bullet
 proof email address for 30 days, a $400 value!
 
  BULK EMAIL PRICES
 
750,000$562
  1,200,000$720
  1,600,000$960
  3,000,000$1,500
  3,000,000+ ...PLEASE CALL FOR A QUOTE
 
 
  Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF
for
 your Business!
 
 
  DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!!
 
 
  Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this
letter
 is not considered "spam" as long as we include: 1) contact information
and,
 2) the way to be removed from future mailings (see below).To Remove
Yourself
 From This List: Please email [EMAIL PROTECTED] with the email
address
that
 you would like removed and the word REMOVE in the subject heading.
 




Performance on Netra T1 AC200

2001-03-15 Thread Micky I. Mimo

Our company is considering running tomcat(3.2)/apache  on a Netra T1
AC200 with 1 GB MEM. I was wondering if any one else is doing the same?
If so, how is performance? Any recommendations or problems that you may
have run into that would be helpful for us to know before we place the
order would be helpful. 


/===\
| Micky Mimo|
| Systems Specialist|
| (781) 457 - 1317  |
| [EMAIL PROTECTED] | 
\===/



RE: Internal server error.

2001-02-13 Thread micky



you 
can not use two programs to run on the same port. setup tomcat on port 8080 and 
apache on 80 or 8040

/===\| Micky 
Mimo 
|| Systems 
Specialist 
|| (781) 457 - 
1317 
|| [EMAIL PROTECTED] 
===\|There was once a young man from Wight 
  ||Who could travel 
faster than the speed of light. ||He went out one day  
 
 
 
  ||In a relative way 
  
 
 
  ||And returned home 
the previous night.  
 
|\==/

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 10:07 
  AMTo: [EMAIL PROTECTED]Subject: Internal 
  server error.
  Hi:
  
  I have installed Apache with not problem where it 
  is running with port 8040. I installed tomcat and appended the httpd.conf file 
  as instructed. Both Tomcat and Apache are set to use port 8007 to talk to each 
  other. I start Tomcat first then apache and all seems to be oka. But when I 
  try to access say: http://localhost:8040/examples/jsp/index.html 
  I get the internal server error in my browser? I checked the mod_jserv.log and 
  I get this:
  
  [13/02/2001 17:54:14:605] (EMERGENCY) ajp12: can not connect to host 
  127.0.0.1:8007
  [13/02/2001 17:54:14:605] (EMERGENCY) ajp12: connection fail
  [13/02/2001 17:54:14:605] (ERROR) an error returned handling request via 
  protocol "ajpv12"
  So this is the likely problem, now what exactly is this 
  and can I do to fix it?
  
  


ServletPath Problem

2001-02-09 Thread micky
Title: ServletPath Problem






I am running linux 6.2 tomcat 3.2.1.


I created a WAR file called dci.war and placed it in the webapps dir. When I try to access the directory through the web I get a page not found error. I can access the other default tomat directories. I can also call html pages from the /dci directory. 

I belive the problem is related to the JSP path. 


When looking at the logs. I see JspEngine -- /examples/num/*.jsp

  ServletPath: /example/num/*.jsp


The above works 


When it does not work I see JspEngine -- /dci.jsp

 ServletPath: /dci.jsp


I believe it should look like JspEngine -- /dci/dci.jsp

 ServletPath: /dci/dci.jsp


My question is Where do I specify the Directory so that the JSP reads the default. I thought all of this was taken care of when you use a war file in webapps dir. 

thanks in advance




/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] ===\

|There was once a young man from Wight   |

|Who could travel faster than the speed of light. |

|He went out one day   |

|In a relative way   |

|And returned home the previous night.   |

\==/





RE: Apache

2001-01-16 Thread micky mimo
Title: RE: Apache






yes


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Rooms Christoph [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, January 16, 2001 12:55 AM

To: [EMAIL PROTECTED]

Subject: Apache



Hi,


If I use Apache for http  Tomcat for jsp/servlet together. Can I still use wars ?


greetz, Christoph





-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: building mod_jk

2001-01-11 Thread micky mimo
Title: RE: building mod_jk






best archives in the world http://marc.theaimsgroup.com/


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: cse10171 [mailto:[EMAIL PROTECTED]]

Sent: Thursday, January 11, 2001 5:12 PM

To: [EMAIL PROTECTED]

Subject: RE: building mod_jk



Where can I find your prior posting? Is there a good way to search for it

in the Tomcat User Archives?


Rob Abernethy

[EMAIL PROTECTED]



-Original Message-

From: Pogo Com [mailto:[EMAIL PROTECTED]]

Sent: Thursday, January 11, 2001 4:54 PM

To: [EMAIL PROTECTED]

Subject: RE: building mod_jk



Look at $APACHEHOME/bin/apxs. Does it contain the

following three lines?


my $CFG_CFLAGS_SHLIB = q(); # substituted via

Makefile.tmpl

my $CFG_LD_SHLIB = q(); # substituted

via Makefile.tmpl

my $CFG_LDFLAGS_SHLIB = q(); # substituted via

Makefile.tmpl


If so, then you hit the same bug I did, which I

reported to Apache as bug 7560. You'll need to

provide definitions for those fields (see my prior

posting about how to do this).


Bill



--- cse10171 [EMAIL PROTECTED] wrote:

 Yes, I'm using Solaris 5.6 and Apache 1.3.14. Here

 is my apxs command (I

 have tried several different ones, each resulting in

 the same error):



 apxs -o

 mod_jk.so -DSOLARIS -I../jk -I/usr/java/include

 -I/usr/java/include/solaris

 -lposix4 -ldl -lxnet -c *.c ../jk/*.c





 Rob Abernethy

 [EMAIL PROTECTED]



 -Original Message-

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On

 Behalf Of andy oliver

 Sent: Thursday, January 11, 2001 5:18 PM

 To: [EMAIL PROTECTED]

 Subject: Re: building mod_jk





 Are you on Solaris (I assume)? What version? What

 is your exact apxs

 command as you are entering it?



 Robert D. Abernethy IV wrote:



  I am attempting to compile mod_jk.so and am having

 some difficulty. The

  apxs command stops with the following error:

 

  apxs:Break: Command failed with rc=255

 

  I have added -lposix4 and -ldl to remove some

 linking errors, but I am

 still

  coming up with a bunch of undefined symbols

 (ap_pstrdup, ap_reset_timeout,

  ap_table_set, etc.). I have the feeling that I am

 still missing a library

  or something. I was curious what environment

 variables need to be set

 when

  compiling mod_jk? How about the LD_LIBRARY_PATH

 variable?

 

  Rob Abernethy

  [EMAIL PROTECTED]

 

 



-

  To unsubscribe, e-mail:

 [EMAIL PROTECTED]

  For additional commands, email:

 [EMAIL PROTECTED]





 __

 Do You Yahoo!?

 Talk to your friends online with Yahoo! Messenger.

 http://im.yahoo.com





-

 To unsubscribe, e-mail:

 [EMAIL PROTECTED]

 For additional commands, email:

 [EMAIL PROTECTED]







-

 To unsubscribe, e-mail:

 [EMAIL PROTECTED]

 For additional commands, email:

 [EMAIL PROTECTED]





__

Do You Yahoo!?

Yahoo! Photos - Share your holiday photos online!

http://photos.yahoo.com/


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: No need for Apache?

2001-01-10 Thread micky mimo
Title: RE: No need for Apache?






What about the other 2%? 


-Original Message-

From: Glen Campbell [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, January 10, 2001 8:44 PM

To: [EMAIL PROTECTED]

Subject: No need for Apache?


I would just like to get confirmation of this: my site will have low volume,

and 98% of the pages will have dynamic data (JSP). I should be able to

configure tomcat to listen on port 80, and get rid of Apache all together?

Or is there something I'm missing that would mean I have to use Apache and

Tomcat together?


Glen



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: UTF8 Question

2000-12-14 Thread micky mimo
Title: RE: UTF8 Question






Blackdown requires royalties to sun for commercial products. Use JDK1.3.


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf

Of Andy

Sent: Thursday, December 14, 2000 2:55 PM

To: [EMAIL PROTECTED]

Subject: Re: UTF8 Question



Craig,


Not to get into a jdk argument but I'd not recommend suns jdk 1.2 for linux if

anyone is doing any gui development (most specifically in swing) or even running

guis as there are a number of erroneous exceptions generated related to drag and

drop (REGARDLESS of whether you are actually using drag and drop). I just

wanted to raise this caution. The blackdown jdk 1.2x does not suffer from that

problem.


-andy



Craig R. McClanahan wrote:


 Simmons, Donald wrote:



  I am running Red Hat 6.1 and just installed Tomcat 3.2.1. When I start

  tomcat I get an error message, UnsupporteEncodingException UTF8. Can anyone

  offer any suggestions? Thanks.

 



 Which JDK are you using? If I remember right, the Kaffe virtual machine that

 comes with Red Hat 6.1 had problems like this.



 You can get a nice JDK 1.2 or 1.3 for Linux from http://java.sun.com/j2se.



 

  Joe



 Craig McClanahan



__

Do You Yahoo!?

Talk to your friends online with Yahoo! Messenger.

http://im.yahoo.com





RE: Installtion problem

2000-12-13 Thread micky mimo
Title: RE: Installtion problem






Crazy! lets drink a few more cups of coffe. 


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Dave Newton [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, December 13, 2000 4:54 PM

To: [EMAIL PROTECTED]

Subject: RE: Installtion problem



Hola,


 I have just downloaded Tomcat 3.2.1 onto Windows 98 machine.


You poor thing ;)


 tomcat run


I don't know what that is, when I was running Tomcat under Windows

I just did 'tomcat start' and 'tomcat stop' as per the documentation.


 tomcat start

 2000-12-13-ContextManager: Adding context Ctx( /examples)

 Starting tomcat...

 ContexManager: Adding context Ctx(/ admin)

 ...

 2000-12-13 PoolTcpConnector: Starting HttpConnectionHandler on 88 

 2000-12-13 -PoolTcpConnector: Starting ajp2ConnectionHandler on 8007



 Has anyone seen this?


Yeah, that's what happens when Tomcat starts running.


Dave





RE: For what's it worth.

2000-12-07 Thread micky mimo
Title: RE: For what's it worth.






I agree, but like I said this is for the newbie. 


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Duane Morse [mailto:[EMAIL PROTECTED]]

Sent: Thursday, December 07, 2000 12:03 PM

To: '[EMAIL PROTECTED]'

Subject: RE: For what's it worth.



I didn't find it particularly enlightening -- it pretty much deals with just

the simple stuff.


-Original Message-

From: micky mimo [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, December 06, 2000 7:43 PM

To: [EMAIL PROTECTED]

Subject: For what's it worth.



The December issue of Java-pro magazine has an issue on Tomcat installation.

It's worth checking out if you are a newbie. 








For what's it worth.

2000-12-06 Thread micky mimo



The 
December issue of Java-pro magazine has an issue on Tomcat installation. It's 
worth checking out if you are a newbie. 



RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






You have to use the source tomcat version for 3.1. The binary version does not have the build directories. 


http://jakarta.apache.org/builds/tomcat/release/v3.1/src/


/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: tsimtung [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 1:37 PM

To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Subject: mod_jserv.so problem



I have problem in building mod_jserv.

I am using linux, and get tomcat 3.1 binary source to build tomcat.

tomcat runs smoonthly in standalone mode, and then i would like to

integrate it with apache.


I can't find the directory jakarta-tomcat/src/native/apache/jserv/ in

my jakarta-tomcat directory, src directory only has

javax and org two directories


Please help!!!

Thx



###from tomcat_ug.html##

Building mod_jserv on UNIX involves the following:


Download the source distribution of Tomcat from here.

Uncompress it into some directory.

Building the module:

Change directory into jakarta-tomcat/src/native/apache/jserv/

Execute the build command

apxs -c *.c -o mod_jserv.so

apxs is part of the Apache distribution and should be located in your

APACHE_HOME/bin.






RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






I am trying to install the adapter (mod_jserv.so) for apache + Tomcat. I keep getting the error below. I built the file mod_jserv.so from the source of tomcat 3.1. I installed the file mod_jserv.so in the libexec directory and added the include directive to the end of the httpd.conf file. I am at a loss right now on how to resolve this error.

What are the steps for loading mod_jk into apache. I tried the following but it did not work. 


I put mod_jserv.so into the /etc/httpd/libexec directory. But when I start httpd I get this error. 


[root@qatest2 init.d]# ./httpd start

Starting httpd: Syntax error on line 13 of /usr/local/tomcat/conf/tomcat.conf

Cannot load /etc/httpd/modules/mod_jserv.so into server: /etc/httpd/modules/mod_jserv.so: cannot open shared object

file: No such file or directory

FAILED]

micky 






/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Michael J. Suzio [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 2:58 PM

To: [EMAIL PROTECTED]

Subject: Re: mod_jserv.so problem



You need to actually download the source package for Tomcat. The

binary package does have a src/ directory, but it doesn't have the

native drivers code in it. I just downloaded the binary version,

installed that, then downloaded the source, compiled mod_jk (this was

for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.


I know it's confusing, but it works.


-- 

Michael J. Suzio

Lead Software Engineer -- ISS Southfield

[EMAIL PROTECTED]





RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem



Correction the error is:

Starting 
httpd
: Syntax error on line 13 of /usr/local/tomcat/conf/tomcat.conf 
Cannot load /etc/httpd/libexec/mod_jserv.so into server: 
/etc/httpd/libexec/mod_jserv.so: cannot open shared object file: No such file or directory FAILED

/===\| Micky 
Mimo 
|| Systems 
Specialist 
|| (781) 457 - 
1317 
|| [EMAIL PROTECTED] 
|\===/

  -Original Message-From: Micky Mimo 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 16, 2000 
  3:34 PMTo: [EMAIL PROTECTED]Subject: RE: 
  mod_jserv.so problem
  I am trying to install the adapter (mod_jserv.so) for apache + 
  Tomcat. I keep getting the error below. I built the file 
  mod_jserv.so from the source of tomcat 3.1. I installed the file mod_jserv.so 
  in the libexec directory and added the include directive to the end of the 
  httpd.conf file. I am at a loss right now on how to resolve this 
  error.
  What are the steps for loading mod_jk into apache. I tried the 
  following but it did not work. 
  I put mod_jserv.so into the /etc/httpd/libexec directory. But 
  when I start httpd I get this error. 
  [root@qatest2 init.d]# ./httpd start Starting httpd: Syntax error on line 13 of 
  /usr/local/tomcat/conf/tomcat.conf Cannot load 
  /etc/httpd/modules/mod_jserv.so into server: /etc/httpd/modules/mod_jserv.so: 
  cannot open shared object file: No such file or 
  directory FAILED] micky 
  
   
  /===\ | 
  Micky 
  Mimo 
  | | Systems 
  Specialist 
  | | (781) 457 - 
  1317 
  | | 
  [EMAIL PROTECTED] | 
  \===/ 
  -Original Message- From: 
  Michael J. Suzio [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 16, 2000 2:58 PM To: 
  [EMAIL PROTECTED] Subject: Re: 
  mod_jserv.so problem 
  You need to actually download the source package for 
  Tomcat. The binary package does have a src/ 
  directory, but it doesn't have the native drivers code 
  in it. I just downloaded the binary version, installed that, then downloaded the source, compiled mod_jk (this 
  was for Tomcat 3.2b7, but applies to you also), and 
  loaded that into Apache. 
  I know it's confusing, but it works. 
  -- Michael J. Suzio Lead Software Engineer -- ISS Southfield [EMAIL PROTECTED] 


RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






I believe you need the following directory scructure. This is what the README file says for the source in jakarta-tomcat 

How to Build




First, you must have the jakarta-ant workspace checked out parallel

to this workspace (jakarta-tomcat). Without jakarta-ant, you won't

be able to build. When you have completed your downloads and checkouts,

you should have the following directory structure:


 $JAKARTA_HOME/

 jakarta-ant/ -- Contains jakarta-ant files

 jakarta-tomcat/ -- Contains jakarta-tomcat files



If you get the adapter working, please send me a hint, since I am stuck. 



/===\

| Micky Mimo |

| Systems Specialist |

| (781) 457 - 1317 |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Wong, Connie [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 6:29 PM

To: [EMAIL PROTECTED]

Subject: RE: mod_jserv.so problem



Hi Michael,


I am also working on the mod_jk. My question is, do you uncompress both dowonload files (binary and source code)

into some directory jakarta-tomcat?

Or they have to be uncompressed into different directory?


Thanks,

Connie



 -Original Message-

 From: Michael J. Suzio [SMTP:[EMAIL PROTECTED]]

 Sent: Thursday, November 16, 2000 2:58 PM

 To: [EMAIL PROTECTED]

 Subject: Re: mod_jserv.so problem

 

 You need to actually download the source package for Tomcat. The

 binary package does have a src/ directory, but it doesn't have the

 native drivers code in it. I just downloaded the binary version,

 installed that, then downloaded the source, compiled mod_jk (this was

 for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.

 

 I know it's confusing, but it works.

 

 -- 

 Michael J. Suzio

 Lead Software Engineer -- ISS Southfield

 [EMAIL PROTECTED]