Juanjo Vázquez | 1 Oct 09:46
Picon
Favicon

Re: Problem with Cocoon Spring Configurator 1.0.0 and Weblogic 9.2

Hi,

Thank you Daniel for your support and deep explanation.

I have chosen the second solution because i don´t like a weblogic specific code. I attach the resulting code DeploymentUtil class.

Because of Weblogic is a very popular application server, I think this error would be consider a bug and IMHO a patch should go in future cocoon releases.

BR,

Juanjo

On 9/30/07, Daniel Fagerstrom <danielf <at> nada.kth.se> wrote:
Juanjo Vázquez skrev:
> Hi all,
>
> I´m working in an Cocoon 2.2-RC1 web application with one block.
> Everything is ok when i deploy to Tomcat but i´m getting errors when i
> deploy to Weblogic 9.2. I have been looking for a workaround  or a
> solution and it seems the problem is the blocks are not deployed to the
> public web directory in the weblogic domain.
>
> Everything points to the method "deployBlockResources" in
> "DeploymentUtil" class (cocoon-spring-configuratior-1.0.0.jar) is not
> working properly in this environment. I have been debugging the
> application deployed to weblogic with these discoveries:
>
> 1. Spring loads the jar configurations with zip protocol instead jar
> protocol, i.e.
> zip:C:/bea/user_projects/domains/cm_domain/servers/AdminServer/tmp/_WL_user/proxy-ear/53xotj/war/WEB-INF/lib/cocoon- servlet-service-impl-1.0.0-M2.jar!/META-INF/cocoon/spring/cocoon-callstack-environment.xml
>
>
> 2. In Runtime, the "URLConnection" class is a
> "weblogic.utils.ZipUrlConnection" not a "JarURLConnection"
>
> Can anybody help me with this problem?

Some background:

Blocks can contain resources that are intended to be available in e.g.
sitemaps. These resources are put in a directory called COB-INF at the
root of the directory structure of a block. The blocks are ordinary jars
that are put in WEB-INF/lib (during development the blocks can expanded
also).

The task of DeploymentUtil.deployBlockResources is to search the class
path for all urls to COB-INF resources. If the url is of the type file:
the url and the block name is registred. Then the resources in the
COB-INF directory of the block is available through the blockcontext:
source. If the url is a jar, the resources in the COB-INF directory are
extracted to a temp directory in the file system and the url of the
extracted resources is registred together with the clock name.

For Weblogic it seem like the classloader contains zip: urls for
resources. A solution would be to extend the
DeploymentUtil.deployBlockResources method with a case for the zip:
protocol, it would be similar to the jar: case but a little bit more
compliacted as the zip protocol doesn't know about mainfest attributes.
A problem with this is that the ZipUrlConnection is Weblogic specific,
so the protocol handling code in deployBlockResources would need to be
extracted to some components.

Another, and much simpler solution if it works, would be to just replace
"zip:" with "jar:" in the url string, create a new url object from the
patched url string, and use the existing jar handling code.

/Daniel


Juanjo Vázquez | 1 Oct 14:35
Picon
Favicon

Problem with Cocoon ContextSourceFactory and Weblogic 9.2

Hi all,

I have found another problem with Cocoon 2.2 and Weblogic 9.2. The stacktrace is:

java.net.MalformedURLException: context://sitemap.xmap could not be found. (possible context problem)
    at org.apache.cocoon.components.source.impl.ContextSourceFactory.getSource (ContextSourceFactory.java:132)
    at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:152)
    at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java :182)
    at org.apache.cocoon.components.treeprocessor.TreeProcessor.configure(TreeProcessor.java:232)
    at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202)
    at org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor.postProcessBeforeInitialization (AvalonBeanPostProcessor.java:235)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:301)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:425)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
    at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:352)
    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 weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java :376)
    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:82)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1609)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
    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)

I have been debugging "ContextSourceFactory" and the problem seems to be that neither "getRealPath" nor "getResource" are able to find the "context://sitemap.xml" resource.

Furthermore, I have seen that the temp public directory (in weblogic) contains a folder "blocks" and a folder "cocoon_xml_resolver_entities" but the last is empty. Is this normal?.

Please, any help is welcome.

Thanks in advance.

BR,

Juanjo.

Favicon
Gravatar

Cocoon trunk does not compile

Hello,

I cannot compile Cocoon trunk now and I suspect that this is caused by latest forms refactorings.
The error I get is the same our Continuum reports[1]:

/home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/DynamicSelectionListTestCase.java:[49,12]
cannot resolve symbol
symbol  : constructor DynamicSelectionList
(org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,org.apache.avalon.framework.service.ServiceManager)
location: class org.apache.cocoon.forms.datatype.DynamicSelectionList

/home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[69,39]
cannot resolve symbol
symbol  : constructor FlowJXPathSelectionList
(org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList

/home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[102,39]
cannot resolve symbol
symbol  : constructor FlowJXPathSelectionList
(org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList

[1]
http://vmbuild1.apache.org/continuum/component/buildResult.action?projecGroupId=23&buildId=9222&projectId=51&projectGroupId=23

BTW. I hope that this it is a last time that Continuum did not report about build failure, see this
comment from Emmanuel Venisse:
https://issues.apache.org/jira/browse/INFRA-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531540

--

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

Carsten Ziegeler | 2 Oct 09:21
Picon
Favicon

Re: svn commit: r581019 - /cocoon/trunk/core/pom.xml


> Log:
> unfortunatly the root element has to be a single line -  otherwise the Maven release plugin removes all
comments before (whatever the reason for this is
> 
The reason is crap code in the maven release plugin!
See http://jira.codehaus.org/browse/MRELEASE-255

Perhaps if people vote for this bug, the maven guys start doing
something about it (though I really doubt it, it's more fun to develop
maven 2.1 than fixing serious bugs).

Carsten

--

-- 
Carsten Ziegeler
cziegeler <at> apache.org

Giacomo Pati | 2 Oct 09:35
Picon
Favicon

Re: Cocoon trunk does not compile


Grzegorz Kossakowski wrote:
> Hello,
> 
> I cannot compile Cocoon trunk now and I suspect that this is caused by latest forms refactorings.
> The error I get is the same our Continuum reports[1]:
> 
> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/DynamicSelectionListTestCase.java:[49,12]
> cannot resolve symbol
> symbol  : constructor DynamicSelectionList
> (org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,org.apache.avalon.framework.service.ServiceManager)
> location: class org.apache.cocoon.forms.datatype.DynamicSelectionList
> 
> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[69,39]
> cannot resolve symbol
> symbol  : constructor FlowJXPathSelectionList
> (org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
> location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList
> 
> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[102,39]
> cannot resolve symbol
> symbol  : constructor FlowJXPathSelectionList
> (org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
> location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList

My fault, will fix ASAP

Thanks and ciao

--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

Leszek Gawron | 2 Oct 10:24
Picon

CocoonGT

I am arriving at Rome airport at 19:40 flying easyJet from Berlin.

Any chance for somebody would pick me up?

--

-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.

Giacomo Pati | 2 Oct 10:37
Picon
Favicon

Re: Cocoon trunk does not compile


Should be fixed now.

Giacomo Pati wrote:
> 
> 
> Grzegorz Kossakowski wrote:
>> Hello,
> 
>> I cannot compile Cocoon trunk now and I suspect that this is caused by latest forms refactorings.
>> The error I get is the same our Continuum reports[1]:
> 
>> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/DynamicSelectionListTestCase.java:[49,12]
>> cannot resolve symbol
>> symbol  : constructor DynamicSelectionList
>> (org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,org.apache.avalon.framework.service.ServiceManager)
>> location: class org.apache.cocoon.forms.datatype.DynamicSelectionList
> 
>> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[69,39]
>> cannot resolve symbol
>> symbol  : constructor FlowJXPathSelectionList
>> (org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
>> location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList
> 
>> /home/continuum/data/working-directory/51/blocks/cocoon-forms/cocoon-forms-impl/src/test/java/org/apache/cocoon/forms/datatype/FlowJXPathSelectionListTestCase.java:[102,39]
>> cannot resolve symbol
>> symbol  : constructor FlowJXPathSelectionList
>> (org.apache.avalon.framework.context.Context,java.lang.String,java.lang.String,java.lang.String,org.apache.cocoon.forms.datatype.Datatype,&lt;nulltype&gt;,boolean,&lt;nulltype&gt;,boolean)
>> location: class org.apache.cocoon.forms.datatype.FlowJXPathSelectionList
> 
> My fault, will fix ASAP
> 
> Thanks and ciao
> 

--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

Carsten Ziegeler | 2 Oct 13:41
Picon
Favicon

Re: CocoonGT

Anyone arriving tomorrow in the moring at Fiumicino?

Carsten

Leszek Gawron wrote:
> I am arriving at Rome airport at 19:40 flying easyJet from Berlin.
> 
> Any chance for somebody would pick me up?
> 

--

-- 
Carsten Ziegeler
cziegeler <at> apache.org

Andrew Savory | 2 Oct 14:25
Picon

Re: CocoonGT

Hi,

On 2 Oct 2007, at 12:41, Carsten Ziegeler wrote:

> Anyone arriving tomorrow in the moring at Fiumicino?

I arrive at 09:40 Wed 3rd on Alitalia flight AZ 7055 from Brussels.

What time do you arrive?

Thanks,

Andrew.
--
Sourcesense: Making sense of Open Source
Tel: +44 (0)870 741 6658  Fax: +44 (0)700 598 1135
Web: http://www.sourcesense.com/

Reinhard Poetz | 2 Oct 14:29
Picon
Favicon

Re: CocoonGT

Carsten Ziegeler wrote:
> Anyone arriving tomorrow in the moring at Fiumicino?

I will be arriving at 8:20 am.

--

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard <at> apache.org
_________________________________________________________________________


Gmane