Thanks for your replay,
but i couldn't find any xerces jar in .../homepage/bea/weblogic92/server/lib
am i looking at the wrong folder ?
Anton Gavazuk wrote:
>
> You said
>>>Actually the basic problem is about xercesImpl, i am using
> xercesImpl-2.4.0 to parse xml files but weblogiz alse has xerces in it and
>>>the versions are not matching , i can't do the precompilation and xml
> parsing at the same time.
>
> My idea about this: you can replace xerces lib in
> blablabla/bea/weblogic/server/lib with new (your own, which you are using)
> In our project we do the same with libs in weblogic 8.1
>
> But - what you mean about weblogic.jspc - we are using this as our ant
> task
>
> <java classname="weblogic.jspc" failonerror="true"
> output="${build.logs.dir}/jspc.log"
> dir="${basedir}"
> fork="yes" jvm="${build.java.command}">
> <jvmarg value="-Dweblogic.jsp.windows.caseSensitive=false"/>
> <arg
> line="-g -keepgenerated -depend -compileAll -webapp ${
> build.jspsources.dir} -d ${build.jspclasses.dir}"/>
> <classpath>
> <path refid="project.jsp.classpath"/>
> <pathelement path="${build.javaclasses.dir}"/>
> </classpath>
> </java>
> Please, draw attention on <path refid="project.jsp.classpath"/>
> and <pathelement path="${build.javaclasses.dir}"/>
> For this task you can put your own CUSTOM classpath with your version of
> Xerces lib.
>
>
>
>
>
> 2007/7/13, esra <[EMAIL PROTECTED]>:
>>
>>
>>
>> What dou you mean by saying knew one?
>> to install another version or to install the same weblogic again.?
>>
>> Here ara my exeptions abouth this problem;
>>
>>
>> i am using weblogic9.2 with spring and to parse xml files i am using
>> xercesImpl-2.4.0.
>>
>> when i make precompilation true in weblogic i get an error like that ;
>>
>> java.lang.ClassCastException:
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
>> at
>> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderF
>> actory.java:98)
>> at
>> javelin.jsp.JspTagLibraryFeature.parseTldFromWebXML(JspTagLibraryFeat
>> ure.java:857)
>> at
>> javelin.jsp.JspTagLibraryFeature.initFromWebXML(JspTagLibraryFeature.
>> java:841)
>> at
>> javelin.jsp.JspTagLibraryFeature.init(JspTagLibraryFeature.java:442)
>> at
>> javelin.jsp.JspTagLibraryFeature.init(JspTagLibraryFeature.java:241)
>> at
>> javelin.jsp.JspTagLibraryFeature.setCPL(JspTagLibraryFeature.java:42)
>>
>> at javelin.CPL.getFeature(CPL.java:1580)
>> at
>> javelin.jsp.JspParser.getTagLibraryFeature(JspParser.java:3553)
>> at javelin.jsp.JspParser.getTagLibInfo(JspParser.java:2241)
>> at javelin.jsp.JspParser.jspParse(JspParser.java:462)
>> at javelin.jsp.JspParser._parse(JspParser.java:381)
>> at javelin.jsp.JspParser.parse(JspParser.java:374)
>> at javelin.jsp.JspAnalyzer.parseFile(JspAnalyzer.java:113)
>> at javelin.jsp.JspAnalyzer.parse(JspAnalyzer.java:101)
>> at javelin.ProxySourceFile.parse(ProxySourceFile.java:117)
>> at javelin.SourceFile.getAst(SourceFile.java:542)
>> at javelin.SourceFile.getAst(SourceFile.java:516)
>> at javelin.ProxySourceFile.codeGen(ProxySourceFile.java:215)
>> at javelin.SourceFile.codeGen(SourceFile.java:310)
>> at
>> javelin.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:11
>> 05)
>> at javelin.client.Job.performJob(Job.java:81)
>> at
>> javelin.client.ThreadPool$WorkerThread.run(ThreadPool.java:215)
>>
>> and when i don't use xerces i couln't parse context xml files and i get
>> this
>> error;
>>
>> ERROR org.springframework.web.context.ContextLoader - Context
>> initialization failed
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Unexpected
>> exception parsing XML document from class path resource
>>
>> [_app_ctx/applicationConte
>> xt.xml]; nested exception is java.lang.ClassCastException:
>> weblogic.xml.jaxp.RegistryDocumentBuilderFactory
>> Caused by:
>> java.lang.ClassCastException:
>> weblogic.xml.jaxp.RegistryDocumentBuilderFactory
>> at
>> javax.xml.parsers.DocumentBuilderFactory.newInstance(
>> DocumentBuilderFactory.java:95)
>> at
>>
>> org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory
>> (DefaultDocumentLoader.java:88)
>> at
>> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(
>> DefaultDocumentLoader.java:70)
>> at
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
>> (XmlBeanDefinitionReader.java:351)
>> at
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
>> (XmlBeanDefinitionReader.java:303)
>> at
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
>> (XmlBeanDefinitionReader.java:280)
>> at
>>
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
>>
>> (AbstractBeanDefinitionReader.java:131)
>> at
>>
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
>>
>> (AbstractBeanDefinitionReader.java:147)
>> at
>>
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
>> (XmlWebApplicationContext.java:124)
>> at
>>
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
>> (XmlWebApplicationContext.java:92)
>> at
>>
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
>>
>> (AbstractRefreshableApplicationContext.java:101)
>> at
>>
>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
>> (AbstractApplicationContext.java:389)
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(
>> AbstractApplicationContext.java:324)
>> at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(
>> ContextLoader.java:244)
>> at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(
>> ContextLoader.java:187)
>> at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(
>> ContextLoaderListener.java:49)
>> at
>> com.sony.swap.context.loader.SwapContextLoaderListener.contextInitialized(
>> SwapContextLoaderListener.java:18)
>> at
>> weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(
>> EventsManager.java:375)
>> 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:1591)
>> at
>> weblogic.servlet.internal.WebAppServletContext.start(
>> WebAppServletContext.java:2734)
>> at
>> weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java
>> :892)
>> at
>> weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
>> at
>> weblogic.application.internal.flow.ModuleStateDriver$3.next(
>> ModuleStateDriver.java:204)
>> at
>> weblogic.application.utils.StateMachineDriver.nextState(
>> StateMachineDriver.java:26)
>> at
>> weblogic.application.internal.flow.ModuleStateDriver.start(
>> ModuleStateDriver.java:60)
>> at
>> weblogic.application.internal.flow.ScopedModuleDriver.start(
>> ScopedModuleDriver.java:200)
>> at
>> weblogic.application.internal.flow.ModuleListenerInvoker.start(
>> ModuleListenerInvoker.java:117)
>> at
>> weblogic.application.internal.flow.ModuleStateDriver$3.next(
>> ModuleStateDriver.java:204)
>> at
>> weblogic.application.utils.StateMachineDriver.nextState(
>> StateMachineDriver.java:26)
>> at
>> weblogic.application.internal.flow.ModuleStateDriver.start(
>> ModuleStateDriver.java:60)
>> at
>> weblogic.application.internal.flow.StartModulesFlow.activate(
>> StartModulesFlow.java:26)
>> at
>> weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java
>> :641)
>> at
>> weblogic.application.utils.StateMachineDriver.nextState(
>> StateMachineDriver.java:26)
>> at
>> weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java
>> :229)
>> at
>> weblogic.application.internal.DeploymentStateChecker.activate(
>> DeploymentStateChecker.java:154)
>> at
>> weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(
>> AppContainerInvoker.java:80)
>> at
>> weblogic.deploy.internal.targetserver.BasicDeployment.activate(
>> BasicDeployment.java:181)
>> at
>>
>> weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle
>> (BasicDeployment.java:352)
>> at
>> weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(
>> DeploymentAdapter.java:52)
>> at
>> weblogic.management.deploy.internal.DeploymentAdapter.activate(
>> DeploymentAdapter.java:186)
>> at
>> weblogic.management.deploy.internal.AppTransition$2.transitionApp(
>> AppTransition.java:30)
>> at
>> weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(
>> ConfiguredDeployments.java:233)
>> at
>> weblogic.management.deploy.internal.ConfiguredDeployments.activate(
>> ConfiguredDeployments.java:169)
>> at
>> weblogic.management.deploy.internal.ConfiguredDeployments.deploy(
>> ConfiguredDeployments.java:123)
>> at
>> weblogic.management.deploy.internal.DeploymentServerService.resume(
>> DeploymentServerService.java:173)
>> at
>> weblogic.management.deploy.internal.DeploymentServerService.start(
>> DeploymentServerService.java:89)
>> at
>> weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
>> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
>> at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>>
>> dou you have another idea?
>>
>>
>> thanks
>>
>> Esra
>>
>> Anton Gavazuk wrote:
>> >
>> > You can replace weblogic lib with new one.
>> >
>> > 2007/7/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> >>
>> >> Hi,
>> >> i am using weblogic9.2 and i have a problem abouth jsp precompilation.
>> >> ı couldn't fint how to use weblogic.jspc with weblogic9.2.
>> >> The documentation says it should bu included by weblogic but i
>> couldn't
>> >> find.
>> >>
>> >> Actually the basic problem is about xercesImpl, i am using
>> >> xercesImpl-2.4.0 to parse xml files but weblogiz alse has xerces in it
>> >> and
>> >> the versions are not matching , i can't do the precompilation and xml
>> >> parsing at the same time.
>> >>
>> >> Does anyone knows why it is like that?
>> >>
>> >> I would be glad if i can get any help becaouse it is urgent
>> >>
>> >> thanks
>> >>
>> >> Esra
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/weblogic9.2-precompilation-problem-tf4060590.html#a11574224
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/weblogic9.2-precompilation-problem-tf4060590.html#a11575285
Sent from the MyFaces - Users mailing list archive at Nabble.com.