Accessing resources in EJB

Hello,
I have an stateless session bean, and I need to access some resources which I packaged in the resulting jar.
For example I have source package like this:
org.example.bean.*
org.example.files.*
In the code I thought that I will be able to access these files in common way:
String urlName = "org/example/files/file1"
URL resURL = this.getClass().getResource(urlName);
or
URL resURL = ClassLoader.getSystemResource(urlName);
but it don't work, everytime it returns null.
Maybe in EJB container the code like that dont function, I don't know but it's working in common java aplication so I  thought it will be so also in ejb.
Can anyone tell me how can I access my files?
Any help would be appreciated.
Best Regards,
Miroslav Koskar

Hi Miroslav ,
Are you trying to access stateless session bean or classes
from a packaged jar into your stateless session bean?
If you are trying to access the stateless session bean,then you can go by the way Ray has suggested.
Or, if you are trying to access the classes inside a jar in you stateless session bean then here u go...
In your EJB->project->right clicj-> properties->java build path -> Add External Jars and add the desired jars.
Now you will be able to access it as you wanted.
Hope this suggestion helps.
Pl reward points if the suggestion helped you.
Thanks and regards
Deepa

Similar Messages

  • Ways to Get Resources in EJB

    Ways to Get Resources in EJB 3_
    source: http://javahowto.blogspot.com/2006/06/5-ways-to-get-resources-in-ejb-3.html
    Use resource injection with runtime info mapping.
    For example,
    package com.foo.ejb;
    import javax.ejb.Remote;
    @Remote public interface ResourceRemote {
    public void hello();
    package com.foo.ejb;
    import javax.annotation.Resource;
    import javax.ejb.Stateless;
    import javax.sql.DataSource;
    @Stateless
    public class ResourceBean implements ResourceRemote {
    @Resource(name="jdbc/employee")
    private DataSource employeeDataSource;You don't need ejb-jar.xml. For portable applications, you will need appserver-specific deployment plan to map the logical name (jdbc/employee) to the actual DataSource configured in the target runtime environment. For JavaEE SDK 5, Glassfish, and Sun Java System Application Server 9, it's sun-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN"
    "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
    <sun-ejb-jar>
    <enterprise-beans>
    <ejb>
    <ejb-name>ResourceBean</ejb-name>
    *<jndi-name>ResourceBean</jndi-name>*
    <resource-ref>
      <res-ref-name>jdbc/employee</res-ref-name>
        <jndi-name>jdbc/__default</jndi-name>
    </resource-ref>
    </ejb>
    </enterprise-beans>
    </sun-ejb-jar>
    We have a tag like +<jndi-name>ResourceBean</jndi-name>+  in the above. Do we use this jndi-name ? If so, where ?

    user575089 wrote:
    Do we use this jndi-name ? If so, where ?If you need to look the bean up from JNDI?

  • Missing version field in response from server when accessing resource

    HY
    I have a problem to use the version option of the webstart. All files are included into a war file (created with jar cvf xx.war *). This file is in the webapps folder of the Tomcat 5. The jar files from the dev. kit (jnlp-servlet.jar, jaxp.jar, parser.jar are in the WEB-INF/lib folder).
    Every time I get the same message:
    Category: Download Error
    Missing version field in response from server when accessing resource: (http://localhost:8080/version/ademo.jar, 1.1)
    Do I need a aditional file or must Iwrite a servlet???
    Whats wrong
    my JNLP file
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File fuer HJP3 WebStart Demo-Applikation -->
    <jnlp codebase="http://localhost:8080/version/" href="wstest.jnlp">
    <information>
    <title>HJP3 WebStart Demo Application</title>
    <vendor>Guido Krueger</vendor>
    <homepage href="http://www.javabuch.de"/>
    <description>HJP3 WebStart Demo Application</description>
    <icon href="wstest.gif"/>
    <offline-allowed/>
    </information>
    <information locale="de">
    <description>HJP3 WebStart Demo-Applikation</description>
    <offline-allowed/>
    </information>
    <security>
    <!-- <all-permissions/> //-->
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="ademo.jar" version="1.1"/>
    </resources>
    <application-desc main-class="Listing3813"/>
    </jnlp>
    my version.xml file
    <jnlp-versions>
    <resource>
    <pattern>
    <name>ademo.jar</name>
    <version-id>1.1</version-id>
    </pattern>
    <file>application.jar</file>
    </resource>
    </jnlp-versions>
    my web.xml file
    <?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>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
    </web-app>

    The log file (jnlpdownloadservlet.log) would show the calls for the jar files if the servlet is called for the jar files (did you correct the url mapping ?). Here are a few lines from a log file
    JnlpDownloadServlet(4): Initializing
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfeguiv.jnlp
    JnlpDownloadServlet(3): User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfeguiv.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfeguiv.jnlp lastModified=Tue Mar 23 17:06:56 CET 2004]]
    JnlpDownloadServlet(3): Resource returned: /wfe/wfeguiv.jnlp
    JnlpDownloadServlet(4): lastModified: 1080058016000 Tue Mar 23 17:06:56 CET 2004
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.gif
    JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.gif isPlatformRequest=false]
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.jar
    JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.jar isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfegui.jar lastModified=Tue Mar 23 17:06:30 CET 2004]]
    JnlpDownloadServlet(3): Resource returned: /wfe/wfegui.jarYou should see all the resources (including jar files) being requested, and whether a specific version was requested or not (in above sample, not).
    I put my problems down to my application server (Orion) as other people seem to have this working. The deployment in Orion keeps the original timestamps of the jars, so I explicitly set the timestamps in my build so that the unchanged jars do not have to be downloaded all the time. This is not really a good solution, so maybe someone else can give further advice.
    Brendan

  • Unable to Access Resource Error in AE CS6

    Hello,
    I'm running After Effects CS6 11.0 on MAC OSX  and everytime I attempt to apply text, either by creating a new text layer from the drop down menu or dragging open a text box I get
    "Unable to Access Resource    P_TextSmallCaps_Sm_N_D (type png)"
    Is this a png file missing from the program, a fixable bug or what?
    Any help at all would be greatly appreciated. Thank you.

    Run the Creative Cloud Cleaner Tool, reinstall the program. Something is damaged.
    Mylenium

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How to remove admin permissions AD DS when admin from one forests access resources in another forest?

    Hello Community
        A  forestA and 
    a forestB exists on the network.
        In forestA, active directory has an administrator.
        In forestB, activre directory also has an administrator.
        There is a trust reletionship between the 2 forests.
        When the administrator for forestA  accesses resources
    in forestB,  how can I make sure that the administrator in
    forestA does not have administrative permissions in foresB?
        Thank you
        Shabeaut

    They do not have access by default unless if you delegate that to them. For high secure environments, you might consider implementing a Selective Authentication: http://technet.microsoft.com/en-us/library/cc755844(v=ws.10).aspx
    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Get Active Directory User Last Logon
    Create an Active Directory test domain similar to the production one
    Management of test accounts in an Active Directory production domain - Part I
    Management of test accounts in an Active Directory production domain - Part II
    Management of test accounts in an Active Directory production domain - Part III
    Reset Active Directory user password

  • Missing version filed in response from server when accessing resource

    Hello all,
    I am getting the following error when trying to do jar version download in webstart.
    Missing version field in response from server when accessing resource(http://lo alhost:8080/jdc/jnlp/new/SimpleGUI.jar,1.0)
    I am using Tomcat 5.5.
    My web.xml looks like this,
    <web-app>
    <display-name>Tomcat Examples</display-name>
    <description>
    Tomcat Example servlets and JSP pages.
    </description>
    <servlet>
    <servlet-name>
    JnlpDownloadServlet
    </servlet-name>
    <servlet-class>
    jnlp.sample.servlet.JnlpDownloadServlet
    </servlet-class>
    <init-param>
    <param-name>
    logLevel
    </param-name>
    <param-value>
    DEBUG
    </param-value>
    </init-param>
    <init-param>
    <param-name>
    logPath
    </param-name>
    <param-value>
    c:\logs\jnlpdownloadservlet.log
    </param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>/jdc/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jar</url-pattern>
    </servlet-mapping>
    </web-app>
    My version.xml file.
    <jnlp-versions>
    <resource>
    <pattern>
    <name>SimpleGUI_v1.0.jar</name>
    <version-id>1.0</version-id>
    <locale>en_US</locale>
    <locale>en</locale>
    </pattern>
    <file>SimpleGUI_v1.0.jar</file>
    </resource>
    <resource>
    <pattern>
    <name>SimpleGUI_v2.0.jar</name>
    <version-id>2.0</version-id>
    <locale>en_US</locale>
    <locale>en</locale>
    </pattern>
    <file>SimpleGUI_v2.0.jar</file>
    </resource>
    </jnlp-versions>
    My jnlp file is as follows,
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/jdc/jnlp/new" href="SimpleGUI.jnlp">
    <information>
    <title>SimpleGUI</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="/jdc/jnlp/new/index.html" />
    <description>Demonstration of JNLP</description>
    </information>
    <offline-allowed/>
    <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+ " />
    <jar href="SimpleGUI_v1.0.jar" version="1.0"/>
    <jar href="AddLogic_v1.0.jar"/>
    <jar href="SimpleGUI_v2.0.jar" version="2.0"/>
    <jar href="AddLogic_v2.0.jar"/>
    </resources>
    <application-desc main-class="com.logic.SimpleGUI" />
    </jnlp>
    For the codebase if I use $$codebase then it reports an error showing,
    The field <jnlp> codebase has an invalid value:$$codebase
    I think the JnlpDpwnloadServlet is not getting invoked. I cant figure out my mistake. I am tired searching in forums and there is no proper answer to this problem. Any help is appreciated.
    Thanks in advance.
    Regards,
    robi

    Thanks for including all your code. I've ran into version download problems before also. In the jar reference don't include the actual __V.jar file name, just include all pre __V.jar. <jar href="AddLogic_v1.0.jar"/> would become <jar href="AddLogic.jar"/>. Now I haven't done it with the version.xml before I just did it with making file named *__V.jar.
    I just re-read all that you did, if you title your files with the __V.jar notation you don't need a version.xml file.
    <jar href="SimpleGUI_v1.0.jar" version="1.0"/>
    Should become
    <jar href="SimpleGUI.jar" version="1.0"/>
    And you would have SimpleGUI_v1.0.jar on your server. Also might need it to be a capital "V" not sure.
    Message was edited by:
    javaunixsolaris

  • Accessing Resource Central

    Pardon my asking this simple question as I suspect I am missing something obvious, (I did a search of the forum and did not find anything on it)
    Where and how do I access RESOURCE CENTRAL ?
    I want to look at the new scores as well as the sound effects
    Thank you

    Thnaks Jeff
    Knew it was something simple
    BUT it does not want to connect - the little circular arrow just goes round and round

  • Accessing resource files inside Jar using Fat Jar Eclipse plugin

    Hi,
    I want to develop single JAR file that uses a set of other JAR libraries. I am using Fat Jar Eclipse plugin. It works fine. However, I have problem to access resources files (i.e. rdf file) using relative path from my classes. Is there any idea how can I pack, set classpath and use relative path in order to make it works.
    Thanks
    Zoran

    I have solved this problem. The problem was in a way how I have trying to access it. It should be like:
    URL fileURL = this.getClass().getResource("resource/myFile.rdf");
    Zoran

  • How can I access to an EJB from a JSP, using a taglib?

    I'm trying to access to an EJB from a JSP using a taglib,
              and I get the example in
              http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Advanced5.html.
              But I colund't run this example because in the weblogic Log appears many
              errors when I run the JSP.
              Can you help me?
              

    Backing files is an option. If you need to do it from the controller, you
    could use the Forward object. The forward object constructor can take a URL
    object as a parameter. This should do the trick.
    Regards,
    Kunal
    "Panji Aryaputra" <[email protected]> wrote in message
    news:[email protected]..
    Hi, you have to use backing file to get what you want. In my case, I am
    using a page backing file. Perhaps a portlet backing file can do thatalso.
    Cmiiw, the redirect header makes the page redirected only if the httpheader
    has not been sent to client. In your case, the header has been sent (i.e.
    the portal header.jsp has been displayed, etc). So the header need to be
    sent before anything else sent to client browser. This is where thebacking
    file comes handy.
    hth
    panji.a
    "A Hagen" <[email protected]> wrote in message
    news:[email protected]..
    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside
    a
    portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing
    happens
    I tryed the same trick with a simple JSP, and that's ok, but portal
    pages
    obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser
    to
    another
    page from inside portlets?
    Thanks!!!

  • Accessing resources on device

    How would you access resources, such as media (mp3) stored on the device (flash card), list available such resources, download and save (rather than to the record store) etc.?

    A little summery for future ref:
    Intro
    "The FileConnection API [JSR-075] gives access to file systems and support for file-oriented operations. The API assumes the existence of a file system in the device that can be located, for example, in removable memory cards, flash memory, or other types of persistent storage. This API is not meant to be a replacement for the Record Management System (RMS) but rather a complement to it allowing MIDlets to interact with native applications. For example, a MIDlet could access and manipulate images previously captured by a native application using a built-in digital camera. Those images are commonly stored in the device�s memory and with the FileConnection API they are made accessible to CLDC/CDC1 applications."
    "The API is very simple containing just one class, two interfaces, and two exceptions. The most important part is the FileConnection interface, which extends the Connection interface and gives access to directories and individual files. Implementations of FileConnection are created using the Connector.open() method. The argument of the open() method is a URL with the format file://<host>/<path>, as defined in RFC 1738 [RFC 1738] and RFC 2396 [RFC 2396], where host is normally left empty and path starts with the root of the file system down to a particular file or directory. An example of a typical file URL in a Symbian device looks like the following: file:///C:/Nokia/Images/Image(001).jpg The roots of the file system are device-specific and they don�t necessarily correspond to physical memory units since they are logically defined by the device�s operating system."
    "Since the FileConnection API is an optional extension, a system property has been added to indicate the API�s presence. The microedition.io.file.FileConnection.version system property contains the implemented version of the API. Currently this property should have the value 1.0 to indicate the current status of the API or null if the API is not present."
    supporting environments:
    IBM's J9, PalmOS 5, Windows Mobile 2003.
    Some mobile phones supporting FileConnection are listed here: http://www.benhui.net/modules.php?name=Midp2Phones
    Links:
    http://www-128.ibm.com/developerworks/library/j-pda-op/
    http://jcp.org/aboutJava/communityprocess/final/jsr075/index.html
    http://itpapers.techrepublic.com/abstract.aspx?docid=104503
    http://forum.java.sun.com/thread.jspa?threadID=524143&tstart=210

  • Authorization decision based on property of accessed resource?

    Hi everyone!
    Is it possible to base the decision of a policy service in AM based on a property of the accessed resource? I can specify the method and the resource name, but can I also specify a property of the resource, maybe using some plugin for AM? For example a doctor should only be allowed access to a patient's file if it's his patient, and the patient has a property naming the doctor in charge.
    And another question: How can I take things such as time into account of an authorization decision? I don't want to code this in the application. The application should only ask: May $Subject access $Resource using $Method? Everything else (time, role of subject etc) should be definable on the PDP.
    Thanks for comments!
    Chris
    PS Actually I'd need a PDP which can handle policies as powerful as those definable using XACML combined with the authentication capabilities of AM.

    Found it! First, of course, there are conditions which already cover simple cases. For more elaborate authorization one can add new conditions by extending a java interface, as described here:
    http://docs.sun.com/app/docs/doc/819-4675/6n6qfk0o3?a=view
    By writing a new xml-document you can add a new policy service with arbitrary methods. The process is described in the manual or here:
    http://developers.sun.com/identity/reference/techart/secureapps.html

  • Not able to Access the Remote EJB component

    Hi,
    Please help me i am trying to access the EJB Remote Component through my struts application but i am getting following error:
    Aug 23, 2007 4:49:06 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8081
    Aug 23, 2007 4:49:06 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2086 ms
    Aug 23, 2007 4:49:06 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Aug 23, 2007 4:49:06 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
    Aug 23, 2007 4:49:06 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Aug 23, 2007 4:49:06 PM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Aug 23, 2007 4:49:06 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
    Aug 23, 2007 4:49:08 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Aug 23, 2007 4:49:08 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Aug 23, 2007 4:49:09 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    Aug 23, 2007 4:49:11 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
    Aug 23, 2007 4:49:11 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
    Aug 23, 2007 4:49:11 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /registration from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/registration
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:11 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:12 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:14 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /customercare from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\customercare
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:15 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\customercare\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:49:16 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Aug 23, 2007 4:49:16 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Aug 23, 2007 4:49:18 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='com.Test.customercare.web.application', returnNull=true
    Aug 23, 2007 4:49:18 PM org.apache.struts.tiles.TilesPlugin init
    INFO: Tiles definition factory loaded for module ''.
    Aug 23, 2007 4:49:19 PM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
    Aug 23, 2007 4:49:39 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Connection timed out: connect
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
         at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Aug 23, 2007 4:49:39 PM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validation.xml'
    Aug 23, 2007 4:50:00 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Connection timed out: connect
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
         at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Aug 23, 2007 4:50:00 PM com.Test.framework.web.security.SecurityPlugIn init
    INFO: Loading roles and permissions for CBS...
    Aug 23, 2007 4:50:00 PM com.Test.framework.web.security.SSOAccessController loadRolesAndPermissions
    INFO: Loading permissions for application CBS...
    Aug 23, 2007 4:50:01 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
    Aug 23, 2007 4:50:01 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
    Aug 23, 2007 4:50:01 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples
    Aug 23, 2007 4:50:01 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /StrutsExample from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\StrutsExample
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:01 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\StrutsExample\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Aug 23, 2007 4:50:02 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Aug 23, 2007 4:50:02 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 25 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
    org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1495)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:944)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Aug 23, 2007 4:50:02 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /StrutsExample_CMP from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\StrutsExample_CMP
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\StrutsExample_CMP\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Class-Path
    Aug 23, 2007 4:50:02 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Aug 23, 2007 4:50:02 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Aug 23, 2007 4:50:03 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 25 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
    org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1495)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:944)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Aug 23, 2007 4:50:03 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
    Aug 23, 2007 4:50:03 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /webdav from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
    Aug 23, 2007 4:50:03 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8081
    Aug 23, 2007 4:50:03 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Aug 23, 2007 4:50:03 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/93 config=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
    Aug 23, 2007 4:50:04 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 57514 ms
    In

    SEVERE: Parse Error at line 25 column 17: The content
    of element type "struts-config" must match
    "(data-sources?,form-beans?,global-exceptions?,global-
    forwards?,action-mappings?,controller?,message-resourc
    es*,plug-in*)".
    org.xml.sax.SAXParseException: The content of element
    type "struts-config" must match
    "(data-sources?,form-beans?,global-exceptions?,global-
    forwards?,action-mappings?,controller?,message-resourc
    es*,plug-in*)".It's due to an error with your struts-config.xml. Your elements in the <struts-config> tag are not conforming to the DTD against which it is validated. Check if the order of the elements is as specified in this error message and also check if you have closed all tags correctly.

  • Sample weblogic-ejb-jar.xml for Resource-ref EJB 3.0

    I am trying to create an MDB that can be re-used under different names.
    @MessageDriven(description = "An MDB that transfers messages from one Queue to another", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public class TransferMdb implements MessageListener {
    private static final Logger LOG = Logger.getLogger(TransferMdb.class);
    @Resource(name = "jms/connfactory")
    private ConnectionFactory connectionFactory;
    @Resource(name = "jms/targetDestination")
    private Queue targetDestination;
    <ejb-jar version="3.0" 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/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <message-driven>
    <ejb-name>TransferMdb</ejb-name>
    <ejb-class>TransferMdb</ejb-class>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>TransferMdb</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>200</max-beans-in-free-pool>
    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>test_queue</destination-jndi-name>
    <transaction-descriptor>
    <trans-timeout-seconds>20</trans-timeout-seconds>
    </transaction-descriptor>
    </message-driven-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jms/connectionfactory</res-ref-name>
    <jndi-name>connectionfactory</jndi-name>
    </resource-description>
    <resource-description>
    <res-ref-name>jms/targetDestination</res-ref-name>
    <jndi-name>reply_queue</jndi-name>
    </resource-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    However when I deploy the above, I get exceptions such as:
    problem: cvc-complex-type.2.4a: Expected elements 'initial-context-factory@http://www.bea.com/ns/weblogic/weblogic-ejb-jar provider-url@http://www.bea.com/ns/weblogic/weblogic-ejb-jar connection-factory-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-polling-interval-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar generate-unique-jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar durable-subscription-deletion@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-messages-in-transaction@http://www.bea.com/ns/weblogic/weblogic-ejb-jar distributed-destination-connection@http://www.bea.com/ns/weblogic/weblogic-ejb-jar use81-style-polling@http://www.bea.com/ns/weblogic/weblogic-ejb-jar init-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar security-plugin@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element message-driven-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    problem: cvc-complex-type.2.4a: Expected elements 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar iiop-security-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-env-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar ejb-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar service-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar enable-call-by-reference@http://www.bea.com/ns/weblogic/weblogic-ejb-jar network-access-point@http://www.bea.com/ns/weblogic/weblogic-ejb-jar clients-on-same-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar run-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar create-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remove-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar passivate-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar local-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar dispatch-policy@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remote-client-timeout@http://www.bea.com/ns/weblogic/weblogic-ejb-jar stick-to-first-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'reference-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element weblogic-enterprise-bean@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:146)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    Truncated. see log file for complete stacktrace
    I am clearly missing items in the weblogic-ejb-jar.xml. If anyone has a sample or tips, that would be awesome as a starting point.

    Those tags just declare that you are using our CMP provider and that
    your descriptor is in META-INF/weblogic-cmp-rdbms-jar.xml.
    FWIW, you might also want to check out EJBGen. It tends to keep more up
    to date with WLS than xdoclet.
    -- Rob
    Gen wrote:
    I am using xdoclets to generate descriptor file weblogic-ejb-jar.xml
    for a BMP entity bean. Xdoclet is generating the descriptor file
    alright, but is putting the following extra tags. This happens even
    for samples which come with the download, so my tags in java file are
    not wrong.
    My question is, are the extra tags below harmless, or should I
    manually go to each desciptor file and remove them?
    Thanks.
    ----------- EXTRA TAGS GENERATED START ---------
    persistence> <persistence-type>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-type>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    </persistence-use>
    </persistence>
    ----------- EXTRA TAGS GENERATED END ---------
    ----------- TAGS I PUT IN JAVA CLASS START --------
    * @ejb:bean name="com.ejb.entity.Customer"
    * jndi-name="com.ejb.entity.CustomerHome"
    * view-type="remote"
    * type="BMP"
    * primkey-field="com.ejb.entity.CustomerPK"
    * reentrant="false"
    * @weblogic:cache
    * max-beans-in-cache="1000"
    * read-timeout-seconds="900"
    * concurrency-strategy="ReadOnly"
    ----------- TAGS I PUT IN JAVA CLASS END --------

  • Access Resource Adaptar outside the EAR

    Hi,
    I have created a resource adapter and bundled it in a EAR file. This EAR also has a Facade EJB which looks up the resource adapter and provides the required functionalities. This part of my application works perfectly fine. I am able to look up the Facade EJB from outside the EAR and call the required methods.
    Right now we have a new requirement to call the resource adapter from an application which is deployed outside this EAR. I tried adding the following tags to the weblogic-ra.xml
    <enable-access-outside-app>true</enable-access-outside-app>
    <enable-global-access-to-classes>true</enable-global-access-to-classes>
    But when i try to look up the res adapter, it says Null object bound to the JNDI name. Can someone help me on this?
    Regards
    Parthi

    The following is the exception:
    javax.naming.NameNotFoundException: No Object found: StaffwareProcessSuite|null
         at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:888)
         at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:850)
         at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:375)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at TestRAR.main(TestRAR.java:29)

Maybe you are looking for