Re: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-22 Thread Konstantin Piroumian
A typical parser/classpath problem.
You'll find the answer here (scroll to the bottom):

http://wiki.cocoondev.org/Wiki.jsp?page=FAQs

--
  Konstantin

- Original Message -
From: "Thomas Haselberger" <[EMAIL PROTECTED]>
To: "Cocoon-Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 12:52
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation
throws an
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla)
Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml:
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:214)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
at
org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.1
8\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_x
map.java:1345)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1185)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1128)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.t

Re: i18n Problem

2002-05-07 Thread Konstantin Piroumian

From: "jason lane" <[EMAIL PROTECTED]>
> Hello people,
>
> I'm new to cocoon 2, I'm running on OS X 10.1.4 and Tomcat 4.0.1 and
> I've got a problem with i18n. The pipeline is failing to execute, file
> not found error on the examples page. My guess is that the sitemap need
> to be modified or the transformer included into tomcat 4.01.  Before I
> go stomping around with this I just want to make sure that I am on the
> right track!

Did you try this URL: http://localhost:8080/cocoon/samples/i18n/ ?
Samples were refactored and moved to that direction. The front-page is not
updated yet.

--
Konstantin

>
> Many thanks everyone
>
> Jason Lane
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: i18n problem

2002-04-15 Thread Volker Schneider

Hi Kurt,

sorry, I forgot something. If you want to switch the languages (I think you
do so) you have to provide the "locale" parameter with your request like
this:

http:///Cocoon/test?locale=en


I think, you don't need the LocaleAction for your pipeline... - very strange
... (I succeeded without using it).

Regards,
- Volker -

-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Sent: Montag, 15. April 2002 12:05
To: '[EMAIL PROTECTED]'
Subject: i18n problem


I'm trying to reproduce the i18n sample in my application, and can't get it
to work. I think I missed one step during setup, maybe someone can help:

1. I created a folder "translations", with the files messages.xml and
messages_en.xml (this way I didn't have to change the entry in the main
Cocoon sitemap)
2. I added a line : Hello  to my .xml-file I want
to display, this text should be resolved in my messages.xml file, which
contains:   
Hello
Hello,
internationalization!
Bonjour,
internationalization!
Herzlich willkommen,
Internationalisierung!
.
3. The match in my sitemap goes like this:






This gives me as result the line "untranslated-text". I tried to add
parameters to add to "transform type...", as in the documentation:





 but this gave a me general sitemap error (Cocoon wouldn't start up
anymore).

Any ideas?

-
Please check that your question has not already been answered in the
FAQ before posting. 

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


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: i18n problem

2002-04-15 Thread Volker Schneider

Hi Kurt,

please see the mails of last friday talking with Konstantin Piroumian about
this topic. The documentation is old. You have to do the following:

Create 2 Files "messages_en" and "messages_fr". Each file has to look like
this:








Germany
Switzerland
...


and the same for french.

Make sure the you have defined the filename prefix and the location in the
sitemap:


messages
translation


Then you can use the tags:

...
Deutschland
...

if you have defined the i18n-namespace. If you want to translate the output
of a stylesheet, put it inside the body-tag to avoid syntax errors:


http://www.w3.org/1999/XSL/Transform";
xmlns:xlink="http://www.w3.org/1999/xlink";>


http://apache.org/cocoon/i18n/2.0";>

...




If you have further questions, feel free to ask. Maybe I can help you.

Best regards,
- Volker -

-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Sent: Montag, 15. April 2002 12:05
To: '[EMAIL PROTECTED]'
Subject: i18n problem


I'm trying to reproduce the i18n sample in my application, and can't get it
to work. I think I missed one step during setup, maybe someone can help:

1. I created a folder "translations", with the files messages.xml and
messages_en.xml (this way I didn't have to change the entry in the main
Cocoon sitemap)
2. I added a line : Hello  to my .xml-file I want
to display, this text should be resolved in my messages.xml file, which
contains:   
Hello
Hello,
internationalization!
Bonjour,
internationalization!
Herzlich willkommen,
Internationalisierung!
.
3. The match in my sitemap goes like this:






This gives me as result the line "untranslated-text". I tried to add
parameters to add to "transform type...", as in the documentation:





 but this gave a me general sitemap error (Cocoon wouldn't start up
anymore).

Any ideas?

-
Please check that your question has not already been answered in the
FAQ before posting. 

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


-
Please check that your question has not already been answered in the
FAQ before posting. 

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