Ok , I think I have Xang configured properly - hadn't had Xalan , Xerces , or any of the other components set-up properly - bothered to RTFM. :P

now I'm encountering a problem which relates to the 'onGet' event handler. I've copied the 'samples' directory provided with Xang 0.0.3 to a web accessible directory on my Apache and have tested hello.xap and fs2http.xap with the following results...

hello throws :

System error
Error in handler for 'onGet'
Runtime error no global function named 'get'
detected at line 1 in string: 'get();  '
____________
fs2http throws :

System error
Error in handler for 'onGet'
Runtime error no global function named 'get'
detected at line 35 of function 'pre_get' in string starting with: 'pre_get();'...
called at line 1 in string starting with: 'pre_get();'...
.
.
  // call base method
  get(context,returnTypes,parameters);
 

system.script.xml and editor.script.xml are in http://localhost/xang/samples/   - though I've done test with these in the same directory as the *.xap file as well.

get() is apparent within system.script.xml

please advise ..

thanks
David
 
 
 
 
 
 
 
 
 

dlb wrote:

thanks for the response mike - so far no luck.
I am getting new errors though !

I've set up an alias 'servlet.xang.code' and set up the ApJServAction handler and zone.properties per your recommendation.

and registered xang.jar within the classpath as..

wrapper.classpath=C:\path to.. \servlets\xang.jar
_____

the new set of errors is..
[06/03/2001 02:26:14:050] (ERROR) ajp12: Servlet Error: java.lang.NoClassDefFoundError: org/w3c/dom/Node: org/w3c/dom/Node
[06/03/2001 02:26:14:050] (ERROR) an error returned handling request via protocol "ajpv12"

the corresponding apache error is..

java.lang.NoClassDefFoundError: org/w3c/dom/Node
 at org.apache.jserv.JServConnection.processRequest(JServConnection.java:323)
 at org.apache.jserv.JServConnection.run(JServConnection.java:188)
 at java.lang.Thread.run(Thread.java:484)

_________

These look like they're related to either Xalan or Xerces ?? - perhaps I should register these within the classpath as well ?

Both xalan.jar and xerces.jar are in 'servlet' w/ xang - along with xalan's attendant files.

I've also tried putting xang.jar ,xang.cfg, and the rest of the gang,  in the "Apache JServ 1.1.1" - ie. outside of 'servlets' w/ the same results.
 

thanks
David
 
 

Mike Dierken wrote:

 

I've usually added xang.jar to the classpath in jserv.properties, so I don't know if putting it in the servlets directory has any impact - it's probably just fine.

Also, I use '/servlets/xang' as the URI (via an 'aliased servlet').

jserv.conf:
ApJServAction .xap /servlets/xang

zone.properties:
servlet.xang.code=org.apache.xang.net.http.object.impl.HTTPObjectServer
servlet.xang.initArgs=config=c:\projects\apache\modules\xml-xang\xang.cfg

Let me know if the 'aliased servlet' works for you.

mike

> -----Original Message-----
> From: dlb [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 04, 2001 6:24 PM
> To: Xang
> Subject: advice on install?
>
>
> hoping for a little advice on setting up Xang on Apache
> Jserv.  I'm using Xang
> 0.0.3 (the binaries) on JServ 1.1.1 and getting a 404- "
> /servlets/org.apache.xang.net.http.object.impl.HTTPObjectServe
> r not found..."
> the mod_jserv log shows..
> [] (ERROR) ajp12: Servlet Error: ClassNotFoundException:
> org.apache.xang.net.http.object.impl.HTTPObjectServer .
>
> xang.jar is in my servlets directory , the zone properties
> and .xap handler are
> established.
> eg.
> # Servlet Init Parameters
> servlet.org.apache.xang.net.http.object.impl.HTTPObjectServer.
> initArgs=config=C:\Program
> Files\Apache JServ 1.1.1\servlets\xang.cfg
> &
> ApJServAction .xap
> /servlets/org.apache.xang.net.http.object.impl.HTTPObjectServer
>
> Other servlets running fine from  'servlets' , just not Xang.
> I'm not too familier with JSERV , does anyone know where I
> might be going wrong
> here.
>
> thanks
> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to