RE: Assistance required

2006-02-16 Thread Medha Parathasarathy
I have gone through the server.xml model given by the tomcat site.
However when i try to test the connectivity using a java program :


import java.sql.*;

public class jdbc
{
public static void main(String args[]) throws Exception
{
Class.forName(com.mysql.jdbc.Driver);
Connection con = 
DriverManager.getConnection(jdbc:mysql://localhost/B2BData);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(select * from admuser);
while(rs.next())
{
System.out.println(rs.getString(1));
}
con.close();
}
}

===
when i compile the program with javac jdbc.java no eror is given however
when i run the program i get the following errors :

java ./jdbc
Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)

Now i donot know what to do further.

Regards


Sarathy


On Thu, 16 Feb 2006 15:41:49 +0530, Awaneesh Shatmanyu
[EMAIL PROTECTED] said:
 Hi,
 
 You can visit the site www.coreservlets.com , it will help to configure
 the Tomcat.
 You would be able to get the examples of server.xml and web.xml too.
 
 Regards,
 Awaneesh Shatmanyu
 
 
 
 -Original Message-
 From: Medha Parathasarathy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 11:29 AM
 To: Tomcat Users List
 Subject: Assistance required
 
 Hi,
 
 I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
 am facing problem in the configuration of jdbc. Can some body assist me
 with a prototype of server.xml and web.xml
 
 environement fedore core4 
 
 regards
 
 
 -- 
 http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This email may contain confidential or privileged information for the 
 intended recipient(s) and the views expressed in the same are not 
 necessarily the views of Zensar Technologies Ltd. If you are not the
 intended 
 recipient or have received this e-mail by error, its use is strictly 
 prohibited, please delete the e-mail and notify the sender. Zensar 
 Technologies Ltd. does not accept any liability for virus infected mails.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
http://www.fastmail.fm - Access all of your messages and folders
  wherever you are


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



RE: Assistance required

2006-02-16 Thread Medha Parathasarathy
I have gone through the server.xml model given by the tomcat site.
However when i try to test the connectivity using a java program :


import java.sql.*;

public class jdbc
{
public static void main(String args[]) throws Exception
{
Class.forName(com.mysql.jdbc.Driver);
Connection con = 
DriverManager.getConnection(jdbc:mysql://localhost/B2BData);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(select * from admuser);
while(rs.next())
{
System.out.println(rs.getString(1));
}
con.close();
}
}

===
when i compile the program with javac jdbc.java no eror is given however
when i run the program i get the following errors :

java ./jdbc
Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)

Now i donot know what to do further.

Regards


Sarathy


On Thu, 16 Feb 2006 15:41:49 +0530, Awaneesh Shatmanyu
[EMAIL PROTECTED] said:
 Hi,
 
 You can visit the site www.coreservlets.com , it will help to configure
 the Tomcat.
 You would be able to get the examples of server.xml and web.xml too.
 
 Regards,
 Awaneesh Shatmanyu
 
 
 
 -Original Message-
 From: Medha Parathasarathy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 16, 2006 11:29 AM
 To: Tomcat Users List
 Subject: Assistance required
 
 Hi,
 
 I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
 am facing problem in the configuration of jdbc. Can some body assist me
 with a prototype of server.xml and web.xml
 
 environement fedore core4 
 
 regards
 
 
 -- 
 http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This email may contain confidential or privileged information for the 
 intended recipient(s) and the views expressed in the same are not 
 necessarily the views of Zensar Technologies Ltd. If you are not the
 intended 
 recipient or have received this e-mail by error, its use is strictly 
 prohibited, please delete the e-mail and notify the sender. Zensar 
 Technologies Ltd. does not accept any liability for virus infected mails.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
http://www.fastmail.fm - Access your email from home and the web


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



Re: Assistance required

2006-02-16 Thread Medha Parathasarathy
I am using tomcat 5 which come along the fedora core 4

Regards


Sarathy
On Thu, 16 Feb 2006 03:02:34 -0500, Parsons Technical Services
[EMAIL PROTECTED] said:
 Search the archives as this has been done many times on the list. Links
 are 
 available on the website along with some basic instructions.
 
 Secondly we would also need the Tomcat version you are running in order
 to 
 assist you.
 
 Doug
 
 - Original Message - 
 From: Medha Parathasarathy [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, February 16, 2006 12:58 AM
 Subject: Assistance required
 
 
  Hi,
 
  I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
  am facing problem in the configuration of jdbc. Can some body assist me
  with a prototype of server.xml and web.xml
 
  environement fedore core4
 
  regards
 
 
  -- 
  http://www.fastmail.fm - A no graphics, no pop-ups email service
 
 
  -
  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]
 

-- 
http://www.fastmail.fm - Accessible with your email software
  or over the web


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



Assistance required

2006-02-15 Thread Medha Parathasarathy
Hi,

I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
am facing problem in the configuration of jdbc. Can some body assist me
with a prototype of server.xml and web.xml

environement fedore core4 

regards


-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


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



jdbc with tomcat5 and mysql - fedora core4

2006-02-12 Thread Medha Parathasarathy
Hi,

I am trying to migrate my application from fedora core 3 to 4. tomcat 5
is working, mysql is working.  I had downloaded the latest version of
jdbc driver from mysql.com.
mysql-connector-java-3.1.12-bin.jar.

I had copied the same to lib directory of webapps/ROOT where the
application was copied to make it work.

I had taken help from a site to create jdbc.java file to compile and run
to see whether the connection is working.
http://www.dantullis.com/howtos/rh9_apache2_tomcat5_mysql413_howto6.html

While compiling [ java as it is coming with fc4 ] no error is given but
tried to run, it gives the following error.

[EMAIL PROTECTED] ROOT]# java ./jdbc
Exception in thread main java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
[EMAIL PROTECTED] ROOT]#

can some body help me.

Regards


Sarathy

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


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



Tomcat compression not working for data sent by server only - compression works for receipt from browser

2006-02-08 Thread Medha Parathasarathy
We have a small application running on tomcat 5.5. We tried to enable
compression. The same is working on communcation received from the
browser[ at around 50% ]. But the data sent from the server gets an
compression of only 1%.   Had anybody used this feature. How ensure that
the compression is uniform data received and sent.

Regards


Sarathy
On Wed, 8 Feb 2006 08:11:00 -0200, Letícia Álvares Barbalho
[EMAIL PROTECTED] said:
 Anyone?
 
 On 2/7/06, Letícia Álvares Barbalho [EMAIL PROTECTED] wrote:
 
  Hello everyone,
 
  I developed my webapp using netbeans and its embedded tomcat. I did some
  reports in jasper reports and they were working just fine with the embedded
  tomcat.
 
  Then, I moved my app to the tomcat directory in the server (which is the
  same machine) and the reports stopped working. They don't work locally in
  the server and they don't work when accessing the app from any other client
  machine (being linux or windows).
 
  At first, I was getting the following error:
 
  java.lang.InternalError: Can't connect to X11 window server using ':0.0
  ' as the value of the DISPLAY variable.
  sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
  sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:134)
  java.lang.Class.forName0(Native Method)
 
  java.lang.Class.forName(Class.java:141)
  
  java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
 
 
 
  Through google I found out that I should use the catalina.sh file to set:
 
   JAVA_OPTS=-Djava.awt.headless=true
 
 
 
  I did it, but it did not solve the problem. It changed the error. Now I
  have:
 
  java.awt.HeadlessException
  java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
  java.awt.Window.init(Window.java:274)
  java.awt.Frame.init(Frame.java:401)
  java.awt.Frame
  .init(Frame.java:366)
  javax.swing.JFrame.init(JFrame.java:154)
  net.sf.jasperreports.view.JasperViewer.init(JasperViewer.java:144)
 
  I tried google, but couldn't find a solution for it. Can someone help,
  please? Other important data about my server:
 
  leticia:/home/leticia # java -version
  java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition
  (build 1.4.2_06-b03)
  Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
  leticia:/home/leticia # echo $JAVA_HOME
  /usr/lib/jvm/java
  leticia:/home/leticia # echo $PATH
  /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
 
  Since it's working fine in the netbeans embedded tomcat and not in my
  linux server tomcat, I suppose the problem is in tomcat configuration. Both
  tomcat's are in the same computer.
 
  Any help is appreciated
 
  Thanks
 
  --
  Letícia Álvares Barbalho
  [EMAIL PROTECTED]
 
 
 
 
 --
 Letícia Álvares Barbalho
 [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
  unladen european swallow


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