jdb easy to use but can't find Cocoon sample source code?

2014-05-27 Thread Paul G. Joseph

Hi there,

(Windows XP 32 bit, Tomcat 7.x, Cocoon 2.11, Java SE 1.7)

I find that the java sdk comes with a java debugger that relatively 
easily connects to a tomcat instance and allows one to set breakpoints 
in the java code.  The jdb version seems available by issuing the 
-version flag.

$ jdb -version
This is jdb version 1.6 (Java SE version 1.7.0_51)

To connect, all I had to do in a Cygwin terminal (after making sure 
Tomcat was listening also on port 8000) was to issue the command:

$ jdb -connect com.sun.jdi.SocketAttach:port=8000

So if I have a class myClass and a method, myMethod and I want to set a 
breakpoint on a line in that method which is say, line 99, then I can 
quite easily do so, and the breakpoint is honored.  I can then issue a 
print command to the jdo session to see the variable values in that 
method, and also for the class.


Very useful given how easy it was to setup.

The problem though is this.  I can't seem to connect it to the Cocoon 
source code.  The instructions say to specify the source path and when I 
do so, it simply doesn't work--the request to list the code above and 
below the current location of the cursor returns: code for 
myClass.class not found.


The command I used was:
$ jdb -sourcepath 
C:\cocoon-2.1.11_mini_array_2_x\src\blocks\ojb\java\org\apache\cocoon\ojb\samples 
-connect com.sun.jdi.SocketAttach:port=8000


The code for myClass is in the directory above, specified by the 
-sourcepath flag.


Any suggestions?

Paul

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



Re: svg text in fop on cocoon-2.1.12 Linex

2014-05-27 Thread Peter Sparkes
I have taken the easy way out and converted those svg images with text to jpg and then put them into 
the fop pdf


Regards

Peter

On 25/05/2014 17:28, Andreas Kuehne wrote:

Hi Peter,

as far as I remember the usual suspects were:

- expected font (family) not installed on your machine : make a 14pt
Times available ...

- headless server irritate the calculation of font sizes : some
solutions discussed here
http://fortylines.com/blog/fopHeadlessServer.blog.html

Greetings and good luck,

Andreas



Hi,

Sorry previous email send before fully written

I am having problems with svg text in fop on  cocoon-2.1.12 Linux
The problem does not occur on cocoon-2.1.12 Windows

I get the following error whenever the svg contains text eg with

fo:instream-foreign-object content-width=15px
content-height=100px padding-right=0.2cm
svg xmlns=http://www.w3.org/2000/svg; width=15.5
height=15.5 viewBox=0 0 15.5 15.5
g
  text x=6.0 y=11 style=text-anchor:middle ;
fill:#ff ; font-size:10; font-weight:normal ;
letter-spacing:-1.5EUR/text
 /g
  /svg
  /fo:instream-foreign-object

I get

*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.batik.gvt.font.FontFamilyResolver
 org.apache.batik.bridge.SVGTextElementBridge.getFontList(Unknown
Source)
 org.apache.batik.bridge.SVGTextElementBridge.getAttributeMap(Unknown
Source)
 
org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown
Source)
 org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(Unknown
Source)
 org.apache.batik.bridge.SVGTextElementBridge.computeLaidoutText(Unknown
Source)
 org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown
Source)
 org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
 org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
 org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
ETC



I assume that the linux server is missing the fop text package

Help please

Peter







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



authentication framework

2014-05-27 Thread Peter Sparkes

Hi

I can't get the /authentication framework sample to to work in /Cocoon 2.1.12


I get the following error

org.apache.avalon.framework.configuration.ConfigurationException: Type 
'auth-loggedIn' is not defined for 'act' at 
file:///D:/cocoon-2.1.12-wl/build/webapp/samples/blocks/authentication-fw/sitemap.xmap:72:39


Help please

Peter


Re: authentication framework

2014-05-27 Thread warrell harries
Hi Peter,

This is an action that should be declared in the root sitemap. Have you
built the war file with the authentication block enabled?

Cheers,

Warrell


On 27 May 2014 14:28, Peter Sparkes pe...@didm.co.uk wrote:

  Hi

 I can't get the * authentication framework sample to to work in *Cocoon
 2.1.12


 I get the following error

 org.apache.avalon.framework.configuration.ConfigurationException: Type 
 'auth-loggedIn' is not defined for 'act' at 
 file:///D:/cocoon-2.1.12-wl/build/webapp/samples/blocks/authentication-fw/sitemap.xmap:72:39


 Help please

 Peter



authentication @ cocoon

2014-05-27 Thread spintus-mailing
Good evening together, 
I currently use the stream generator for XML files via HTTP post to cocoon.
Now I would like to introduce an authentication. 

My current pipeline: 
 map:pipeline 
 map:match pattern=get 
 map:generate type=stream 
 map:parameter name=form-name value=file/ 
 / map: generate 
 map:transform src=convert.xsl / 
 map:serialize type=html/ 
 / map: match 
 / map: pipeline 

Is there an easy way to implement this? Furthermore, I ask myself currently,
for which the form-name is required? Via REST I can also send data
successfully without the form to specify? 

Greetings


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



Re: authentication @ cocoon

2014-05-27 Thread Andreas Kuehne
Hi,
what kind of authentication do you think of?

BasicAuth? Just get the header!
SSL Client Auth? Get the client certificate!
Web Service Security? I got a transformer at hand ...

Greetings,

Andreas

PS: Use 'application/xml' encoding, otherwise the stream generator
assumes 'form-urlencoded' and expects a form.  
 Good evening together, 
 I currently use the stream generator for XML files via HTTP post to cocoon.
 Now I would like to introduce an authentication. 

 My current pipeline: 
  map:pipeline 
  map:match pattern=get 
  map:generate type=stream 
  map:parameter name=form-name value=file/ 
  / map: generate 
  map:transform src=convert.xsl / 
  map:serialize type=html/ 
  / map: match 
  / map: pipeline 

 Is there an easy way to implement this? Furthermore, I ask myself currently,
 for which the form-name is required? Via REST I can also send data
 successfully without the form to specify? 

 Greetings


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




-- 
Andreas Kühne 
phone: +49 177 293 24 97 
mailto: kue...@trustable.de

Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna 
Amtsgericht Hamm HRB 5868

Directors Andreas Kühne, Heiko Veit

Company UK Company No: 5218868 Registered in England and Wales 


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