Tomcat 5.0 JSP ServiceFactory Error

Hi,
I am running Apache 2, Tomcat 5.0, Axis on a server for deploying webservics. When I execute a command line java program it works just fine, but When I attempt to use this same code from a JSP it throws a ServiceException for ServiceFactory.newInstance at runtime. The code Find2p is common to both the Command Line and the JSP. For detail Find2p.java is listed way below.
Any insight into this error would be greatly appreciated, if more info is need I would happily add it to this discussion.
Thanks in Advance,
Wayne
JSP Code
package test.jsp;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.xml.namespace.QName;
/** Simple servlet for testing the use of packages
* and utilities from the same package.
* <P>
* Taken from Core Servlets and JavaServer Pages 2nd Edition
* from Prentice Hall and Sun Microsystems Press,
* http://www.coreservlets.com/.
* &copy; 2003 Marty Hall; may be freely used or adapted.
public class HelloServlet3 extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Find2p f = new Find2p("smith");
String title = "Hello (z)";
String x = "RESULTS " + f.getRes() + " INPUT " + f.getParam1();
out.println(ServletUtilities.headWithTitle(title) +
"<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1>" + title + x + "</H1>\n" +
"</BODY></HTML>");
HERE IS THE COMMAND LINE CODE:
package test.jsp;
import javax.xml.namespace.QName;
import javax.xml.rpc.*;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
public class ClientFind2p
public static void main(String [] args) throws Exception
String param2 = args[0];
System.out.println("sending: " + param2);
Find2p f = new Find2p(param2);
System.out.println("RESULTS " + f.getRes() + " INPUT " + f.getParam1());
AND Find2p.java
package test.jsp;
import javax.xml.namespace.QName;
import javax.xml.rpc.*;
import java.net.*;
import java.rmi.*;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
class Find2p
public Find2p(String ln)
try
String epAddr = "http://172.16.1.232/axis/services/JDBCServiceDMPort1";
String wsdlAddr = epAddr + "?wsdl";
param1 = ln;
String nameSpaceUri = "http://www.ussa.org/test/";
String svcName = "JDBCServiceDM";
String portName = "JDBCServiceDMPort1";
java.net.URL wsdlUrl = new java.net.URL(wsdlAddr);
ServiceFactory svcFactory = ServiceFactory.newInstance(); THIS LINE THROW A ServiceException in JSP
QName svcQName = new QName(nameSpaceUri, svcName);
what = "Nothing Thrown";
Service svc = svcFactory.createService(wsdlUrl, svcQName);
Call call = (Call) svc.createCall();
call.setTargetEndpointAddress(epAddr);
call.setOperationName( new QName(nameSpaceUri, "findussa") );
call.setPortTypeName( new QName(nameSpaceUri, portName) );
Object argx = param1;
res = (String) call.invoke(new Object[] {argx});
catch (ServiceException e2)
servicemsg = e2.getMessage();
catch (JAXRPCException e3)
rpcmsg = e3.getMessage();
catch (MalformedURLException e4)
malmsg = e4.getMessage();
catch (RemoteException e5)
remotemsg = e5.getMessage();
public String getRes()
return res;
public String getParam1()
return param1;
public String getWhat()
return what;
public String getExceptionmsg()
return exceptionmsg;
public String getServicemsg()
return servicemsg;
public String getRPCmsg()
return rpcmsg;
public String getMALmsg()
return malmsg;
public String getRemotemsg()
return remotemsg;
private String res;
private String param1;
private String what;
private String exceptionmsg;
private String servicemsg;
private String rpcmsg;
private String malmsg;
private String remotemsg;
}

Can you give us more details of Exception or try to debug your Servlet by using remote debug.

Similar Messages

  • How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4

    Hi There,
    I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
    When I try to see a JSP, if it has an error (compilation-time error), I get this message:
    <--->
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    <--->
    This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
    Help anyone?
    Thank You
    Pinho

    This kind of errors often come from syntax error in
    the jsp page.
    Tomcat is not very friendly with this kind of errors.
    A trick is to open the java file under the 'work'
    directory and checkIsn't there any way to show the error on a page, just like a run-time error?
    Maybe changing some log setting?

  • Newbie:  jsp compile error w/ tomcat 5.0.19

    Hello there, this is my first time try to write something in jsp/ servlets, and i encounter a minor installation problem:
    using mdk linux with j2sdk1.4.2 (locate at /usr/local/), tomcat is also locate at /usr/local.
    I am able to see HelloServlet.java, and HelloWorld.html at http://localhost:8080/servlet/HelloServlet
    and http://localhost:8080/testing/HelloWorld.html
    but i'm unable to see HelloWorld.jsp at http://localhost:880/HellowWorld.jsp (my HelloWorld.html and HellowWorld.jsp are locate at the same dir)
    here's are the things i added in my /etc/profile so far:
    CATALINA_HOME="/usr/local/Tomcat"
    export CATALINA_HOME
    JAVA_HOME="/usr/local/j2sdk1.4.2"
    export JAVA_HOME
    JavaPath="/usr/local/j2sdk1.4.2/bin"
    export JavaPath
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    CLASSPATH=$CLASSPATH:/usr/local/Tomcat/common/lib/servlet-api.jar:/usr/local/Tomcat/
    common/lib/jsp-api.jar:/home/allen/programming/j2ee/:./
    export CLASSPATH
    when do java -verison, i see:
    [root@localhost local]# java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    when start tomcat, i got:
    [root@localhost bin]# ./startup.sh
    Using CATALINA_BASE: /usr/local/Tomcat
    Using CATALINA_HOME: /usr/local/Tomcat
    Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
    Using JAVA_HOME: /usr/local/j2sdk1.4.2
    i thought i did everything that was told, yet i can't see jsp page on my browser, while i can see servlets and html,
    thank you for your time in advance ^_^

    sorry, it was a typo, yea...it was for http://localhost:8080/testing/Hello.jsp
    this morning, i copied "tool.jar" from j2sdk1.4.2 to my /usr/local/tomcat/common/lib, restarted, fire it up again using "./catalina.sh" just to see where the problems came from, and here's where the compile error occue:
    Compile failed; see the compiler error output for details.
            at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
            at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
            at java.lang.Thread.run(Thread.java:534)
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Env: Compile: javaFileName=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java
        classpath=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/shared/classes/:/usr/local/jakarta-tomcat-5.0.19/common/classes/:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar:/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/Tomcat/bin/commons-logging-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/shared/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        work dir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        extension dir=/usr/local/j2sdk1.4.2/jre/lib/ext
        srcDir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        include=org/apache/jsp/testing/Hello_jsp.java
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java     [javac] Compiling 1 source file
        [javac] /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_/org/apache/jsp/testing/Hello_jsp.java:48: cannot resolve symbol
        [javac] symbol  : class Data
        [javac] location: package util
        [javac]       out.print( new java.util.Data() );
        [javac]                               ^
        [javac] 1 error
    Mar 16, 2005 7:32:34 AM org.apache.jasper.compiler.Compiler generateClass
    looking over the compiler error, it seems to me tomcat is able to recongize /usr/local/j2sdk1.4 's location. which i assume it implied JAVA_HOME and CLASSPATH are setup correctly.
    Dunno why it just won't display jsp pages and kept saying compiler error...
    thank you for helping

  • Tomcat run jsp occur error

    Hi!
    After I configure /tomcat/conf/server.xml to point jsp and source code path for tomcat server, so I can run jsp in IE with "http://localhost:8080/ebis/jsp". But when I click login path to run login screen there occur error as below:
    Error: 500
    Location: /ebis/jsp/Login/index.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
         at jsp.Login._0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0._jspService(_0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0.java:517)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.ArrayIndexOutOfBoundsException
         at HK.com.hit.ebis.sys.SQLConnectionManager.getConnection(SQLConnectionManager.java:105)
         at HK.com.hit.ebis.sys.SQLConnectionManager.getConnection(SQLConnectionManager.java:97)
         at HK.com.hit.ebis.entity.UserDetails.getVerify(UserDetails.java:366)
         at jsp.Login._0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0._jspService(_0002fjsp_0002fLogin_0002findex_0002ejspindex_jsp_0.java:281)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    My web.xml configuration is below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <servlet>
    <servlet-name>
    R00005Servlet
    </servlet-name>
    <servlet-class>
    HK.com.hit.ebis.servlet.R00005Servlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    R00005Servlet
    </servlet-name>
    <url-pattern>
    /R00005Servlet
    </url-pattern>
    </servlet-mapping>
    <!-- Default login configuration uses BASIC authentication -->
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Example Basic Authentication Area</realm-name>
    </login-config>
    <!-- If you want to experiment with form-based logins, comment
    out the <login-config> element above and replace it with
    this one. Note that we are currently using a nonstandard
    authentication method, because the code to support form
    based login is incomplete and only lightly tested. -->
    <!--
    <login-config>
    <auth-method>EXPERIMENTAL_FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/jsp/security/login/login.jsp</form-login-page>
    <form-error-page>/jsp/security/login/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    -->
    </web-app>
    Who know the reason, please tell me.
    Regards,
    dsjflsdjf

    put <security-constraint> tag also in your web.xml defining the <web-resource-collection>, <web-resource-name>, <url-pattern> and the
    <role-name>manager</role-name> inside <auth-constraint>, This role-name is important and you have to add this role in your tomcat-users.xml also. See sample web.xml in ..\webapps\manager\WEB-INF
    Dont know if this is the reason why ur problem is coming though,
    Regards,
    Padmanava

  • Issue on running a java application on tomcat 6.0.43 with error filter mappings

    Hi ,
    I am new to Java.
    I am facing an issue on running J2EE application in Tomcat Server 6.0.43, I am getting the below error for which 404 page is displayed.
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CapgeminiScripts\Support Tools\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;;.
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:gui' did not find a matching property.
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 420 ms
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
    Jan 27, 2015 4:21:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\Users\sparipoo\workspace_KTW\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\gui\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Jan 27, 2015 4:21:57 PM org.apache.tomcat.util.digester.Digester endElement
    SEVERE: End event threw exception
    java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      ... 37 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/gui/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2839)
      at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2865)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1161)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1675)
      at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1045)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:265)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /exportHandler/*.jsp in filter mapping
      at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2531)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
      at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
      at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
      at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1158)
      ... 29 more
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 27 column 20
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Jan 27, 2015 4:21:57 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/gui] startup failed due to previous errors
    Jan 27, 2015 4:21:57 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jan 27, 2015 4:21:57 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jan 27, 2015 4:21:57 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/10  config=null
    Jan 27, 2015 4:21:57 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 607 ms
    Please find the web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>gui</display-name>
      <error-page>
        <error-code>500</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <error-page>
        <error-code>404</error-code>
        <location>/errorpage.jsp</location>
      </error-page>
      <filter>
        <filter-name>exportHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>exportHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>exportHandler</filter-name>
        <url-pattern>/exportHandler/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>importHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importHandler</filter-name>
        <url-pattern>/importHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>importMonitor</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>importMonitor</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>importMonitor</filter-name>
        <url-pattern>/importMonitor/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>notificationHandler</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>notificationHandler</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>notificationHandler</filter-name>
        <url-pattern>/notificationHandler/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>npAgreement</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>npAgreement</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>npAgreement</filter-name>
        <url-pattern>/npAgreement/*.jsp</url-pattern>
      </filter-mapping>
      <filter>
        <filter-name>numberSearch</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>numberSearch</param-value>
        </init-param>
        <init-param>
          <param-name>creationdateRequired</param-name>
          <param-value>true</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>numberSearch</filter-name>
        <url-pattern>/numberSearch/*.jsp</url-pattern>
      </filter-mapping>
       <filter>
        <filter-name>shared</filter-name>
        <filter-class>security.SecurityFilter</filter-class>
        <init-param>
          <param-name>gui</param-name>
          <param-value>shared</param-value>
        </init-param>
        </filter>
      <filter-mapping>
        <filter-name>shared</filter-name>
        <url-pattern>/shared/*.jsp</url-pattern>
      </filter-mapping>
      <servlet>
        <servlet-name>Login</servlet-name>
        <servlet-class>security.SecurityServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Login</servlet-name>
        <url-pattern>/login</url-pattern>
      </servlet-mapping>
    <resource-ref>
        <description>DB Connection</description>
        <res-ref-name>ds/NPAS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <session-config>
        <session-timeout>480</session-timeout>
      </session-config> 
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
      <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
        <welcome-file>sample.jsp</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    I don't understand as to why this error is appearing. For easy purpose marking the error part BOLD.
    Please help me out if there is any solution for the same.
    Regards,
    Sirisha

    nies out there right now that are offering all kinds of policies that are no doubt great and beneficial, it can also be confusing and overwhelming.
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    http://plus.google.com/communities/103681647604159596708
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en
    https://plus.google.com/communities/103681647604159596708?hl=en

  • JSP : Tiles Error �tag.getAsString� : component context is not defined

    JSP : Tiles Error �tag.getAsString� : component context is not defined
    I�m working with Struts 1.1 and Tiles, under Tomcat 5.0.16
    My application works fine using Struts 1.1 alone, however, when attempting to run the application in a �Tiles� environment, I get an error:

    javax.servlet.jsp.JspException: Error - tag.getAsString : component context is not defined. Check tag syntax

    I have �defined� this in my �tiles-defs.xml� file, and as far as I can tell, everything else is configured properly (I have looked over the included Struts document examples, and others on the web, and I seem to have everything configured identically).
    What am I missing???
    I have created a series of �mostly� empty JSP files, for simplicity sake.
    JSP FILES:
    -     header.jsp
    -     footer.jsp
    -     menu.jsp
    -     rootLayout.jsp
    -     user.jsp
    -     show_user.jsp
    -     error.jsp
    -     defaultContentPage.jsp
    All JSP files contain:
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    and

    <title>
    <tiles:getAsString name="title"/>
    </title>

    My �tiles-defs.xml�: =================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <!-- ================ RootLayout ======================= -->
    <definition name=".root.layout" path="/jsp/rootLayout.jsp" >
    <put name="title" value="Default title"/>
    <put name="header" value="/jsp/header.jsp"/>
    <put name="menu" value="/jsp/menu.jsp"/>
    <put name="content" value="/jsp/defaultContentPage.jsp"/>
    <put name="footer" value="/jsp/footer.jsp"/>
    </definition>
    <!-- ================ Extentions ======================= -->
    <!-- User -->
    <definition name=".view.user" extends=".root.layout">
    <put name="title" value="Welcome to the User Form."/>
    <put name="content" value="/jsp/user.jsp"/>
    </definition >
    <!-- Save -->
    <definition name=".view.save" extends=".root.layout">
    <put name="title" value="Welcome to the Show User Form."/>
    <put name="content" value="/jsp/show_user.jsp"/>
    </definition >
    <!-- Error -->
    <definition name=".view.error" extends=".root.layout">
    <put name="title" value="Error Message."/>
    <put name="content" value="/jsp/error.jsp"/>
    </definition >
    </tiles-definitions>
    My �struts-config.xml�: ==============================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- ========== FormBeans =================================== -->
    <form-beans>
    <form-bean name="userForm" type="biz.seamrog.strutstest.model.state.UserForm"/>
    </form-beans>
    <!-- ========== Action Mapping Definitions=================== -->
    <action-mappings>
    <!-- Action using normal forward syntax...
    <action path="/user"
    forward="/jsp/user.jsp">
    </action>
    -->
    <!-- Action using a "Tiles" forward syntax...
    The "forward" path mappings are defined in a file named
    "../WEB-INF/tiles-defs.xml
    -->
    <action path="/user"
    forward=".view.user">
    </action>
    <!-- Action using normal forward syntax...
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path="/jsp/show_user.jsp"/>
    <forward name="failure" path="/jsp/error.jsp"/>
    </action>
    -->
    <!-- Tiles syntax -->
    <action path="/save"
    type="biz.seamrog.strutstest.model.logic.SaveAction"
    name="userForm" scope="request"
    input="/jsp/user.jsp">
    <forward name="success" path=".view.show_user"/>
    <forward name="failure" path=".view.error"/>
    </action>
    </action-mappings>
    <!-- ============== Global Forwards ======================== -->
    <global-forwards>
    <!-- NOTE: paths with "." syntax are Tiles defined paths,
    all other paths follow conventional "/path/to/file.jsp syntax
    -->
    <forward name="user" path=".view.user"/>
    <forward name="show_user" path=".view.show_user"/>
    <forward name="error" path=".view.error"/>
    <forward name="cssBase" path="/stylesheets/common.css"/>
    </global-forwards>
    <!-- ============= Plug-ins =============== -->
    <!-- Tiles Plug-in -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
    <set-property property="definitions-parser-validate" value="true" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    </struts-config>
    My �web.xml�: =====================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
    <servlet>
    <!--
    MyController extends org.apache.struts.action.ActionServlet
    NOTE: The servlet could also be specified specifying the
    default Struts ActonServlet...
    <servlet-name>controller</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    ...I have chosen to extend here just for practice sake.
    -->
    <!--
    <servlet-name>MyController</servlet-name>
    <servlet-class>biz.seamrog.strutstest.controller.MyController</servlet-class>
    -->
    <servlet-name>MyController</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <!--
    Point to Struts configuration file(s)
    -->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- Tiles config -->
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <!-- This is the added Application parameter: -->
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResource</param-value>
    </init-param>
    <!-- end -->
    <load-on-startup>5</load-on-startup>
    </servlet>
    <!--
    All incoming requests that end in .do, send to MyController.
    -->
    <servlet-mapping>
    <servlet-name>MyController</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!--
    Send initial requests to the login page for this application
    -->
    <welcome-file-list>
    <welcome-file>/jsp/user.jsp</welcome-file>
    </welcome-file-list>
    <!--
    Make all of the necessary related Struts JSP custom tag libraries
    available and define where to find them.
    -->
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/lib/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
    </taglib>
    </web-app>
    My �rootLayout.jsp�: ================================================
    <%@page contentType="text/html"%>
    <%@ taglib uri="/WEB-INF/lib/struts-tiles.tld" prefix="tiles" %>
    <html>
    <header>
    <title>
    <tiles:getAsString name="title" />
    </title>
    <body>
    <tiles:get name="header"/>
    <tiles:get name="menu"/> <tiles:get name="content"/>
    <tiles:get name="footer"/>
    </body>
    </html>

    I found an entry in the Mail Archive for Struts. I got it working. My working code is below. You need to in the base JSP import the header and put the 'title' out to it.
    tiles:def file:
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name=".petstore.Base" path="/common/petstorecommon.jsp">
    <put name="title" value ="${title}"/>
    <put name="header" value="/common/header.jsp"/>
    <put name="message" value="/common/message.jsp"/>
    <put name="content" value="${content}"/>
    <put name="navbar" value="/common/navbar.jsp"/>
    </definition>
    <definition name="petstore.Login" extends=".petstore.Base" >
    <put name="title" value="Login Page" />
    <put name="content" value="/Logon.jsp"/>
    <put name="test1" value="test1value"/>
    </definition>
    base tile def:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html:html>
    <head>
    <html:base/>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>pet store common (jsp)</title>
    </head>
    <body>
    <tiles:insert attribute="header">
    <%-- both of these attributes are accessible from header.jsp It works!!! --%>
    <tiles:put name="title" beanName="title" beanScope="tile" />
    <tiles:put name="test1" beanName="test1" beanScope="tile" />
    </tiles:insert>
    <%-- <tiles:get name="header" /> --%>
    <tiles:get name="message" />
    <tiles:get name="content" />
    <tiles:get name="navbar" />
    </body>
    </html:html>
    Getting access to the title value in the header.jsp file:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <html>
    <head>
    <tiles:getAsString name="title" />
    <tiles:getAsString name="test1" />
    </head>
    <body>
    </body>
    </html>

  • JSP Exception Error

    This is my Programe
    <html>
    <head>
    <title>JSP JavaMail Example </title>
    </head>
    <body>
    <%@ page import="java.util.*" %>
    <%@ page import="p1.*" %>
    <%@ page import="javax.mail.*" %>
    <%@ page import="javax.mail.internet.*" %>
    <%@ page import="javax.activation.*" %>
    <%
    out.println("hello");
    String host="smtp.gmail.com";
    String to = request.getParameter("to");
    String from = request.getParameter("from");
    String subject = request.getParameter("subject");
    String messageText = request.getParameter("body");
    out.println("hello");
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.host", host);
    props.put("mail.smtp.auth", "true");
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.starttls.enable","true");
    Session mailSession = Session.getDefaultInstance(props, "");
    mailSession.setDebug(sessionDebug);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setText(messageText);
    Transport.send(msg);
    out.println("Mail was sent to " + to);
    out.println(" from " + from);
    out.println(" using host " + host + ".");
    %>
    </body>
    </html>
    When I Run this It gives following error
    Please help me
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    MimeMessage cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message.RecipientType.TO cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Transport cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Session cannot be resolved
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    MimeMessage cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    InternetAddress cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Message.RecipientType.TO cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /index.jsp
    Generated servlet error:
    Transport cannot be resolved
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs

    Maybe print out from the exceptions in the conexionBD directly, even do a printStackTrace. Since the exceptions are encapulated it is hard to tell. Your setup for the database looks good. Not sure about class loading this way and how it will pool. I would suggest using the JNDI capability available from the context administration of Tomcat.

  • Jsp:useBean error.

    Under webapps\CustSys\web-inf\classes, I have save my CIS.class file. Is this the rite way to access the java class file : doReport() is a function inside the class file.
    Inside test2.jsp:
    <jsp:useBean id="report" scope="application" class="CIS"/>
    <html>
    <%report.doReport();%>
    </html>
    the following error appear:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:41: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    CIS report = null;
    ^
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:43: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    report = (CIS) pageContext.getAttribute("report", PageContext.APPLICATION_SCOPE);
    ^
    An error occurred at line: 0 in the jsp file: /test2.jsp
    Generated servlet error:
    C:\Tomcat4129\work\Standalone\localhost\CustSys\test2_jsp.java:46: cannot resolve symbol
    symbol : class CIS
    location: class org.apache.jsp.test2_jsp
    report = (CIS) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "CIS");
    ^
    3 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         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:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)
    pls help identify wat's the error. thanks

    You will have to put the CIS class in a package and provide the fully qualified class name pkg.CIS in your useBean defintion
    cheers,
    ram.

  • Whenever I start the tomcat server, Im getting an error in netbeans?

    Whenever I start the tomcat server, Im getting an error in netbeans?
    Starting of Tomcat failed. '127.0.0.1' is not recognized as an internal or external command, operable program or batch file.
    Even I set the path & catalina_home in Environment variables. I start the startup.bat file and catalina.bat file also.
    I'm waiting for your quick response.

    Hi Ershad,
    I think this issue is more related to Apache Tomacat, I would suggest you ask in Apache Tomcat forum for a better support, it is appropriate and more experts will assist you.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JSP compilation errors in weblogic 6.1

              I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              Full compiler error(s):
              error: Invalid class file format:
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:34: Class
              com.ford.redherring.model.PropertiesAttributesModel not found in import.
              import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 64]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              not found in import.
              import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 68]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              not found in import.
              import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 69]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              not found in import.
              import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              Line: 70]
              ^
              /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              eb/_jsp/_event/__eventForm.java:41: Class
              com.ford.redherring.model.DDValidationModel not found in import.
              import com.ford.redherring.model.DDValidationModel; <file://[>
              /web/jsp/event/eventForm.jsp; Line: 71]
              

    This appears to be a CLASSPATH problem (you are missing references to
              'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
              CLASSPATH may be set in the server startup script. Hope this helps.
              Wade.
              "Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
              > I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
              >
              > ----------------------------------------------------------------------------
              > ----
              > Full compiler error(s):
              > error: Invalid class file format:
              >
              >
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:34: Class
              > com.ford.redherring.model.PropertiesAttributesModel not found in import.
              > import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 64]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
              > not found in import.
              > import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 68]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
              > not found in import.
              > import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 69]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
              > not found in import.
              > import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
              > Line: 70]
              > ^
              > /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
              > tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
              > eb/_jsp/_event/__eventForm.java:41: Class
              > com.ford.redherring.model.DDValidationModel not found in import.
              > import com.ford.redherring.model.DDValidationModel; <file://[>
              > /web/jsp/event/eventForm.jsp; Line: 71]
              

  • JSP Debbuging -Error: 'class' or 'interface' expected-

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

    Hi,
    Does anybody know why am I getting the following error when trying to either debug or run a JSP?
    Error: 'class' or 'interface' expected
    This happens with JDeveloper 9.0.2.829
    It was running just OK, when running from the Navigator Panel (Right click -> Run test.jsp)
    But, when I tried to run the JSP from the Debug Icon -that debugs the whole project-, I got the error I already mentioned.
    Thanks in advance for your help
    Agutin

  • Javelin JSP compilation error

    Hello Everyone,
    I've a some JSP's that work some times and fail sometime with
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    I tried restarting the server, removing .wlnotdelete and couple of other things.
    Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
    Can anyone please help.
    ~ALAPATI

    I'm using bea weblogic 8.1 SP5.
    Java - jrockit81sp5_142_08
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO THE FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    >
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    2 errors javelin complaining is because of this.
    1) I'm trying to access MyClass.SHOW_ME_TEXT
    2) I'm trying to create an object of AnotherClass by new AnotherClass();
    Please let me know if you want more details.

  • Calling a servlet (in Tomcat) from a JSP Page (in Apache)

    I have a web form in my JSP Page, which upon submits, will send the params to a servlet. The servlet will then process the request and send the results back to the calling JSP Page.
    with that above senario, is there any way for me to reference a servlet (resides in Tomcat) from a JSP Page (resides in Apache HTTP Server)?
    Thanks!

    Apache HTTP server isn't a servlet/JSP engine.
    Your JSP runs on Tomcat, right where the servlet does. Apache just forwards the request.
    %

  • JSP - prefix error - need resolution

    Hi all (Charles, Todd, Mike & others),
    @ the ND4 to iPlanet migration project, we have failed to get the JSP
    loaded in iPlanet. The exception displayed in the KJS follows below.
    We are not sure what this implys and how to resolve it (Does it
    require a setting in the deployment tool? or maybe something
    completely different). So, if you could help us better interprete it..
    Thanks,
    Ali..
    Consultant,
    iRise Inc.
    [25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
    Failed in compiling template:
    /aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
    Descriptor not found for prefix : {0}
    Exception Stack Trace:
    java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
    at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
    at com.netscape.jsp.JSP.parseAt(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava
    (Unknown Source)

    Thanks for the info.
    I made necessary modifications and it worked!
    Ali..
    P.S: I'd confused between /WEB-INF.. & WEB-INF...
    --- In [email protected], "Charles Beckham"
    <charles.beckham@s...> wrote:
    Ali,
    I have seen this error before, it means that it can not resolve the taglibs,
    make sure you
    are not including the jato package (which also includes the taglib
    classes)..the jato package
    should be copied to the APPS directory...also make sure you specified the
    taglib info in the
    war descriptor....the description should be uri : /WEB-INF/jato.tld and
    Loacation: /WEB-INF/jato.tld..
    and finally make sure when you added the jato.tld to the war file it is in
    the root of WEB-INF or in
    other words it should resolve to WEB-INF/...
    If you have any more questions I could have a look at you war file and give
    you some ideas...let me know
    and I'll give you an upload ftp site...
    Cheers
    Charles Beckham
    -----Original Message-----
    [Charles Beckham]
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071048">Todd.Fast@S...</a>]
    Sent: Wednesday, October 25, 2000 9:10 PM
    Subject: Re: [iPlanet-JATO] JSP - prefix error - need resolution
    Ali--
    @ the ND4 to iPlanet migration project, we have failed to get
    the JSP
    loaded in iPlanet. The exception displayed in the KJS follows below.
    We are not sure what this implys and how to resolve it (Does it
    require a setting in the deployment tool? or maybe something
    completely different). So, if you could help us better interprete it..
    >>
    [25/Oct/2000 20:06:52:0] error: Exception: SERVLET-compile_failed:
    Failed in compiling template:
    /aria/ariaTest/CreditCard/pgGWPayFeeCustomer.jsp, JSP Error:
    Descriptor not found for prefix : {0}
    Exception Stack Trace:
    java.lang.Exception: JSP Error: Descriptor not found for prefix : {0}
    at com.netscape.jsp.JSP.addTagprefix(Unknown Source)
    at com.netscape.jsp.JSP.parseAt(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJavaI don't have any significant application deployment experience in iAS, but
    it looks like the taglib descriptor declared in the JSP isn't being found.
    I believe the error message should be "Descriptor not found for prefix:
    jato".
    I can't offer any specific help other than to refer you to Appendix B of
    the
    Migration Survival Guide, which has a walkthrough of deployment of an app
    in
    iAS.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...
    eGroups Sponsor
    [email protected]
    [Non-text portions of this message have been removed]

  • Is Tomcat 4's jsp:plugin tag hardwired to 1.2?

    Is Tomcat 4's <jsp:plugin > tag hardwired to version 1.2 of the JPI?
    I was absolutely horrified today at a job interview when, proudly navigating to the page containing the 1.4-demanding applet I embedded in the page using <jsp:plugin ...> the plugin installation dialogue came up -- asking whether they wanted to install the 1.2 plugin (up until recently, I had the applet's object tag embedded manually... switching to jsp:plugin was fairly recent).
    As it turns out, the <object> tag generated by Tomcat was specifying the download path for the 1.2 plugin, even though I specified jreversion="1.4" in the <jsp:plugin> tag:
    <OBJECT
       classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
       name="theApplet"
       width="550" 
       height="400" 
       align="middle" 
       codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">The "clsid" value can be changed in web.xml by changing the jsp servlet's "ieClassId" initParam, but as far as I can tell there's NO mechanism for changing the "codebase" value anywhere.
    Is the <jsp:plugin> tag (under Tomcat 4, at least) just useless for Applets that must have 1.4, or is there a configuration parameter somewhere to set the "codebase" value generated by the tag?
    I know I could always put the manually-specified code back in, but I'd prefer to stay with the <jsp:plugin> tag if possible just because it makes the jsp source cleaner. What's strange is that nobody seems to have complained about that problem on the usual places (Usenet/dejanews/Google, jguru.com, etc). Whether that's just because nobody writes applets that actually demand 1.4, or whether everybody who does just embeds the <object> tag manually, I'm not sure.
    In any case, I'm trying to figure out how to make <jsp:plugin> generate the right HTML for 1.4-using applets... or whether it's even possible.

    Sigh. I found it. It's actually specified as the "iepluginurl" property of the <jsp:plugin> tag.
    <emotion:frustration variation="anger">
    Now I just need to figure out what *$%!# value to use for it.
    The JPI's developer guide has to be the worst document I've ever seen from Sun. Normally, Sun's documents are good. Often, exceptionally so. But the JPI guide... well, after reading http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html multiple times, I'm still not sure what #$%^&* URL corresponds to "The newest released JPI equal to or newer than 1.4.0". The only URL on the whole page that they even imply works is hardwired to 1.4.0, and in the same breath they imply that every other codebase URL on the page is wrong, hypothetical, and shouldn't be used... oh, and for that matter, the 1.4_0 one shouldn't really be used ether, because it might change in the future. Grrrrr.
    If there's a pattern to the following URLs (all used on the same page) that's supposed to illustrate something besides abyssmally bad editing and apparent indecision, I haven't seen it yet:
    http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
    http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn
    http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,1,mn
    http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cabHmmm. Let's see here. They're all the same up to http://java.sun.com/products/plugin, but from that point one diverges into /1.4/, while the others continue into /autodl/. But even past that point, two imply that the filename follows the pattern jinstall-1_4-windows-i586.cab#Version=1,4,x,* ... but whether developers who really, truly, don't care about the specific maintenance release should use "0" or "mn" is left up in the air.
    Furthermore, the ONE URL on the entire page that they come halfway close to implying will work is the last one I listed above, which itself goes totally against whatever hypthetical pattern they were trying to imply with the other three. For now I'll probably stick the last one listed as the parameter because it's the only one they actually come out and say will work, but I suspect the first one is probably the "right" one.
    Of course, there's always the matter of Macintosh users running IE. Or Windows users running Mozilla (which is technically Netscape, but uses MSIE ActiveX plugins). Does Mozilla get fed the value of "iepluginurl", or the value of "nspluginurl"? Sigh.
    </emotion:frustration>

Maybe you are looking for

  • Image Slider not appearing/visual in live view/Browser

    I updated a link to my image browser and once I hit refresh, everything seemed fine. I checked my rework on live view, and the whole slider (including images and buttons) were no longer visual. (You could not see them.) | <!--========================

  • InfoPath 2007 forms issue in SP2013

    I am upgrading MOSS 2007 site into SP2013, after I finish migration and upgrade, when try to fix the connection and upgrade InfoPath forms, I reached to the point that there are no errors in the form, but when upload the form template as admin approv

  • How to map sales return process from customer to mfg plant without Depot??

    Dear All we have a Mfg plant (mfg1) & having  seven Depot. regular process of STO DEPOT process ME21N-Purchase order STO VL10B - Replenishment delivery VL02N - PGI VF01- Proforma invoice J1IIN - Excise invoice MIGO - Goods Receipt J1IG - Excise Captu

  • 2 Skype number under one ID

    Hi, I have recently setup up business account, under Skype Admin Manager. Now mistakenly I have bought 2 skype numbers both are showing under my Skype name, what I want is that I want the other number to be allocated to one of my team member under th

  • World News Portlet - RSS Content Syndication

    Hi, The world news porltet given with the Sample Portal of Bea weblogic 7.0 throws an error of "StringIndexOutOfBound -1" Could anyone give any pointers as to what could be the reason for this error. Could it be the problem with the proxy ? if yes th