Your trace indicates that you're missing the javac compiler, which is in the
tools.jar archive distributed with the jdk. Add it and you should be good to
go.
psn
on 1/4/01 10:35 AM, Kemp Randy-W18971 at [EMAIL PROTECTED] wrote:
> Yesterday, I posted that I had problems with the deployment descriptor when
> moving from Orion to Jboss, using the CMP primer example at www.jollem.com.
> The code was given in a zip file, including the deployment descriptor and the
> ant file. The suggestion was made to remove the doc type from the deployment
> descriptor. I did that and placed the resulting ear file in the deploy
> directory of Jboss and got the first step OK, but had problems transferring to
> the JSP page. Everything works fine in Orion. Here is the first page
> displayed:
>
> Step 1:
>
> http://localhost:8080/addressbook-web/index.html
> Addressbook application
> Welcome to this sample addressbook application.
> * Open the addressbook <list.jsp>
>
> Step 2:
> Click on open address book and get:
>
> http://localhost:8080/addressbook-web/list.jsp
>
> Error: 500
> Location: /addressbook-web/list.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpCon
> nectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> at org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:160)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:156)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ
> let.java:152)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java
> :164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpCon
> nectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> Here is the jboss log:
>
> D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.0-FINAL\bin>set
> TOMCAT_
> HOME=..\..\tomcat-3.2-b7
>
> D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.0-FINAL\bin>.\run
> tomca
> t
> Using configuration "tomcat"
> [Console logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [File logging] Initializing
> [File logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [Info] Java version: 1.3.0,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
> [Info] System: Windows 2000 5.0,x86
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
> [JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
> [Webserver] Initializing
> [Webserver] Initialized
> [Hypersonic] Initializing
> [Hypersonic] Initialized
> [Naming] Initializing
> [Naming] Naming started on port 1099
> [Naming] Initialized
> [Transaction manager] Initializing
> [Transaction manager] Initialized
> [JAAS Security Manager] Initializing
> [JAAS Security Manager] Initialized
> [Simple Realm Mapping] Initializing
> [Simple Realm Mapping] Initialized
> [Security manager] Initializing
> [Security manager] Initialized
> [InstantDB] Initializing
> [InstantDB] Initialized
> [DefaultDS] Initializing
> [DefaultDS] Initialized
> [Container factory] Initializing
> [Container factory] Initialized
> [Auto deploy] Watching
> D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\jboss-2.
> 0-FINAL\deploy
> [Auto deploy] Initializing
> [Auto deploy] Initialized
> [JMX RMI Adaptor] Initializing
> [JMX RMI Adaptor] Initialized
> [JMX RMI Connector] Initializing
> [JMX RMI Connector] Initialized
> [Configuration] Initializing
> [Configuration] Initialized
> [J2EE Deployer] Initializing
> [J2EE Deployer] Initialized
> [EmbeddedTomcat] Initializing
> [EmbeddedTomcat] Initialized
> [SpyderMQ] Initializing
> [SpyderMQ] Initialized
> [EmbeddedTomcat] Starting
> [EmbeddedTomcat] Testing if Tomcat is present....
> [EmbeddedTomcat] OK
> [EmbeddedTomcat] ContextManager: Adding context Ctx( )
> [EmbeddedTomcat] path="" :org.apache.jasper.servlet.JspServlet: init
> [EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080
> [EmbeddedTomcat] Started
> [Simple Realm Mapping] Starting
> [Simple Realm Mapping] Started
> [Webserver] Starting
> [Webserver] Codebase set to http://IL93-1093:8083/
> [Webserver] Started webserver on port 8083
> [Webserver] Started
> [Transaction manager] Starting
> [Transaction manager] Started
> [Hypersonic] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Database started
> [Hypersonic] Started
> [Naming] Starting
> [Naming] Started
> [InstantDB] Starting
> [Hypersonic] Press [Ctrl]+[C] to abort
> [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> Enhydra InstantDB - Version 3.21
> [InstantDB] The Initial Developer of the Original Code is Lutris Technologies
> In
> c.
> Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies,
> Inc.
>
> All Rights Reserved.
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [JAAS Security Manager] Starting
> [JAAS Security Manager] Started
> [Container factory] Starting
> [Container factory] Started
> [J2EE Deployer] Starting
> [J2EE Deployer] Cleaning up deployment directory
> file:/D:/JavaServletProducts/jb
> oss-tomcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/
> [J2EE Deployer] Started
> [Security manager] Starting
> [Security manager] Started
> [Auto deploy] Starting
> [Auto deploy] Auto deploy of
> file:/D:/JavaServletProducts/jboss-tomcat/jboss_tom
> cat/jboss-2.0-FINAL/deploy/addressbook.ear
> [J2EE Deployer] Deploy J2EE application:
> file:/D:/JavaServletProducts/jboss-tomc
> at/jboss_tomcat/jboss-2.0-FINAL/deploy/addressbook.ear
> [J2EE Deployer] Could not delete temporary file:
> /D:/JavaServletProducts/jboss-t
> omcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/copy1001.zip
> [J2EE Deployer] Create application addressbook.ear
> [J2EE Deployer] Installing EJB package: addressbook-ejb.jar
> [J2EE Deployer] Installing web package: addressbook-web.war
> [J2EE Deployer] Starting module addressbook-ejb.jar
> [Container factory]
> Deploying:file:/D:/JavaServletProducts/jboss-tomcat/jboss_to
> mcat/jboss-2.0-FINAL/bin/../tmp/deploy/addressbook.ear/ejb1002.jar
> [Verifier] Verifying
> file:/D:/JavaServletProducts/jboss-tomcat/jboss_tomcat/jbos
> s-2.0-FINAL/bin/../tmp/deploy/addressbook.ear/ejb1002.jar
> 09:09:34 AddressEntryBean[1]: <init>()
> [Container factory] Deploying addressbook.ejb.AddressEntry
> [Bean Cache] Cache policy scheduler started
> [Container factory] Deployed application:
> file:/D:/JavaServletProducts/jboss-tom
> cat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/addressbook.ear/ejb1002.jar
> [J2EE Deployer] Starting module addressbook-web.war
> [EmbeddedTomcat] ContextManager: Adding context Ctx( /addressbook-web )
> [EmbeddedTomcat] path="/addressbook-web"
> :org.apache.jasper.servlet.JspServlet:
> init
> [J2EE Deployer] J2EE application:
> file:/D:/JavaServletProducts/jboss-tomcat/jbos
> s_tomcat/jboss-2.0-FINAL/deploy/addressbook.ear is deployed.
> [Auto deploy] Auto deploy of
> file:/D:/JavaServletProducts/jboss-tomcat/jboss_tom
> cat/jboss-2.0-FINAL/deploy/tomcat-test.ear
> [J2EE Deployer] Deploy J2EE application:
> file:/D:/JavaServletProducts/jboss-tomc
> at/jboss_tomcat/jboss-2.0-FINAL/deploy/tomcat-test.ear
> [J2EE Deployer] Could not delete temporary file:
> /D:/JavaServletProducts/jboss-t
> omcat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/copy1004.zip
> [J2EE Deployer] Create application tomcat-test.ear
> [J2EE Deployer] Installing web package: tomcat-test.war
> [J2EE Deployer] Added ./client.jar to common classpath
> [J2EE Deployer] Installing EJB package: tomcat-test.jar
> [J2EE Deployer] Starting module tomcat-test.jar
> [Container factory]
> Deploying:file:/D:/JavaServletProducts/jboss-tomcat/jboss_to
> mcat/jboss-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1007.jar
> [Verifier] Verifying
> file:/D:/JavaServletProducts/jboss-tomcat/jboss_tomcat/jbos
> s-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1007.jar
> [Container factory] Deploying Optimized
> [Container factory] Deploying NonOptimized
> [Container factory] Deployed application:
> file:/D:/JavaServletProducts/jboss-tom
> cat/jboss_tomcat/jboss-2.0-FINAL/bin/../tmp/deploy/tomcat-test.ear/ejb1007.jar
> [J2EE Deployer] Starting module tomcat-test.war
> [EmbeddedTomcat] ContextManager: Adding context Ctx( /jboss )
> [EmbeddedTomcat] path="/jboss" :org.apache.jasper.servlet.JspServlet: init
> [J2EE Deployer] J2EE application:
> file:/D:/JavaServletProducts/jboss-tomcat/jbos
> s_tomcat/jboss-2.0-FINAL/deploy/tomcat-test.ear is deployed.
> [Auto deploy] Started
> [SpyderMQ] Starting
> [SpyderMQ] Testing if SpyderMQ is present....
> [SpyderMQ] OK
> [SpyderMQ] Starting SpyderMQ...
> [SpyderMQ] Started
> [JMX RMI Adaptor] Starting
> [JMX RMI Adaptor] Started
> [JMX RMI Connector] Starting
> [JMX RMI Connector] Started
> [Default] 23 services and 4 other MBeans started.
> [Default] Shutdown hook added
> [Default] jBoss 2.0 FINAL Started
> [EmbeddedTomcat] Ctx( /addressbook-web ): Exception in: R( /addressbook-web +
> /l
> ist.jsp + null)
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745
> )
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
> va:128)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> at org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:16
> 0)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:
> 156)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessar
> y(JspServlet.java:152)
> at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
> vlet.java:164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
> 18)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745
> )
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
> at java.lang.Thread.run(Thread.java:484)
> [Bean Cache] Resized cache for bean addressbook.ejb.AddressEntry: old size =
> 100
> 0, new size = 50
> [EmbeddedTomcat] Ctx( /addressbook-web ): Exception in: R( /addressbook-web +
> /l
> ist.jsp + null)
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745
> )
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
> va:128)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> at org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:16
> 0)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:
> 156)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessar
> y(JspServlet.java:152)
> at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
> vlet.java:164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
> 18)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:799)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745
> )
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
> at java.lang.Thread.run(Thread.java:484)
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]