Re: Tale of two servers

2005-02-10 Thread Vinny
More details please. Are both machine running the same version of Java.
Are they both connecting to an external database? Exact same versions 
of Tomcat 5.5.x ?


On Thu, 10 Feb 2005 01:19:10 -0800 (PST), Dola Woolfe
[EMAIL PROTECTED] wrote:
 Hi,
 
 I'm running TC5.5 on two different servers in the same
 office. Both run XP Pro SP2. Both servers are
 programmatically queried by users and are bombarded
 with thousands of requests.
 
 One of the servers responds much more quickly than the
 other. In fact, one of them causes timeouts.
 
 The offender is a super duper new dell desktop with
 4gb of ram, etc. It's running java 1.5 and is
 committed to nothing by tomcat.
 
 The winner is a rinky-dink 2 year old laptop with
 little ram, and lots of spyware sucking out cpu.
 
 So this is obviously counterintuitive and I'm
 wondering if anyone could suggest where to begin
 looking for problems!
 
 Many thank in advance,
 
 Dola
 
 __
 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]
 


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



Re: jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-02 Thread Vinny
I am having the same issue. My absolute uri'd  tld are not getting resolved.
Also I am getting this error when I try running my struts app:

ERROR: 2005-02-02 14:45:27,578: ApplicationDispatcher:
Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:162)
at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



On Tue, 1 Feb 2005 09:55:12 -0600, Jason Schuchert [EMAIL PROTECTED] wrote:
 i upgraded to 5.5.7 this weekend and noticed that my ant jsp precompile task 
 was failing for .jsp files that were referencing taglibs.  it gave a message 
 like:
 
 org.apache.jasper.JasperException: The absolute uri: 
 http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the 
 jar files deployed with this application
 
 the line in the offending jsp looks like:
 
 %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
 
 if i go into the jstl taglib jar file and grab the sql.tld file and put it 
 into my WEB-INF then the jspc task works.
 
 in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just 
 found in the .jar file of the tag library)
 
 anybody hitting similar issues?  was there a change in the jspc code that 
 intentionally makes this not work in 5.5.7?
 
 thanks!
 
 -jason
 


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



Help with configuring

2003-12-26 Thread Vinny
Hello.

I just installed Apache 2.0.48 and Tomcat 5.0.16 (using a Java 2 1.4 SDK) on
Windows XP Home (It's a development environment, on my laptop). I'm having a
bit of trouble getting the two to play together.

I installed both of them using the provided binaries off the Apache project
servers, and both seem to be running, there are tray icons both showing
green, no obvious errors. In addition, when I navigate to http://localhost,
I can see the default Apache page.

I have CATALINA_HOME and JAVA_HOME environmental variables set as well.

I can't access the Tomcat configuration page (the program files group links
to http://127.0.01/admin as the configuration page, but it shows up as a
404). I haven't done any config other than run the installation routines.
What other things do I need to set up and/or check? I did read the manual,
but all it said was that for Windows, I should just run the installation
routine. Should I downgrade to Apache 1.3.29, or anything else? Thanks in
advance.

-Vinny


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



Re: Help with configuring

2003-12-26 Thread Vinny
Thank you for the link. I managed to get everything set up (I used mod_jk).
Without the link, I wouldn't have known mod_jk was even needed... Although,
I have a few tiny questions:

When I navigate to http://localhost, I get a Tomcat home page (not the
Apache default one). http://localhost/admin also works now. But it seems
that Apache is now using Tomcat's help site as root, instead of %Apache
Directory%/htdocs, the default earlier. In addition, when I look at XP's
Services menu, it does NOT show the Apache webserver as Started. It shows
Tomcat has started, though. And, to make matters worse, the Apache tray icon
shows red, and when I bring up the Apache monitor and click the Start
button, it says an error has occured, unable to start.

So, what have I done here? Not that I'm complaining; I can now test my
servlets and JSP pages before sending them to the production server. Why is
Apache the http server giving errors, when obviously it's serving pages as
localhost? I fixed up everything as it says in the Wiki, and by all
accounts, the default root should still be in the Apache http server
/htdocs/ directory. So, what's wrong with this picture?

Also, where do I dl the javax.servlet class files for the java compiler?

Thanks

-Vinny.


 Vinny,

 I don't know if anyone responded to you.

 Try the following link for instructions for either mod_jk or mod_jk2.

 http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

 I just went through the instructions for mod_jk2 and got up and running
 in a few minutes.

 I'm using:
 Windows 2000 server
 Tomcat 4.1.29
 Apache 2.0.48
 J2SDK 1.4.2
 Mysql 4.1.0



 On Fri, 26 Dec 2003 13:00:12 -0600, Vinny wrote:

 Hello.
 
 I just installed Apache 2.0.48 and Tomcat 5.0.16 (using a Java 2 1.4 SDK)
on
 Windows XP Home (It's a development environment, on my laptop). I'm
having a
 bit of trouble getting the two to play together.
 
 I installed both of them using the provided binaries off the Apache
project
 servers, and both seem to be running, there are tray icons both showing
 green, no obvious errors. In addition, when I navigate to
http://localhost,
 I can see the default Apache page.
 
 I have CATALINA_HOME and JAVA_HOME environmental variables set as well.
 
 I can't access the Tomcat configuration page (the program files group
links
 to http://127.0.01/admin as the configuration page, but it shows up as a
 404). I haven't done any config other than run the installation routines.
 What other things do I need to set up and/or check? I did read the
manual,
 but all it said was that for Windows, I should just run the installation
 routine. Should I downgrade to Apache 1.3.29, or anything else? Thanks in
 advance.
 
 -Vinny


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



sessions in tomcat

2002-02-27 Thread vinny patel

hi,
i am having problems creating a session id of my own.
i have tried the setId(), but comes up with a error
message when it comes it compiling it

can someone please help me!

thanks

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




JDBC

2002-02-11 Thread vinny patel

I am having problems with my servlets that connect to a postgres
database. I am using the Tomcat 4, if anyone has any suggestions, i would be 
gratefull!

thanks

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: JDBC

2002-02-11 Thread vinny patel

this is the error message

**
Cant find database Driver class: java.lang.ClassNotFoundException: 
postgresql.Driver
SQL Exception java.sql.SQLException: No suitable driver
**

and heres the coding

*
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

  public class hotellist extends HttpServlet
  {
   public void doGet(HttpServletRequest req,
 HttpServletResponse res)
   throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter out = res.getWriter();
 String url =
   jdbc:postgresql://dcsun2/dwt;
 String query =  select name,city from hotels order by city,name;

 out.println(HTML);
 out.println(BODY);


 try
 {
   Class.forName(postgresql.Driver);
 }
 catch(java.lang.ClassNotFoundException ex1)
 {
   out.println(Cant find database Driver class:  + ex1 +BR);
 }

 try{
   Connection con = 
DriverManager.getConnection(url,wwwuser,wwwuser);
   Statement stmt = con.createStatement();
   ResultSet rs =stmt.executeQuery(query);
   out.println(P STRONGHotel ---   City/STRONG);
   while (rs.next())
   {
 String hotelName = rs.getString(1);
 String cityName = rs.getString(2);
 out.println(BR  + hotelName +  ,  + cityName);
   }
   out.println(/P);
   stmt.close();
   con.close();
 }
 catch(SQLException ex2)
 {
   out.println(SQL Exception  + ex2);
 }
 out.println(/HTML);
 out.println(/BODY);
   }
}


***

i believe it's something to do with the postgres driver?

cheers


From: Brian Adams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JDBC
Date: Mon, 11 Feb 2002 06:33:35 -0600

what problems are you having?  can you post an error or code or both?
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:48 AM
To: [EMAIL PROTECTED]
Subject: JDBC


I am having problems with my servlets that connect to a postgres
database. I am using the Tomcat 4, if anyone has any suggestions, i would 
be

gratefull!

thanks

_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
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]



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: JDBC

2002-02-11 Thread vinny patel


sorted!

thanks brian, i'll buy u a drink if i ever go to the states!!
cheers

From: Brian Adams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JDBC
Date: Mon, 11 Feb 2002 06:53:58 -0600

where did you put your jdbc driver jar?  mine is named jdbc7.0-1.2.jar and
it is in my tomcat's common\lib directory.
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC


this is the error message

**
Cant find database Driver class: java.lang.ClassNotFoundException:
postgresql.Driver
SQL Exception java.sql.SQLException: No suitable driver
**

and heres the coding

*
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

   public class hotellist extends HttpServlet
   {
public void doGet(HttpServletRequest req,
  HttpServletResponse res)
throws ServletException, IOException
{
  res.setContentType(text/html);
  PrintWriter out = res.getWriter();
  String url =
jdbc:postgresql://dcsun2/dwt;
  String query =  select name,city from hotels order by city,name;

  out.println(HTML);
  out.println(BODY);


  try
  {
Class.forName(postgresql.Driver);
  }
  catch(java.lang.ClassNotFoundException ex1)
  {
out.println(Cant find database Driver class:  + ex1 +BR);
  }

  try{
Connection con =
DriverManager.getConnection(url,wwwuser,wwwuser);
Statement stmt = con.createStatement();
ResultSet rs =stmt.executeQuery(query);
out.println(P STRONGHotel ---   City/STRONG);
while (rs.next())
{
  String hotelName = rs.getString(1);
  String cityName = rs.getString(2);
  out.println(BR  + hotelName +  ,  + cityName);
}
out.println(/P);
stmt.close();
con.close();
  }
  catch(SQLException ex2)
  {
out.println(SQL Exception  + ex2);
  }
  out.println(/HTML);
  out.println(/BODY);
}
}


***

i believe it's something to do with the postgres driver?

cheers


 From: Brian Adams [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: JDBC
 Date: Mon, 11 Feb 2002 06:33:35 -0600
 
 what problems are you having?  can you post an error or code or both?
 B
 
 -Original Message-
 From: vinny patel [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 11, 2002 3:48 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC
 
 
 I am having problems with my servlets that connect to a postgres
 database. I am using the Tomcat 4, if anyone has any suggestions, i would
 be
 
 gratefull!
 
 thanks
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 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]
 


_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
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]



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




omegacms

2001-06-19 Thread Vinny

Hello,
has any one tried installing omegacms on tomcat?
I have a fresh install of tomcat 3.2.2 that is working
fine on redhat linux 7.1. The app cannot find it's properties
file no matter where I put it. Unfortunately, it seems to be closed
source so I can't figure out where it is trying to look for the
conf.properties file.
The error message I get from Tomcat is :

config.properties not found when trying to load properties: 
config.properties in ./bin/../lib/test//usr/java/jdk1.3.1/

The docs say to have  config.properties in the classpath, so I put it
in myApp/WEB-INF/classes, I even tried putting it in TOMCAT_HOME/lib
to no avail. Why Oh Why don't people use the jsp/servlet specs on
directory structure organization?

Anyone experienced in making this thing work?
Thanks in Advance

Vincent





Re: omegacms, thanks and a new problem: compile errors

2001-06-19 Thread Vinny

Thank you very much, I had to explicitly put the omega jar  and the 
directory containing the property file in my unix shell's classpath.
Now the problem I'm running into is that some pages are getting compile
error messages.




  2001-06-19 12:07:40 - Ctx( /omega ): JasperException: R( /omega + 
/admin/hello.jsp + null) Unable to compile class for 
JSP/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fomega/_0002fadmin_0002fhello_0002ejsphello_jsp_0.java:61:
 
Incompatible type for method. Can't convert void to char[].
 out.print( out.print(!) );



the hello.jsp file contains:


h2Hello World
%=out.print(!) %
/h2



what's going on?
Thanks again in advance.






Randy Layman wrote:

   If you're on UNIX, add it to TOMCAT_HOME/classes, if you're on NT
 you'll need to modify the tomcat.bat file so that Tomcat adds this directory
 to its automatically built classpath.  Another option it to add the
 conf.properties to the CLASSPATH environment variable.
 
   In either case, there are some ways that you can request resources
 that cause the wrong class loader to be used, which it seems is happening
 here.  Since its closed source, there really is no way around this.
 
   Randy
 
 
-Original Message-
From: Vincent Stoessel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 11:17 AM
To: Tomcat Users








Re: omegacms, thanks and a new problem: compile errors

2001-06-19 Thread Vinny

Figured it out, this statement needed a semicolon to work.
Thanks all.

Vinny wrote:

 Thank you very much, I had to explicitly put the omega jar  and the 
 directory containing the property file in my unix shell's classpath.
 Now the problem I'm running into is that some pages are getting compile
 error messages.
 
 
 
 
  2001-06-19 12:07:40 - Ctx( /omega ): JasperException: R( /omega + 
 /admin/hello.jsp + null) Unable to compile class for 
 
JSP/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fomega/_0002fadmin_0002fhello_0002ejsphello_jsp_0.java:61:
 
 Incompatible type for method. Can't convert void to char[].
 out.print( out.print(!) );
 
 
 
 the hello.jsp file contains:
 
 
 h2Hello World
 %=out.print(!) %
 /h2
 
 
 
 what's going on?
 Thanks again in advance.
 
 
 
 
 
 
 Randy Layman wrote:
 
 If you're on UNIX, add it to TOMCAT_HOME/classes, if you're on NT
 you'll need to modify the tomcat.bat file so that Tomcat adds this 
 directory
 to its automatically built classpath.  Another option it to add the
 conf.properties to the CLASSPATH environment variable.

 In either case, there are some ways that you can request resources
 that cause the wrong class loader to be used, which it seems is happening
 here.  Since its closed source, there really is no way around this.

 Randy


 -Original Message-
 From: Vincent Stoessel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 11:17 AM
 To: Tomcat Users



 
 






Re: writing jsp output to a file

2000-11-14 Thread Vinny

try this:


%@ page import="java.io.*" %
%


FileWriter tempFile = new FileWriter("/tmp/gold.txt",false);
String data = "To be or not to be";
PrintWriter toFile = new PrintWriter(tempFile);
toFile.println(data);
toFile.close();


%


this writes "To be or not to be" into /tmp/gold.txt on a unix system

Juan Ramirez wrote:

 I would like to write the output of a jsp file to a static html file
 instead of sending it out to a browser.  I have a pagebuilding system
 that uses the power of jsp to do a lot of things, but I need to write
 the resulting jsp to a file instead of streaming it out.  Has anyone
 done anything like this?
 
 Thanks.
 
 Juan




which version for production?

2000-11-10 Thread Vinny

I'm designing some jsp and servlet apps that will be used
to extend some of the functionalities of php-based site on
linux platform. I have tomcat 3.2 b6 working fine, should I stay
with this or try to 4.0 beta?

How is 3.2 vs 4.0 in terms of

1. performance
2. scalabilty
3. memory
4. Stability



I'm trying to keep everything very low cost (free)
in the great tradition of LAMP (Linux Apache Mysql Php)

IBM vs Sun/Blackdown (currently using blackdown jdk 1.3)
Jikes vs other free compilers?


Comments are very welcome
Thanks in advance