Menu

#9 urltemplates.URLTemplateDescriptor - Exception while loading

_v1.0.21
open
5
2007-04-23
2007-04-23
Animuk
No

Hi,

I am yrying to use Elvyx for capturing the SQLs getting executed through my application in WL 9.x/Linux/Oracle 10g. While I am copying the elvyx-1.0.23.1.jar in my domain/lib folder I am getting the following exception. Pls do let know the reason. Ref to http://www.elvyx.com/ the latest release.

Previously I have tried to use p6Spy and it didnt work well with our application as its recording the sqls which are used for caching.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<Server state changed to STARTING>
2007-04-23 13:57:51 ERROR urltemplates.URLTemplateDescriptor - Exception while loading URL templates, /WEB-INF/url-template-config.xml

Throwable: javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
Stack Trace:
javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:131)
at org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(URLTemplateDescriptor.java:133)
at org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitializations(PageFlowContextListener.java:102)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.init(PageFlowActionServlet.java:120)
at com.bea.console.internal.ConsoleActionServlet.init(ConsoleActionServlet.java:185)
at javax.servlet.GenericServlet.init(GenericServlet.java:256) at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:94)
at weblogic.servlet.internal.WebAppServletContext$AsyncInitRequest.run(WebAppServletContext.java:1641)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:449)
at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:354)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1254)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.beehive.netui.core.urltemplates.schema.UrlTemplateConfigDocument$Factory.parse(Unknown Source)
at org.apache.beehive.netui.core.urltemplates.DefaultURLTemplateFileParser.parse(DefaultURLTemplateFileParser.java:34)
at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:118)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Pls do let me know where I am doing wrong...

Cheers,
Anirban

Discussion

  • Armando Perdomo

    Armando Perdomo - 2007-04-23

    Logged In: YES
    user_id=1502109
    Originator: NO

    Hello!

    I read the stacktrace and I didn't see anything related with elvyx. In fact, we didn't see a similar behavior before. Let me talk with some collegues with a better weblogic knowledge and I let you know as soon as I got anything new.

    Greetings, Armando ;-)

     
  • Armando Perdomo

    Armando Perdomo - 2007-04-23
    • assigned_to: nobody --> perdom
     
  • Animuk

    Animuk - 2007-04-23

    Logged In: YES
    user_id=1776639
    Originator: YES

    Thanx...I think Elvyx has not been tested with WL9.x this is a bug related to WL 8.x. There some jar files needs to be upgraded for WL9.x.

     
  • Animuk

    Animuk - 2007-04-24

    Logged In: YES
    user_id=1776639
    Originator: YES

    I changed the log4j.properties file and added the line log4j.logger.org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor=FATAL as advised by BEA support to erradicate the error which was appearing earlier. Now I can successfully copy the elvyx...jar in domain/lib folder and elvyx.properties file in domain folder and start the server but when I changed the following entries in WL console

    Driver = com.elvyx.Driver
    Url = jdbc:elvyx:none

    Getting the following error

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    - Could not find datasource: profinia/datasource/readwrite
    javax.naming.NameNotFoundException: Unable to resolve 'profinia.datasource.readwrite'. Resolved 'profinia.datasource'; remaining name 'readwrite'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1123)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:250)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:204)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:212)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:212)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:267)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
    at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
    at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1933)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1216)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:691)
    at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:678)
    at com.idsgrp.profinia.util.db.HibernateSession.getEntityManagerFactory(HibernateSession.java:145)
    at com.idsgrp.profinia.server.startup.EntityManagerFactoryRegistrator.initializeRegistry(EntityManagerFactoryRegistrator.java:19)
    at com.idsgrp.server.lws.j2ee.ServiceListener.contextInitialized(ServiceListener.java:26)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:374)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:83)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1581)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2678)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:874)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(St
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    Let me know where I am doing wrong!!!

    Cheers,
    Anirban

     

Log in to post a comment.