[SOLUTION] error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 16:07:34 +0100
Joerg Heinicke <[EMAIL PROTECTED]> wrote:

> Can you provide a conclusing solution adding [SOLUTION] to the mail 
> subject with problem description and steps to go?
> 
> Joerg

1. copy SVGBuilder.java from cocoon2.0.3 src/java/org/apache/cocoon/xml/dom to 
cocoon2.0.2 src/java/org/apache/cocoon/xml/dom
2. copy batik-all-1.5b2.jar to cocoon2.0.2 lib/optional
3. remove cocoon2.0.2 build catalogue
4. rebuild cocoon2.0.2
5. remove all from $CATALINA_HOME/work
6. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/lib/cocoon-2.0.2.jar to 
$CATALINA_HOME/cocoon/WEB-INF/lib (instead of old cocoon2.0.2.jar)
7. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/lib/batik-all-1.5b2.jar to 
$CATALINA_HOME/cocoon/WEB-INF/lib (instead of batik-all-1.5b1.jar)
8. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/Manifest.mf to 
$CATALINA_HOME/cocoon/WEB-INF/ (instead of old Manifest.mf)
9. copy cocoon2.0.2/build/cocoon/cocoon.war#/META-INF/MANIFEST.MF to 
$CATALINA_HOME/cocoon/META-INF (instead of old MANIFEST.MF)
10. start up tomcat.

This way is not very good, try using cocoon2.0.3 instead.
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Joerg Heinicke
Can you provide a conclusing solution adding [SOLUTION] to the mail 
subject with problem description and steps to go?

Joerg

Yury Mikhienko wrote:
On Wed, 20 Nov 2002 16:52:40 +0300
Yury Mikhienko <[EMAIL PROTECTED]> wrote:



Hi all!

Can anyone using batik_v1.5b2 with cocoon v2.0.2?
How to reconfigure cocoon for work him with batik_v1.5b2?
(I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any errors)

Thanx for advise.




I have solved the problem by copying SVGBuilder.java from cocoon2.0.3 src to cocoon2.0.2 src  and batik-all-1.5b2.jar to cocoon2.0.2 lib/optional instead of batik-all-1.5b1.jar.
After cocoon 2.0.2 was recompiled it works :)) (my test.svg sample also)

Thanks to all.



-
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: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 16:52:40 +0300
Yury Mikhienko <[EMAIL PROTECTED]> wrote:

> Hi all!
> 
> Can anyone using batik_v1.5b2 with cocoon v2.0.2?
> How to reconfigure cocoon for work him with batik_v1.5b2?
> (I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any 
>errors)
> 
> Thanx for advise.
> 

I have solved the problem by copying SVGBuilder.java from cocoon2.0.3 src to 
cocoon2.0.2 src  and batik-all-1.5b2.jar to cocoon2.0.2 lib/optional instead of 
batik-all-1.5b1.jar.
After cocoon 2.0.2 was recompiled it works :)) (my test.svg sample also)

Thanks to all.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
Hi all!

Can anyone using batik_v1.5b2 with cocoon v2.0.2?
How to reconfigure cocoon for work him with batik_v1.5b2?
(I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any errors)

Thanx for advise.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 13:34:23 +0100
Joerg Heinicke <[EMAIL PROTECTED]> wrote:

> It seems like a bug in Batik, at least in your version. I tested it with 
> 1.5b2 from Cocoon and 1.5b4 offline without any problems. What version 
> are you using?
> 

I'm using batik v1.5b1 (cocoon 2.0.2 optional classes)
After recompile & implements cocoon (v2.0.2) with batik v1.5b2 I have the next error :

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:484)
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98)
at 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
at 
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(DefaultSitemapComponentSelector.java:181)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponent(DefaultSitemapComponentSelector.java:188)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:275)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(/usr/local/jakarta/catalina-4.0.4/work/Standalone/10.10.5.100/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1039)
at 
org.apache.cocoon.www.sitemap_xmap.configure(/usr/local/jakarta/catalina-4.0.4/work/Standalone/10.10.5.100/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:398)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)

request-uri

/welcome

I mount cocoon in tomcat root context.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Joerg Heinicke
It seems like a bug in Batik, at least in your version. I tested it with 
1.5b2 from Cocoon and 1.5b4 offline without any problems. What version 
are you using?

Joerg

Yury Mikhienko wrote:
Hi all!

Can anyone help me with the following problem:
When I tried the generate png from the svg file (with using  tag) I have the following error:

Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...
Where I'm wrong? (It bug in batik?)
my test.svg:


  http://www.w3.org/1999/xlink";>
Example Use01 - Simple case of 'use' on a 'rect'
 
   
 
 
 
  

Thanx for advise.



-
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]>




error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
Hi all!

Can anyone help me with the following problem:
When I tried the generate png from the svg file (with using  tag) I have the 
following error:

Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...
Where I'm wrong? (It bug in batik?)
my test.svg:


  http://www.w3.org/1999/xlink";>
Example Use01 - Simple case of 'use' on a 'rect'
 
   
 
 
 
  

Thanx for advise.
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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]>




cocoon & Batik

2002-10-25 Thread marco scotoni



I try to update Batik up version 1.5b4 but i've got 
some problems...
 
on cocoon 2.0.3 i have batik-all-1.5b2.jar 
file
and on bin of last beta 4 a lot of 
file...
 
anyone could help me to know how create a 
batik-all-XXX.jar from all little files?
 
or if there's a different way to do thi 
update?
 
thx
 
__Dark 
SchneiderICQ#: 13815557

  
  
Current ICQ status:  
 
  +  More ways to contact me 
__


online?icq=13815557&img=21
Description: Binary data


Re: slightly OT: linux scripts for running apache2/tomcat/cocoon/batik/xvfball together (yumm)

2002-04-22 Thread Andrew Savory


Hi Andrew,

On 21 Apr 2002, Andrew C. Oliver wrote:

> This is mildly off-topic -- but I think a good quickstart on how to get
> headless X-server up with batik/cocoon is kinda called for.

Yup. See also http://www.luminas.co.uk/technology/cocoon/initscript.html
which works nicely on Debian boxes.


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)870 28 47489
This is not an official statement or order.Web:www.luminas.co.uk


-
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]>




slightly OT: linux scripts for runningapache2/tomcat/cocoon/batik/xvfb all together (yumm)

2002-04-21 Thread Andrew C. Oliver

This is mildly off-topic -- but I think a good quickstart on how to get
headless X-server up with batik/cocoon is kinda called for.

Okay here are my scripts used to get tomcat/cocoon/batik functioning
nicely with SVG.  These are adaptations of old scripts I had and are
quite possibly covered/infected by GPL or something... 

My setup:

jdk1.3.1_02 (don't use _03 it has a random zip obfuscation feature)
RedHat 7.2
Kernel 2.4.9-smp  special redhat version (probably fixes the memory
management issue..  On my desktop I run with 2.4.17 -- much faster --
got 2.4.9-smp from up2date)
Apache 2.0.35 
Tomcat 4.0.4b2 (don't use 4.0.2/3 they're duds -- 4.0.1 works okay
though)
Latest mod_webapp -- boy was compiling that fun... but thats for another
mail list!
HEAD of Cocoon CVS from today
latest Xvfb from rpmfind



-- I altered tomcat/bin/setclasspath.sh by adding 

export DISPLAY=:1

to it

My apache script runs before my tomcat script, but I don't think it
matters.

this is in 

/etc/rc.d/init.d/tomcat
and is linked in rc3.d as S85tomcat

#! /bin/sh


start(){
echo "starting tomcat.."
Xvfb :1 -screen 0 800x600x8 &
sleep 5
su -l tomcat -c 'export DISPLAY=:1'
su -l tomcat -c '/opt/tomcat/bin/startup.sh'
}

stop(){
echo "stopping tomcat.."
killall Xvfb
su -l tomcat -c '/opt/tomcat/bin/shutdown.sh'
}

restart(){
stop
sleep 2
start
}




case "$1" in
  start)
start
;;
  stop)
stop
;;
  restart)
restart
;;
  *)
echo "Usage: postgresql {start|stop|restart}"
exit 1
esac

exit 0



-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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