What to add in web.xml to configure Tomahawk1.1.3

I have added following libraries to my project
1.tomahawk-1.1.3.jar
2.tomahawk-facelets.jar
3.commons-filupload.jar
what to add in web.xml to work it correctly? I m using NetBeans5.5 with Tomcat 5.5.17 and JDK1.6
plz help.

Thnx hamidaga for reply. I added common-io-1.1.jar but still no luck :(
I m getting same error at tomcat5.5.17 server log
java.lang.ClassNotFoundException: [Ljava.lang.String;
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:615)
Mar 9, 2007 4:27:31 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
and now I m stuck. I cant execute anything..
plz help.

Similar Messages

  • [svn:bz-trunk] 20693: Add a web.xml. crx that has no MessageBroker and RDSServlet.

    Revision: 20693
    Revision: 20693
    Author:   [email protected]
    Date:     2011-03-08 13:09:18 -0800 (Tue, 08 Mar 2011)
    Log Message:
    Add a web.xml.crx that has no MessageBroker and RDSServlet.  Remove reference of webtier in HttpServiceTest.java.  Not sure which tests are using this class and hopefully we can get rid of it since webtier.jar is about to be gone.  Watch out for any new failtures that might be related.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/dev/httpservice/HttpServiceTest.java
        blazeds/trunk/qa/apps/qa-regress/build.xml
    Added Paths:
        blazeds/trunk/qa/resources/webtier/qa/web.xml.crx

    I am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
    I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
    mod_rewrite is enabled and running on the server.
    I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
    -- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
    <code>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
    RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
    RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
    RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
    RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
    RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
    RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
    RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
    RewriteRule (.+)\..(.)$ $1$2 [R, L]]
    <code>

  • Web.xml security configuration (struts)

    Hi all
    i want to restrict the access for the following URL:
    http://localhost:8080/InventoryManager/Usermanagement/addUser.do?methodToCall=addInvUser
    But if i define it like that in web.xml it doesn't work:
    <security-constraint>
    <display-name>User</display-name>
    <web-resource-collection>
    <web-resource-name>user creation</web-resource-name>
    <url-pattern>/Usermanagement/addUser.do?methodToCall=addInvUser*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>create_user</role-name>
    </auth-constraint>
    </security-constraint>
    All other restrictions i created to far are working, but mostly this is restricted for a URL and not a struts action like above.
    Could somebody tell me how i can restrict the access to the method addInvUser or the action mapping addUser.do ?
    Thanks
    Angela

    Perhaps it's not possible (to use HTTP params) as a restricted URL.
    But you can always chek user role programmatically.
    best regards,
    Maris Orbidans
    SCJP SCWCD SCBCD

  • 9.0.3, web.xml, context-param

    Using documentation found on oracle's website, where I needed to have a specific initialization parameter, I setup a context-param in web.xml. In 9.0.2, I got a warning (and posted here but got no response) but was able to continue. In 9.0.3 I can't run my project when I include this parameter.
    Here's what I add to web.xml
    <context-param>
    <param-name>ReportServerURL</param-name>
    <param-value>http://localhost:8888/reports/rwservlet</param-value>
    </context-param>
    when trying to compile, I get:
    Error(76,18): Invalid element 'context-param' in content of 'web-app', expected elements '[taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    Any ideas?
    Thanks,
    Jeff

    If only you would see web-app.dtd you could know that context-param must be enclosed in web-app and be at certain place. See that (from web-app.dtd):
    <!ELEMENT web-app (icon?, display-name?, description?, distributable?,
    context-param*, filter*, filter-mapping*, listener*, servlet*,
    servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?,
    error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*,
    login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>

  • Configuring web.xml for OpenSSO

    Hello!
    I am developing simple web application and want to use opensso in my web application.I have downloaded opensso,deployed and configured ,so i dont need how to configure web.xml ,what filters and jars i needed,i have the simple web.xml
    <web-app>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>admin</web-resource-name>
                   <url-pattern>/admin/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
         </security-constraint>
         <login-config>
              <auth-method>FORM</auth-method>
              <form-login-config>
                   <form-login-page>/login.jsp</form-login-page>
                   <form-error-page>/error.jsp</form-error-page>
              </form-login-config>
         </login-config>
         <security-role>
              <role-name>admin</role-name>
         </security-role>
    </web-app>so what filter should i add in web.xml so that when i access admins page <url-pattern>/admin/*</url-pattern>it should redirect to opensso s login page?

    Yes, I restarted the app server after making changes to web.xml file. No effects.

  • Web.xml configuration for initial servlet load

    Hi all,
    I have heard of entering some tag into web.xml file (deployement descriptor) if we need some servlets to be loaded wheneve the app server starts or restarts. can some body help me regarding what to write in web.xml.
    thanks in advance

    I am having some problems with the same issue although specifying the load-on-startup param is not working for.
    Here is snipet of the web.xml:
    <servlet id="Servlet_1206024889339">
    <servlet-name>ContentServer</servlet-name>
    <servlet-class>COM.FutureTense.Servlet.SContentServer</servlet-class>
    <init-param id="InitParam_1206024988781">
    <param-name>inipath</param-name>
    <param-value>/data/WebSphere/ContentServer</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    This however doesn't init the contentServer servlet. Is there anythign else i need to check? I am using websphere5-1.
    I saw somewhere you might have to specify a loadonstartup=true? Where is this set?
    I know the app is reading the right web.xml because i put in a bad value and saw the error being outputted in the startup log.
    There are some servlets being initialised on startup but not the ones I want. These servlets don't seem to be in the web.xml.
    [10/10/08 11:53:30:265 IST] 1e06de8 WebContainer A SRVE0169I: Loading Web Module: cs.war.
    [10/10/08 11:53:33:330 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: JSP 1.2 Processor: init
    [10/10/08 11:53:34:098 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: SimpleFileServlet: init
    [10/10/08 11:53:34:117 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: DirectoryBrowsingServlet: init

  • JavaServer Faces web.xml rewritten when build

    I am using Netbeans 5.5.1 with the Sun Server 9.0 running on my machine. I have created a connection pool to an IBM iSeries db database. I have added the following code to my web.xml file:
        <resource-ref>
            <description>jdbc:as400://FRED</description>
            <res-ref-name>jdbc/connectionPool</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>But when I try to run the application at build time this above entry is removed from the web.xml file. Can anyone tell me what I am doing wrong?

    I'm not familiar with the tools you are using, but my first question would be if you have configured the application specific deploy time parameters. Wow, that was incomprehensible....
    What I was getting at, is that you have, acting as the application developer, identified an external resource that your application requires. The application deployer (speaking in terms of JEE roles here) has the responsibility to match that logical resource to an actual resource within the application server. This is frequently done by adding an additional XML file, e.g. with JBoss you might add jboss-web.xml. Other application servers do this via some sort of UI when the application is deployed, e.g. Oracle AS has a web interface for this (as well as config files).
    So, did you do this for your app?

  • Simplest way to modify properties from web.xml

    I'm testing a very small Web application which uses init-params in web.xml for configuration. For manual testing purposes, I need to be able to change the values of these as easily as possible, preferably from the WebLogic admin console. (I can do it from the console on Websphere App Server, and on Tomcat by editing a file which is immediately re-read.) We don't currently use deployment descriptors in any way and this is only a test of basic code functionality, not of deployment mechanisms, so the change can be as quick-and-dirty as you like. I'm using WebLogic v10 on Linux.
    Thanks,
    Pete

    Another option for you may be to deploy the application in exploded format and use weblogic.Deployer or WLST to redeploy the application :
    http://edocs.bea.com/wls/docs100/deployment/autodeploy.html
    This would be slightly more similar to your Tomcat deployment, but requires a few more steps.

  • Web.xml problem and using of FrontController Pattern

    I use FrontController pattern and created servlet ControllerServlet.
    I want that when users open my site (for example mysite.com) all requests goes to controller? and even when users enter diretc path to jsp or servlet all requests were sent to ControllerServlet.
    in my As I read in "Java Servlet and JSP CookBook" for this I have to write in web.xml file such code:
    <servlet-mapping>
      <sevlet-name>ControllerServlet</servlet-name>
      <url-pattern>/*</url-pattern>
    </sevlet-mapping>so any requests will be sended to my controller servlet.
    But now I have other problem. How I have to call my jsp pages? When I use RequestDispatcher and forward reques to jsp pahe login.jsp, I have error because this request again redirects to controller.
    PS For calling servlet I have solve of this problem I just have to add to web.xml file security-constraint element for needed servlets.

    You really shouldn't have to map all urls to your ControllerServlet. Set the welcome file in the web.xml to open index.html and in index.html use JavaScript to direct the page to the ControllerServlet. Now as long as you only do RequestDispatcher forwards (no sendRedirects), all hyper links point to the ControllerServlet and all form actions point to the ControllerServlet you are okay. The reason is that the user will nevr see anything else in the browser address other than the ControllerServlet url and should never know the url of any other JSP or Servlet to request them directly.

  • How to read configuration data from an xml file (not web.xml)?

    Hi,
    I want to separate the application specific configuration parameters in a separate xml file and read them as and when they are needed? I know that I can use the wb.xml but I want to separate them in a different xml file because I don't want the web.xml file to be played around later after deployment. If any change is needed then it should be done in the application-config.xml.
    How can I read the parameters from this xml file in my jsp code and also what should be the location of this file if I have
    ../webapps/Root/application
    directoty structure ?
    Any help is greatly appreciated.

    can you give an example of a property file and also
    it is loaded in the jsp ?Hmm... loading properties in a JSP is not a very good idea. You should do it in a separate class, rather than mixing the logic with the display logic.
    Properties properties = new Properties();
    properties.load(UtilClass.class.getResourceAsStream("config.properties"));
    // Add a try - catch block around the load
    // for IOException...

  • JSP include through a web.xml configuration

    I have a website that has many JSP pages and I would like to add some logging lines to each jsp file. I would prefer not to have to edit each jsp file though (it would be time consuming). Is there a way through a configuration change in the webapp web.xml file to make each jsp page first "go through" a servlet (to perform some logic) and then have the servlet pass the request and response on to the jsp file. If so, I could add the logging logic to the servlet and effectively have the logic added to each jsp file.
    If anyone has done something like this, please give me some pointers on how to configure it.
    Thanks,

    It sounds like a servlet filter is what you are after.
    http://java.sun.com/products/servlet/Filters.html
    Its pretty much exactly what you had, just using a Filter interface instead of a servlet.
    Should be something along the lines of this (untested)
    In web.xml:
    <filter>
    <filter-name>jsplogger</servlet-name>
    <filter-class>dagger.servlet.JSPLoggerFilter</servlet-class>
    </filter>
    <filter-mapping>
    <filter-name>jsplogger</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>Filter class:
    public class JSPLoggerFilter implements Filter{
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
      String s=request.getRequestURI();
      System.out.println(s+" "+request.getSession().getId());
      // pass it on down the chain
      chain.doFilter(request, response);
    }Cheers,
    evnafets

  • What is the best way to find a file on the servers disk without using web.xml?

              What is the best way to find a file on the servers disk without using web.xml?
              I want to find a configuration file not contained within the war file I have
              created. Is there a way to pass information into the ServletContext with out
              rebuilding the ear or war files? Tomcat 4.0 can do this in its server configuration
              files. Does BEA have the equivalent?
              Regards,
              Eric
              

    You can specify the path to the file as a system property
              eg
              java -Dconfig.file.location=./mydirecotry/myfile.txt com.test.MyApp
              "Eric White" <[email protected]> wrote in message
              news:[email protected]..
              >
              > What is the best way to find a file on the servers disk without using
              web.xml?
              > I want to find a configuration file not contained within the war file I
              have
              > created. Is there a way to pass information into the ServletContext with
              out
              > rebuilding the ear or war files? Tomcat 4.0 can do this in its server
              configuration
              > files. Does BEA have the equivalent?
              >
              > Regards,
              > Eric
              

  • How to configure a JNDI ressource in the web.xml file

    Hi,
    does someone know if there is a way to configure a JNDI ressource with its parameters only in the web.xml file ?
    In my case, the JNDI ressouce is an oracle database an its conenction paramters: driverClassName, username, password, etc...
    Actually, I put everything in the configuration file of Tomcat but I would like my war file to be 100% independent of the application server.
    Thanks in advance.
    Fred.

    I wrestled with this for a long time. I may have done something wrong, but to get my mySQL JDNI reference to work, I had to add it to the server.xml file. You can try with web.xml, but I eventually just got frustrated and put it in server.xml.
    The following is between two <context> tags:
    <Resource name="jdbc/instance_name_goes_here"
                   auth="Container"
                   type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/same_instance_name_here">
                   <parameter>
                        <name>username</name>
                        <value>user_name_goes_here</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>password_goes_here</value>
                   </parameter>
                   <parameter>
                        <name>driverClassName</name>
                        <value>jdbc_fully_qualified_class_name</value>
                   </parameter>
                   <parameter>
                        <name>factory</name>
                        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                   </parameter>
                   <parameter>
                        <name>url</name>
                        <value>jdbc_connect_url_database_vendor_specific</value>
                   </parameter>
                   <parameter>
                        <name>maxActive</name>
                        <value>8</value>
                   </parameter>
                   <parameter>
                        <name>maxIdle</name>
                        <value>8</value>
                   </parameter>
              </ResourceParams>
    - Saish
    "My karma ran over your dogma." - Anon

  • Add virtual directory to orion-web.xml file of embedded OC4J instance

    I'd like to add a virtual directory to the orion-web.xml file of the embedded OC4J application which comes with JDeveloper (version 10.1.3.3.0.4157). Every time I run my application however, a new orion-web.xml file is created which overwrites the orion-web.xml file with my virtual directory. The orion-web.xml is located in the <JDev_Home>\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\<app Name> directory.
    Does anybody know a solution to this problem?
    Regards,
    Matthieu

    hi there,
    i have the same problem, all the configuration files are included in the EAR file, like application.xml,...
    but the orion-web.xml is not included.
    I dont have that option that you mencioned File->New->Deployment Descriptiors -> web...for oc4j...
    I can create a EAR, WAR or JAR in File->New->Deployment Profiles.
    I need the orion-web.xml to define the MIME types the servlet can return, is it really needed?
    regards,
    Laura

  • What info. to store in the web.xml tag realm-name for a LDAP authentication ?

    Hello everybody,
    I try to authentify users of my web-app with a full-LDAP directory (O.I.D : Oracle
    Internet Directory),
    using Weblogic 5.1.
    So i have configured :
    1) "weblogic.properties"
    2) "ldaprealm.properties"
    and then i have to configure the xml files for my web-app : "web.xml" and "weblogic.xml".
    What kind of information must i put in the tag <realm-name>, under <login-config>
    in "web.xml" file ?
    Is it the same name which is mentionned in the weblogic.security.realmClass property
    of the "weblogic.propertis" file ?
    Is it another name ? Which one ?...
    Could you send me a pair of a web.xml/weblogic.xml associated with a web-app,
    in a LDAP authentication envirnoment ?
    It would be a great help for me.
    Thanks in advance.

    Hi Sylvain,
    Web-Application security works in exactly the same way whether you are using the LDAPRealm,
    or just the fileRealm
    To the web-application, it makes no difference whether a principal is in either LDAPRealm or
    fileRealm
    Here's working pair:
    web.xml
    <web-app>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>myName</web-resource-name>
    <url-pattern>/myDirectory/myFile.html</url-pattern>
    <http-method>GET</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>
    myRole
    </role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-role>
    <role-name>
    myRole
    </role-name>
    </security-role>
    </web-app>
    weblogic.xml
    <weblogic-web-app>
    <description>WebLogic Descriptor</description>
    <security-role-assignment>
    <role-name>myRole</role-name>
    <principal-name>myWLS_principal</principal-name>
    </security-role-assignment>
    </weblogic-web-app>
    Here myWLS_principal should be a user or group that exists in either the WebLogic fileRealm
    or the WebLogic LDAP realm (or other alternate realm -- it doesn't make a difference whether
    this is LDAP, or NTRealm, or UnixRealm, or RDBMSRealm, or Custom Realm...)
    Cheers
    Joe Jerry
    "Sylvain R." wrote:
    Hello everybody,
    I try to authentify users of my web-app with a full-LDAP directory (O.I.D : Oracle
    Internet Directory),
    using Weblogic 5.1.
    So i have configured :
    1) "weblogic.properties"
    2) "ldaprealm.properties"
    and then i have to configure the xml files for my web-app : "web.xml" and "weblogic.xml".
    What kind of information must i put in the tag <realm-name>, under <login-config>
    in "web.xml" file ?
    Is it the same name which is mentionned in the weblogic.security.realmClass property
    of the "weblogic.propertis" file ?
    Is it another name ? Which one ?...
    Could you send me a pair of a web.xml/weblogic.xml associated with a web-app,
    in a LDAP authentication envirnoment ?
    It would be a great help for me.
    Thanks in advance.

Maybe you are looking for

  • How to add multiple databases for a single frontend

    We have a project based on distributed databases and we have to workout on .Net framework.I want to know some information of connecting multiple databases for a single frontend and how can we access them. If so we have connected 2 databases for a sin

  • Can you print one event at a time?

    I can only find options to print out a day's schedule, or week or month, etc. Is there any way to print just one event?

  • HT1386 Some iTunes purchased music no longer plays on my phone 4s.

    Recently my Iphone (which I have had for almost a year with no issue) 4s filled its memory with "Other" and it was coded yellow on the status bar.... This "other" filled my entire 32 gig phone which didnt allow any other information to be stored.  I

  • Is there any upragde tools for SAP B1 to SAP ERP?

    Hi, I know, SAP B1 and SAP ERP are totally different SAP products. In my mind, maybe we should implement the new SAP ERP, and then, migrate the old master data from B1 to ERP... So, is there any upragde tools or procedure (or data migration tools)for

  • Extracting the card code (vendor code) from form 133

    hi all. im kinda new in SBO sdk and im trying to extract the data from form 133 item 4 = cardcode i tried this code                      SAPbouiCOM.Item oItem = null;                     oItem = oForm.Items.Item("4");                     SAPbouiCOM.C