XML Application Scoping

I am trying to use the XML scoping feature to set the relevant XML / XSLT factories
using the weblogic-application.xml file (http://edocs.bea.com/wls/docs81/xml/xml_appscop.html).
I have a single webapp (war file) file that I am packaging inside an .ear archive.
However, these configuration seem to have no effect. I'm doing some logging
and see that the parser is still shown to be the XMLRegistry class. Does anyone
have this working?
- Tim

Hi Tim,
Did you update the MANIFEST.MF with the classpath to point to the
relevant jar in your package?
See step 2: http://edocs.bea.com/wls/docs81/xml/xml_appscop.html#1075700
Thanks,
Bruce
Tim Bardzil wrote:
>
I am trying to use the XML scoping feature to set the relevant XML / XSLT factories
using the weblogic-application.xml file (http://edocs.bea.com/wls/docs81/xml/xml_appscop.html).
I have a single webapp (war file) file that I am packaging inside an .ear archive.
However, these configuration seem to have no effect. I'm doing some logging
and see that the parser is still shown to be the XMLRegistry class. Does anyone
have this working?
- Tim

Similar Messages

  • Defining application-scoped work manager in Plan.xml

    I am having trouble getting my MDBs to recognize work managers that I have defined in my deployment plan using the admin console.
    The work managers show up properly when I click the deployed application and go to the Deployments->myapp.ear->Configuration->Workload tab. They do not show up, however on the Deployments->myapp.ear->Monitoring->Workload tab.
    Also, when the server boots, I get a log message like this:
    <BEA-002919> <Unable to find a WorkManager with name FaxErrorQueue. Dispatch policy FaxErrorQueue will map to the default WorkManager for the application care360-backend-app-2008>even though FaxErrorQueue shows up under Configuration->Workload.
    BACKGROUND
    I am upgrading an 8.1 wls to 10MP1. Our MDBs are deployed as a single jar, included in 2 separate ears, which are deployed to 2 separate clusters. So, if we have 2 clusters with 2 managed servers in each cluster, we deploy each MDB to all 4 servers. We control the Execute Queues for each server in 8.1 with different values so that MDB#1 might have a single thread in one managed server and zero execute threads on another. Using the deployment plan is the only way I can think of to implement this. We would prefer not to use the 8.1 emulation, as the deprecated execution queues will have to be dealt with eventually. I am open to any other approaches to accomplish this as well.
    Thanks,
    Joe

    Hello Fred,
    Thank you very much for reply.
    I totally agree with you but in my scenario, I have multiple domains on a single box.
    and I am afraid that there could be a situation where one bad application of a particular domain may take most of the CPU usages.
    What I can do is: I can define max thread constrain to all the applications of all the domains but it is not acceptable bcz we have hundreds of applications per domain.
    So what I want is: to define some kind of thread constrain at the domain level [so that I can have CPU usages allocated to every domain] as well as some kind of thread constrain to few applications [non prioritize].
    I tried this by defining Global Work Managers & Application-scoped Work Managers but I found that applications only respect to Application-scoped Work Managers.
    or if I have some kind of way that make sure certain percentage of CPU usages is allocated to a particular domain?
    hope I have made my self clear.
    Thanks,
    Qumar

  • Application scoped WorkManager

    We have an application (.ear) which has two web apps (war's). We want to setup workmanager with max-threads-constraint for both the application. I was able to create application scoped workmanager through deployment descriptors However, I was not able to set the thread count other than the default (-1).
    Note: The application (.ear) is targeted to a cluster.
    Here is the snippet of the workmanager that I created in the weblogic.xml
    <wl-dispatch-policy>workmanager-app1</wl-dispatch-policy>
    <work-manager>
    <name>workmanager-app1</name>
    <max-threads-constraint>
    <name>max-app1-threads</name>
    <count>30</count>
    </max-threads-constraint>
    </work-manager>
    Please let me know if any thing is wrong in the work-manager configuration. Any pointers on this is highly appreciated.

    I need a mechanism to limit one of the webapp to use not more than 30 threads and the second webapp not more than 10 threads while targetting to the same cluster.

  • Problem in XML-Application to Application

    Hi
    I am trying to run the XML-Application to Application available on the Oracle site.
    I am using JavaWebServer2.0 and am able to compile all the files successfully,but
    On running the command:
    java xmla2a.tphs.TPHotelSystem
    the following error is encountered:
    java.lang.NoSuchMethodError: oracle.jdbc.driver.OracleConnection: method setTypeMap(Ljava/util/Dictionary;)V not found
    at oracle.AQ.AQOracleSession.<init>(AQOracleSession.java:69)
    at oracle.AQ.AQOracleDriver.createAQSession(AQOracleDriver.java:65)
    at oracle.AQ.AQDriverManager.createAQSession(AQDriverManager.java, Compiled Code)
    at xmla2a.utilities.AQHandler.createSession(AQHandler.java:144)
    at xmla2a.utilities.AQHandler.initializeQueues(AQHandler.java:62)
    at xmla2a.utilities.AQHandler.<init>(AQHandler.java:51)
    at xmla2a.tphs.TPHotelSystem.<init>(TPHotelSystem.java:55)
    at xmla2a.tphs.TPHotelSystem.main(TPHotelSystem.java:64)
    Exception in thread "main"
    Can someone help me in solving this problem.
    warm regards
    Siddharth

    Rajesh
    i have followed the steps given in the index.html carefully.i face no problems in compiling the files.
    here is the brief of the steps i have followed:
    java_home=c:\jdk1.2.2
    jws_home=c:\javawebserver2.0
    added the following packages to the classpath:classes.zip,serlet.jar,classes111.zip,xmlparserv2.jar,classgen.jar,mail.jar,oraclexmlsql.jar,aqapi.jar,jndi.jar
    <xmla2adir> = c:\B2B\xmla2a
    copied the XMLAPPDIR\xmla2a\a2a files to JWS_Home\public_html
    was able to successfully complie the application in the order given in index.html
    added the servlets to the java web server successfully
    But while running the application i got the above stated problem.
    I hope these steps will help u track down my line of action and help me out.
    thanks
    Siddharth
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rajesh Sundararaghavan (Oracle):
    HI,
    One more addition. In case of problems, it would be great if you could let us know the sequence of steps that you followed so that tracking down will be easier.
    Thanks
    Rajesh<HR></BLOCKQUOTE>
    null

  • Application scoped objects in a cluster

    Hi -
              Will weblogic clustering provide failover for Application scoped
              objects (in the ServletContext)? I've read through most of the
              documentation, and it doesn't mention anything. Also, the servlet 2.3
              spec says
              "Context attributes are local to the VM in which they were created.
              This prevents
              ServletContext attributes from being a shared memory store in a
              distributed
              container. When information needs to be shared between servlets
              running in a
              distributed environment, the information should be placed into a
              session (See
              Chapter SRV.7, &#8220;Sessions&#8221;), stored in a database, or set
              in an Enterprise
              JavaBeans TM component." (Section 3.4)
              However, it doesn't mention anything about failover.
              We have lots of application scoped objects that will need to failover
              somehow - anyone have experience with this?
              Thanks,
              Scott
              

    Hi Scott,
              The application scoped objects (ServletContext) are per Web Container as
              explained in the spec. When the server hosting that Web Container dies, so
              too do the objects in the ServletContext.
              If you are looking something like ServletContext that is replicated across
              the cluster and supports failover, you should check out our Coherence
              product at http://www.tangosol.com/ -- that is exactly what it does.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "Scott Gilpin" <[email protected]> wrote in message
              news:[email protected]...
              > Hi -
              >
              > Will weblogic clustering provide failover for Application scoped
              > objects (in the ServletContext)? I've read through most of the
              > documentation, and it doesn't mention anything. Also, the servlet 2.3
              > spec says
              >
              > "Context attributes are local to the VM in which they were created.
              > This prevents
              > ServletContext attributes from being a shared memory store in a
              > distributed
              > container. When information needs to be shared between servlets
              > running in a
              > distributed environment, the information should be placed into a
              > session (See
              > Chapter SRV.7, &#8220;Sessions&#8221;), stored in a database, or set
              > in an Enterprise
              > JavaBeans TM component." (Section 3.4)
              >
              > However, it doesn't mention anything about failover.
              >
              > We have lots of application scoped objects that will need to failover
              > somehow - anyone have experience with this?
              >
              > Thanks,
              > Scott
              

  • XML Application to my edd

    hi,
    sorry for there are so many questions from me.
    I tried to create my XML Application following this PDF.  And I have a problem to add the Strcured Application element (the circled step 2),could you please take some time to show me how to do this in detail? please see my attached markup file.
    thanks a lot!

    Hello again,
    Before we start, it would be a good idea to keep this discussion in one thread, rather than create a new thread for each message.
    First the good news, the table structure is now correct, although you do not allow for a table title.
    I'm sorry to say that the rest of the EDD does not look so good. I think perhaps you have misunderstood the intructions in the developer's guide. To answer your specific question, the StructuredApplication element is from the EDD clement catalog so if you look at the top of an EDD's structure view you will typically see these elements:
    ElementCatalog
         Version
         StructuredApplication
         Element
              Tag
    You can see that the StructuredApplication element can be inserted after the Version element.
    I feel that there is still a great deal for you to understand about XML and FrameMaker's structured application development. One of the first questions to ask is do you already have a DTD or an XML schema that defines the required XML structure, or are you building your own EDD to suit the specific needs of your own documents.
    If you do already have a DTD then the development process is slightly different as you will not need to invent your own EDD structures, elements and attributes.
    Good luck
    Ian

  • Work Manager both Global Work Managers & Application-scoped Work Managers

    Hi all,
    I want to use both Global Work Managers & Application-scoped Work Managers in my domain [single], is it possible?
    Basically I want to make sure my domain have fix number of thread.
    In my environment, I have multiple domains on a single machine, so I want to make sure every domain has fix number of threads to maintain the whole system integrity.
    if I won't make sure this, there could be scenario that one particular domain is taking much of the CPU usages than others.
    Thanks,
    Qumar

    Hello Fred,
    Thank you very much for reply.
    I totally agree with you but in my scenario, I have multiple domains on a single box.
    and I am afraid that there could be a situation where one bad application of a particular domain may take most of the CPU usages.
    What I can do is: I can define max thread constrain to all the applications of all the domains but it is not acceptable bcz we have hundreds of applications per domain.
    So what I want is: to define some kind of thread constrain at the domain level [so that I can have CPU usages allocated to every domain] as well as some kind of thread constrain to few applications [non prioritize].
    I tried this by defining Global Work Managers & Application-scoped Work Managers but I found that applications only respect to Application-scoped Work Managers.
    or if I have some kind of way that make sure certain percentage of CPU usages is allocated to a particular domain?
    hope I have made my self clear.
    Thanks,
    Qumar

  • APPLICATION SCOPED DATASOURCE

    Is possible to set the "Emulate two phase commit for non XA Driver" property for
    an application scoped datasource??
    Thanx

    Is possible to set the "Emulate two phase commit for non XA Driver" property for
    an application scoped datasource??
    Thanx

  • Building Oracle XML Application Book....

    Has anyone purchased the 'Building Oracle XML Applications' book and do they have any opinions on it? Useful?

    It it currently orderable, and is planned to ship by September 31st/October 1st, just in time for the Oracle OpenWorld conference.
    The full table of contents (which eventually should be put also up on the O'Reilly Site) is:
    Preface
    Audience for This Book
    Which Platform and Version?
    Structure of This Book
    Chapter Summaries
    About the Examples
    About the CD-ROM
    Conventions Used in this Book
    Comments and Questions
    Acknowledgements
    Part 1: XML Basics
    Chapter 1: Introduction to XML
    What Is XML?
    What Can I Do With XML?
    Why Should I Use It?
    What XML Technology Does Oracle Provide?
    Chapter 2: Working with XML
    Creating and Validating XML
    Modularizing XML
    Searching XML with XPath
    Part 2: Oracle XML Fundamentals
    Chapter 3: Combining XML and Oracle
    Hosting the XML FAQ System on Oracle
    Serving XML in Any Format
    Acquiring Web-Based XML Content
    Chapter 4: Using JDeveloper for XML Development
    Working with XML, XSQL, and JSP Files
    Working with Database Objects
    Using JDeveloper with Oracle XDK Components
    Chapter 5: Processing XML with PL/SQL
    Loading External XML Files
    Parsing XML
    Searching XML Documents with XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 6: Processing XML with Java
    Introduction to Oracle8i JServer
    Parsing and Programmatically Constructing XML
    Searching XML Documents in Memory Using XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 7: Transforming XML with XSLT
    XSLT Processing Mechanics
    Single-Template Stylesheets
    Understanding Input and Output Options
    Improving Flexibility with Multiple Templates
    Chapter 8: Publishing Data with XSQL Pages
    Introduction to XSQL Pages
    Transforming XSQL Page Results with XSLT
    Troubleshooting Your XSQL Pages
    Chapter 9: XSLT Beyond the Basics
    Using XSLT Variables
    The Talented Identity Transformation
    Grouping Repeating Data Using SQL
    Sorting and Grouping Repeating Data with XSLT
    Chapter 10: Generating Datagrams with PL/SQL
    Programmatically Generating XML Using PL/SQL
    Automatic XML Generation with DBXML
    Chapter 11: Generating Datagrams With Java
    Generating XML Using Java
    Serving XML Datagrams Over the Web
    Automatic XML from SQL Queries
    Chapter 12: Storing XML Datagrams
    Overview of XML Storage Approaches
    Loading Datagrams with the XML SQL Utility
    Storing Posted XML Using XSQL Servlet
    Inserting Datagrams Using Java
    Chapter 13: Searching XML with interMedia
    Why Use interMedia Text?
    What is interMedia Text?
    The interMedia Text Query Language
    Handling Heterogeneous Doctypes
    Handling Doctype Evolution
    Advanced interMedia Text
    Chapter 14: Advanced XML Loading Techniques
    Storing Datagrams in Multiple Tables
    Building an XMLLoader Utility
    Creating Insert Transformations Automatically
    Part 3: Oracle XML Applications
    Chapter 15: Using XSQL as a Publishing Framework
    Overview of All XSQL Pages Facilities
    Additional XML Delivery Options
    Chapter 16: Extending XSQL and XSLT with Java
    Developing Custom XSQL Actions
    Integrating Custom XML Sources
    XSLT Extension Functions
    Chapter 17: XSLT-Powered Portals and Applications
    XSLT-Powered Web Store
    Personalized News Portal
    Online Discussion Forum
    Part 4: Appendices
    Appendix 1: XML Helper Packages
    Installing the XML Helper Packages
    Source Code for the XML Helper Packages
    Appendix 2: Installing Oracle XSQL Servlet
    Installing
    Appendix 3: Conceptual Map to XML Family
    Appendix 4: Quick References

  • Having trouble with xml package in "Building Oracle Xml Applications"

    I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
    SQL> @xml_body
    35 /
    Warning: Package Body created with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY XML:
    LINE/COL ERROR
    19/5 PL/SQL: Statement ignored
    19/15 PLS-00382: expression is of wrong type
    SQL>
    The error occurs at this line in the xml_body package.
    retDoc := xmlparser.getDocument(parser);
    I am new to Oracle and any help would be appreciated.
    CREATE OR REPLACE PACKAGE xml AS
    -- Parse and return an XML document
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
    -- Free the memory used by an XML document
    PROCEDURE freeDocument(doc xmldom.DOMDocument);
    END;
    CREATE OR REPLACE PACKAGE BODY xml AS
    parse_error EXCEPTION;
    PRAGMA EXCEPTION_INIT(parse_error,-20100);
    -- Parse functions parse an XML document and return a handle to
    -- the in-memory DOM Document representation of the parsed XML.
    -- Call freeDocument() when you're done using the document returned
    -- by the function.
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
    retDoc xmldom.DOMDocument;
    parser xmlparser.Parser;
    BEGIN
    IF xml IS NULL THEN RETURN NULL; END IF;
    parser := xmlparser.newParser;
    xmlparser.parseCLOB(parser,xml);
    retDoc := xmlparser.getDocument(parser);
    xmlparser.freeParser(parser);
    RETURN retDoc;
    EXCEPTION
    WHEN parse_error THEN
    xmlparser.freeParser(parser);
    RETURN retDoc;
    END;
    -- Free the Java objects associated with an in-memory DOM tree
    PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
    BEGIN
    xmldom.freeDocument(doc);
    END;
    END;
    null

    I have modified the xml package found in Building Oracle XML Applications chapter 5 to exclude everything but the CLOB function, see Package below. When compiling the package body I am getting the following error.
    SQL> @xml_body
    35 /
    Warning: Package Body created with compilation errors.
    SQL> show errors
    Errors for PACKAGE BODY XML:
    LINE/COL ERROR
    19/5 PL/SQL: Statement ignored
    19/15 PLS-00382: expression is of wrong type
    SQL>
    The error occurs at this line in the xml_body package.
    retDoc := xmlparser.getDocument(parser);
    I am new to Oracle and any help would be appreciated.
    CREATE OR REPLACE PACKAGE xml AS
    -- Parse and return an XML document
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument;
    -- Free the memory used by an XML document
    PROCEDURE freeDocument(doc xmldom.DOMDocument);
    END;
    CREATE OR REPLACE PACKAGE BODY xml AS
    parse_error EXCEPTION;
    PRAGMA EXCEPTION_INIT(parse_error,-20100);
    -- Parse functions parse an XML document and return a handle to
    -- the in-memory DOM Document representation of the parsed XML.
    -- Call freeDocument() when you're done using the document returned
    -- by the function.
    FUNCTION parse(xml CLOB) RETURN xmldom.DOMDocument IS
    retDoc xmldom.DOMDocument;
    parser xmlparser.Parser;
    BEGIN
    IF xml IS NULL THEN RETURN NULL; END IF;
    parser := xmlparser.newParser;
    xmlparser.parseCLOB(parser,xml);
    retDoc := xmlparser.getDocument(parser);
    xmlparser.freeParser(parser);
    RETURN retDoc;
    EXCEPTION
    WHEN parse_error THEN
    xmlparser.freeParser(parser);
    RETURN retDoc;
    END;
    -- Free the Java objects associated with an in-memory DOM tree
    PROCEDURE freeDocument(doc xmldom.DOMDocument) IS
    BEGIN
    xmldom.freeDocument(doc);
    END;
    END;
    null

  • SPA 50X and XML Application URL

    Hello Guys,
    I made a XML application which runs just fine on a SPA 525 but not on the SPA 502 (have not tested on other 50X phones).
    The issue is that the URL I return in a MenuItem for the tag <url> gets cut by the phone when it request it.
    The Flow is
    Phone Requests
    http://192.168.9.207/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123
    and gets in return
    <?xml version="1.0" encoding="UTF-8"?>
    <CiscoIPPhoneMenu><Title>Bla BLa</Title>
    <Prompt>Bla Bla Bla</Prompt><MenuItem>
    <Name>Name1</Name>
    <URL>http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&extensionstatus=yes</URL>
    </MenuItem>
    <MenuItem>
    <Name>Name1</Name>
    <URL>http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&presenceinfo=yes</URL>
    </MenuItem>
    <MenuItem>
    <Name>Name3</Name>
    <URL>http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&fwdrules=yes</URL>
    </MenuItem>
    <SoftKeyItem><Name>Select</Name><URL>SoftKey:Select</URL><Position>1</Position></SoftKeyItem><SoftKeyItem><Name>Exit</Name><URL>Key:Services</URL><Position>2</Position></SoftKeyItem></CiscoIPPhoneMenu>
    Which ever entry i select now, i only see the request from the phone for http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102 
    All Arguments are cut. The this play then writes
    XML format error or invalid application

    Note that there is XML Phone Applications space dedicated to XML Phone Applications questions.
    But it seems to be rather obvious issue. '&' is not allowed char in URL (it is generic rule, nothing special for SPA502). Such special char needs to be escaped accordingly. So replace all occurrences of '&' by '&amp;'. It should help.
    By the way, it is mentioned in documentation.
    Rate useful advices. It will help others to search solutions.

  • XML application development

    Hi !
    Do I really need SDK or Unified Application Environment to develop applications for IP Phones ?
    I mean, since the IP phones can handle HTTP/XML requests and responses, can't I just build xml applications, put them in a Web Server and point an IP Phone Service to this Web Server ?
    Thanks in advance,
    Rod

    Hi Monteiro
    Thanks for your answer.
    That's good news! I need to implement a service that somehow intercepts the Extension Mobility request to first check on a database if the person is authorized to place calls (based on billing reports). If the person is out of call credits, I'll return a "You have no credits" message, otherwise I may proceed with the EM login. At a first glance, do you think it is feasible ?
    Honestly I have no extented programming skills and I just need to know if it can be done. If it is, then I'll find a way to do it !
    Thanks !

  • XML Applications vendors

    Hello,
    Can anyone point me out xml application vendors for cisco ip phones?
    Thank you very much.

    What type of XML application are you looking for? Here are some others.
    Syn-Apps
    AndTek
    IPcelerate
    SingleWire
    You can find many of them through the Cisco Technology Developer program. They even provide a search ability.

  • Errors with jMaki faces-config.xml - Application won't run.

    I'm getting a couple errors when trying to run my jMaki enabled applications. I tried for a week to find a solution, but not luck. Below is the server log. Does anyone have any ideas?
    validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
    Attempt to set unsupported feature on XMLReader necessary for validation. Validation will bedisabled.
    WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Documents%20and%20Settings/j/netbeans/6.0/workspace/dAdmin/build/web/WEB-INF/lib/jsfcompounds-core-0.0.6.jar!/META-INF/faces-config.xml: Error at line 4 column 99: Element type 'faces-config' was not declared
    at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4515)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    [REMOVED LINES]
    at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    PWC1306: Startup of context /dAdmin failed due to previous errors

    ok, I changed the value to false. This all started when I updated my plugins. The original offending plugin appeared to jMaki.
    Here is the version information for glassfish:
    Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
    CORE5098: AS Socket Service Initialization has been completed.
    MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_06] from [Sun Microsystems Inc.] Here is my original post, so you can see the evolution of this problem:
    [http://forums.java.net/jive/thread.jspa?threadID=43941&tstart=0|http://forums.java.net/jive/thread.jspa?threadID=43941&tstart=0]
    Here is the error after making the suggested changes to domain-web.xml:
    validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\workspace\dAdmin\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/dAdmin'
    WebModule[/dAdmin]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jndi:/server/dAdmin/WEB-INF/faces-config.xml: Error at line 17 column 9: Error at (17, 9: already parsing
            at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:376)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4515)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:5176)
            at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
            at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
            at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
            at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
            at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
            at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
            at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
            at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
            at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
            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:597)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
            at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
            at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
            at $Proxy1.invoke(Unknown Source)
            at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
            at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
            at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
            at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
    PWC1306: Startup of context /dAdmin failed due to previous errors

  • After Making Changes In Log4j.xml Application Needs Recompilation?

    Hello,
    I am using log4j in my jsp pages and for that I instantiating Logger class like this
    Logger logger = Logger.getLogger("test.jsp");
    {code}
    And I have log4j.xml in the classpath.
    I believe, priority levels can be changed and log level can be changed without re-compiling.
    Change the log4j.xml and re-run jsp pages.
    However I need to re-compile after making changes in log4j.xml file. Without re-compilation changes are not getting reflected.
    Why I need to re-compile application in order to see the changes I have made in log4j.xml?
    Appreciate any help in this regard.
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This is the contents of my log4j.xml, its under WEB-INF/lib
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- A1 is set to be a ConsoleAppender -->
      <appender name="sout" class="org.apache.log4j.ConsoleAppender">
        <!-- A1 uses PatternLayout -->
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%d [%c] %p - %m%n"/>
        </layout>
      </appender>
      <root>
        <!-- Set root logger level to DEBUG and its only appender to A1 -->
        <priority value="off"/>
        <appender-ref ref="sout"/>
      </root>
    </log4j:configuration>

Maybe you are looking for