How I not compile jsp again?

Whenever I restart the weblogic server, all the jsp loading will be slow since it seems wl will compile all jsp again. I have tried to set the startmode=true and config war's reload period = -1. But it does not work. It result in the very poor performance since the jsp loading will consume so much time. How I force the wl does not compile the jsps again?
          

import java.awt.event.*;
import java.awt.*;
import java.applet.*;
public class MyApplet extends Applet implements Runnable {
// Variable definitions
int a[];
double b[];
// methods definitions
public void init(){
MyFile file = new MyFile();
MyMath math = new MyMath();
file.file_init(); // see file: MyFile.class
math.math_init(); // see file: MyMath.class
public void start() {
public void run() {
// note these two methods
file.file_read(); // see file: MyFile.class
math.math_atan(); // see file: MyMath.class
----------------------------MyMath.class-----------------------------------------
public class MyMath {
// variable definitions
int x[];
double y[];
public void math_init(){
public void math_atan() {
// some user define math opperation
public void math_dispose() {
// some destroy code
------------------------------MyFile.class----------------------------------------
public class MyFile {
// variable definitions
public void file_init() {
// file initialize code
public void file_dispose() {
// file dispose code
public void file_read() {
// read some format file
Note classes are something like c structure you can make a instances of them see a struct would be something like this
struct MyMath {
   int math_init;
}math;
  ^
  |
instance
and we could access the info in that struct like  math.math_init; well java uses classes keyword "class" like you see above but java does this
MyMath math = new MyMath();
        ^
        |
      instance
math.math_init();Well good luck hope this helps

Similar Messages

  • How to pre-compile JSP?

    Does anyone know how to pre-compile JSP so as to get faster browsing response?

    I know little about JSPs but from what I can remember, JSPs are compiled first time when they are being asked to be executed .Unless changes are made to those programs they would not be compiled, as a result of that, it would run faster. Correct me if I am wrong though

  • Appc does not compile JSPs under WEB-INF

    Hi,
              We are using WLS 8.1 and I noticed that appc does not compile jsps that are
              under WEB-INF. Is this expected? If the jsps are outside of WEB-INF then
              appc works fine...
              Thanks!
              John
              

    Although the client is not allowed to directly access jsps under WEB-INF, it
              is perfectly acceptable (and often recommended) to use a front controller to
              forward to jsps. Often these jsps are "hidden" in the WEB-INF directory so
              that they can't be accessed directly by the client. This pattern works fine
              under 8.1 except that appc won't precompile the jsps under WEB-INF (the
              container does compile the jsps when they are called). I believe this is a
              bug... If jsps are allowed in WEB-INF then appc should compile them...
              John
              "Stjepan Brbot" <stjepan.brbot@@zg.hinet.hr> wrote in message
              news:[email protected]...
              > Yes, this is expected! Web container, or better to say it's web component,
              > does not serve content of WEB-INF directory directly mening you cannot
              > access jsp inside WEB-INF like
              http://host:port/WebApp/WEB-INF/something.jsp
              > hence there's no need for compiling JSP's in it! The content of WEB-INF
              > directory can be accessed only via internal links so it is mostly used for
              > referencing taglibs. JSPs, HTMLs, images and all other file type that has
              to
              > be accessible directly by client web-server (not container internally)
              > should be in application directory or one of it's subdirectories.
              >
              > "John Hampton" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > >
              > > We are using WLS 8.1 and I noticed that appc does not compile jsps that
              > are
              > > under WEB-INF. Is this expected? If the jsps are outside of WEB-INF
              then
              > > appc works fine...
              > >
              > > Thanks!
              > > John
              > >
              > >
              >
              

  • How to pre-compile jsp and deploy to tomcat

    Hi All,
    I wuld like to know how to pre-compile JSPs and deploy to tomcat. I am using ANT tool to build and deploy the war file.
    Thanks in Advance.
    Regards,
    --Nagesh.                                                                                                                                                                                                                                                                                                                                               

    for Tomcat 5.0 (You'll need to edit to fit your needs)
        <path id="jsp.classpath">       
            <!-- point classpath to directory containing jasper-compiler.jar and
                   jasper-runtime.jar -->
            <fileset dir="C:\tomcat\common\lib">
                <include name="**/*.jar"/>
            </fileset>
            <fileset dir="C:/tomcat/common/endorsed">
                <include name="**/*.jar"/>
            </fileset>       
        </path> 
        <target name="jsp" >
        <!--
             The Ant JSPC task doesn't work with Tomcat 5.0
             so in the meantime we need to define our own task.
          -->
        <taskdef name="jspc50" classname="org.apache.jasper.JspC">
            <classpath>
                    <path refid="jsp.classpath"/>    
            </classpath>
        </taskdef>
        <jspc50 outputDir="${build.classes}"
                package="jsp"
                uriroot="${project.dir}/web/webApp"
                webXmlFragment="c:/web.xml"
                verbose="9"
                validateXml="false">           
        </jspc50>
        <javac srcdir="${build.classes}/jsp"
               destdir="${build.classes}"
               debug="true"
               optimize="false"
               includes="**/*.java"
               source="1.4">
                <classpath>
                    <path refid="classpath"/>
                    <path refid="jsp.classpath"/>
                </classpath>          
        </javac>
    </target>    More information can be found here :
    http://www.onjava.com/pub/a/onjava/excerpt/AntTDG_chap8/index1.html?page=last

  • NWDS 7 does not compile JSPs

    I have recently downloaded NWDS tool that comes with the NW04s trial version (NWDS version 7).
    When I create portal components (par files), NWDS does not compile the java files.  It creates a par file even with errors in Java. Is this a new "feature" of NWDS? am I missing anything?

    Create DC for the JSP also. It will work.

  • Do not compile .jsp files

    Hello,
    Somebody nows how can I compile only .java file into my project of Oracle JDeveloper 10g (9.0.5.1)? I don't want compile .jsp files...
    Regards,
    Renato Milan dos Santos

    Please refer to a previous post.
    JSP compilation - how to disable

  • Tomcat7 not compiling JSP's after upgrade

    Hi
    Since last updates my Tomcat7 stopped compiling new or updated JSP files with this 500 server error message:
    HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
    type Exception report
    message java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
    description The server encountered an internal error that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
    org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Unknown Source)
    org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source)
    org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:453)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.34 logs.
    I already tried to install the JDK7 from Oracle and changed the TOMCAT_JAVA_HOME but the problem persists.
    Is there any issue with the last package upgrade?
    I read that sometime ago someone had a similar problem and had to install Tomcat7 from Apache.
    I really prefer to stay with the pacman release so it will be easier to start|stop|restart with systemctl.
    System Arch Linux x86_64 fully updated.
    Kind regards,
    Carlos

    Yes, me too.
    Today I've tried to start Tomcat 7 (after a series of regular system upgrades) - got the same error. Perhaps Carlos, you are right, the root cause lie in the "eclipse-ecj" package. I have the last version installed (4.2.1-1).
    And yes, that it - people had already reported about this issue, see: https://bugs.archlinux.org/task/33151
    They've picked out that rolling back to the version 3.7.1-1 solves this issue.

  • Pre-Compiled JSP

    Hi All,
    Can anyone tell me, how to pre-compile jsp and deploy it in Tomcat and Websphere and also how stop the app server recompiling the JSP at runtime. Searched the net for but was not really that successful.

    Read the documentation that come along the application server. For Tomcat it's for example this: [http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html].

  • Disable compiling jsps in oc4j

    We want to move to using the ojspc ant task to pre-compile our jsps where I work. I can get the ant task to run but evidently am not putting the output in the correct location. In stand-alone oc4j I have to include the jsps in my deployment, which I'm not sure I should have to do. On the full OAS with jsp compiling turned off, none of the pages render. I have to hand the ears to 3rd parties to get them deployed on the OAS instance and my access to logs there is also limited so I'd like to get my oc4j stand-alone to NOT compile jsps so I have an environment that I can play with to fix the problem.
    Questions
    Q1) Can I turn off jsp compiling in OC4J standalone (deployed on Win XP OC4J version 10.1.3.5.0)?
    Q2) If the class files OJSPC produces are in the right place do I NEED the jsps in my ear/war file (same environment)?

    Figured it out on my own:
    A1) Yes. From Application Server Control select Administration
         Select JSP Properties
         Set "When a JSP changes" (under Runtime Parameters) to Reload classes.
    A2) If set as above the JSPs are not necessary.
    My root problem was that the ojspc task was not set to compile and and the javac task wasn't putting the .class files in the right place. Setting ojspc to nocompile="false" and appRoot to my destination path and suddenly _(pagename).class files starting appearing in the appropriate output directories and problem solved.

  • JSP are not compiling

              HI,
              I am trying to deploy my jsp's as Web Appplication (in a directory & not as a war
              file)on Weblogic 5.1 on Solaris 8. Weblogic throws following exception when I try
              to invoke the jsp:
              Failed to parse compiler output:
              java.io.IOException: javac: not found
                   at java.lang.UNIXProcess.forkAndExec(Native Method)
                   at java.lang.UNIXProcess.(UNIXProcess.java:54)
                   at java.lang.Runtime.execInternal(Native Method)
                   at java.lang.Runtime.exec(Runtime.java:551)
                   at java.lang.Runtime.exec(Runtime.java:477)
                   at java.lang.Runtime.exec(Runtime.java:443)
                   at weblogic.utils.Executable.exec(Executable.java:170)
                   at weblogic.utils.Executable.exec(Executable.java:107)
                   at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:423)
                   at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:245)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:337)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:101)
                   at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
                   at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
                   at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              I set the Env before starting Weblogic and the PATH point to jdk\bin and the CLASSPATH
              is set to the java libraries. I can invoke javac from the command shell. I have no
              idea what the problem is ?
              Any clues..
              Thanks a lot
              Roger
              

    Hi, Roger,
              Could you please add the %JAVA_HOME%\bin into your "System Variables" (not
              the "User Variables") and reboot your Windows 2000 box. This way, NT
              services should be able to pick up JDK executables.
              Cheers,
              Peter Chang
              BEA Systems Inc.
              "Sam He" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I had the same problem on NT when it runs as a service. However, it runs
              fine
              > with my W2K development box.
              >
              >
              > "Roger Zamon" <[email protected]> wrote:
              > >
              > >Thanks James.. I found that when weblogic.jsp.compilecommand is specified
              > >in the context
              > >parameter in web.xml file and path to javac is specified it seems to
              > >work. It is
              > >not clear why Weblogic does not read the location of javac from the
              > >PATH !
              > >
              > >Thanks once again..
              > >
              > >"James McGovern" <[email protected]> wrote:
              > >>This sounds like a problem with weblogic.properties in how you specified
              > >>the
              > >>JSP process.
              > >>
              > >>
              > >>"Roger Zamon" <[email protected]> wrote in message
              > >>news:[email protected]...
              > >>>
              > >>> HI,
              > >>> I am trying to deploy my jsp's as Web Appplication (in a directory
              > >& not
              > >>as a war
              > >>> file)on Weblogic 5.1 on Solaris 8. Weblogic throws following exception
              > >>when I try
              > >>> to invoke the jsp:
              > >>>
              > >>> Failed to parse compiler output:
              > >>> java.io.IOException: javac: not found
              > >>> at java.lang.UNIXProcess.forkAndExec(Native Method)
              > >>> at java.lang.UNIXProcess.(UNIXProcess.java:54)
              > >>> at java.lang.Runtime.execInternal(Native Method)
              > >>> at java.lang.Runtime.exec(Runtime.java:551)
              > >>> at java.lang.Runtime.exec(Runtime.java:477)
              > >>> at java.lang.Runtime.exec(Runtime.java:443)
              > >>> at weblogic.utils.Executable.exec(Executable.java:170)
              > >>> at weblogic.utils.Executable.exec(Executable.java:107)
              > >>> at
              > >>>
              > >>>
              >
              >>weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.j
              av
              > >>a:423)
              > >>> at
              >
              >>weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:245)
              > >>> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:337)
              > >>> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217)
              > >>> at
              >
              >>weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:
              16
              > >>4)
              > >>> at
              >
              >>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
              va
              > >>:101)
              > >>> at
              > >>>
              > >>>
              >
              >>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
              mp
              > >>l.java:907)
              > >>> at
              > >>>
              > >>>
              >
              >>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
              mp
              > >>l.java:851)
              > >>> at
              > >>>
              > >>>
              >
              >>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletConte
              xt
              > >>Manager.java:252
              > >>>
              > >>> )
              > >>> at
              >
              >>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364
              > >>> at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              > >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              > >>>
              > >>> I set the Env before starting Weblogic and the PATH point to jdk\bin
              > >and
              > >>the CLASSPATH
              > >>> is set to the java libraries. I can invoke javac from the command
              > >shell.
              > >>I
              > >>have no
              > >>> idea what the problem is ?
              > >>>
              > >>> Any clues..
              > >>>
              > >>> Thanks a lot
              > >>>
              > >>> Roger
              > >>
              > >>
              > >
              >
              

  • How to compile jsp project on the plateform of Myeclipse and jboss

    hi
    I m new in jboss application server with myeclipse plateform.
    im unable to solve this error.which are occured doring the starting of server in my eclipse.
    the error is:-----
    13:12:41,484 INFO [Server] Starting JBoss (MX MicroKernel)...
    13:12:41,500 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
    13:12:41,515 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.4.GA
    13:12:41,515 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.4.GA/
    13:12:41,515 INFO [Server] Patch URL: null
    13:12:41,515 INFO [Server] Server Name: default
    13:12:41,515 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.4.GA\server\default
    13:12:41,515 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.4.GA/server/default/
    13:12:41,531 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.4.GA\server\default\log
    13:12:41,531 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.4.GA\server\default\tmp
    13:12:41,531 INFO [Server] Root Deployment Filename: jboss-service.xml
    13:12:44,015 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
    13:12:44,015 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04,Sun Microsystems Inc.
    13:12:44,015 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
    13:12:45,750 INFO [Server] Core system initialized
    13:12:55,515 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    13:13:09,218 INFO [WebService] Using RMI server codebase: http://shabrez:8083/
    13:13:19,578 INFO [MailService] Mail Service bound to java:/Mail
    13:13:20,484 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
    13:13:20,718 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
    13:13:25,109 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000D8000102000000000E3139322E3136382E302E313331000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313331000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    13:13:25,812 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000D8000102000000000E3139322E3136382E302E313331000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313331000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    13:13:27,875 INFO [Embedded] Catalina naming disabled
    13:13:28,140 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    13:13:28,140 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    13:13:29,390 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    13:13:29,390 INFO [Catalina] Initialization processed in 1250 ms
    13:13:29,406 INFO [StandardService] Starting service jboss.web
    13:13:29,406 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
    13:13:29,562 INFO [StandardHost] XML validation disabled
    13:13:29,640 INFO [Catalina] Server startup in 250 ms
    13:13:30,671 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    13:13:31,906 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
    13:13:33,515 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
    13:13:34,015 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp13610jbossws-exp.war/
    13:13:34,531 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    13:13:35,359 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    13:13:39,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    13:13:39,593 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    13:13:39,687 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    13:13:39,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    13:13:39,906 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    13:13:40,031 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    13:13:44,234 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
    13:13:45,640 INFO [A] Bound to JNDI name: queue/A
    13:13:45,656 INFO Bound to JNDI name: queue/B
    13:13:45,656 INFO [C] Bound to JNDI name: queue/C
    13:13:45,656 INFO [D] Bound to JNDI name: queue/D
    13:13:45,656 INFO [ex] Bound to JNDI name: queue/ex
    13:13:45,718 INFO [testTopic] Bound to JNDI name: topic/testTopic
    13:13:45,734 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
    13:13:45,734 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    13:13:45,750 INFO [testQueue] Bound to JNDI name: queue/testQueue
    13:13:46,000 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    13:13:46,140 INFO [DLQ] Bound to JNDI name: queue/DLQ
    13:13:46,609 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
    13:13:46,750 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/
    java.lang.UnsupportedClassVersionError: com/jbosstest/testJboss (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:151)
         at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:101)
         at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:66)
         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy41.create(Unknown Source)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy6.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
         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:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         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:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
         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:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy5.deploy(Unknown Source)
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
         at org.jboss.Main.boot(Main.java:200)
         at org.jboss.Main$1.run(Main.java:464)
         at java.lang.Thread.run(Thread.java:534)
    13:13:47,000 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    13:13:47,625 INFO [TomcatDeployer] deploy, ctxPath=/testproject, warUrl=.../deploy/testproject.war/
    13:13:48,578 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@abba8a12 { url=file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/ }
    deployer: MBeanProxyExt[jboss.web:service=WebServer]
    status: Deployment FAILED reason: com/jbosstest/testJboss (Unsupported major.minor version 49.0)
    state: FAILED
    watch: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/WEB-INF/web.xml
    altDD: null
    lastDeployed: 1148111026703
    lastModified: 1147940958000
    mbeans:
    13:13:48,796 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
    13:13:49,125 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
    13:13:49,312 INFO [JkMain] Jk running ID=0 time=0/328 config=null
    13:13:49,328 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:7s:797ms
    plz send me the solution of this error.
    Thanks.

    I m new in jboss application server with myeclipse plateform.
    im unable to solve this error.which are occured doring the starting of server in my eclipse.
    How to compile jsp project on the plateform of Myeclipse and jboss
    hi :-) this is not eclipse forum and not that sure about your problem but i'll try to answer :-)
    i'm not sure how you create your war but there something wrong with your web.xml. kindly check it :-)
    by d way, you can deploy your project in my-eclipse by
    - right click on the project then select my-eclipse > Add and Remove Project Deployment's
    - a new window will open and you can now configure how you deploy your project :-)
    other alternative edit your jboss-service.xml then put something like this
    <attribute name="URLs">deploy/, file:/D:/workspace/deploy</attribute>
    (note, change the path according to your needs)
    regards,

  • How to keep the generated java classes for compiled jsp in WL9.2 Workshop

    Hi all,
              <p>
              It should be a very simple question for most of you, however, it seems a bit tricky to me: how to configure the Weblogic 9.2 workshop so that we could keep the generated java files for the compiled jsp when we ran the application within WL 9.2 workshop?
              <p>
              I try some configurations, but not working. Also, where are the generated java files stored?
              <p>
              Thanks for the help!
              <p>
              Agnes
              Edited by wingagnes at 03/21/2008 7:51 AM

    Hi yzeng,
              <p>
              Thanks for the reply. If I change the jsp-descriptor into the following:
              <p>
              <jsp-descriptor>
              <p>
              <keepgenerated>true</keepgenerated>
              <p>
              <working-dir>D:\temp\golGenerated</working-dir>
              <p>
              <debug>true</debug>
              <p>
              </jsp-descriptor>
              <p>
              I will get the following error message:
              <p>
              cvs-complex-type.2.3.d:Invalid content was found starting with element 'precompile'. No child element is expected at this point.
              <p>
              Thanks,
              <p>
              Agnes

  • Jsp not compiling....

    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
    <%@ page import='com.uk.nhs.training.data.ActivityMatrix'%>
    <%@ page errorPage="ExceptionHandler.jsp"%>
    <SCRIPT language="JavaScript" type="text/javascript">
    function showBookingDays(id)
    var bookings = document.getElementsByName('booking');
    alert(bookings.length);
    for(i=0;i<=bookings.length;i++)
    if(bookingConflicts.bookings.checked==true)
    //showDiv(id);
    else
    bookingConflicts.bookings[i].checked=false;
    function showDiv(divId)
    var item = document.getElementById(id);
    alert("show item"+item);
    if (item)
    item.className='unhidden';
    </script>
    <div id="content"><!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div>
    <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title"><strong>BOOK Activity</strong></div>
    <!-- /topstory-title -->
    <div id="topstory-desc-in"></div>
    <!-- /topstory-desc-in --></div>
    <!-- /topstory-desc --></div>
    <!-- /topstory -->
    <div id="bodycontent">
    <% int errorCount=0; %>          
              <spring:bind path="bookactivityevent.*">
              <c:forEach items="${status.errorMessages}" var="error">
                        <B><font color="red">Error: <c:out value="${error}"/></font><B/>
                        <% errorCount++; %>
              </c:forEach>
              </spring:bind>
    <form method="post" name="bookingConflicts" action="<c:url value="/secure/bookActivityTrainer.htm"/>">
    <input type="hidden" name="bookingId"/>
    <input type="hidden" name="bookingDetailsId"/>
    <table align="left" width="50%" border=0>
    <tr>
    <td></td>
    <td>BookingType</td>
    <td>ClientName</td>
    <td>CourseTitle</td>
    <td>Duration</td>
    <tr>
    </tr>
    <tr>
    <c:forEach var="booking" items="${bookactivityevent.conflictBookings}" varStatus="a">
    <tr align="left">
              <td><INPUT TYPE="checkbox" NAME="booking" id="booking" value="<c:out value="${booking.bookingId}"/>" onClick="showBookingDays('<c:out value="${booking.bookingId}"/>')"></td>
              <td><c:out value="${booking.bookingType}"/></td>
              <td><c:out value="${booking.client.orgName}"/></td>
              <td><c:out value=""/></td>
              <td><c:out value="${booking.bookingId}"/></td>
         <c:set var="temp" value="${0}"/>
         <c:forEach var="bookingDetails" items="${booking.bookingDetails}">
         <tr align="right">
         <div align="left class="hidden" id="<c:out value="${booking.bookingId}"/>" >
         <td>
         <INPUT TYPE="RADIO" NAME="bookingDetails" id="<c:out value="${bookingDetails.bookingDetailsId}"/>" onClick="">Day<c:out value="${temp}"/>
         </td>
         <td>
         <c:out value="${bookingDetails.trainer.firstName}"/><c:out value="${bookingDetails.trainer.surName}"/>
         </td>
              <c:set var="temp" value="${temp+1}"/>
         </div>
         </tr>
              </c:forEach>
         </tr>
         </c:forEach>
    <tr>
              <td align="left" colspan="2"><input type="submit" name="_target0" value="Previous"/></td>
              <td align="left" colspan="2"><input type="submit" name="_target0" value="Amend"/></td>
              <td align="left" colspan="2"><input type="submit" name="_target2" value="Submit"/></td>
              <td align="left" colspan="2"><input type="submit" name="_target2" value="Rebook/Cancel"/></td>
         <td align="left" colspan="2"><input type="button" name="Cancel"
                   value="Cancel" onClick="goHomePage();"/></td>
         </tr>
    </table>
    </form>
    </div>
    <hr class="noscreen"/>
    <!-- /content -->
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
    <%@ page import='com.uk.nhs.training.data.ActivityMatrix'%>
    <%@ page import='com.uk.nhs.training.data.ActivityTimeConstants'%>
    <SCRIPT language="JavaScript" type="text/javascript">
    function bookActivity()
    if (document.bookActivityController.activitySelect.selectedIndex == 0)
    alert("Please Select Activity");
    else if (document.bookActivityController.trainerId.selectedIndex == 0)
    alert ( "Please Select Trainer");
    else if(document.bookActivityController.fromDate.value=="")
    alert("Please supply the Start Date of Activity")
    else
    validateForExistingCourses();
    function validateForExistingCourses()
    flag="wait";
    var trainerId=document.getElementById("trainerId").value;
    var fromDate=document.getElementById("fromDate").value;
    var toDate=document.getElementById("toDate").value;
    var activityId=document.getElementById("activitySelect").value;
    url="ajaxList.htm?actionType=checkBookedCoursesActivities&trainerId="+trainerId+"&fromDate="+fromDate+"&toDate="+toDate+"&activitySelect="+activityId;
    what = "checkForPreBookedCoursesActivities(req.responseXML)";
    doCallback(null);
    function checkForPreBookedCoursesActivities(theXmlResponse)
    // alert("in here in checking prebookedCourses");
    if(theXmlResponse != null)
         var isActivityExisting = theXmlResponse.getElementsByTagName('existingActivity')[0].text;
         var isCourseExisting = theXmlResponse.getElementsByTagName('existingbookedcourse')[0].text;     
              if(isActivityExisting=="Y")
              alert("Activity You are trying to book for Trainer already exists");
              return false;
              else if(isCourseExisting=="Y")
              if(confirm('Conflict Message. The dates choosen conflict with a current booking.Do you want to override'))
    window.open("/training1.1/secure/prebookedEvents.htm","clientwindow",'StatusBar', 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=400,left=0,top=0');
    return false;
    else
    document.bookActivityController.action="/training1.1/secure/bookActivityTrainer.htm?actionType=submitForm";
    document.bookActivityController.submit();
    function goHomePage()
         window.location="/training1.1/secure/welcome.htm";
    function showHideAmPm(divId)
    if(document.bookActivityController.halfday.checked==true)
    showDiv(divId);
    else
    hideDiv(divId);
    function showDiv(divId)
    var item = document.getElementById(divId);
    alert("show item"+item);
    if (item)
    item.className='unhidden';
    function hideDiv(divId)
    var item = document.getElementById(divId);
    alert("unhide item"+item);
    if (item)
    item.className='hidden';
    function getActivitiesPm()
    if(document.bookActivityController.am.checked==true)
    document.bookActivityController.pm.checked=false;
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=PM";
         what = "setActivities(req.responseXML)";
         doCallback(null);
         document.bookActivityController.activityTimeSelect.value="halfday";
         document.bookActivityController.activityTimeSubType.value="pm";
         // alert("subType"+document.bookActivityController.activityTimeSubType.value);
    function getActivitiesAm()
    if(document.bookActivityController.pm.checked==true)
    document.bookActivityController.am.checked=false;
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=AM";
         what = "setActivities(req.responseXML)";
         doCallback(null);
         document.bookActivityController.activityTimeSelect.value="halfday";
         document.bookActivityController.activityTimeSubType.value="pm";
    function getSingleDayActivities()
    if(document.bookActivityController.singleday.checked==true)
    document.bookActivityController.moredays.checked=false;
    document.bookActivityController.halfday.checked=false;
    hideDiv('partofhalfday');
    document.bookActivityController.activityTimeSelect.value="fullday";
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=FullDay";
         what = "setActivities(req.responseXML)";
         doCallback(null);
    else
    hideDiv('activitySelect');
    function getMoreDaysActivities()
    alert();
    if(document.bookActivityController.moredays.checked==true)
    document.bookActivityController.singleday.checked=false;
    document.bookActivityController.halfday.checked=false;
    hideDiv('partofhalfday');
    document.bookActivityController.activityTimeSelect.value="moredays";
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=FullDay";
         what = "setActivities(req.responseXML)";
         doCallback(null);
    else
    hideDiv('activitySelect');
    showDiv('dateTo');
    function setActivities(theXmlResponse)
              //start filling the Venues Select boxes now
              if(theXmlResponse != null)
                   var coursesBox=document.getElementById("activitySelect");
                   coursesBox.options.length=0;
                   var activityElementsLength=theXmlResponse.getElementsByTagName('activity').length;     
                   var activityElementsArray=theXmlResponse.getElementsByTagName('activity');
                   //alert("length"+activityElementsLength+activityElementsArray);                              
              for(x = 0; x < activityElementsLength; x++)
                        //coursesBox.options[coursesBox.options.length] = new Option(coursesElementsArray[x].firstChild.text, coursesElementsArray[x].lastChild.text);
                        var optn = document.createElement("OPTION");
                   optn.text = activityElementsArray[x].firstChild.text;
    optn.value = activityElementsArray[x].lastChild.text;
    coursesBox.options.add(optn);
         if (activityElementsLength>0)
                   showDiv('activityTD');
              flag="release";
    </script>
    <div id="content"><!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div>
    <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title"><strong>BOOK Activity</strong></div>
    <!-- /topstory-title -->
    <div id="topstory-desc-in"></div>
    <!-- /topstory-desc-in --></div>
    <!-- /topstory-desc --></div>
    <!-- /topstory -->
    <div id="bodycontent">
    <% int errorCount=0; %>          
              <spring:bind path="bookactivityevent.*">
              <c:forEach items="${status.errorMessages}" var="error">
                        <B><font color="red">Error: <c:out value="${error}"/></font><B/><br/>
                        <% errorCount++; %>
              </c:forEach>
              </spring:bind>
    <form method="post" name="bookActivityController" action="<c:url value="/secure/bookActivityTrainer.htm"/>">
    <table align="right" width="50%" border=0>
    <input type="hidden" name="activityTimeSelect"/>
    <input type="hidden" name="activityTimeSubType"/>
    <tr>
    <td align="left">
    <spring:bind path="bookactivityevent.userSuppliedActivity.activity.time">
    <c:set var="activitytime" value="${bookactivityevent.userSuppliedActivity.activity.time}"/>
    <INPUT TYPE="checkbox" NAME="halfday" onclick="showHideAmPm('partofhalfday')" <c:if test="${(activitytime == 'AM')}"> checked</c:if>/>Half Day    
    <div align="left "id="partofhalfday"
    <c:choose>
    <c:when test="${(activitytime eq 'AM') || (activitytime eq 'PM')}"> </c:when>
    <c:otherwise> class="hidden"</c:otherwise>
    </c:choose>>
    <INPUT TYPE="RADIO" NAME="am" onClick="getActivitiesAm()" value="am" <c:if test="${(activitytime eq 'AM')}"> checked </c:if> >AM <INPUT TYPE="RADIO" NAME="pm" onClick="getActivitiesPm()" <c:if test="${(activitytime eq 'PM')}"> checked </c:if>>PM <BR>
    </div>
    </td>
    </tr>
    <tr>
    <td><INPUT TYPE="checkbox" NAME="singleday" onClick="getSingleDayActivities()" <c:if test="${activitytime eq 'FULLDAY'}"> checked </c:if>> Single Day</td>
    </tr>
    <tr>
    <td><INPUT TYPE="checkbox" NAME="moredays" onClick="getMoreDaysActivities()" <c:if test="${activitytime eq 'MOREDAYS'}"> checked </c:if>> More Days</td>
    </tr>
    </spring:bind>
    <tr>
              <td align="left" id="activityTD">Activity :
              <c:set var="activityList" value="${requestScope.activityMap}"/>
         <c:choose>
                        <c:when test="${empty activityList}">
                        <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
              <select name="activitySelect" id="activitySelect" size="1"
                   STYLE="width: 150px">
                   <option value="Choose Activity" default>Choose Activity</option>
              </select>
              </spring:bind>
              </c:when>
              <c:otherwise>      
              <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
              <select name="activitySelect" id="activitySelect"
                   size="1" STYLE="width: 150px">
                   <option value="" default>Choose Activity</option>
                   <c:forEach var="activity" items="${activityList}" varStatus="a">
                        <c:choose>
                             <c:when
                                  test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.activity.activityId == activity.activityId)}">
                                  <option value="<c:out value="${activity.activityId}"/>" selected><c:out
                                       value="${activity.activityId}" /></option>
                             </c:when>
                             <c:otherwise>
                             <option value="<c:out value="${activity.activityId}"/>"><c:out
                                       value="${activity.activity}"/>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
         </spring:bind>
         </c:otherwise>
         </c:choose>
         </td>
    </tr>
         <tr>
              <td align="left">Trainer:
              <spring:bind path="bookactivityevent.userSuppliedActivity.trainer.trainerId">
              <select name="trainerId" id="trainerId"
                   size="1" STYLE="width: 150px">
                   <option value="" default>Choose Trainer</option>
                   <c:forEach var="trainer" items="${trainers}" varStatus="a">
                        <c:choose>
                             <c:when
                                  test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.trainer.trainerId == trainer.trainerId)}">
                                  <option value="<c:out value="${trainer.trainerId}"/>" selected>
                                  <c:out value="${trainer.firstName}"/>&nbsp<c:out
                                       value="${trainer.surName}" /></option>
                             </c:when>
                             <c:otherwise>
                                  <option value="<c:out value="${trainer.trainerId}"/>"><c:out
                                       value="${trainer.firstName}"/>&nbsp<c:out
                                       value="${trainer.surName}" /></option>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
         </spring:bind>     
              </td>
         </tr>
         <tr>
              <td align="left" id="dateFrom">From Date
              <spring:bind path="bookactivityevent.userSuppliedActivity.dateFrom">
              <fmt:formatDate var="formattedFromDate" type="date" pattern="dd/MM/yyyy" value="${status.value}"/>
              <input type="text" name="dateFrom" value="<c:out value='${formattedFromDate}'/>"/>
              </spring:bind>
              <a href="javascript:cal1.popup();"><img
                   src="../design/cal.gif" width="16" height="16" border="0"
                   alt="Click Here to Pick up the date"></a></td>
         </tr>
         <tr>
              <td align="left" id="dateTo" class="hidden">To Date
              <spring:bind path="bookactivityevent.userSuppliedActivity.dateTo">
              <fmt:formatDate var="formattedToDate" type="date" pattern="dd/MM/yyyy" value="${status.value}"/>
              <input type="text" name="dateTo" value="<c:out value='${formattedToDate}'/>"/>
              </spring:bind>
              <a href="javascript:cal2.popup();"><img
                   src="../design/cal.gif" width="16" height="16" border="0"
                   alt="Click Here to Pick up the date"></a></td>
         </tr>
         <tr>
              <td align="left" colspan="2"><input type="submit" name="_target2" value="BookActivity"/></td>
                   <c:if test="${(bookactivityevent != null) && (not empty bookactivityevent.conflictBookings)}">
    <td align="left" colspan="2"><input type="submit" name="_target1" value="OverRideBookings"/></td>
    </c:if>
              <td align="left" colspan="2"><input type="button" name="Cancel"
                   value="Cancel" onClick="goHomePage();" /></td>
         </tr>
    </table>
    </form>
    </div>
    <hr class="noscreen"/>
    <div class="content-padding"></div>
    <script language="JavaScript">
         var cal1 = new calendar1(document.bookActivityController.elements['dateFrom']);
         cal1.year_scroll = true;
         cal1.time_comp = false;
    var cal2 = new calendar1(document.bookActivityController.elements['dateTo']);
         cal2.year_scroll = true;
         cal2.time_comp = false;
    </script></div>
    <!-- /content -->
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ page isELIgnored="false" %>
    <%@ page import="java.util.List" %>
    <%@ page import="com.uk.nhs.training.data.BookingDetails" %>
    <div id="content">
    <!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div> <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title">
              <strong>BOOK COURSE (CONT..)</strong>
    </div> <!-- /topstory-title -->
    <div id="topstory-desc-in">
    </div> <!-- /topstory-desc-in -->
    </div> <!-- /topstory-desc -->
    </div> <!-- /topstory -->
    <div>
    <SCRIPT language="JavaScript" type="text/javascript">
    function setEndDate()
         var i=0;
         for (var j = 0; j < document.forms[0].elements.length; j++) {
              if (document.forms[0].elements[j].type == 'text')i++;
         for (var k = 0; k < i; k++) {     
              document.getElementById("hhh"+k).value=document.getElementById("bbb"+k).value;
    function free_date_picker(obj_name, layer_name, text_to ,type, hide_self, language, row_id, coursetime)
    // IF str < lng, add leading 0 to complete the str
    function leading_zeros(str, lng)
    // param validation
    if(lng == null)
    lng = 2;
    var str = str.toString();
    while(str.length < lng)
    str = '0' + str;
    return str;
    // Nbr days for this month
    function returnDays(date)
    var year = date.getFullYear();
    var month = date.getMonth();
    var days = 31;
    if( month == 3 || month == 5 || month == 8 || month == 10 ){
    days = 30;
    else if(month == 1){
    days = 28;
    if(year % 4 == 0){
    days = 29;
    if(year % 100 == 0){
    days = 28;
    if(year % 400 == 0){
    days = 29;
    return(days);
    // Return last month
    function returnLastMonth(date)
    var year = date.getFullYear();
    var month = date.getMonth();
    var dt = new Date();
    month --;
    if(month == -1){
    month = 11;
    year --;
    dt.setYear(year);
    dt.setDate(1);
    dt.setMonth(month);
    return dt;
    // Retourne le mois suivant
    function returnNextMonth(date)
    var year = date.getFullYear();
    var month = date.getMonth();
    var dt = new Date();
    month ++;
    if(month == 12){
    month = 0;
    year ++;
    dt.setYear(year);
    dt.setDate(1);
    dt.setMonth(month);
    return dt;
    // Retourne le nom du mois
    function return_month_name(date)
    switch(language){
    case("en"):
    var month = new Array('January', 'February', 'March', 'April', 'May', 'June',
    'July', 'August', 'September', 'October', 'November', 'December');
    break;
    case("fr"):
    default:
    var month = new Array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
    'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
    return month[date.getMonth()];
    function return_month_in_letters(themonth)
    switch(language){
    case("en"):
    var month = new Array('January', 'February', 'March', 'April', 'May', 'June',
    'July', 'August', 'September', 'October', 'November', 'December');
    break;
    case("fr"):
    default:
    var month = new Array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
    'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
    return month[themonth];
    this.setto = function(eng_date)
    // input text
    if(type == 1)
    document.getElementById(text_to).value = eng_date;
    // span, div ...
    if(type == 2)
    document.getElementById(text_to).innerHTML = eng_date;
    this.write_calendar = function(date)
    var monDate;
    var nb_days_last_month = 0;
    var cnt_days = 0;
    var days_month = 0;
    var str = new String();
    var style = new String();
    var next_month = new Date();
    var last_month = new Date();
    var today = new Date();
    var date = new Date(date);
    var last_year = new Date(date);
    var next_year = new Date(date);
    date.setDate(1); // le premier du mois
    next_month = returnNextMonth(date); // le mois précédent
    last_month = returnLastMonth(date); // le mois suivant
    nb_days_last_month = returnDays(last_month); // nombre jours mois précédent
    cnt_days = -date.getDay()+1; // compteur de jours, part le dimanche du début du mois
    days_month = returnDays(date); // nombre de jours mois sélectionné
    str = ''; // forge la chaîne de caractères à mettre dans la div
    next_year.setYear(date.getFullYear() + 1); // année précédente
    last_year.setYear(date.getFullYear() - 1); // année suivante
    str += '<table cellspacing="0" cellpadding="0" border="1" width="250" bgcolor="blue">';
    str += '<tr>';
    // année précédente
    str += ' <td colspan="1" align="left"><a href="' + "javascript:" +
    obj_name + ".write_calendar('" + eval(last_year) + "')" + ';"><--</a></td>';
    // mois précédent
    str += ' <td colspan="1" align="left"><a href="' + "javascript:" +
    obj_name + ".write_calendar('" + eval(last_month) + "')" + '"><-</a></td>';
    // libellé mois année
    str += ' <td colspan="3" align="center">'
    str += return_month_name(date) + ' ' + date.getFullYear();
    str += ' </td>';
    // mois suivant
    str += ' <td colspan="1" align="right"><a href="' + "javascript:" +
    obj_name + ".write_calendar('" + eval(next_month) + "')" + '">-></a></td>';
    // année suivante
    str += ' <td colspan="1" align="right"><a href="' + "javascript:" +
    obj_name + ".write_calendar('" + eval(next_year) + "')" + '">--></a></td>';
    str += '</tr>';
    // pour tous les jours du mois
    var cnt_semaines = 0;
    while(cnt_semaines < 6){
    cnt_semaines ++;
    str += ' <tr>';
    for(var cnt = 0; cnt < 7; cnt++){
    // mois suivant
    if(cnt_days > days_month){
    day = cnt_days - days_month;
    month = next_month.getMonth() + 1;
    year = next_month.getFullYear();
    style = "font-size:10px;";
    // mois précédent
    else if(cnt_days < 1){
    day = cnt_days + nb_days_last_month;
    month = last_month.getMonth() + 1;
    year = last_month.getFullYear();
    style = "font-size:10px;";
    // mous sélectionné
    else{
    var d1 = new Date();
    var d2 = new Date();
    // Todays date for comparision.
              var today=new Date();     
    d1.setMonth(date.getMonth());
    d1.setYear(date.getFullYear());
    d1.setDate(cnt_days);
    day = cnt_days;
    month = date.getMonth() + 1;
    year = date.getFullYear();
    // aujourd'hui ?
    if(d1.getFullYear() == d2.getFullYear() && d1.getMonth() == d2.getMonth() && d1.getDate() == d2.getDate() ){
    style = "font-size:18px;font-color:red;";
    else{
    style = "font-size:12px;";
    //dstr = year + '/' + leading_zeros(month) + '/' + leading_zeros(day);
              dstr=leading_zeros(day) + ' ' + return_month_in_letters(month-1) + ' ' + year;
              if (cnt==1) monDate=dstr;
    // inscrit la cellule
    str += ' <td width="14%">';
    str += ' <span style="' + style + '">';
    if (month < (today.getMonth()+1) || (year < today.getFullYear()) ) {
    str += '<font color="darkblue">';
    str += day;
    str += '</font>';
    } else if ((cnt>=1)&& (cnt<=5) && (month == (today.getMonth()+1)) && (day > today.getDate())) {
    str += ' <a href="javascript:' + obj_name + '.setto(\'' + dstr + '\')" onClick="getWeekCalendarViewTrainer(\''+monDate+'\', \''+row_id+'\', \''+coursetime+'\', \''+dstr+'\')">';
    str += day;
    str += ' </a>';
    } else if ( ((cnt>=1)&& (cnt<=5) && (month > (today.getMonth()+1))) || ( (cnt>=1)&& (cnt<=5) && (year > today.getFullYear()) ) ) {
    str += ' <a href="javascript:' + obj_name + '.setto(\'' + dstr + '\')" onClick="getWeekCalendarViewTrainer(\''+monDate+'\', \''+row_id+'\', \''+coursetime+'\', \''+dstr+'\')">';
    str += day;
    str += ' </a>';
    }else {
    str += '<font color="darkblue">';
    str += day;
    str += '</font>';
    str += ' </font>';
    str += ' </td>';
    cnt_days ++;
    str += ' </tr>';
    str += '</table>';
    document.getElementById(layer_name).innerHTML = str;
    this.show = function()
    if(hide_self)
    document.getElementById(layer_name).style.visibility = 'visible';
    this.hide = function()
    if(hide_self)
    document.getElementById(layer_name).style.visibility = 'hidden';
    // create layer and show calendar
    document.write('<div id="' + layer_name + '" onmouseout="' + obj_name + '.hide();">...</div>');
    this.write_calendar(new Date());
    </SCRIPT>
    <form name="BookType2" action="<c:url value="/secure/bookCourse.htm"/>" method="post" onsubmit="javascript:setEndDate()">
         <%int errorCount=0; %>
         <spring:bind path="booking.*">
         <c:forEach items="${status.errorMessages}" var="error">
                   <B><font color="red">Error: <c:out value="${error}"/></font><B/><br/>
                   <% errorCount++; %>
         </c:forEach>
         </spring:bind>
         <% if (errorCount == 0) { %>
         <table width="960">
              <%int i=0; %>
              <c:forEach items="${booking.bookingDetails}" var="q" varStatus="rowStatus">
              <tr><td colspan="3">Pick a Date from the Date Picker for Course:          
                   <strong> <c:out value="${q.course.courseTitle}"/></strong></td></tr>
              <tr><td>
              <%String theCourseTime=((BookingDetails)pageContext.getAttribute("q")).getCourse().getCoursetime();%>
              <script>var b<%=i %> = new free_date_picker('b<%=i %>', 'date_picker_b<%=i %>', 'bbb<%=i %>', 1, false, 'en', '<%=i %>', '<%=theCourseTime%>');</script>
              </td><td>
              <spring:bind path="booking.bookingDetails['${rowStatus.index}'].startDate">
              <input name="bookingDetails[<%=i %>].startDate" id="bbb<%=i %>" type="text" size="17" readOnly="true" value="<c:out value="${status.value}"/>" />
              </spring:bind>
              <spring:bind path="booking.bookingDetails['${rowStatus.index}'].endDate">
              <input name="bookingDetails[<%=i %>].endDate" id="hhh<%=i %>" type="hidden" value="<c:out value="${status.value}"/>" />
              </spring:bind>
              <br/><br/>
              <c:if test="${q.trainer.trainerId == null}">
              <spring:bind path="booking.bookingDetails['${rowStatus.index}'].trainer.trainerId">
              <select name="bookingDetails[<%=i %>].trainer.trainerId" id="trainerValue<%=i %>">
              <option value="">Select trainer</option>
              </select>
              </spring:bind>
              </c:if>
              <c:if test="${q.trainer.trainerId != null}">
              <spring:bind path="booking.bookingDetails['${rowStatus.index}'].trainer.trainerId">
              <select name="bookingDetails[<%=i %>].trainer.trainerId" id="trainerValue<%=i %>">
              <option value="<c:out value="${status.value}"/>" selected><c:out value="${q.trainer.title} ${q.train                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    The slightest mistake in a javascript function will cause JSP to have problems and Javascript will not tell you what the
    problem is. Example, if you are missing a ';' it will not tell you where the problem is.
    Its best to comment out all contents of all the javascript functions and run your JSP. If displays ok, then uncomment
    out one function at a time and try running the JSP again. Keep doing this until you come across the one or more
    functions that have a problem and fix them.
    One problem I think I found is this:
    FROM
    for(i=0;i<=bookings.length;i++)
    TO:
    for(var i=0;i<=bookings.length;i++)
    If you comment out the javascript and it still doesnt compile, comment out blocks of the html tags, then uncomment one section at a time to see where the problem is. Alternatively, install an IDE such as Eclipse. Its JSP editor will often highlight where there is a problem in the html tags (but not in the javascript)

  • How do you get tomcat 5.5. to compile JSPs in the Sun JDK

    Tomcat 5.5 JSPs do not compile with Java 5 code therefore how do you change it to use the Sun's JDK to compile Java 5 code.
    It does seem odd that you can compile Java 5 servlets but not JSP's.

    I've followed all these steps, but my Tomcat/5.5.4 still won't compile my 1.5-java-syntaxed JSP's.
    Here is exception stack:
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)
    root cause
    Error running javac.exe compiler
         org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
         org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:213)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         apollinary.filter.EncodingFilter.doFilter(EncodingFilter.java:19)I tried to substitute /common/lib/jasper-compiler-jdt.jar with Tomcat/5.0.27's /common/lib/ant.jar or IDEA 5.0's /lib/ant/ant.jar - effects are the same as described above.
    What's the problem?

  • Can not compile the jsp in Tomcat 4

    Hello anyone
    Now I use jdk1.4 and Tomcat 4.0.4, and put in the directory d:\j2sdk and d:\tomcat. Even I set the classpath as follow, I still compile jsp.
    SET CLASSPATH=.;D:\j2sdk\lib\tools.jar;D:\tomcat\common\lib\servlet.jar
    but at before, i can run it at Tomcat 3.2.
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:4: Class or interface declaration expected.
    import javax.servlet.*;
    ^
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.userCounter$jsp not found.
    public class userCounter$jsp extends HttpJspBase {
    ^
    2 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    pls help, thank you very much!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

Maybe you are looking for

  • Function module for getting stock details for a given period or date range

    Hi experts,      Any function module available for getting stock details batch, plant, storage location, and period wise. <<removed_by_moderator>> Thanks in advance M Prasanna Edited by: Vijay Babu Dudla on Apr 28, 2009 7:23 AM

  • Slow transfer of video from my mac to my Apple TV

    Hi there! I have a Time capsule (bought last year) as wifi source and an Apple tv 2nd generation. When I try to copy video on my tv from my macbook air 1.7 GHz core i7 using airplay, the video on the tv starts and stops all the time, while it continu

  • Firefox 34.0.5 can't upload facebook photo

    Hi, After i update to version firefox 34.0.5 on my window 8.1, i can't upload facebook photo. No problem on IE, Opera and Google Chrome. I already update with latest Java and tested ok in Firefox. Anyone can help me? Thank you.

  • Clip in use

    Hey all, I'm sure this question is out there somewhere but I couldn't find it. Anyway, maybe I'm blind but in CS$ is there a Field you can add in the Project window to show you if a clip is In Use somewhere on the time time line--where it is or what

  • Why is screen turning off randomly?

    For some reson or another, My Macbook Pro will be running fine, and depending on my actions (mostly using FCPX or Preview) the screen will shut off and go completely black, not dim cuz I tryied the brightness keys they do nothing. and the keyboard ba