You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mikael Olenfalk <mi...@gmail.com> on 2007/01/09 12:38:43 UTC

Forcing reload of XSL files

Hi everybody!

I just created a getting-started-webapp and getting-started-block and
have the following pipeline in my block:

      <map:match pattern="test1">
      	<map:generate src="demo.xml"/>
      	<map:transform src="demo.xsl"/>
      	<map:serialize />
      </map:match>

The I run the following commands:

user@host: getting-started-block/$ mvn install
user@host: getting-started-webapp/$ mvn package jetty:run

Now I want to change demo.xsl slightly and see the results without
having to restart jetty.

Is this possible?


Regards,

Mikael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Forcing reload of XSL files

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Mikael Olenfalk napisał(a):
> I had already enabled cocoon-rcl in my config.
>
> Do I need to run any maven command after editing the XSL files?
It's discussed on dev list right now, see [1]. I have no free time 
(exams at university) to investigate further, maybe you should ask you 
question on dev list as C2.2 is still in development. On the other hand, 
it becomes stable and answers to question like this should not become 
inaccurate in reasonable future IMHO, so it would be better to be 
answered here.
What do you think? Would like me to call devs for attention on user list 
or you're going to ask it on dev list?

[1] http://thread.gmane.org/gmane.text.xml.cocoon.devel/69356/focus=69356

-- 
Grzegorz Kossakowski


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Forcing reload of XSL files

Posted by Mikael Olenfalk <mi...@gmail.com>.
I had already enabled cocoon-rcl in my config.

Do I need to run any maven command after editing the XSL files?

/Mikael


On 1/9/07, Grzegorz Kossakowski <gr...@tuffmail.com> wrote:
> Mikael Olenfalk napisał(a):
> > Now I want to change demo.xsl slightly and see the results without
> > having to restart jetty.
> >
> > Is this possible?
> Yes, with reloading classloader plugin[1]
>
> [1] http://cocoon.zones.apache.org/daisy/cdocs/g1/g4/g1/1297.html
>
> --
> Grzegorz Kossakowski
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Re: Forcing reload of XSL files

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Mikael Olenfalk napisał(a):
> Now I want to change demo.xsl slightly and see the results without
> having to restart jetty.
>
> Is this possible?
Yes, with reloading classloader plugin[1]

[1] http://cocoon.zones.apache.org/daisy/cdocs/g1/g4/g1/1297.html

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Pb on depedencies in cocoon2.2 with maven

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Sébastien Geindre napisał(a):
> Hello everybody,
>
> I've tried the tutorial /Your first Cocoon application using Maven 2 
> /http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html
>
> The web application does not well package.
> It seems that several dependencies are wrong.
>
> Did anybody succeed with this tutorial ?
> DO i have to change the dependencies ? Or re-create a local maven 
> repository ?
>
I've encountered some problems trying M2, see [1]. For me, the solution 
was to put additional repository information (for apache.snapshot) in 
poms. But your problem seems to be different, anyway try to remove whole 
m2 local repository. If still no success, run maven with -X parameter 
and paste the output (or see yourself what's going on).

[1] https://issues.apache.org/jira/browse/COCOON-1975


--
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Pb on depedencies in cocoon2.2 with maven

Posted by Sébastien Geindre <se...@meteo.fr>.
Hello everybody,

I've tried the tutorial /Your first Cocoon application using Maven 2 
/http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html

The web application does not well package.
It seems that several dependencies are wrong.

Did anybody succeed with this tutorial ?
DO i have to change the dependencies ? Or re-create a local maven 
repository ?

mvn package
...
Downloading: 
http://mirrors.dotsrc.org/maven2/jakarta-bcel/jakarta-bcel/20040329/jakarta-bcel-20040329.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/containerkit/logger/excalibur-logger/2.1/excalibur-logger-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/sourceresolve/excalibur-sourceresolve/2.1/excalibur-sourceresolve-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/xmlutil/excalibur-xmlutil/2.1/excalibur-xmlutil-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/store/excalibur-store/2.1/excalibur-store-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/pool/excalibur-pool-api/2.1/excalibur-pool-api-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.3/avalon-framework-impl-4.3.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
...

And, then mvn jetty:run could not complete :

2007-01-09 17:30:06.047::WARN:  Could not instantiate listener 
org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: 
org.springframework.web.context.ContextLoaderListener
...



namespace removed from xml

Posted by Roel Croonenberghs <Ro...@sofico.be>.
Hello,

I use 
SAXParser parser    (org.apache.excalibur.xml.sax.SAXParser)
parser.parse(input, webServiceHandler);

to treat the info I got from webservices in xml format.
I receive somethig like 
<?xml version="1.0" encoding="UTF-8"?><Envelope 
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><data><Driver><id 
xsi:nil="false">805330</id>........</Driver></data></Envelope>

but after i send it through the parser, i get 
<SofEnvelope ><data><MWSDriver><id xsi:nil="false">805330</id>
........</Driver></data></Envelope>

so the xmlns namsespace definition has disappeared.

What can I do to  prevent this? I read something about 
parser.setNamespaceAware(true); but that is not a valid method of the 
parser I use.


Greetings,


Roel Croonenberghs