Hi Mike;

The include appears to have been corrupted by whitespace between the 'script' tags - when  I'd removed the spaces (ie. <script></script>) , system.script.xml was included.

I think that I'm very close to having this all set up , still haven't been able to run hello.xap due to the following error :
Runtime error Java class not found: 'org.apache.xalan.xslt.XSLTProcessorFactory.getProcessorUsingLiaisonName'

on the statement
____
processor = Packages.org.apache.xalan.xslt.XSLTProcessorFactory.getProcessorUsingLiaisonName("org.apache.xalan.xpath.xdom.XercesLiaison");
____

this pertains to Xalans interaction w/ Xerces , apparently for processing DOM input.  I've got xerces registered within my classpath and have tried both the xerces.jar included with the xalan distro as well as the newest binary available from the Xerces project. Xalan's doc's don't mention this error and I haven't found it elsewhere.

any ideas would be appreciated.  In the interim I'll try to write a simple 'hello world' script to confirm that the basic Xang config is OK.

_also I've posted my classpath registry below

again, thanks
- D

wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\ApacheJServ.jar
wrapper.classpath=c:\jsdk2.0\lib\jsdk.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xang.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xalan.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xerces.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\bsf.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xalansamples.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xalan.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xalanservlet.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\xercesSamples.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\stylebook-1.0-b3_xalan-2.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\ant.jar
wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\servlets\fesi.zip
 
 
 
 
 
 

"S. Mike Dierken" wrote:

Dave,Check the console for exceptions - it might be that the .xap file isn't being fully loaded, due to a Xerces exception. The hello.xap uses a link to include the system script, and if it can't include it, then the get() script function won't be found by the script engine.Try pasting the full contents of any included script into the hello.xap file (replacing the <script xml:link=""> tag) mike  
----- Original Message -----
From: dlb
Sent: Monday, March 05, 2001 9:08 PM
Subject: Re: advice on install- part 2 ?
 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