Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

basic Tomcat deployment

 
Nick D Fisher
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've written my simple JSP application using JDeveloper 10g, and I'm now trying to deploy it to work on an HP-UX server with Tomcat 4.0.

I've managed to get it running from Tomcat on Windows by copying some basic jars and classes to the C:\tomcat\common\classes directory, and everything works fine.

However, I have now tried copying these same files to the same installation on my HP-UX server and I'm getting hundreds of errors. Every time I sort one out it gives me another.

I'm just wondering what would be the basic files I'd need to deploy to my Tomcat server in order to get just a simple page like the following to compile?


<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<jbo:ApplicationModule id="AppModuleDataControl" definition="DataBindings.AppModuleDataControl" releasemode="Stateful" />
</body>
</html>
<jbo:ReleasePageResources />


I've already copied some of the obvious files like DataTags.tld, datatags.jar, bc4jhtml.jar, and made sure they're on the Classpath, but it's not working like it is on Windows.

I'm sure once I know what the basic files are, I can easily work the rest out for myself.

Any help much appreciated!

Many thanks,

Nick.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nick,
Try to put a simple jsp page which just says "Hello world" or something and try to run that and see if you basic setup is good in HP-UX server. If this is success, then try your own page. If you still get errors look in to the tomcat logs and post some of the errors here which will give us better idea to help you.
 
Nick D Fisher
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sivaraman,

Yes, just a normal jsp page on it's own works fine. All the default jsp example pages are working.

It also works fine if I use the following code:

<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>

hello world

</body>
</html>

So I know it's picking up my DataTags.tld file ok. It's only when you add the ApplicationModule tag that things start to go wrong. This is the error that appears in my browser:


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Unknown Source)
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
org.apache.jsp.test3_jsp._jspService(org.apache.jsp.test3_jsp:89)
org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
org.apache.jasper.servlet.JspServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError
oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:152)
org.apache.jsp.test3_jsp._jspService(org.apache.jsp.test3_jsp:72)
org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
org.apache.jasper.servlet.JspServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



Nick
 
Nick D Fisher
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?!

I've been working on this all weekend but still not found a solution. :-/

Cheers,

Nick
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.NoClassDefFoundError sounds like some sort of version clash to me. What are the versions of Java and Tomcat on the system that does work versus the versions on the system that doesn't.
NOTE: Tomcat pays NO attention to classpath environment settings - see the tomcat docs on class-loader-howto.html
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your app?
Where is your custom tag's TLD?
Where are the classes for your custom tags?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic