<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Paul,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This fix worked well for me too. But it seems that
when using the CWC instance, the paths to the javascript files are incorrect. It
looks for a path like </FONT><A
href="http://localhost/widgets/js/cwc_dhtml.js"><FONT face=Arial
size=2>http://localhost/widgets/js/cwc_dhtml.js</FONT></A><FONT size=2><FONT
face=Arial> </FONT><FONT face=Arial>or equivalent for the other javascript
files. It doesn't seem to pick up the service_instance_path correctly, or this
parameter doesn't find its way through to the gszCoreWebPath variable. Probably
because this variable is set to the web_server_path in chameleon.php, but even
if I place web_server_path in cwc2.xml and set it to contain my
server_instance_path, it doesn't work.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Paul Spencer<BR>Sent:
27 August 2004 04:17<BR>To: Eric Bridger<BR>Cc: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
Re: [Chameleon] Testing Beta2 Service Instance</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Eric, check for invalid structure in the chameleon.xml file, there was
a <BR>bug in the description element of the web_server_path ... look for &lt
<BR>or &gt without a trailing ; and add the trailing ;</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV>Eric Bridger wrote:</DIV>
<DIV> </DIV>
<DIV>> I'm having trouble attempting to test the 1.99 Beta2 CWC2
Service<BR>> Instance using the supplied default application. I'm following
the<BR>> instructions in cwc2/CWC2_INSTALLATION.txt file.<BR>> <BR>> I
think I have the service instance installed correctly, following the<BR>>
steps in that document.<BR>> <BR>> An existing Beta 1 Chameleon 1.99 only
application works fine with the<BR>> Beta2 installation.<BR>> The first
service instance test:<BR>> <A
href="http://<myserver>/cwc2/cwc2.php">http://<myserver>/cwc2/cwc2.php</A><BR>>
<BR>> returns the correct error message.<BR>> <BR>> But the second
service intance test of the default application is<BR>> failing:<BR>> <A
href="http://<myserver>/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0">http://<myserver>/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0</A><BR>>
The browser displays:<BR>> ...<BR>> query string was
service=VCG&request=GetApplication&version=0.1.0<BR>> Invalid
request. No CONTEXTS parameter was provided and the Service<BR>> Instance has
no default context<BR>> <BR>> <BR>> I used the supplied
default_context: cwc2/contexts/world_context.xml and<BR>> template:
cwc2/templates/sample_cwc2.html, etc.<BR>> <BR>> My Apache error log is
showing:<BR>> <BR>> PHP Notice: Undefined offset: 1 in<BR>>
/usr/opt/chameleon/chameleon-1.99beta-20040709/htdocs/common/appcontext/appcontext.php
on line 213<BR>> PHP Notice: Undefined index: param-value
in<BR>>
/usr/opt/chameleon/chameleon-1.99beta-20040709/htdocs/common/appcontext/appcontext.php
on line 276<BR>> <BR>> <BR>> Debugs added by me confirm that
appcontext.php is attempting to parse<BR>> the correct cwc2.xml file but is
failing on the first token in the<BR>> parseContextFile() routine.<BR>>
<BR>> <BR>> Eric<BR>> <BR>> <BR>> <BR>> <BR>> <BR>>
<BR>> _______________________________________________<BR>> Chameleon
mailing list<BR>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>
</DIV>
<DIV> </DIV>
<DIV>-- <BR>
-----------------------------------------------------------------<BR>|Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>|-----------------------------------------------------------------|<BR>|Applications
& Software
Development
|<BR>|DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|<BR>
-----------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV></BODY></HTML>