Re: Google App Engine

2009-10-19 Thread Jean-Claude Moissinac
Results of some try tonight with Cocoon 3
with an xml source, an xslt transformer and an xml serializer
at some point cocoon 3 seems to compile an xslt transformation and has
not the right permission to write something
it's my reading of:
java.lang.NoClassDefFoundError: Could not initialize class
com.sun.org.apache.bcel.internal.util.SyntheticRepository
at 
com.sun.org.apache.bcel.internal.classfile.JavaClass.(JavaClass.java:109)
at 
com.sun.org.apache.bcel.internal.classfile.JavaClass.(JavaClass.java:228)
at 
com.sun.org.apache.bcel.internal.generic.ClassGen.getJavaClass(ClassGen.java:174)
at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:735)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesHandlerImpl.endDocument(TemplatesHandlerImpl.java:230)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737)
...

and I suspect that Google App Engine is not a good place to compile an
xslt transformation and then execute the generated code...

What are thinking about?

Jean-Claude

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



Google App Engine

2009-10-19 Thread Jean-Claude Moissinac
I'm searching of advises about using Cocoon with some cloud like
Google App Engine.
Is anyone has point of view about such possibility?

-- 
Jean-Claude Moissinac

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



Re: Migration problem

2009-07-18 Thread Jean-Claude Moissinac
On Sun, May 17, 2009 at 6:39 PM, Jean-Claude Moissinac wrote:
> Always stuck with the problem
> I can't find security settings which enable cocoon to access to all
> necessary files
>

to solve the problem
I go in
/tomcat5.5/conf/policy.d
I modify
04webapps.policy
to add
grant codeBase "file:/usr/share/tomcat5.5/webapps/cocoon.war" {
 permission java.security.AllPermission;
};

yes, I know it's surely too permissive, but I don't find another
setting which works

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



Re: Old time user

2009-07-18 Thread Jean-Claude Moissinac
Now, the Initialization problem is visible on
http://shadok.enst.fr:8080/samples/status.html

I will continue to search for a solution

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



Re: Old time user

2009-07-18 Thread Jean-Claude Moissinac
>
> There's also that comment in there:
>
> # NOTE: Don't modify this file directly but make a copy named
> # 'local.blocks.properties' and modify that. The build system will first load
> # 'local.blocks.properties' and properties are immutable in Ant.
>
> Copying blocks.properties to local.blocks.properties, and editing the
> latter, should do the job - you probably want the "include.block.html"
> value to be true.
>
> -Bertrand
>

Thank's for your reply
I had tried that, but make a mistake in saving local.block.properties.
Then, I get an error from build.sh about my JAVA_HOME, so, as found in
a previous track in the forum, I put a JAVA_HOME setting in my
buils.sh
Now, the build works, and the output of the build suggest that the
html block isn't excluded now.

But, the cocoon.war obtained doesn't work properly, what i get is here
http://shadok.enst.fr:8080/

Initialization problem
Message: Could not find component (key
[org.apache.cocoon.webapps.session.ContextManager])

Some more works before an update that works

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



Old time user

2009-07-17 Thread Jean-Claude Moissinac
I'm sorry for that backward question

I was using cocoon 2.1.9 from the time is was out
Recently, I was reinstalling my experimental server and discovered
that moving to cocoon 2 could be a big work for which I had not enough
time
So, I moved to 2.1.9
The main part of my cocoon sites works.
But, trying to add a piece in my sitemap which uses the HTML block, I
discover that a lot of blocks are excluded from my build.
I started to look in build.properties, then in blocks.properties which
points me to gump.xml

But, I can't figure out how to simply add the html block in my build.
I have searched in the web and can't find my way.

Is there someone to help me (pointing to a web page or giving a way)?

-- 
-- 
Jean-Claude Moissinac

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



Re: Migration problem

2009-05-17 Thread Jean-Claude Moissinac
Always stuck with the problem
I can't find security settings which enable cocoon to access to all
necessary files

On Thu, May 14, 2009 at 6:31 PM, Jean-Claude Moissinac
 wrote:
> To manage this problem, i have found the file
>  04webapps.policy
> in the directory
> /tomcat6/conf/policy.d
>
> and add the lines
>        permission java.util.PropertyPermission "org.apache.cocoon.settings", 
> "read";
>        permission java.util.PropertyPermission "user.home", "read";
>
> It changes the result, but not resolve the problem
> I always have an exceuption on
>  java.util.PropertyPermission * read,write
> and open the read and write to * seems to me a bit dangerous
> But, if I do it, I have always exceptions...
>
> Standard security on Tomcat6 seems to block a lot of things necessary
> for Cocoon to work
> I will continue to investigate, but I suspect a lot of users of Cocoon
> will have similar problems in the future
>



-- 
-- 
Jean-Claude Moissinac
Signal and Image processing - Multimedia Group
TELECOM ParisTech
FRANCE

E-mail: moissi...@telecom-paristech.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://videotoile.blogspot.com
http://svgmpeg4.blogspot.com/

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
To manage this problem, i have found the file
 04webapps.policy
in the directory
/tomcat6/conf/policy.d

and add the lines
permission java.util.PropertyPermission "org.apache.cocoon.settings", 
"read";
permission java.util.PropertyPermission "user.home", "read";

It changes the result, but not resolve the problem
I always have an exceuption on
 java.util.PropertyPermission * read,write
and open the read and write to * seems to me a bit dangerous
But, if I do it, I have always exceptions...

Standard security on Tomcat6 seems to block a lot of things necessary
for Cocoon to work
I will continue to investigate, but I suspect a lot of users of Cocoon
will have similar problems in the future

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
OK
I will investigate in that direction.
But it will help if I can find what cocoon is trying to write.
(I think, I'm not the first to use cocoon.war in tomcat on Ubuntu)

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
With all blocks removed, the problem remains.
May 14, 2009 3:02:41 PM org.apache.catalina.core.ApplicationContext log
INFO: ERROR   (2009-05-14) 15:02.41:363   [access  ] (Unknown-URI)
Unknown-Thread/Unknown-Class: Exception reloading
java.security.AccessControlException: access denied
(java.util.PropertyPermission org.apache.cocoon.settings read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at 
java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at 
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:669)
at 
org.apache.cocoon.util.PropertySettings.(PropertySettings.java:74)
at 
org.apache.cocoon.util.SettingsHelper.createSettings(SettingsHelper.java:43)
at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:237)
at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:116)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1421)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
...

I think cocoon is trying to write a file at a place where it has not
necessary rights
(line 
org.apache.cocoon.util.SettingsHelper.createSettings(SettingsHelper.java:43))
But???

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
On Thu, May 14, 2009 at 1:55 PM, Joerg Heinicke  wrote:
> Xindice is a dependency of the optional block 'xmldb'. As Bertrand I
> recommend to exclude all blocks you don't need.


So, I need to check all my applications to find what are my block
dependencies. I suspect it could take a lot of time. I will began by
removing all the blocks.

To follow

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
After setting
include.block.xmldb=false
rebuilding and redeploying the war
In the tomcat6 log, I get
May 14, 2009 11:01:59 AM org.apache.catalina.core.ApplicationContext log
INFO: ERROR   (2009-05-14) 11:01.58:993   [access  ] (Unknown-URI)
Unknown-Thread/Unknown-Class: Exception reloading
java.security.AccessControlException: access denied
(java.util.PropertyPermission org.apache.cocoon.settings read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at 
java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at 
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:669)
at 
org.apache.cocoon.util.PropertySettings.(PropertySettings.java:74)
at 
org.apache.cocoon.util.SettingsHelper.createSettings(SettingsHelper.java:43)
at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:237)
at 
org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:116)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1421)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1166)
..

Which reflect more clearly the page I got at
http://shadok.enst.fr:8080/cocoon/

It seems to be an access problem, but I don't on what resource the problem is.
I've checked the rights on all the cocoon directory and subdirectories
deployed from the war and all the files are accessible by my tomcat
user.




-- 
-- 
Jean-Claude Moissinac

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



Re: Migration problem

2009-05-14 Thread Jean-Claude Moissinac
Checked the command ./cocoon.sh, it works
So, it's only the war deployed in tomcat6 which fails to work with the
previously mentioned error.
I have found nothing about Xindice in Install.txt or block.properties.
Perhaps it is something always necessary for Cocoon?

Jean-Claude

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



Migration problem

2009-05-13 Thread Jean-Claude Moissinac
I had a lot of applications based on Cocoon on an old server, with
Tomcat and cocoon 2.1.9
I'm preparing the new server
My first idea was to migrate to cocoon 2.2, but I discovered a totally
new world and differ the adoption because I think it takes to many
time now for me to discover this new world.
So, I decide to install cocoon 2.1.11 on Tomcat 6.
So, I compile cocoon.war then put it in the webapps directory of Tomcat
Then, I get the following page
http://shadok.enst.fr:8080/cocoon/
and the following info in the log
...
INFO: SessionListener: contextInitialized()
May 13, 2009 3:55:51 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
org.apache.xindice.util.ConfigurationException: Failed to load configuration.
at 
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:267)
at 
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1166)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:636)
...

I'm stuck on that problem

Any idea?
-- 
-- 
Jean-Claude Moissinac

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



Re: Applications ouside the cocoon tree

2008-02-06 Thread Jean-Claude Moissinac
OK
it works with my mount-table.xml file in the root directory of my tomcat

Thank you

2008/2/6, Steven D. Majewski <[EMAIL PROTECTED]>:
>
> On Feb 6, 2008, at 3:17 PM, Jean-Claude Moissinac wrote:
>
> > Until I was using some cocoon applications directly in a standalone
> > cocoon.
> > To be able to easily manage several versions of cocoon, I was using a
> > mount-table.xml in
> > the main directory of each new version of a Cocoon installation;
> > something like
> >
> > 
> >> src="file://C:/Documents/Dvpt/Eclipse/workspaceCocoonComplet/
> > CocoonSites/CocoonGallery/"/>
> >> src="file://C:/Documents/Dvpt/Eclipse/workspaceCocoonComplet/
> > CocoonSites/paam/"/>
> > ...
> > 
> >
> > I needed only to copy the mount-table in the new installation and
> > it works.
> >
> > Now, I have installed a cocoon.war in a tomcat container.
> >
> > I don't find how to specify to this cocoon servlet where to get the
> > cocoon applications?
> > is it a way to mount them into the servlet?
> >
> > Thanks in advance for your help
> >
> >
>
> ( Not sure I understand exactly what you want but: )
>
> In 2.1.*, the default build looked for a mount-table in ../../mount-
> table.xml
>
>  
>
>  
>
>
> For both tomcat and jetty, that put it in the server containers
> directory.
>
> This is very handy:  you're able to replace versions of cocoon, or
> even run several
> different cocoon versions or builds along side each other, and they
> all reach up to
> the same mount-table to run the same user application.  I haven't
> tried it with 2.2
> yet, but since it worked with earlier versions, I hope I will be able
> to install it as
> webapps/cocoon2.2 and be able to test my app under 2.2 along side the
> earlier version
> of cocoon.
>
> -- Steve Majewski / UVA Alderman Library
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
-- 
Jean-Claude Moissinac
Signal and Image processing - Multimedia Group
TELECOM ParisTech
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://videotoile.blogspot.com
http://svgmpeg4.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Applications ouside the cocoon tree

2008-02-06 Thread Jean-Claude Moissinac
Until I was using some cocoon applications directly in a standalone cocoon.
To be able to easily manage several versions of cocoon, I was using a
mount-table.xml in
the main directory of each new version of a Cocoon installation; something like


  
  
...


I needed only to copy the mount-table in the new installation and it works.

Now, I have installed a cocoon.war in a tomcat container.

I don't find how to specify to this cocoon servlet where to get the
cocoon applications?
is it a way to mount them into the servlet?

Thanks in advance for your help

-- 
-- 
Jean-Claude Moissinac

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL simplification

2006-12-04 Thread Jean-Claude Moissinac

I'm also serving other applications with tomcat.

2006/12/4, Jeroen Reijn <[EMAIL PROTECTED]>:


Hi Jean-Claude,

looking at this messsage it seems you are missing a java class. It
should be in one of the myfaces jars, but i'm not sure why it would be
different when using tomcat 5.5 instead of cocoon itself.

Did you switch to a different cocoon version or are you also serving
other applications from your tomcat instance.

Kind regards,

Jeroen Reijn

Jean-Claude Moissinac wrote:
> Hello
>
> In the past, I used the cocoon servlet and I had URL like
> http://shadok.enst.fr:8080/adamul/
> Now, I have installed cocoon in a Tomcat 5.5 server
> The same site is accessible as
> http://shadok.enst.fr:8080/cocoon/adamul/
> But I would like to retrieve the old URL without /coccon in the middle.
>
> I have tried to configure the context.xml file in the conf directory of
> my cocoon, but it doesn't work.
> It seems to be related to an error in loading myfaces which appears with
> the installation of coccon.
> Here is the start of the error message in my tomcat logs:
>
> 3/12/2006 11:54:53 org.apache.catalina.core.StandardContextlistenerStart
> SEVERE: Error configuring application listener of class
> org.apache.myfaces.webap
> p.StartupServletContextListener
> java.lang.ClassNotFoundException :
> org.apache.myfaces.webapp.StartupServletContex
> tListener
> ...
>
>  Can we help me to find a way?
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Jean-Claude Moissinac
Signal and Image processing - Multimedia Group
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm


URL simplification

2006-12-03 Thread Jean-Claude Moissinac

Hello

In the past, I used the cocoon servlet and I had URL like
http://shadok.enst.fr:8080/adamul/
Now, I have installed cocoon in a Tomcat 5.5 server
The same site is accessible as
http://shadok.enst.fr:8080/cocoon/adamul/
But I would like to retrieve the old URL without /coccon in the middle.

I have tried to configure the context.xml file in the conf directory of my
cocoon, but it doesn't work.
It seems to be related to an error in loading myfaces which appears with the
installation of coccon.
Here is the start of the error message in my tomcat logs:

3/12/2006 11:54:53 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class
org.apache.myfaces.webap
p.StartupServletContextListener
java.lang.ClassNotFoundException:
org.apache.myfaces.webapp.StartupServletContex
tListener
...

Can we help me to find a way?


contextrealpath input module

2006-07-25 Thread Jean-Claude Moissinac
I have tried contextrealpath and sitemap-path imput modules and I getpath begining by/c:/mondirectory/...The trailing / seems to be erroneous.(I'm testing this with cocoon 2.1.9 under Windows XP)

-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Cocoon as an active proxy

2006-03-28 Thread Jean-Claude Moissinac
Hello

I'm trying to configure my cocoon as a sort of proxy; software clients
send request to my cocoon site defined as the proxy for the client.
Then, basically, each URL obtained by cocoon from the request must be
forwarded to the 'true' site. And before that, I put some pipeline to
catch and process some request. In the main sitemap.xmap, I've tried
something like:

  



  http://{request:serverName}:{request:serverPort}{request:requestURI}?{request:queryString}"/>


Which catch request for SVG files to be processed by a specific
pipeline and is transparent for other requests.

Such settings seems to work well in general, but has bad results
1) if the file requested is served by the local Cocoon.
or
2) if the requested URL is malformed (then I get a 'LOW ON THREAD'
message by cocoon)

The first has a simple workaround by using this cocoon site only as a 'proxy'.

I'm searching for a solution for the second which seems to be a major failure.

Thank's in advance fir your help
--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a parameter from the header or from a dynamic XML document

2006-03-25 Thread Jean-Claude Moissinac
I've just tried it but it doesn't work.

My solution is a brute force tools for now: I have writed an action
which do the trick:

public class GetTerminalAction extends ServiceableAction  implements ThreadSafe{

public final static String TERMINAL_NAME = "terminal";
/* (non-Javadoc)
 * @see 
org.apache.cocoon.acting.Action#act(org.apache.cocoon.environment.Redirector,
org.apache.cocoon.environment.SourceResolver, java.util.Map,
java.lang.String, org.apache.avalon.framework.parameters.Parameters)
 */
public Map act(Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters parameters)
throws Exception {
Request request = ObjectModelHelper.getRequest(objectModel);
Map map = new HashMap();
boolean known =false;

if (request != null) {
Enumeration headers = request.getHeaderNames();
if ( headers != null ) {
while (headers.hasMoreElements()) {
String header = (String)headers.nextElement();
if (header.equals("terminal"))
{
map.put(TERMINAL_NAME, request.getHeader(header));
known = true;
}
}
}
}
if (known==false)
map.put(TERMINAL_NAME, "unknown");
 return (map);
}
}

I'm always hoping for a more elegant solution.

On 3/25/06, Laurent Perez <[EMAIL PROTECTED]> wrote:
> Have you tried {request-header:name} ?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a parameter from the header or from a dynamic XML document

2006-03-25 Thread Jean-Claude Moissinac
In the sample
http://localhost:/samples/modules/request.html
we can see
headerNames [EMAIL PROTECTED]
headers 

which seems very strange to me.


On 3/25/06, Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> Thank's; it is a step.
> I'm not so familiar with JXPath (but really familiar with XSLT and Xpath)
> The sample in http://wiki.apache.org/cocoon/InputModules
> {request:cookies[name='lastVisit']/@value}
> suggest me to try a similar expression ({request:headers[name='xxx']/@value})
> but cookies is an array of cookie objects where headers is an enumerator
> I see in the code of the RequestGenerator how this enumerator could be
> used, but I can't see how this could be used in an expression like
> ({request:headers[1]})
>
> I will continue to search the solution, but help is welcome.
>
> On 3/24/06, Lars Huttar <[EMAIL PROTECTED]> wrote:
> > Jean-Claude Moissinac wrote:
> > > I'm trying to get an information from the HTTP header
> > >
> > > I have tried with the Request Generator, something like
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > >
> > > I get something like
> > > 
> > > http://apache.org/cocoon/request/2.0";
> > > target="/filtres/req.svg" sitemap="req.svg" source="">
> > > 
> > > localhost:8282
> > > GPAC 0.4.1-DEV > > name="accept">*/*
> > > Nokia3650 > > ...
> > > And  extract the value I need from request.xml. But as I need only one
> > > value from the header, I'm searching another solution. And more, as I
> > > want to give this value as a parameter for an XSL transformation or to
> > > use this value for a selector, extractiong the value from an XML file
> > > is not easy.
> > >
> > > I've tried to use request.xml as the source of a XMLFileModule, but it
> > > seems to be not possible to address such a dynamic xml file from the
> > > XMLFileModule.
> > >
> > > I heve tried with the Request Module
> > > 
> > >   
> > > ...
> > > So, I try to use the 'terminal' value present in my request as a
> > > parameter of my transformation. But {request:terminal} seems to be
> > > empty.
> > >
> > >
> > See http://wiki.apache.org/cocoon/InputModules for documentation on
> > RequestModule's properties. Rather than {request:terminal}, you might
> > try {request:headers}, which "returns all the values of the specified
> > request header as an Enumeration of String objects." Then maybe you
> > could use JXPath to select the one you want?
> > > So, I'm searching a good way to extract a value from the header or to
> > > use a value extracted from a dynamically created xml document as a
> > > parameter for a pipeline.
> > >
> > >
> > What about the HeaderAttributeModule?
> > (http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html)
> > I have not used it, but it looks like it has potential. Are "header
> > attributes" the same as what we call headers (like "terminal")?
> >
> > HTH,
> > Lars
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> --
> Jean-Claude Moissinac
> Department of Computer Science and Networks
> ENST Paris
> FRANCE
>
> E-mail: [EMAIL PROTECTED]
> Tel: (+33) 1.45.81.80.88
> Fax: (+33) 1.45.81.71.58
>
> http://shadok.enst.fr/jcm
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a parameter from the header or from a dynamic XML document

2006-03-25 Thread Jean-Claude Moissinac
Thank's; it is a step.
I'm not so familiar with JXPath (but really familiar with XSLT and Xpath)
The sample in http://wiki.apache.org/cocoon/InputModules
{request:cookies[name='lastVisit']/@value}
suggest me to try a similar expression ({request:headers[name='xxx']/@value})
but cookies is an array of cookie objects where headers is an enumerator
I see in the code of the RequestGenerator how this enumerator could be
used, but I can't see how this could be used in an expression like
({request:headers[1]})

I will continue to search the solution, but help is welcome.

On 3/24/06, Lars Huttar <[EMAIL PROTECTED]> wrote:
> Jean-Claude Moissinac wrote:
> > I'm trying to get an information from the HTTP header
> >
> > I have tried with the Request Generator, something like
> >   
> > 
> >   
> > 
> >   
> >   
> >
> > I get something like
> > 
> > http://apache.org/cocoon/request/2.0";
> > target="/filtres/req.svg" sitemap="req.svg" source="">
> > 
> > localhost:8282
> > GPAC 0.4.1-DEV > name="accept">*/*
> > Nokia3650 > ...
> > And  extract the value I need from request.xml. But as I need only one
> > value from the header, I'm searching another solution. And more, as I
> > want to give this value as a parameter for an XSL transformation or to
> > use this value for a selector, extractiong the value from an XML file
> > is not easy.
> >
> > I've tried to use request.xml as the source of a XMLFileModule, but it
> > seems to be not possible to address such a dynamic xml file from the
> > XMLFileModule.
> >
> > I heve tried with the Request Module
> > 
> >   
> > ...
> > So, I try to use the 'terminal' value present in my request as a
> > parameter of my transformation. But {request:terminal} seems to be
> > empty.
> >
> >
> See http://wiki.apache.org/cocoon/InputModules for documentation on
> RequestModule's properties. Rather than {request:terminal}, you might
> try {request:headers}, which "returns all the values of the specified
> request header as an Enumeration of String objects." Then maybe you
> could use JXPath to select the one you want?
> > So, I'm searching a good way to extract a value from the header or to
> > use a value extracted from a dynamically created xml document as a
> > parameter for a pipeline.
> >
> >
> What about the HeaderAttributeModule?
> (http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html)
> I have not used it, but it looks like it has potential. Are "header
> attributes" the same as what we call headers (like "terminal")?
>
> HTH,
> Lars
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting a parameter from the header or from a dynamic XML document

2006-03-24 Thread Jean-Claude Moissinac
To be simple

I have a value in an xml file which must be use as a paraemeter for a
transformation or a reference value for a selector?
What is the recommended method to extract the value?



On 3/24/06, Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> I'm trying to get an information from the HTTP header
>
> I have tried with the Request Generator, something like
>   
> 
> 
> 
> 
>   
>
> I get something like
> 
> http://apache.org/cocoon/request/2.0";
> target="/filtres/req.svg" sitemap="req.svg" source="">
> 
> localhost:8282
> GPAC 0.4.1-DEV name="accept">*/*
> Nokia3650 ...
> And  extract the value I need from request.xml. But as I need only one
> value from the header, I'm searching another solution. And more, as I
> want to give this value as a parameter for an XSL transformation or to
> use this value for a selector, extractiong the value from an XML file
> is not easy.
>
> I've tried to use request.xml as the source of a XMLFileModule, but it
> seems to be not possible to address such a dynamic xml file from the
> XMLFileModule.
>
> I heve tried with the Request Module
> 
>   
> ...
> So, I try to use the 'terminal' value present in my request as a
> parameter of my transformation. But {request:terminal} seems to be
> empty.
>
> So, I'm searching a good way to extract a value from the header or to
> use a value extracted from a dynamically created xml document as a
> parameter for a pipeline.
>
>
> Thank's in adavance
>
> --
> --
> Jean-Claude Moissinac
> Department of Computer Science and Networks
> ENST Paris
> FRANCE
>
> E-mail: [EMAIL PROTECTED]
> Tel: (+33) 1.45.81.80.88
> Fax: (+33) 1.45.81.71.58
>
> http://shadok.enst.fr/jcm
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting a parameter from the header or from a dynamic XML document

2006-03-24 Thread Jean-Claude Moissinac
I'm trying to get an information from the HTTP header

I have tried with the Request Generator, something like
  




  

I get something like

http://apache.org/cocoon/request/2.0";
target="/filtres/req.svg" sitemap="req.svg" source="">

localhost:8282
GPAC 0.4.1-DEV*/*
Nokia3650
  
...
So, I try to use the 'terminal' value present in my request as a
parameter of my transformation. But {request:terminal} seems to be
empty.

So, I'm searching a good way to extract a value from the header or to
use a value extracted from a dynamically created xml document as a
parameter for a pipeline.


Thank's in adavance

--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
Thank's
It works
(I will start a linked new question)

On 3/24/06, Daniele Madama <[EMAIL PROTECTED]> wrote:
> Hola,
> you can try to copy all the cocoon's lib/endorsed jar into
> $TOMCAT_HOME/common/endorsed and restart it.
>
> Bye
>
> > Thank's
> > Now, I've tried 2 configurations:
> > - the first was the cocoon directory pointed by a Tomcat 5
> > configuration; XMLFileModule doesn't work
> > - the second was cocoon with jetty and it works.
> >
> > So, I think I have to find what is missing with Tomcat but I'm not
> > very confortable with the how-to.
> >
> > Jean-Claude Moissinac
> >
>
> --
> Daniele Madama (http://www.danysoft.org)
>
> Pro-netics S.r.l. (http://www.pronetics.it)
>
>
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
Thank's
Now, I've tried 2 configurations:
- the first was the cocoon directory pointed by a Tomcat 5
configuration; XMLFileModule doesn't work
- the second was cocoon with jetty and it works.

So, I think I have to find what is missing with Tomcat but I'm not
very confortable with the how-to.

Jean-Claude Moissinac

On 3/24/06, Daniele Madama <[EMAIL PROTECTED]> wrote:
> Hola,
> seems that some libs are missing, are you using embedded jetty in cocoon
> release?
>
> > Hello
> >
> > With Cocoon 2.1.8, when I try the XMLFileModule in the page
> > http://localhost:8282/samples/modules/index.html
> > I get:
> > ==Etat HTTP 500 -
> >
> > type Rapport d'exception
> >
> > message
> >
> > description Le serveur a rencontré une erreur interne () qui l'a
> > empêché de satisfaire la requête.
> >
> > exception
> >
> > javax.servlet.ServletException: L'exécution de la servlet a lancé une
> > exception
> >
> > cause mère
> >
> > java.lang.NoSuchMethodError:
> > javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
> >   
> > org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:199)
> >   
> > org.apache.xalan.transformer.TransformerIdentityImpl.setDocumentLocator(TransformerIdentityImpl.java:880)
> >   
> > org.apache.cocoon.xml.AbstractXMLPipe.setDocumentLocator(AbstractXMLPipe.java:39)
> >   org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown 
> > Source)
> >   org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown 
> > Source)
> >   org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown 
> > Source)
> >   org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
> > Source)
> >   org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >   org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> >   org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > 
> > =Any ideas?
> >
> > Thank's in advance
> >
> > --
> > --
> > Jean-Claude Moissinac
> > Department of Computer Science and Networks
> > ENST Paris
> > FRANCE
> >
> > E-mail: [EMAIL PROTECTED]
> > Tel: (+33) 1.45.81.80.88
> > Fax: (+33) 1.45.81.71.58
> >
> > http://shadok.enst.fr/jcm
> >
> > -----
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Daniele Madama (http://www.danysoft.org)
>
> Pro-netics S.r.l. (http://www.pronetics.it)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XMLFileModule

2006-03-24 Thread Jean-Claude Moissinac
Hello

With Cocoon 2.1.8, when I try the XMLFileModule in the page
http://localhost:8282/samples/modules/index.html
I get:
===
Etat HTTP 500 -

type Rapport d'exception

message

description Le serveur a rencontré une erreur interne () qui l'a
empêché de satisfaire la requête.

exception

javax.servlet.ServletException: L'exécution de la servlet a lancé une exception

cause mère

java.lang.NoSuchMethodError:
javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;

org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:199)

org.apache.xalan.transformer.TransformerIdentityImpl.setDocumentLocator(TransformerIdentityImpl.java:880)

org.apache.cocoon.xml.AbstractXMLPipe.setDocumentLocator(AbstractXMLPipe.java:39)
org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown 
Source)
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown 
Source)
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown 
Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

===

Any ideas?

Thank's in advance

--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File generator and parameters

2006-03-15 Thread Jean-Claude Moissinac
On 3/13/06, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
Le 13 mars 06 à 15:15, Jean-Claude Moissinac a écrit :> ...If the request is> http://mysite/processing/process1/an/external/url?param=12
> I would like that the generator uses> http://an/external/url?param=12> as his src...I'm not sure if they do this out of the box, but the proxy generators
found in the proxy block are fairly close - theWebServiceProxyGenerator does copy the request parameters, IIRTCC (IfI Read The Code Correctly ;-)Yes, thank you. a generator type="wsproxy" do the job. 
Unfortunately their samples are disabled in the current release,you'll have to have a look at the source code under src/blocks/proxy
- but that's not a lot of code. And the samples are still there aswell, only disabled.It is active in the 2.1.7 version 
Hope this helps,-Bertrand-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: File generator and parameters

2006-03-13 Thread Jean-Claude Moissinac
Thank you for your answer.It could help but...In my case, I don't know when writing the sitemap, what will be the URL parameters used by the clientI need something like 'use-request-parameters' that I use for pushing all the prameters to an XSLT transformer
On 3/13/06, Jasha Joachimsthal <[EMAIL PROTECTED]> wrote:







 

  -Original Message-From: [EMAIL PROTECTED]
 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Claude 
  MoissinacSent: maandag 13 maart 2006 15:15To: 
  users@cocoon.apache.orgCc: 
  [EMAIL PROTECTED]Subject: File generator and 
  parameters
  HelloI'm working on a site which allows to process some external 
  pagesI call something like:http://mysite/processing/process1/an/external/url
 
  and which is matched by a pipeline like this    
              
              
       
          
          
  which works fine if the URL has no parametersbut 
  if the called URL has parameters, the generator seems to ignore it.If the 
  request is http://mysite/processing/process1/an/external/url?param=12
I 
  would like that the generator useshttp://an/external/url?param=12as 
  his srcIs there a solution to do it?

Does this Wiki page help you? 
http://wiki.apache.org/cocoon/RequestParameterModule
Maybe you need to combine it with the URLEncodeModule to filter unwanted 
characters.
In cocoon.xconf add:

Your map:generate may look like this.

 
Jasha Joachimsthal
-
Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 
[EMAIL PROTECTED]
www.hippo.nl 

-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


File generator and parameters

2006-03-13 Thread Jean-Claude Moissinac
HelloI'm working on a site which allows to process some external pagesI call something like:http://mysite/processing/process1/an/external/url
and which is matched by a pipeline like this                                
                which works fine if the URL has no parametersbut if the called URL has parameters, the generator seems to ignore it.
If the request is http://mysite/processing/process1/an/external/url?param=12
I would like that the generator useshttp://an/external/url?param=12as his srcIs there a solution to do it?-- -- Jean-Claude Moissinac
Department of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm 


Jonas and Cocoon

2006-02-23 Thread Jean-Claude Moissinac

Hello

Can I have some help to install cocoon 2.1.8 with Jonas 4.6.6?

I'm trying to install cocoon 2.1.8 in a freshly installed Jonas  4.6.6
(http://jonas.objectweb.org/) on Fedora
I've build the war (./buid.sh war) and deployed it in Jonas
Until there, all is good. Cocoon is seen by the administrative interface
and well deployed
When I type
http://localhost
I see the correct home page of Jonas
but when I type
http://localhost/cocoon
I get
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException:
org.apache.log.output.ServletOutputLogTarget.(Ljavax/servlet/ServletContext;Lorg/apache/log/format/Formatter;)V
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java
:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke
(ResetAuthenticationValve.java:62)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:868)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
...
java.lang.Thread.run
(Thread.java:595)


I'm investigating and perhaps someone has a path to the solution...


--
--
Jean-Claude Moissinac


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LOW ON THREADS

2006-01-03 Thread Jean-Claude Moissinac

I have recently installed cocoon 2.1.8 and now as soon as I use cocoon,
in the message window of cocoon, I get an event
... EVENT   LOW ON THREADS...
and then
... WARN!  No thread for Socket
and
... WARN! OUT OF THREADS

and all is very slow.

Has someone something to help me?

--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MySQL and Cocoon

2005-12-27 Thread Jean-Claude Moissinac
My experience with mySql is:- you need to have the good driver, typically in WEB-INF/lib, you need a jdbc connector found in http://dev.mysql.com/downloads/connector/j/3.0.html
; you could have some problem between version of connector and version of Java- in WEB-INF/cocoon.xconf, you have to define the access to your database; for example:

   
   jdbc:mysql://localhost:3306/france0104?autoReconnect=true
   cestmoi
   zz
   
		where france is the name of the data source which will be used in the sitemapthe database is france104 and the access to the database is defined for the user cestmoi with the password zz- in WEB-INF/web.xml, you have to define the connector used for mysql with something like

 load-class
 
   
   
   
   com.mysql.jdbc.Driver
   

   
   org.hsqldb.jdbcDriver

   
  
   Known problems:- you need coherent versions: my config is JDK 1.5 with saxon8 and mysql-connector-java-3.0.16-ga-bin.jar in cocoon 2.2.0- you could have some problems with the permissions defined for the database
Good luckOn 12/25/05, sergio del amo <[EMAIL PROTECTED]> wrote:
Hi,I am trying to query a mysql database from my cocoon installation. I amusing Cocoon as a webapp of tomcat.I made the next changes:I added mysql Driver to web.xml:     load-class
  com.mysql.jdbc.DriverI added an entry to cocoon.xconf:     
  true  jdbc:mysql://localhost/mmis2  user  user123
and a match pipeline to sitemap.xmap:    
     query.xml is:
http://apache.org/cocoon/SQL/2.0">
http://apache.org/cocoon/SQL/2.0">  select * from collections
I copied the mysql connector (mysql-connector-java-3.0.16-ga-bin.jar) tococoon/WEB-INF/libI thought everything was well configured but i get always:"Failed to obtain connection. Made 5 attempts with 5000ms interval"
Any clue, why i am still getting this error?thanks in advanced for your future feedback and merry christmas!!sergio-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]Tel: (+33) 
1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


XMLFileModule

2005-11-22 Thread Jean-Claude Moissinac
In the sample /samples/modules/xml.html about the XMLFileModule
we find

which, as stated in the comment, is supposed to be read in the file context://samples/modules/forrestconf.xml

But I'm unable to find where is defined the file used by the sitemap and the XMLFileModule module (forresconf.xml)
The sitemap doesn't contains any refernce to forrestconf.xml
How is it possible to choose the XML file used by the XMLFileModule ?-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: {realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
The documentation for the RealPathModule says:
RealPathModule  provides a real filesystem path for a virtual context-relative
path.

So, 
 {realpath:/ccajax/data}
must give a real filesystem path the virtual context-relative /ccajax/data path
Giving the virtual path on a mounted sitemap, the real filesystem path is  C:\Documents\CocoonSites\ccajax\data
and not C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data, in my sample.

I think the documentation is inaccurate.On 11/22/05, Sylvain Wallez <
[EMAIL PROTECTED]> wrote:
Jean-Claude Moissinac wrote:> I have some sitemaps monted with the root mont-table.xml> I have the following line in the mount-table>   > The ccajax directory has a data subdirectory.>> When I use> {realpath:/ccajax/data}> I get>>>   C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data>> which is false; the true value is
>>>   C:\Documents\CocoonSites\ccajax\data>> Is this a misunderstanding from me or a bug in Cocoon?It's a misunderstanding: the realpath module uses the webapp's contextobject to get the real path of a resource *in the webapp*, and has no
relation with the current sitemap's location nor the current URL prefix.I'm not sure there's a module that does what you're looking for...Sylvain--Sylvain
WallezAnyware
Technologieshttp://bluxte.net
http://www.anyware-tech.comApache Software Foundation Member Research & Technology Director
-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm


Re: {realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
So, is there a simple way to know the directory of a sitemap?
Or, in my case, to create a directory in the directory of the current sitemap?

On 11/22/05, Sylvain Wallez <[EMAIL PROTECTED]> wrote:
Jean-Claude Moissinac wrote:> I have some sitemaps monted with the root mont-table.xml> I have the following line in the mount-table>   > The ccajax directory has a data subdirectory.>> When I use> {realpath:/ccajax/data}> I get>>>   C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data>> which is false; the true value is
>>>   C:\Documents\CocoonSites\ccajax\data>> Is this a misunderstanding from me or a bug in Cocoon?It's a misunderstanding: the realpath module uses the webapp's contextobject to get the real path of a resource *in the webapp*, and has no
relation with the current sitemap's location nor the current URL prefix.I'm not sure there's a module that does what you're looking for...Sylvain--Sylvain
WallezAnyware
Technologieshttp://bluxte.net
http://www.anyware-tech.comApache Software Foundation Member Research & Technology Director-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


{realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
I have some sitemaps monted with the root mont-table.xml
I have the following line in the mount-table
  
The ccajax directory has a data subdirectory.

When I use 
{realpath:/ccajax/data}I get
C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data
which is false; the true value is
C:\Documents\CocoonSites\ccajax\data
Is this a misunderstanding from me or a bug in Cocoon?

PS: I would like to use this path to create a new directory in the data directory
PPS with {baselink:SitemapBaseLink} and {baselink:RequestBaseLink}, I get a blank path (0 characters)-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Axis block

2005-10-11 Thread Jean-Claude Moissinac
In the samples section of a standard installation, when I read
"Axis Block - Examples using Apache Axis to give access to Cocoon via SOAP."
My understanding is that I will be able to transform some pipelines in Web Services accesible with SOAP.
It seems to be wrong. What is this 'access to cocoon via SOAP'?

Indeed, when I observe the samples, my understanding is that the samples illustrate two possibilities:
- one is to call some 'external' Web services from an xsp
- another is to call some Web Services installed in an Axis
installation included in my Cocoon installation; but I don't understand
how to install new Web Services in this Axis installation -standard
ways described in the Axis documentation seems not available in the
standard way-, where are the WSDL for the Web Services in the sample...
Briefly, how to use this axis integration in my cocoon site?

Thank you in adavance-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: Problem with Batik and Freebsd

2005-10-05 Thread Jean-Claude Moissinac
Many thank's
It works
On 10/5/05, Aurélien DEHAY <[EMAIL PROTECTED]> wrote:
Jean-Claude Moissinac wrote:> Thank you for this help.> Now, I will try to understand where I have to put the>> -Djava.awt.headless=true> option.>> I'm not using Tomcat, but the basic direct way to install Cocoon 
2.1.7.>> Regards>If you run cocoon as ./cocoon.sh servlet, just add this option to theJAVA_OPTIONS at line 79 of the cocoon.sh script.Rgds.--Aurélien-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: Problem with Batik and Freebsd

2005-10-05 Thread Jean-Claude Moissinac
Thank you for this help.
Now, I will try to understand where I have to put the
-Djava.awt.headless=trueoption.I'm not using Tomcat, but the basic direct way to install Cocoon 2.1.7.Regards
On 10/5/05, Aurélien DEHAY <[EMAIL PROTECTED]> wrote:
Hello.Here is the link about that in install docs:http://cocoon.apache.org/2.1/installing/index.html#UNIX+with+X+server
Regards.--Aurélien-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]-- -- Jean-Claude MoissinacDepartment of Computer Science and Networks
ENST ParisFRANCEE-mail: [EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm
 


Problem with Batik and Freebsd

2005-10-05 Thread Jean-Claude Moissinac
When I have this problem, I'm working with Freebsd and Cocoon 2.1.7.
When I try to display a JPEG image from an SVG (like in the batik block samples)
I get this error:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the
value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:1
25)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:62)
    at sun.awt.font.FontResolver.(FontResolver.java:46)
    at sun.awt.font.FontResolver.getInstance(FontResolver.java:150)
    at java.awt.font.TextLayout.singleFont(TextLayout.java:550)
    at java.awt.font.TextLayout.(TextLayout.java:606)
    at org.apache.batik.gvt.text.BidiAttributedCharacterIterator.(Unkn
own Source)
    at org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(Unknown
 Source)
    at org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(Unknown
 Source)
    at org.apache.batik.gvt.TextNode.getPrimitiveBounds(Unknown Source)
    at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBoun
ds(Unknown Source)
    at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknow
n Source)
    at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBou
nds(Unknown Source)
    at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknow
n Source)
    at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown
 Source)
    at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.getBounds2D(Unknown
 Source)
    at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.createRendering(Unk
nown Source)
    at org.apache.batik.gvt.renderer.StaticRenderer.renderGNR(Unknown Source
)
    at org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(Unk
nown Source)
    at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
    at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
    at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
    at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
    at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
    at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.ja
va:207)
    at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:131)
    at org.apache.cocoon.components.EnvironmentChanger.endDocument(Environme
ntStack.java:101)
    at org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler
.java:180)
    at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1287)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3383)
    at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Trans
formerHandlerImpl.java:389)
    at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.jav
a:55)
    at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTran
sformer.java:560)
    at org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler
.java:180)
    at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1287)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3383)
    at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Trans
formerHandlerImpl.java:389)
    at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.jav
a:55)
    at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTran
sformer.java:560)
    at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGe
nerator.java:3181)
    at org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JX
TemplateGenerator.java:2485)
    at org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateG
enerator.java:2479)
    at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.proc
essXMLPipeline(AbstractProcessingPipeline.java:575)
    at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingP
...
Can we give me some advice?

Thank you in advance.-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 

[EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88

Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm

-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88

Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm


Re: A cocoon demo site

2005-09-24 Thread Jean-Claude Moissinac
Hello

I'm searching documentation to define a widget as a multiple line string and I don't find that in the Cocoon site.
I've see such multiple line fields in your site.
How this is it done?

Thank you in advance

Jean-Claude MoissinacOn 9/23/05, 許議中 <[EMAIL PROTECTED]> wrote:







Hi!
 
This cocoon demo site add a flow design form by cform , Pls 
give us advice.
 
http://www.soho.club.tw/cocoon/portal_shb
 
user:demo
 
Pass:demo
 
Best Regards
 
Johnson

-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: Cocoon CLI and follow-links

2005-05-17 Thread Jean-Claude Moissinac
Thanks for the help. Now it works.
In the page 
http://cocoon.apache.org/2.1/userdocs/offline/index.html
the text about follow-links doesn't appear as a 'must do' but as an
explanation of how the follw-links could work. Perhaps a more direct
expression could help the users; something like
"If you want to use the follow-links option, you need to have the
following map:view declaration... or ..."

Introducing the map:views has been a good progress.

Next another problem appears with a redirect-to
The lines   



which works online in my site and doesn't work with the CLI.
I need to replace these lines by:   




The solution was hard to find because the problem appears with an
unclear Java error message about unability to access a completely
different file.



On 5/16/05, Upayavira <[EMAIL PROTECTED]> wrote:
> My first guess would be to look at the HTML of your page, and see
> whether there are any namespaces that might confuse the link gatherer.
> 
> Secondly, I asse your site works if it is mounted on svgtestsuite/ in
> servlet mode?
> 
> Regards, Upayavira
> 
> 
> Jean-Claude Moissinac wrote:
> > I'm using Cocoon 2.1.7 in command line mode to generate a static site.
> > I'm unable to obtain that the CLI command recursively generate the
> > pages. I only obtain the starting page.
> >
> > DETAILS:
> > Similarly with the sample cli.xconf, which generate the docs, I've
> > writed a clisvg.xconf that I call with
> > cocoon.bat cli -x clisvg.xconf
> >
> > and in clisvg.xconf which is manly a copy of cli.xconf, I start with
> >
> >   >   dest="build/svgdest/" />
> >
> > and expect to obtain all the pages referenced in linklist.html. I only
> > obtain linklist.html.
> > linklist.html is generated and is mainly a list of lines as:
> > Introduction
> > 
> > 
> > Samples with element a
> >
> > In this case, I expect to get linklist.html, intro.html, table.a.html
> > (which are correctly generated in my static site).
> >
> > I've tired to analyse in depth the cli.xconf sample (which works),
> > without obtaining a progress.
> >
> > Is there some limits on the follow-links parameter? how can I
> > understand these limits and work with these limits?...
> >
> > Thank's in advance for any help
> >
> > --
> > --
> > Jean-Claude Moissinac
> > Department of Computer Science and Networks
> > ENST Paris
> > FRANCE
> >
> > E-mail: [EMAIL PROTECTED]
> > Tel: (+33) 1.45.81.80.88
> > Fax: (+33) 1.45.81.71.58
> >
> > http://shadok.enst.fr/jcm
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon CLI and follow-links

2005-05-16 Thread Jean-Claude Moissinac
I'm using Cocoon 2.1.7 in command line mode to generate a static site.
I'm unable to obtain that the CLI command recursively generate the
pages. I only obtain the starting page.

DETAILS:
Similarly with the sample cli.xconf, which generate the docs, I've
writed a clisvg.xconf that I call with
cocoon.bat cli -x clisvg.xconf

and in clisvg.xconf which is manly a copy of cli.xconf, I start with
   
 
   
and expect to obtain all the pages referenced in linklist.html. I only
obtain linklist.html.
linklist.html is generated and is mainly a list of lines as:
Introduction


Samples with element a

In this case, I expect to get linklist.html, intro.html, table.a.html
(which are correctly generated in my static site).

I've tired to analyse in depth the cli.xconf sample (which works),
without obtaining a progress.

Is there some limits on the follow-links parameter? how can I
understand these limits and work with these limits?...

Thank's in advance for any help

--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using Cocoon as a command line tool

2005-05-14 Thread Jean-Claude Moissinac
Many thank's
It works for me
I've know to adjust my own cli.xconf.

On 5/13/05, Simon Mieth <[EMAIL PROTECTED]> wrote:
> On Fri, 13 May 2005 19:03:02 +0200
> Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> 
> > If I add
> >  servlet_2_2.jar
> > and
> > openjms-0.7.6.1.jar
> > to my config in WEB-INF/lib
> >
> > not only my CLI attempt fails, but also my standard use of Cocoon as a
> > server doesn't start
> > With just the openjms-0.7.6.1.jar, the start process stop on
> > - Scheduler Cocoon_$_Fri_May_13_19:00:09_CEST_2005 started.
> 
> Hi Jean-Claude,
> 
> I thought the CLI of 2.1.7 run out-of-box, but I get the same problem.
> The problem is the Loader class of the CLI environment, which only
> point to the WEB-INF/lib directory.
> There is a patch in bugzilla (not in the svn), which fixes this. But
> you can use a work-around:
> 
> * got to the WEB-INF/classes directory and create a jar-archiv with
>all entries like:
>  jar -cf ..\lib\cli-fix.jar *
> 
> that should fix your problem. You can enable all blocks in your build
> (the default), maybe you make a clean build (remove the
> local.build.properties and call build.bat clean webapp) and the copy
> the servlet.jar again and the work-around (see above).
> 
> Best Regards,
> 
> Simon
> 
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using Cocoon as a command line tool

2005-05-13 Thread Jean-Claude Moissinac
If I add 
 servlet_2_2.jar
and
openjms-0.7.6.1.jar
to my config in WEB-INF/lib

not only my CLI attempt fails, but also my standard use of Cocoon as a
server doesn't start
With just the openjms-0.7.6.1.jar, the start process stop on
- Scheduler Cocoon_$_Fri_May_13_19:00:09_CEST_2005 started.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/exolab/core/util/URI$MalformedURI
Exception
at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialCo
ntextFactory.java:95)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at org.apache.cocoon.components.jms.JMSConnectionManagerImpl.createIniti
alContext(JMSConnectionManagerImpl.java:208)
at org.apache.cocoon.components.jms.JMSConnectionManagerImpl.initialize(
JMSConnectionManagerImpl.java:111)
at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:283)
at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:277)
at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:108)
at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initi
alize(ExcaliburComponentManager.java:522)
at org.apache.cocoon.components.CocoonComponentManager.initialize(Cocoon
ComponentManager.java:561)
at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:283)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:283)
at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.ja
va:1391)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)

at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:445)
at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:150)
at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:458)
at org.mortbay.http.HttpServer.start(HttpServer.java:663)
at org.mortbay.jetty.Server.main(Server.java:429)
... 7 more

and nothing more.


On 5/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> If you exclude jms, this will lead to other errors due to dependencies. You
> should disable eventcache, repository, slide and webdav too.
> 
> michael
> 
> -Ursprüngliche Nachricht-
> Von: Upayavira [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 13. Mai 2005 15:49
> An: users@cocoon.apache.org
> Betreff: Re: Using Cocoon as a command line tool
> 
> 
> rebuild without the jms block.
> 
> Upayavira
> 
> Jean-Claude Moissinac wrote:
> 
> > Now, I'm going forward, but I stop after this error:
> > ...
> > - For the jms block to work you must install and start a JMS server
> > and place th e client jar in WEB-INF/lib.
> > - The default server, OpenJMS is configured in cocoon.xconf but is not
> > bundled w ith Cocoon. Exception in thread "main"
> > java.lang.reflect.InvocationTargetException
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > ...
> >
> > I need to identify the OpenJMS  jar, I suppose.
> >
> > Jean-Claude
> > On 5/13/05, Simon Mieth <[EMAIL PROTECTED]> wrote:
> >
> >>On Fri, 13 May 2005 14:47:50 +0200
> >>Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>I doesn't find a servlet jar in lib/Optional
> >>>but I find these:
> >>>servlet_2_2.jar in lib/core
> >>>

Re: Using Cocoon as a command line tool

2005-05-13 Thread Jean-Claude Moissinac
Now, I'm going forward, but I stop after this error:
...
- For the jms block to work you must install and start a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled w
ith Cocoon.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
...

I need to identify the OpenJMS  jar, I suppose.

Jean-Claude
On 5/13/05, Simon Mieth <[EMAIL PROTECTED]> wrote:
> On Fri, 13 May 2005 14:47:50 +0200
> Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> 
> > I doesn't find a servlet jar in lib/Optional
> > but I find these:
> > servlet_2_2.jar in lib/core
> > servlet-2.3.jar in tools/jetty/lib
> > Does one of these do the trick?
> 
> Hi,
> 
> yes take one of these jars.
> 
> Best Regards,
> 
> Simon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using Cocoon as a command line tool

2005-05-13 Thread Jean-Claude Moissinac
I doesn't find a servlet jar in lib/Optional
but I find these:
servlet_2_2.jar in lib/core
servlet-2.3.jar in tools/jetty/lib
Does one of these do the trick?

Jean-Claude

On 5/13/05, Simon Mieth <[EMAIL PROTECTED]> wrote:
> On Thu, 12 May 2005 17:46:31 +0200
> Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> 
> > Hello
> >
> > I'm trying to use Cocoon as a command line tool.
> > I've read
> > http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> > and the related pages.
> >
> > I've found a cli.xconf file in the root of my installation.
> > It is different from the one in the cli.html page.
> >
> > I've tried
> > - cli.xconf in the distribution
> > - an xconf file copied from the cli.html page
> > - some personal xconf files derived from the previous
> >
> > My attempt are with command like:
> > cocoon.bat cli -x cli.xconf
> >
> > All the attempt fails.
> > After a lot of trace in the window, I get :
> > trying to register database
> > trying to register database
> > Cannot find CatalogManager.properties
> > Exception in the thread "main"
> > java.lang.reflect.InvocationTargetException at
> > sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method) ...
> >
> > and the process stops.
> > (I'm working with Cocoon 2.1.7 on Windows XP; this install is working)
> >
> > I don't find what is wrong.
> > Is someone able to help?
> >
> Hi Jean-Claude,
> 
> * copy
>"lib\optional\servlet-2_3.jar"
>to
>"build\webapp\WEB-INF\lib"
> 
> inside your cocoon folder.
> 
> It should work now.  Maybe the information is missing on
> the pages you read, but it is needed.
> 
> Best Regards,
> 
> Simon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using Cocoon as a command line tool

2005-05-13 Thread Jean-Claude Moissinac
Thank's for your help but
>"lib\optional\servlet-2_3.jar"
doesn't exist in my standard installation of cocoon 2.1.7
I will try to get it elsewhere.

Best regards

Jean-Claude

On 5/13/05, Simon Mieth <[EMAIL PROTECTED]> wrote:
> On Thu, 12 May 2005 17:46:31 +0200
> Jean-Claude Moissinac <[EMAIL PROTECTED]> wrote:
> 
> > Hello
> >
> > I'm trying to use Cocoon as a command line tool.
> > I've read
> > http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> > and the related pages.
> >
> > I've found a cli.xconf file in the root of my installation.
> > It is different from the one in the cli.html page.
> >
> > I've tried
> > - cli.xconf in the distribution
> > - an xconf file copied from the cli.html page
> > - some personal xconf files derived from the previous
> >
> > My attempt are with command like:
> > cocoon.bat cli -x cli.xconf
> >
> > All the attempt fails.
> > After a lot of trace in the window, I get :
> > trying to register database
> > trying to register database
> > Cannot find CatalogManager.properties
> > Exception in the thread "main"
> > java.lang.reflect.InvocationTargetException at
> > sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method) ...
> >
> > and the process stops.
> > (I'm working with Cocoon 2.1.7 on Windows XP; this install is working)
> >
> > I don't find what is wrong.
> > Is someone able to help?
> >
> Hi Jean-Claude,
> 
> * copy
>"lib\optional\servlet-2_3.jar"
>to
>"build\webapp\WEB-INF\lib"
> 
> inside your cocoon folder.
> 
> It should work now.  Maybe the information is missing on
> the pages you read, but it is needed.
> 
> Best Regards,
> 
> Simon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using Cocoon as a command line tool

2005-05-12 Thread Jean-Claude Moissinac
Hello

I'm trying to use Cocoon as a command line tool.
I've read
http://cocoon.apache.org/2.1/userdocs/offline/cli.html
and the related pages.

I've found a cli.xconf file in the root of my installation.
It is different from the one in the cli.html page.

I've tried 
- cli.xconf in the distribution
- an xconf file copied from the cli.html page
- some personal xconf files derived from the previous

My attempt are with command like:
cocoon.bat cli -x cli.xconf

All the attempt fails.
After a lot of trace in the window, I get :
trying to register database
trying to register database
Cannot find CatalogManager.properties
Exception in the thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method)
...

and the process stops.
(I'm working with Cocoon 2.1.7 on Windows XP; this install is working)

I don't find what is wrong.
Is someone able to help?

Thank's in advance
-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LDAPTransformer

2005-04-28 Thread Jean-Claude Moissinac
Hello

I would like to use LDAPTranformer for authentication.
The DTD is not enough as documentation to use it.
What are the supported parameters values?...

I know
- my ldap server say: ldap.myserver.fr
- I have to use SSL or TLS as protocol
- I can try a ldap_bind with my login

I think I have to make a query near than:
http://apache.org/cocoon/LDAP/1.0";>
  
 com.sun.jndi.ldap.LdapCtxFactory
 simple
 3
 ldap://ldap.enst.fr
 636
 uid=myuserid,ou=People,dc=myserver,dc=fr
 mypasswd
 TRUE
 TRUE
 0
 0
  


Thanks in advance for some help
-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
I can't figure when the declaration has been put out and how I can
have not seen before. But it seem to works.
The content without the needed declaration works fine in the Adobe Viewer.

Thank you for your help

On Apr 7, 2005 3:39 PM, Jorg Heymans <[EMAIL PROTECTED]> wrote:
> 
> Jean-Claude Moissinac wrote:
> > Here is a very short test which works when displayed directly, but
> > doesn't works when served by cocoon with the previously showed
> > pipeline:
> >
> > 
> >  > xmlns="http://www.w3.org/2000/svg";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> You didn't specify the xlink namespace in this document, so ofcourse the
> parser complains that it cannot map the namespace. Just add the
> namespace at the top and it will work.
> 
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
Here is a very short test which works when displayed directly, but
doesn't works when served by cocoon with the previously showed
pipeline:


http://www.w3.org/2000/svg";>











On Apr 7, 2005 11:20 AM, Jorg Heymans <[EMAIL PROTECTED]> wrote:
> 
> Jean-Claude Moissinac wrote:
> > Sorry, I don't know how to apply your advice.
> > I've installed a standard Coccon 2.1.7 install.
> > In the startup process messages, I see:
> > ... Starting Jetty/4.2.23
> > and in the last line of the startup:
> > ... Started [EMAIL PROTECTED]
> >
> > Do you say I have to download a different version of Jetty and install
> > it in Cocoon?
> >
> 
> Nope, this is ok.
> 
> I tested with
>  
>
>
>  
> 
> "try.svg" is a plain svg with multiple namespaces declared,
> 
>  xmlns="http://www.w3.org/2000/svg";
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> .
> 
> there is one element with xlink :  y="200" /> , logo is a defined image.
> 
> I am getting no errors whatsoever. Adobe plugin renders it fine, and
> when i use the plain xml serializer i can see that the document went
> through unmodified.
> 
> Where do you exactly get this error? Is it in the tool you use to view
> the resulting svg or is it a cocoon error with stacktrace and all?
> 
> Jorg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
.TreeProcessor.process(TreeProcessor.java:243)
at org.apache.cocoon.Cocoon.process(Cocoon.java:608)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)



On Apr 7, 2005 11:20 AM, Jorg Heymans <[EMAIL PROTECTED]> wrote:
> 
> Jean-Claude Moissinac wrote:
> > Sorry, I don't know how to apply your advice.
> > I've installed a standard Coccon 2.1.7 install.
> > In the startup process messages, I see:
> > ... Starting Jetty/4.2.23
> > and in the last line of the startup:
> > ... Started [EMAIL PROTECTED]
> >
> > Do you say I have to download a different version of Jetty and install
> > it in Cocoon?
> >
> 
> Nope, this is ok.
> 
> I tested with
>  
>
>
>  
> 
> "try.svg" is a plain svg with multiple namespaces declared,
> 
>  xmlns="http://www.w3.org/2000/svg";
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> .
> 
> there is one element with xlink :  y="200" /> , logo is a defined image.
> 
> I am getting no errors whatsoever. Adobe plugin renders it fine, and
> when i use the plain xml serializer i can see that the document went
> through unmodified.
> 
> Where do you exactly get this error? Is it in the tool you use to view
> the resulting svg or is it a cocoon error with stacktrace and all?
> 
> Jorg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
Sorry, I don't know how to apply your advice.
I've installed a standard Coccon 2.1.7 install.
In the startup process messages, I see:
... Starting Jetty/4.2.23
and in the last line of the startup:
... Started [EMAIL PROTECTED]

Do you say I have to download a different version of Jetty and install
it in Cocoon?


On Apr 7, 2005 10:41 AM, Jorg Heymans <[EMAIL PROTECTED]> wrote:
> what servlet container are you using? Try your sample with a standard
> jetty-2.1.7 build.
> 
> Jean-Claude Moissinac wrote:
> > I'm using a standard 2.1.7 install on a PC/XP
> > My SVG plays fine in all players and is very simple.
> >
> > Perhaps, i have to change the SAX parser used?
> >
> > On Apr 7, 2005 9:56 AM, Joachim Breitsprecher <[EMAIL PROTECTED]> wrote:
> >
> >>Jorg Heymans wrote:
> >>
> >>>Jean-Claude Moissinac wrote:
> >>>
> >>>>"The prefix "xlink" for attribute "xlink:href" associated with an
> >>>>element type "use" is not bound."
> >>>>
> >>>
> >>>I just tried this with a stock 2.1.7 build without problems. Maybe your
> >>>SVG is dodgy?
> >>
> >>I have had similar problems ("namespace not bound"). If you do not use
> >>the bundled Jetty, make sure that your servlet container is using
> >>Cocoon's endorsed libraries.
> >>
> >>HTH,
> >>
> >>Joachim
> >>
> >>-----
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
I'm using a standard 2.1.7 install on a PC/XP
My SVG plays fine in all players and is very simple.

Perhaps, i have to change the SAX parser used?

On Apr 7, 2005 9:56 AM, Joachim Breitsprecher <[EMAIL PROTECTED]> wrote:
> Jorg Heymans wrote:
> >
> > Jean-Claude Moissinac wrote:
> >> "The prefix "xlink" for attribute "xlink:href" associated with an
> >> element type "use" is not bound."
> >>
> >
> > I just tried this with a stock 2.1.7 build without problems. Maybe your
> > SVG is dodgy?
> 
> I have had similar problems ("namespace not bound"). If you do not use
> the bundled Jetty, make sure that your servlet container is using
> Cocoon's endorsed libraries.
> 
> HTH,
> 
> Joachim
> 
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SVG with xlink namespace

2005-04-07 Thread Jean-Claude Moissinac
Hello

I have an SVG file, something like

http://www.w3.org/2000/svg";
xmlns:xlink="http://www.w3.org/1999/xlink";>
...




Note that it is using the xmlns:xlink namespace.
It is a very common situation in an SVG file.

When I try a sitemap like
   
   
   
   
I get the followin error

"The prefix "xlink" for attribute "xlink:href" associated with an
element type "use" is not bound."

To use a map:read is not a solution for me, because I have to use
output of this pipeline as input for another (and, probably, to put a
map:transform between the map:generate and the map:serialise).

How can I specify to Coccon that I need to use a content like that
SVG, with two namespaces?

Thank you in advance for your help
-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: SVG with xlink namespace

2005-04-06 Thread Jean-Claude Moissinac
Hello

I have an SVG file, something like

http://www.w3.org/2000/svg";
xmlns:xlink="http://www.w3.org/1999/xlink";>
...



Note that it is using the xmlns:xlink namespace.
When I try a sitemap like




I get the followin error

"The prefix "xlink" for attribute "xlink:href" associated with an
element type "use" is not bound."

To use a map:read is not a solution for me, because I have to use
output of this pipeline as input for another (and, probably, to put a
map:transform between the map:generate and the map:serialise).

How can I specify to Coccon that I need to use a content like that
SVG, with two namespaces?

Thank you in advance for your help
--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Source from a parameter in the URL

2005-03-31 Thread Jean-Claude Moissinac
The answer is very simple


...
for a request
http:\\mycocoon\filter?src=mystring

On Wed, 30 Mar 2005 10:43:18 +0200, Jean-Claude Moissinac
<[EMAIL PROTECTED]> wrote:
> Hello
> 
> I need to use an URL parameter as the source of a pipeline
> (something like http:\\mycocoon?src=mystring where mysource could be
> anything: a file name, an URL...)
> and I don't see clearly a good method.
> 
> I think the question could be:
> how can I use a parameter in the URL as the src attribute in a generator?
> (something like  for the previous sample)
> 
> --
> Jean-Claude Moissinac
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Source from a parameter in the URL

2005-03-30 Thread Jean-Claude Moissinac
Hello
I need to use an URL parameter as the source of a pipeline
(something like http:\\mycocoon?src=mystring where mysource could be 
anything: a file name, an URL...)
and I don't see clearly a good method.

I think the question could be:
how can I use a parameter in the URL as the src attribute in a generator?
(something like  for the previous sample)
--
Jean-Claude Moissinac
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Saxon

2005-01-03 Thread Jean-Claude Moissinac
Jean-Claude Moissinac wrote:
Hello
I would like to use Saxon and Xalan in my site.
The article in
http://wiki.apache.org/cocoon/Saxon
helps me well with saxon7
But with saxon8, I get an error in the cocoon shell window:
...
16:06:38.553 WARN!! Error for /samples/hello-world/hello.saxon
java.lang.NoClassDefFoundError: org/w3c/dom/TypeInfo
at net.sf.saxon.tree.TreeBuilder.open(TreeBuilder.java:75)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:88)
at net.sf.saxon.style.UseWhenFilter.open(UseWhenFilter.java:45)

See below for more details.
Where hello.saxon is generated with the following pipeline added in the 
helloworld sitemap (this pipeline works well with saxon7):

   



   
Any idea?
saxon8.2 seems to need jdk1.5 or some complementary jar (the 
separately-downloaded JAXP 1.3 package.) which saxon8.2 doesn't need

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Saxon

2004-12-27 Thread Jean-Claude Moissinac
ontext.handle(HttpContext.java:1808)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)

--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XSLT, Xalan Extension

2004-11-25 Thread Jean-Claude Moissinac
Hello
Extensions in Xalan are a very powerful capability.
I'm trying to use  within Cocoon the extension capability of Xalan.
(see http://xml.apache.org/xalan-j/extensions.html)
As a test, I have copied the xslt sample in
http://xml.apache.org/xalan-j/extensions.html#ex-basic
and use it in a simple pipeline





and the pipeline crashes:
Original Exception: java.lang.RuntimeException: 
java.lang.NullPointerException
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
	at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
	at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:549)
...

What is wrong?
Thank you in advance for any help.
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems with xsl:document()-function

2004-09-26 Thread Jean-Claude Moissinac
Question: is the XSLT engine used by Cocoon supporting the documentt() 
function?

Jean-Claude
Andreas Hartmann wrote:
Katrin Schoenherr wrote:
Hi,
i tried to get the document()-function to work.
Here is a sample: 
I tried everything  The path is correct. The XML-File too.
Does Cocoon support this function? There is no error-message. But the 
file isn't include. 

BTW, using document() is generally discouraged in Cocoon
for SoC reasons. Rather consider aggregation, C/Xinclude
and the like.
-- Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DELI example

2004-09-23 Thread Jean-Claude Moissinac
Jorg Heymans wrote:
does http://article.gmane.org/gmane.text.xml.cocoon.devel/40876 help?
Jean-Claude Moissinac wrote:
Hello
When I try the DELI sample in the BLOCK  part of the samples, I get
org.apache.cocoon.ProcessingException: Unable to get transformer 
handler for 
file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/deli/deli_test.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
with the 2.2.0-dev version of Cocoon on a FreeBSD system
URL http://shadok.enst.fr:8080/samples/blocks/deli/deli.html

With Cocoon 2.1.5 and Windows, the same sample works fine.
Some ideas to track the problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

It works.
I've seen that it was a path problem.
Your pointer fix it.
Deli is very useful for our experiments about working in mixed 
environment (stations and PDA)

Thank you
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DELI example

2004-09-20 Thread Jean-Claude Moissinac
Hello
When I try the DELI sample in the BLOCK  part of the samples, I get
org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for 
file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/deli/deli_test.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
with the 2.2.0-dev version of Cocoon on a FreeBSD system
URL http://shadok.enst.fr:8080/samples/blocks/deli/deli.html

With Cocoon 2.1.5 and Windows, the same sample works fine.
Some ideas to track the problem?
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: where to put custom component classes

2004-09-15 Thread Jean-Claude Moissinac
I don't know if this is the good practice but I have private components 
for an application and I have a directory for my classes (named mp4 in 
the following sample) in the 
...cocoon-2.1.5\build\webapp\WEB-INF\classes  directory and, for the 
MP4Serializer class, I have this declaration in the sitemap:
   
   
   
and then I use the serializer with (example):
   
   
   
   

Hope this help
Jean-Claude Moissinac
Adrian Petru Dimulescu wrote:
Hello,
I have to write a custom serializer so I created a myapp/WEB-INF/src 
folder under my Cocoon application; the java files I created there are 
then compiled under myapp/WEB-INF/classes but Cocoon doesn't seem to 
notice/load them.

My Cocoon application is simply a directory which I mount in the 
sitemap.xmap like this:


  


Do I have to copy those classes into Cocoon's own WEB-INF/classes or 
is there a way to tell Cocoon to load classes located under specific 
mounted Cocoon applications?

Thanks,
Adrian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Upgrading the "Upload File" sample to handle binary formats

2004-09-13 Thread Jean-Claude Moissinac
I'm searching for the same solution.
My users must download OpenOffice files which are binary files.
In the upload_model.xml file you have the line
   
You could put there a list of types you want, like
mime-types="image/jpeg"

But, for saving the file, I'm searching for the solution.
I don't know really what is the type of the object obtained in
   var stream = uploadWidget.getValue().getInputStream();
And then I don't know what I can do to save my binary file.
I hope I've helped and I hope some help
Jean-Claude
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SOAP debugging

2004-09-13 Thread Jean-Claude Moissinac
Hello
I'm trying to debug a soap request generated with the soap logicsheet.
How can I view the generated soap request?
How can I have a log file for the soap.xsl?
(which generate the following lines
 if (getLogger().isDebugEnabled()) {
 getLogger().debug("XScriptObject for soap:call is\n" +
  +
 ", sending request to: " + );
 }
)
Thank's in advance
Jean-Claude
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Host selector causing problem with PDF serialiser

2004-09-09 Thread Jean-Claude Moissinac
David Merrilees wrote:
I have a transformation serialising an xml file as a PDF which works
fine until I use a host selector within the pipeline and it fails to
open. The host selector is working correctly except for this problem.
See the problem for yourself here:
http://www.neilrudd.co.uk/cocoon/abc/index.pdf
Anyone else encountered this?
David Merrilees


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

I encounter no problem to open the PDF at this URL
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Exploring the Slide sample

2004-09-08 Thread Jean-Claude Moissinac
I use the slide reference sample; so, I assume it is well writed. And, 
it works on Windows. In the content.jx file, from the sample, there is 
the line

with the suggested enctype.
I suspect the problem comes from a configuration issue with my 
cocoon/freebsd install, but how to find it?

Could you point me to a good sample which combine upload and CForms?
Perhaps it could be a way to turn the problem.
Jean-Claude
Bart Molenkamp wrote:
Hmm... I use uploads in combination with CForms, and then it is required
to have the attribute enctype="multipart/form-data" added to the 
tag. Maybe that is missing?

-Original Message-----
From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Exploring the Slide sample
Yes
It is set to true on both systems.
Bart Molenkamp wrote:

Is the property "enable-uploads" in WEB-INF/web.xml enabled? If not,
the
uploaded part will be null.

-Original Message-----
From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 3:18 PM
To: [EMAIL PROTECTED]
Subject: Exploring the Slide sample
Hello
I'm trying to explore the Slide sample and then to adapt it
(http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev)
On my development system (Windows), an attempt to upload a file
works
fine with the form.
On my exploitation system (FreeBsd), after filing the form and a
click
on the 'Upload File' button,  I get an error on the URL
http://:/samples/blocks/slide/uploadsource.do
The error is:
"file:/usr/local/cocoon/cocoon-
2.1/build/webapp/samples/blocks/slide/flow.js",
line 120: uncaught JavaScript exception: at uploadsource
(file:/usr/local/cocoon/cocoon-
2.1/build/webapp/samples/blocks/slide/flow.js,
Line 120): org.apache.excalibur.source.SourceException: Request
object
uploadFile is not an uploaded Part
I don't find a way for debuging that.
Can someone help me?
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Web service

2004-09-08 Thread Jean-Claude Moissinac
Hello
Some more info
The following soap request work well outside cocoon, but all my attempt 
to map that request in the soap logicsheet fails
http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
	
		http://schemas.xmlsoap.org/soap/encoding/";>
			CYVR
		
	


Is there someone which could help about the translation from a soap 
request to a soap logicsheet (a method, a link, a tutorial, ...)

Jean-Claude Moissinac
Jean-Claude Moissinac wrote:
Hello
I'm trying to use the SOAP logicsheet
I don't find documentation about it other than the sample.
I'm trying to derive a test from the following sample
http://...mycocoon.../samples/blocks/xsp/soap/temperature
which is based on the following xsp
http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xscript="http://apache.org/xsp/xscript/1.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
  http://services.xmethods.net:80/soap/servlet/rpcrouter";>

  
   90210

  
  

I don't understand the semantic of  and I don't find the 
syntax and/or the semantic for the urn in 
xmlns:ns1="urn:xmethods-Temperature"

for the capascience weather service 
(http://www.capescience.com/webservices/globalweather/index.shtml, SOAP 
technical details in the bottom of the page), I derive from above to

http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xscript="http://apache.org/xsp/xscript/1.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
  http://live.capescience.com:80/ccx/GlobalWeather";>

  
CYVR

  


The urn seems to be always false whatever I try.

--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Web service

2004-09-08 Thread Jean-Claude Moissinac
Hello
I'm trying to use the SOAP logicsheet
I don't find documentation about it other than the sample.
I'm trying to derive a test from the following sample
http://...mycocoon.../samples/blocks/xsp/soap/temperature
which is based on the following xsp
http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xscript="http://apache.org/xsp/xscript/1.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
  http://services.xmethods.net:80/soap/servlet/rpcrouter";>

  
 		  90210

  
  

I don't understand the semantic of  and I don't find the 
syntax and/or the semantic for the urn in 
xmlns:ns1="urn:xmethods-Temperature"

for the capascience weather service 
(http://www.capescience.com/webservices/globalweather/index.shtml, SOAP 
technical details in the bottom of the page), I derive from above to

http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xscript="http://apache.org/xsp/xscript/1.0";
  xmlns:soap="http://apache.org/xsp/soap/3.0";
  >
  
  http://live.capescience.com:80/ccx/GlobalWeather";>

      
        CYVR

  


The urn seems to be always false whatever I try.
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Exploring the Slide sample

2004-09-08 Thread Jean-Claude Moissinac
Yes
It is set to true on both systems.
Bart Molenkamp wrote:
Is the property "enable-uploads" in WEB-INF/web.xml enabled? If not, the
uploaded part will be null.

-Original Message-----
From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 3:18 PM
To: [EMAIL PROTECTED]
Subject: Exploring the Slide sample
Hello
I'm trying to explore the Slide sample and then to adapt it
(http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev)
On my development system (Windows), an attempt to upload a file works
fine with the form.
On my exploitation system (FreeBsd), after filing the form and a click
on the 'Upload File' button,  I get an error on the URL
http://:/samples/blocks/slide/uploadsource.do
The error is:
"file:/usr/local/cocoon/cocoon-
2.1/build/webapp/samples/blocks/slide/flow.js",
line 120: uncaught JavaScript exception: at uploadsource
(file:/usr/local/cocoon/cocoon-
2.1/build/webapp/samples/blocks/slide/flow.js,
Line 120): org.apache.excalibur.source.SourceException: Request object
uploadFile is not an uploaded Part
I don't find a way for debuging that.
Can someone help me?
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Exploring the Slide sample

2004-09-08 Thread Jean-Claude Moissinac
Hello
I'm trying to explore the Slide sample and then to adapt it
(http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev)
On my development system (Windows), an attempt to upload a file works 
fine with the form.
On my exploitation system (FreeBsd), after filing the form and a click 
on the 'Upload File' button,  I get an error on the URL
http://:/samples/blocks/slide/uploadsource.do
The error is:
"file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js", 
line 120: uncaught JavaScript exception: at uploadsource 
(file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js, 
Line 120): org.apache.excalibur.source.SourceException: Request object 
uploadFile is not an uploaded Part

I don't find a way for debuging that.
Can someone help me?
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Slide sample

2004-09-06 Thread Jean-Claude Moissinac
Hello
I use cocoon on a Windows (development) and on a FreeBSD (exploitation) 
system.
I've set upload-enabled to true on both platforms.
I'm trying to upload a file, the:
- With Windows, all works well
- but with FreeBSD I get an error:
"file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js", 
line 120: uncaught JavaScript exception: at uploadsource 
(file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js, 
Line 120): org.apache.excalibur.source.SourceException: Request object 
uploadFile is not an uploaded Part

Any idea?
Jean-Claude Moissinac
ENST
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]