Problem in starting tomcat

2008-06-09 Thread Raghavan_sat

Hi,
   I downloaded apache-tomcat-5.5.23.tar.gz and extracted it. Am using jdk
1.6.0_05.
When i start tomcat it starts fine and no error is been shown in the
catalina.out. But when i open the browser and load http://localhost:8080/
its showing a blank page. The OS is Fedora 8. What should i do to make it
work
-- 
View this message in context: 
http://www.nabble.com/Problem-in-starting-tomcat-tp17732711p17732711.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Taking Backup of tomcat server

2008-05-14 Thread Raghavan_sat

Hi
   I want to take a backup of my tomcat server regularly so that if the
server crashes i can use the backup in another system. How can i accomplish
this..
-- 
View this message in context: 
http://www.nabble.com/Taking-Backup-of-tomcat-server-tp17232367p17232367.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Problem in running Tomcat

2008-04-01 Thread Raghavan_sat



David Smith-2 wrote:
 
 tomcat 5 w/ gcj -- either get rid of it or take this conversation to the 
 yum folks.  We support tomcat as provided by Apache using primarily Sun 
 Java although I'm sure people have had success with IBM's jvm.  Other 
 packaging methods introduce lot's of symlinks and at times alterations 
 in the source to match those packaging schemes.
 
 Regarding tomcat5 and sun jvm 1.6, I'm not seeing any jvm 1.6 in your 
 stack trace below.  On the contrary, it indicates tomcat 5.5.26 and jdk 
 1.5.0_14.  Can you post what's in your catalina.out file as found in the 
 logs directory of your tomcat install?  I think we've asked for this 
 before and you didn't reply.
 
 --David
 
 
 Raghavan_sat wrote:
 Hi,
I installed tomcat5 using yum and it installed lot of dependencies...
 This tomcat uses gcj java to run and is running fine.. But my Servlet
 program cannot be compiled with this gcj javaSo i installed JDK1.6
 and
 changed the java using alternatives command and compiled it But with
 this java being selected my tomcat is not running... its showing lock
 file
 found but no process running for pid .  So i downloaded separate
 tomcat - apache tomcat 5 and extracted it... it starts fine with jdk 1.6
 but
 when i use my servlet it just goes off.. Following that if i shutdown
 tomcat
 it shows 
 Using CATALINA_BASE:   /root/apache-tomcat-5.5.26
 Using CATALINA_HOME:   /root/apache-tomcat-5.5.26
 Using CATALINA_TMPDIR: /root/apache-tomcat-5.5.26/temp
 Using JRE_HOME:   /usr/java/jdk1.5.0_14/
 Mar 29, 2008 6:53:57 PM org.apache.catalina.startup.Catalina stopServer
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:520)
 at java.net.Socket.connect(Socket.java:470)
 at java.net.Socket.init(Socket.java:367)
 at java.net.Socket.init(Socket.java:180)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435) 


 So my problem is tomcat5(yum) with gcj java is not compiling my servlet
 and
 tomcat5(downloaded) with jdk1.6 is not at all running.. what can i do to
 run
 my servlet :(
   
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 




Apr 1, 2008 10:24:19 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/java/jdk1.6.0_05/jre/lib/i386/client:/usr/java/jdk1.6.0_05/jre/lib/i386:/usr/java/jdk1.6.0_05/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Apr 1, 2008 10:24:19 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Apr 1, 2008 10:24:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1613 ms
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Apr 1, 2008 10:24:19 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 1, 2008 10:24:20 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Apr 1, 2008 10:24:21 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Apr 1, 2008 10:24:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 1, 2008 10:24:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/108  config=null
Apr 1, 2008 10:24:22 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 1, 2008 10:24:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup

Problem in running Tomcat

2008-03-30 Thread Raghavan_sat

Hi,
   I installed tomcat5 using yum and it installed lot of dependencies...
This tomcat uses gcj java to run and is running fine.. But my Servlet
program cannot be compiled with this gcj javaSo i installed JDK1.6 and
changed the java using alternatives command and compiled it But with
this java being selected my tomcat is not running... its showing lock file
found but no process running for pid .  So i downloaded separate
tomcat - apache tomcat 5 and extracted it... it starts fine with jdk 1.6 but
when i use my servlet it just goes off.. Following that if i shutdown tomcat
it shows 
Using CATALINA_BASE:   /root/apache-tomcat-5.5.26
Using CATALINA_HOME:   /root/apache-tomcat-5.5.26
Using CATALINA_TMPDIR: /root/apache-tomcat-5.5.26/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_14/
Mar 29, 2008 6:53:57 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.init(Socket.java:367)
at java.net.Socket.init(Socket.java:180)
at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435) 


So my problem is tomcat5(yum) with gcj java is not compiling my servlet and
tomcat5(downloaded) with jdk1.6 is not at all running.. what can i do to run
my servlet :(
-- 
View this message in context: 
http://www.nabble.com/Problem-in-running-Tomcat-tp16383891p16383891.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Problem in Running a servlet

2008-03-29 Thread Raghavan_sat

Hi,
  I have a servlet program that works fine under tomcat running in
windows... But the same servlet program is not running under tomcat running
in fedora... when i access this servlet tomcat just goes off.. in the sense
i was even unable access the home page which i can easily do before running
this servlet.. so when i use the following command after this problem

sh shutdown.sh 

am getting this error

what should i do.
Using CATALINA_BASE:   /root/apache-tomcat-5.5.26
Using CATALINA_HOME:   /root/apache-tomcat-5.5.26
Using CATALINA_TMPDIR: /root/apache-tomcat-5.5.26/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_14/
Mar 29, 2008 6:53:57 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop: 
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.init(Socket.java:367)
at java.net.Socket.init(Socket.java:180)
at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

-- 
View this message in context: 
http://www.nabble.com/Problem-in-Running-a-servlet-tp16369994p16369994.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Problem in running servlet

2008-03-05 Thread Raghavan_sat

Hi
Am getting this error when running a servlet.

type Exception report

message

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

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
tomcat.impl.PluginServlet or a class it depends on
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

root cause

java.lang.ClassNotFoundException: tomcat.impl.PluginServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.26 logs.

Why am i getting this error. can anyone help me. i have the jar files
necessary but where should i place them 
-- 
View this message in context: 
http://www.nabble.com/Problem-in-running-servlet-tp15851685p15851685.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



MbeanServer Problem

2008-03-05 Thread Raghavan_sat

Hi
  The following line in my code just prints a null array.

 Set hostsON = mBeanServer.queryNames(queryHosts, null);

Is mbeanserver not having anything. am new to this. help me on this 

try
{
  String msg=\n;
  String msg2=null;
  int flag=0;
  String onStr = JMImplementation:type=MBeanServerDelegate;
  ObjectName objectName = new ObjectName(onStr);
  mBeanServer.addNotificationListener(objectName, this, null, null);

//QUERIES THE JSR MANAGED OBJECT FOR RETRIEVING THE LIST OF WEB APPLICATIONS
LAUNCHED ON TOMACT SERVER
  ObjectName queryHosts = new ObjectName(*:j2eeType=WebModule,*);
  Set hostsON = mBeanServer.queryNames(queryHosts, null);
  int count = 1;
  Iterator iterator = hostsON.iterator();
  while (iterator.hasNext()) 
  {
   ObjectName contextON = (ObjectName) iterator.next();
   String webModuleName = contextON.getKeyProperty(name); 
   if (webModuleName.startsWith(//)) 
   {
 webModuleName = webModuleName.substring(2);
   }
   int slash = webModuleName.indexOf(/);
   if (slash == -1) 
   {
 count++;
 continue;
   }
calc(contextON,mBeanServer,webModuleName);
  } 
  msg=msg+get();
  op.writeUTF(msg);
  String status=checkStatus();
  op.writeUTF(status);
} 
catch (Exception e) 
{
Object o=e.toString();
try
{

JOptionPane.showMessageDialog(null,e,SessionBean Error!,1); 
op.writeUTF(o.toString());
}
catch(Exception e1)
{
;
}
}  
-- 
View this message in context: 
http://www.nabble.com/MbeanServer-Problem-tp15852122p15852122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Status report

2008-02-06 Thread Raghavan_sat

I am new to tomcat and would like to know a thing. am having tomcat 6. it has
a status manager that gives reports on the inbuilt examples within tomcat
when executed. for example when i execute helloworld the
processingtime,threadcount and things like these are shown. will these be
written to an log file
-- 
View this message in context: 
http://www.nabble.com/Status-report-tp15309794p15309794.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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