Hi,
I use Enhydra in my courses on Web Applications Development and I'm trying to build a toy Enhydra application which can be easily understood by students (I mean in only a few hours). I downloaded and installed only EAF, XMLC and DODS and start with an Enhydra 5.4 application. I've modified the build.xml file and achieved compilation.
Problem started when I tried to install the application as a Webapp in my Tomcat 5.5 server : when I start the application I get the following exception trace :
org.enhydra.xml.xmlc.XMLCError: Couldn't load XMLC class
at org.enhydra.xml.xmlc.XMLCStdFactory.handleError(XMLCStdFactory.java:79)
at org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:142)
at notes.presentation.Accueil.run(Accueil.java:28)
at com.lutris.appserver.server.httpPresentation.HttpPresentationManager.runPresentationObj(HttpPresentationManager.java:479)
at com.lutris.appserver.server.httpPresentation.HttpPresentationManager.Run(HttpPresentationManager.java:252)
...
Caused by: org.enhydra.xml.xmlc.XMLCRuntimeException: java.lang.reflect.InvocationTargetException
at org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.createObject(XMLCDeferredParsingFactory.java:119)
at org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.doCreate(XMLCDeferredParsingFactory.java:139)
at org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:139)
It looks like the server does not find the XHTML source of my presentation object. The point is that I DO NOT want deferred parsing to take place, so I add the following to my web.xml :
<env-entry>
<env-entry-name>Server/AutoReload</env-entry-name>
<env-entry-value>false</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>Server/XMLC/AutoRecompilation</env-entry-name>
<env-entry-value>false</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>Server/XMLC/AutoReload</env-entry-name>
<env-entry-value>false</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>Server/XMLC/DeferredParsing</env-entry-name>
<env-entry-value>false</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
But it doesn't change anything. It seems that the <env-entry> values are not taken into account.
Can anybody help on this point ?
Thanks in advance,
Damien.