Tag 'insert' can't insert page '/WEB-INF/station/search_results.jsp'. Ch

why am i getting the following error when I click search
Tag 'insert' can't insert page '/WEB-INF/station/search_results.jsp'. Check if it exists. Null property value for 'searchResults'

5/31/06 13:08:24:094 EDT] 0000007f ServletWrappe E SRVE0014E: Uncaught service() exception root cause /WEB-INF/station/station_results.jsp: Null property value for 'searchResults'
[5/31/06 13:08:24:094 EDT] 0000007f LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[5/31/06 13:08:24:156 EDT] 0000007f ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /WEB-INF/station/search_results.jsp. Exception thrown : java.lang.IllegalArgumentException: Null property value for 'searchResults'
     at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java(Compiled Code))
     at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java(Compiled Code))
     at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:952)
     at org.apache.struts.taglib.logic.EmptyTag.condition(EmptyTag.java:123)
     at org.apache.struts.taglib.logic.EmptyTag.condition(EmptyTag.java:94)
     at org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
     at com.ibm._jsp._station_5F_results._jspx_meth_logic_empty_0(_station_5F_results.java:483)
     at com.ibm._jsp._station_5F_results._jspService(_station_5F_results.java:141)
     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
     at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:544)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
     at com.ibm._jsp._search_5F_results._jspService(_search_5F_results.java:89)
     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
     at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:544)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
     at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:476)
     at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
     at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
     at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
     at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
     at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
     at com.ibm._jsp._portal._jspx_meth_tiles_get_0(_portal.java:101)
     at com.ibm._jsp._portal._jspService(_portal.java:75)
     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
     at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:294)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
     at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

Similar Messages

  • SEVERE: null : Can't find file '/WEB-INF/tiles-defs.xml'

    I'm trying to get Tiles to work with Struts on my server. I'm running a local instance of Tomcat v5.5. Development environment is Eclipse. I"ve looked everywhere on the web and can't find any solutions that work. I've been working on this for several days now. It shouldn't be this hard...
    I appreciate any help or suggestions people might have. I would really like to get beyond the configuration $#!^ and start coding.
    Thanks in advance!!!
    Jim
    Here are snippets from the pertinent files:
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>
         admin</display-name>
         <welcome-file-list>
              <welcome-file>index.html</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>
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>
                   org.apache.struts.action.ActionServlet
              </servlet-class>
              <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>          
         </servlet-mapping>
         <jsp-config>
              <taglib>
                   <taglib-uri>struts-bean</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>struts-logic</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>struts-html</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>struts-tiles</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
              </taglib>
              <!-- The following tag library info was added for JSTL libraries. -->
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/sql.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/sql-rt.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/x.tld</taglib-location>
              </taglib>
              <taglib>
                   <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
                   <taglib-location>/WEB-INF/tlds/x-rt.tld</taglib-location>
              </taglib>
         </jsp-config>
    </web-app>
    struts-config.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "/WEB-INF/dtds/struts-config_1_2.dtd">
    <struts-config>
         <!-- ============================================ Data Source Configuration -->
         <data-sources />
         <!-- ================================================ Form Bean Definitions -->
         <form-beans>
         </form-beans>
         <!-- ========================================= Global Exception Definitions -->
         <global-exceptions />
         <!-- =========================================== Global Forward Definitions -->
         <global-forwards />
         <!-- =========================================== Action Mapping Definitions -->
         <action-mappings>          
              <action path="/foobar" forward="/createAccount.jsp" />
         </action-mappings>
         <!--
         ============================================= Controller Configuration
         <controller contentType="text/html; charset=UTF-8" />
         ======================================== Message Resources Definitions
         <message-resources
              parameter="com.xilinx.web.registration.struts.res.ApplicationResources" />
         =============================================== Plug Ins Configuration -->
         <!--======================================================= Tiles plugin -->
         <!--
              This plugin initialize Tiles definition factory. This later can takes some
              parameters explained here after. The plugin first read parameters from
              web.xml, thenoverload them with parameters defined here. All parameters
              are optional.
              The plugin should be declared in each struts-config file.
              - definitions-config: (optional)
              Specify configuration file names. There can be several comma
              separated file names (default: ?? )
              - moduleAware: (optional - struts1.1)
              Specify if the Tiles definition factory is module aware. If true
              (default), there will be one factory for each Struts module.
              If false, there will be one common factory for all module. In this
              later case, it is still needed to declare one plugin per module.
              The factory will be initialized with parameters found in the first
              initialized plugin (generally the one associated with the default
              module).
              true : One factory per module. (default)
              false : one single shared factory for all modules
              - definitions-parser-validate: (optional)
              Specify if xml parser should validate the Tiles configuration file.
              true : validate. DTD should be specified in file header (default)
              false : no validation
              Paths found in Tiles definitions are relative to the main context.
         -->
              <plug-in className="org.apache.struts.tiles.TilesPlugin" >
              <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
              <set-property property="definitions-debug" value="2" />
              <set-property property="definitions-parser-details" value="2" />
              <set-property property="definitions-parser-validate" value="true" />
              </plug-in>
         <!-- =================================================== Validator plugin
         <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
              <set-property property="pathnames"
                   value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
         </plug-in>
         -->
    </struts-config>
    tiles-defs.xml (in the WEB-INF directory as are the other xml files...):
    <?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>
         <definition name="Tiles.register" page="/tiles/template.jsp">
              <put name="header" value="/tiles/header.jsp" />          
              <put name="body" value="/register.jsp" />
              <put name="footer" value="/tiles/footer.jsp" />
         </definition>
    </tiles-definitions>
    Console output when starting the server:
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jul 7, 2006 11:36:41 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 7, 2006 11:36:43 AM org.apache.struts.tiles.xmlDefinition.I18nFactorySet initFactory
    SEVERE: null : Can't find file '/WEB-INF/tiles-defs.xml'
    Jul 7, 2006 11:36:43 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
    SEVERE: Can't create Tiles definition factory for module ''.
    Jul 7, 2006 11:36:43 AM org.apache.struts.action.ActionServlet init
    SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    javax.servlet.ServletException: null : Can't find file '/WEB-INF/tiles-defs.xml'
         at org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:233)
         at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         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:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Jul 7, 2006 11:36:43 AM org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet action as unavailable
    Jul 7, 2006 11:36:43 AM org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /admin threw load() exception
    javax.servlet.UnavailableException: null : Can't find file '/WEB-INF/tiles-defs.xml'
    I have the following jars in my Web App Libraries (WEB-INF/lib):
    standard.jar
    commons-fileupload.jar
    antlr.jar
    struts.jar
    commons-beanutils.jar
    commons-logging.jar
    commons-validator.jar
    myswl-connector-java-3.1.12-bin.jar
    struts-el.jar
    jstl.jar
    commons-digester.jar
    Struts is version: 1.2.9.
    JRE / JDK: 1.5.0_06 (Program files shows I have JRE 1.5.0_05 in the tree as well)
    Note: Struts will work if I comment out the tiles plug-in in the struts-config.xml file.

    you don�t call o files-defs.xml in jsp?

  • Working with tag-library which is packed in WEB-INF\lib\jar-file.jar:

    Hi,
    When importing a webworks war file, which contains default taglib.tld in the webworks.jar which is packed in /Web-Inf/lib/webworks.2.1.7.jar the war file.
    I am getting following error while running the jsp.
    Error(6): duplicated tag definitions within the same TLD: text
    Error(6): java.lang.NullPointerException
    Error(6): Unable to load taghandler class: /webwork
    Line which points to Errors is "<%@ taglib prefix="ww" uri="/webwork" %>"
    But, There is a taglib.tld in /Web-Inf/lib/webworks.2.1.7.jar!\meta-inf\tablib.tld
    which mentions uri as
    <taglib>
    <tlib-version>2.2.1</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>WebWork Taglib</short-name>
    <uri>/webwork</uri>
    </taglib>
    But, There is no following entry for '/webwork' (uri) in web.xml
    Same war is working fine in tomcat webserver.
    Can anybody explain me how to work with this kind of a setup, where taglib is packed in some jar which is packed in Web-Inf/lib dir.
    Thanks,
    Siva

    I found the problem. The web-app was finding the class in the APP-INf/lib. But the problem was being caused due to a reference to another class that was being loaded by the webapp classloader which was not visible to the class inside the common jar. The solution was to make sure both classes were being loaded by one class loader.
    Thanks anyway
    Sameet

  • Web application can not find apphome /WEB-INF/lib/*.jar files in classpath?

    I need to add the jsse jars to one of my servlets. I do not want the jsse in the server classpath(jvm12.conf) however, because this screws with some credit card jar I am using. Can't I have a per application classpath with the /WEB-INF/lib directory? This is iWS 6.0.

    In iWS 6.0, the context information such as a context path of the web application and other properties are defined in web-apps.xml file.
    'class-loader' element in web-apps.xml file can be be used to specify the class path to a web application and customize how the application is serviced.
    Refer to example web-apps.xml file in Prog. guide to Servlets for more details.
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/war.htm#33557

  • Accessing classes in web-inf/classes within JSP

    hi,
    i know this is probably a very basic question..or nobody would ever do something like this..but I'mn curious:
    i have a class Car.class in the WEB-INF/classes directory and I want to access it from withing JSP : <% Car c = new Car(); %>
    the problem is that the server tries to load the class from the package : org.apache.jsp.Car ! when putting car into an own package like my.Car then it works.. but how do i get it working without putting it into a separate package?!
    thx

    You could try packaging it in a jar, and placing the jar in WEB-INF/lib... I have no idea if that will help, but when you're debugging, you have to be willing to try anything.. :)

  • How can I includ a web site in a jsp file?

    Hi all,
    I want to includ a web site, for example www.yahoo.com, in my jsp file. when the jsp file is called, it can return the web page to my own page. How shoud I do for that?
    I placed the code:
    <jsp:include page="http://www.yahoo.com"/> in my jsp page, but it does not work. Please help!
    Thanks.

    try checking out the include tag from the jakarta utility-taglibs.
    it can do this.
    http://jakarta.apache.org/taglibs/doc/utility-doc/index.html (include)
    this one can to
    http://jakarta.apache.org/taglibs/doc/io-doc/intro.html
    (check out "request" tag).
    hope it helps

  • Error message in ebay HTTP Status 404 - /view item/web-inf/views/error.jsp

    Ebay special item listed for me causes an error screen when I click on the item.
    Error message as in the question above.
    Description: The requested resource is not available.
    Ebay Server

    Problem was not solved; did as told 3 times. No change; cannot return to an earlier version of Firefox nor Adobe flash player. Reinstalled Firefox and Flash player. Problem still there. Very irritating. No problem with IE, thank heaven! Wife's HP laptop has also Vista but earlier Firefox release. Has no problem. Eventually, in desperation, I uninstalled Flash player. Problem vanished except Firefox which wants me to reinstall Flash player. I resist this and have no problem as I do not watch video stuff much. Vista is up to date and have clean system with Bullguard antivirus. So in a sense problem is not solved but side tracked!

  • How can JSP pages be in WEB-INF?

    Hi, I read in a tutorial that anything in the WEB-INF folder is basically private to the outside world, meaning they cannot access it.
    I also read that JSP pages should be kept in the main folder of your application and any subfolders, but out of WEB-INF (which is for libraries, classes, and xml files).
    However, another tutorial has instructed me to put some JSP pages in the main application folder, and some results JSP pages in a subfolder of WEB-INF, and it still works!
    How is that so? The WEB-INF JSP pages are being accessed through a forward tag in my struts-config.xml file.

    users can't directly access WEB-INF, but your app can.
    just change the URL to point to the protected JSPs
    %

  • Wl6.1sp2 can't find classes in WEB-INF/lib

              Hi,
              I meet a very strange problem.
              I use struts in my application.so I put struts.jar in web-inf/lib.
              In the .war file, the struts.jar can be found under web-inf/lib.
              my servlet configuration in web.xml is:
              <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>application</param-name>
              <param-value>StrutsProperties</param-value>
              </init-param>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
              </servlet>
              when this .war file is deploy, the console not show any error message.
              then,when i visit a jsp page that has a <html:form> tag, the console will show
              the error below:
              <Error> <HTTP> <[WebAppServletContext(5418530,struts,/
              struts)] Servlet failed with Exception
              java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
              1)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
              areClassLoader.java:43)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:120)
              at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
              at jsp_servlet.__logon._jspService(__logon.java:137)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:304)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2495)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              note "org/apache/struts/action/ActionForm" can be found when i open struts.jar
              in web-inf/lib
              why weblogic can't find this class but can find the "org.apache.struts.action.ActionServlet",
              these 2 classes should all be located in struts.jar
              i used it in win2k,so i think it may not be connect with case sensitive.
              Any one can give me some help or a link I did not found in this group.
              Thanks
              

              1.the struts-html.tld is in web-inf directory
              2.this is part of the web.xml
              ===========
              <taglib>
              <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
              </taglib>
              ================
              "Deepak Vohra" <[email protected]> wrote:
              >
              >Are the tld files including the struts-html.tld in the web-inf directory
              >& specified in the web.xml deployment descriptor?
              >
              >thanks,
              >
              >Deepak
              >
              >
              >"erric_sarra" <[email protected]> wrote:
              >>
              >>Hi,
              >>I meet a very strange problem.
              >>
              >>I use struts in my application.so I put struts.jar in web-inf/lib.
              >>In the .war file, the struts.jar can be found under web-inf/lib.
              >>
              >>my servlet configuration in web.xml is:
              >> <servlet>
              >> <servlet-name>action</servlet-name>
              >> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              >> <init-param>
              >> <param-name>application</param-name>
              >> <param-value>StrutsProperties</param-value>
              >> </init-param>
              >> <init-param>
              >> <param-name>config</param-name>
              >> <param-value>/WEB-INF/struts-config.xml</param-value>
              >> </init-param>
              >> <load-on-startup>1</load-on-startup>
              >> </servlet>
              >>
              >>when this .war file is deploy, the console not show any error message.
              >>then,when i visit a jsp page that has a <html:form> tag, the console
              >>will show
              >>the error below:
              >><Error> <HTTP> <[WebAppServletContext(5418530,struts,/
              >>struts)] Servlet failed with Exception
              >>java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
              >> at java.lang.ClassLoader.defineClass0(Native Method)
              >> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              >> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
              >>1)
              >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
              >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              >> at java.security.AccessController.doPrivileged(Native Method)
              >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              >> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
              >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
              >> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
              >> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
              >> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              >> at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
              >>areClassLoader.java:43)
              >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              >> at java.lang.Class.forName0(Native Method)
              >> at java.lang.Class.forName(Class.java:120)
              >> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
              >> at jsp_servlet.__logon._jspService(__logon.java:137)
              >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>pl.java:265)
              >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>pl.java:304)
              >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>pl.java:200)
              >> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              >>rvletContext.java:2495)
              >> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              >>pl.java:2204)
              >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>>
              >>
              >>note "org/apache/struts/action/ActionForm" can be found when i open
              >struts.jar
              >>in web-inf/lib
              >>why weblogic can't find this class but can find the "org.apache.struts.action.ActionServlet",
              >>these 2 classes should all be located in struts.jar
              >>
              >>i used it in win2k,so i think it may not be connect with case sensitive.
              >>
              >>Any one can give me some help or a link I did not found in this group.
              >>
              >>Thanks
              >>
              >>
              >
              

  • Should I be able to browse to /WEB-INF/whatever?

    All the documentation I can find says that files and folders underneath the /WEB-INF directory should, by default, be inaccesible to someone browsing my site. Any attempts to access these files or folders should return a "404 - File Not Found".
    However, when I try to browse to, say, /WEB-INF/classes/someresourcebundle.properties my browser happily loads it. The same with /WEB-INF/struts-config.xml, or any other file under this directory.
    It is my understanding the servlet specification states that any attempts to access the /WEB-INF hierarchy should be met with a "404 - File Not Found". I can restrict access to WEB-INF by adding some lines to my httpd.conf, like so:
    <Location "/WEB-INF/*">
            AllowOverride None
            deny from all
    </Location>
    <Directory "C:/siteroot/WEB-INF/">
            AllowOverride None
            deny from all
    </Directory>...but this returns a "403 - Forbidden" rather than a 404.
    Am I supposed to explicitly map WEB-INF to be served by Tomcat? If so, how do I do this? If not, what's going on here? What do I need to do to make this behave as it's supposed to?
    Thanks,
    millz

    Are you using Tomcat with Apache? AFAIK, under these conditions, WEB-INF will be accessible since it is Apache that is serving the files and not Tomcat.
    [edit]
    The final step in our Apache/Tomcat integration is a step that restricts all requests to the /example application's WEB-INF directory. This is done by telling Apache that it should deny all requests to the /examples/WEB-INF directory. The following <Location> element enforces this constraint:
    <location "/examples/web-inf/">
    AllowOverride None
    deny from all
    </location>
    This is what it says in the ONJava tutorial for running Tomcat with Apache http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=2, one of the last steps.
    [edit]
    Message was edited by:
    nogoodatcoding

  • Cant do internal forward to /WEB-INF

    I've seen this problem referred to in earlier posts, but could not get a
              clear read on whether it represents "normal" behavior or a bug in Weblogic.
              I'm using Weblogic 6.1 SP1:
              I'm using the jakarta-struts-1.0.2 framework to develop a web app, and
              desire that certain JSPs not be accessible directly via the client's
              browser, but only through execution of a struts "Action". Thus, I put these
              JSPs in /<context-root/WEB-INF. Such JSPs are forwarded to via the struts
              servlet ("ActionServlet") per code similar to the following:
              RequestDispatcher rd =
              getServletContext().getRequestDispatcher("/WEB-INF/somefile.jsp");
              rd.forward(request, response);
              But I get the same 404-Not Found error as if I had targeted the JSP
              directly. My understanding of the Servlet/JSP spec is that such internal
              forwards are exempt from the WEB-INF restriction that applies to direct
              access.
              Is there a workaround for this? I'd like to have some mechanism whereby a
              given JSP can be targeted only after some initial processing by a Struts
              action.
              Thanks for any help on this ...
              

    It's my understanding that this point in the specification was interpreted differently by BEA, such that it doesn't allow forwards or includes of content in WEB-INF. I also believe I heard that an option to control this will be introduced in the next major release.
              I've envisioned a possible workaround, although I haven't tried this. If all the JSP pages that you want to protect access to are also protected by security-constraints in your web.xml, then you can set the only role for all the JSP pages to "nobody", and then ensure that all protected JSP pages are only accessed through a forward from an action.

  • Auto-discovery for TLD files in WEB-INF

    The auto-discovery mechanism in JSP 1.2 can scan through the WEB-INF directory structure for files with .tld exntension and find all <uri> definitions in them, so we can use a symbolic name to map to the actual location of the tld file by using:
    <%@ taglib prefix="test" uri="mytaglib" %>
    in a JSP page.
    My colleague and I did not have luck in making this work. I got the following error message:
    "500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib prefix="test" uri="kltaglib" %>
    Error: java.io.FileNotFoundException: C:\oc4j\j2ee\home\applications\myapp\myapp-web\mytaglib (The system cannot find the file specified) "
    The symbolic name was not recognized. Is this a limitation in OC4J? Has anyone make this work? However, another way of auto-discovery by META-INF in JAR files works for me.
    Thanks.

    The auto-discovery mechanism in JSP 1.2 can scan through the WEB-INF directory structure for files with .tld exntension and find all <uri> definitions in them, so we can use a symbolic name to map to the actual location of the tld file by using:
    <%@ taglib prefix="test" uri="mytaglib" %>
    in a JSP page.
    My colleague and I did not have luck in making this work. I got the following error message:
    "500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib prefix="test" uri="kltaglib" %>
    Error: java.io.FileNotFoundException: C:\oc4j\j2ee\home\applications\myapp\myapp-web\mytaglib (The system cannot find the file specified) "
    The symbolic name was not recognized. Is this a limitation in OC4J? Has anyone make this work? However, another way of auto-discovery by META-INF in JAR files works for me.
    Thanks.

  • PLEASE HELP. How do you access properties files in WEB-INF  and classes directory

    We have a war file that needs to access properties files that are in the WEB-INF directory
    of the war file. We also need to load one of the properties files from the classpath.
    However, when we deploy the application ( an ear which inlcludes an ejbjar and a
    war and the libraries both the ejbjar (with a manifest setting the classpath ) and
    war need ) the properties don't get extracted.
    In some of our servlets we are trying to access those files with the path "WEB-INF/foo.properties"
    and we get a FileNotFoundException. Then we check and see that NO properties files
    have been extracted into their appropriate places ( not even those we throw into
    the WEB-INF/classes directory ).
    PLEASE HELP,
    Christian Hargraves

    The file doesn't have to be extracted from the war. For example, you can place
    test.properties into your app WEB-INF and write a simple JSP to see how it
    works:
    <%
    InputStream in = application.getResourceAsStream("/WEB-INF/test.properties");
    %>
    It will return you a zip inputstream if you deployed your application as a .war.
    Christian Hargraves <[email protected]> wrote:
    I try this, but I get a NullPointerException. The file never actually gets extracted
    from the war. Under tomcat and resin this works great ( that's why I am having all
    of the trouble i am having ), but there are absolutely no properties files in the
    extracted directories for WebLogic deploys. only:
    WEB-INF/some_tmp_dir/WEB-INF/lib
    and then some dynamically generated jor file with all of the classes that would normally
    go in WEB-INF/classes ( all except the properties, of course, which are no where
    to be found. ).
    There has to be some kind of setting I am missing. Please don't make me seperate
    these properties files from the war/ear and then put the path to these properties
    files in the CLASSPATH, changing one step to three steps to deploy!!
    I have found a documented bug where you can't even put the properties files in a
    jar file and that bug will never be fixed for WebLogic 6.1.
    "Dimitri I. Rakitine" <[email protected]> wrote:
    To access files in WEB-INF you can use ServletContext.getResourceXXX("/WEB-INF/filename")
    Christian Hargraves <[email protected]> wrote:
    We have a war file that needs to access properties files that are in theWEB-INF directory
    of the war file. We also need to load one of the properties files fromthe classpath.
    However, when we deploy the application ( an ear which inlcludes an ejbjarand a
    war and the libraries both the ejbjar (with a manifest setting the classpath) and
    war need ) the properties don't get extracted.
    In some of our servlets we are trying to access those files with the path"WEB-INF/foo.properties"
    and we get a FileNotFoundException. Then we check and see that NO propertiesfiles
    have been extracted into their appropriate places ( not even those wethrow into
    the WEB-INF/classes directory ).
    PLEASE HELP,
    Christian Hargraves--
    Dimitri
    Dimitri

  • Classes not picked up from WEB-INF/classes

    9ias R2: OC4j
    Some classes could be found from WEB-INF/classes by JSP pages but some others could not.
    WEB-INF/classes is part of the classpath in JSP's point of
    view.
    And if explicitly import the class such as
    import abc;
    in JSP pages and the class could be found.
    Anybody has any idea? Or anything wrong I am doing?
    Thanks!
    David Yuan

    9ias R2: OC4j
    Some classes could be found from WEB-INF/classes by JSP pages but some others could not.
    WEB-INF/classes is part of the classpath in JSP's point of
    view.
    And if explicitly import the class such as
    import abc;
    in JSP pages and the class could be found.
    Anybody has any idea? Or anything wrong I am doing?
    Thanks!
    David Yuan

  • Can't insert text into web page plus script error message

    I'm using CS3 and, on a fairly regular basis, when I am either pasting or inserting content (usually a newsletter of 500-1000 words), I get a message saying something like I can't insert text in this area. I definitely can insert text in the area as I have done it tons of times before. I sometimes have to cut and past a doc line by line to get it to insert. Very frustrating!
    Also, just recently, I've been getting a script error message, "An error has occurred in the script of this page" followed by Line: 992, Char: 106, Error: Unterminated String Constant, followed by the question: Do you want to continue running scripts on this page? I click Yes and everything seems to work fine.
    Help on either would be appreciated.
    Thanks in advance.

    You might want to make sure you are trying to copy plain text. It's possible that if you are copying from a Word document or another Web site that you are bringing along extra unseen code it doesn't like.  Try copying into Notepad first and then copying from Notepad into Contribute.  Not sure if that's the problem or not, but that's what came to my head first.
    I used to get an error that sounds similar (however it's not reproducing the error for me right now) to your error.  It was because some of my users had javascript menus on their page that Contribute didn't like.  However, if worked fine when you clicked yes and it was fine once it was published.   So if you are running a script that's probably why and I wouldn't worry too much about it as long as you can continue working and the page displays to your users correctly once published.  It's just annoying.
    Hope that helps.  Good luck.

Maybe you are looking for