cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (St├ęphane Delort)
Subject [flowscript] importclass ?
Date Sat, 19 Jun 2004 00:38:43 GMT

Finally I had access to the Jetty messages:

My class is in .../webapp/WEB-INF/class/org/apache/
(both and home compiled User.class are uner the same path)

I know that this place is not the better one, but it is just for

So, in my flowscript I have  (followinf Helma's eg): 

function myfunction() {
  var newUser = new;
  print("I have an object of class User? " + newUser);
  //print("newUser should have name set: " + newUser.getName());

and then, the following message in Jetty :
02:26:32.723 WARN!! Error for /test-flow/
java.lang.NoClassDefFoundError: org/apache/User (wrong name: User)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(
	(and so on...)

It's quite bizarre because if I try with a wrong path:
var newUser = new;

I've got an error throwed trough the browser 

file:/opt/cocoon-2.1.5/build/webapp/test-flow/flow.js", line 6: uncaught
JavaScript exception: at myfunction
(file:/opt/cocoon-2.1.5/build/webapp/test-flow/flow.js, Line 6): Class
not found: org.ape.User

So, this means that there is a 2 times processing nd the last one gives
problems (in my case).

If anyone has an explanation through this process and the way to resolve
my problem.......


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message