File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes application page shows blanks upgrading from Tomcat5.5 to tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "application page shows blanks upgrading from Tomcat5.5 to tomcat 6" Watch "application page shows blanks upgrading from Tomcat5.5 to tomcat 6" New topic
Author

application page shows blanks upgrading from Tomcat5.5 to tomcat 6

sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
Hi ,

I am running successful running my application on Tomcat 5.5 . Now we planned to go with Tomcat 6. when i deployed the same in tomcat 6 .the application page shows blank/empty.

here is the log file of tomcat 6.

Jan 13, 2010 2:47:42 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5;C:\WINDOWS\system32\AspriseJTwain.dll;C:\PBRunTime9;C:\mysql\bin;C:\apache-ant-1.6.2\bin
Jan 13, 2010 2:47:42 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Jan 13, 2010 2:47:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1082 ms
Jan 13, 2010 2:47:42 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 13, 2010 2:47:42 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jan 13, 2010 2:47:42 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
Jan 13, 2010 2:47:42 PM org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/192.168.0.27:4000
Jan 13, 2010 2:47:42 PM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Jan 13, 2010 2:47:42 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4
Jan 13, 2010 2:47:43 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
Jan 13, 2010 2:47:43 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8
Jan 13, 2010 2:47:44 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Jan 13, 2010 2:47:45 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MultiSynergyEMRIVPortal\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jan 13, 2010 2:47:45 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MultiSynergyEMRIVPortal\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class


help me..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

I don't know why the page is blank, but I see you're including servlet.jar and servelt-api.jar in your WAR. Don't do that. Not even in Tomcat 5.5. Those jars are part of Tomcat and Tomcat will make them available to the webapp. You only need to reference the servlet-api.jar for compiling.


Customer surveys are for companies who didn't pay proper attention to begin with.
sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
hi Tim


I have removed servlet.jar and servelt-api.jar in my WAR. Still the application is showing Blank page.
There is an error regarding APR

I am running Tomcat on Apache web server 2.0 for clustering and load balancing.

here is it

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5;C:\WINDOWS\system32\AspriseJTwain.dll;C:\PBRunTime9;C:\mysql\bin;C:\apache-ant-1.6.2\bin

what is it.how should i resolve it.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Ignore it.

This is an information message alerting you to the fact that there's an accelerator option available for Tomcat, which - unlike Tomcat - is based on platform-specific binary code.

Because the accelerator is not "Write Once, Run Anywhere", it has to be manually installed in an OS-specific manner, and the process can be rather difficult, in my experience.

If you have a high-volume server farm running Tomcat clusters, it may be worth the effort to install this component, but for most of us, Tomcat runs just fine without it.
sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
I am still getting blank page.
here is the log file

Jan 18, 2010 5:42:21 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet jsp is currently unavailable
Jan 18, 2010 5:42:21 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet jsp is currently unavailable
Srikanth Papishetty
Greenhorn

Joined: May 11, 2010
Posts: 1
Hi Srinivas,

I'm also getting the same error when i migrated to Tomcat6. If you resolved the problem, could you please let me know how did you do that.

Thanks in advance.

Regards
Srikanth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application page shows blanks upgrading from Tomcat5.5 to tomcat 6
 
Similar Threads
Tomcat not starting
"No configuration found for the specified action" error in struts2
Getting error----NoContextLoaderListener registered
Why NestedServletException?
Apache Tomcat: startup failed due to previous errors