[opencms-dev] Dynform feedback, problems

Arash Kaffamanesh kaffamanesh at dmu-world.de
Sun Feb 29 15:59:02 CET 2004


Hi Alex,

Thanks for your hint.

After including the taglibs in web.xml and registering the SAXParser by
indluding  
-Dorg.xml.sax.driver="org.apache.xerces.parsers.SAXParser"     
as startup parameter of tomcat I was able to launch the index.html under
the sample folder of dyform modul and the form definitions in the
backoffice.

The taglibs definition in web.xml looks like this:

    <taglib>
        <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
        <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>http://java.sun.com/jstl/xml</taglib-uri>
        <taglib-location>/WEB-INF/x.tld</taglib-location>
    </taglib>
   
After submiting the form I do get the following JasperExecption:

org.apache.jasper.JasperException: Resource loader error in file
'/system/modules/com.opnworks.opencms.dynforms/sample/saveResponse.jsp'

Root cause:
org.apache.jasper.JasperException: Illegal character range near index 13
([a-zA-Z0-9_-.])+@((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).(
[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-
9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|2
5[0-5]))|((([a-zA-Z0-9-])+.)+([a-zA-Z-])+))
             ^
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:254)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

That's the email property validator

Then I thought it may be a regexp problem by missing the taglib and
included:

 <taglib>
	
<taglib-uri>http://jakarta.apache.org/taglibs/regexp</taglib-uri>
	<taglib-location>/WEB-INF/taglibs-regexp.tld</taglib-location>
    </taglib>

Additionaly to web.xml of opencms, but the problem still exists.

Then I went to
com.opnworks.opencms.dynforms/resources/collectionDefinition.xml

And disabled the validation, published the project, exported the modul
and restarted tomcat,
It didn't help too. It seems to be hardcoded.

The other thing which allready exists in the trace is the logger
warning:
 
NoLogger [Debug] - DYNFORMS : com.opnworks.util.logging.Logger is
configured

What I'm doing wrong, or what else do I miss in web.xml.

Thanks again.

Best regards
Arash


########################################################################
################################################### 

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of Alex !
Sent: Saturday, February 28, 2004 7:36 PM
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] Dynform feedback, problems


looks like your missing the java standard taglibs in your web
application. 
->

>(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or

>the jar files deployed with this application



------------------------------------------------------------------------
-------------------------------------------------------------

>From: "Arash Kaffamanesh" <kaffamanesh at dmu-world.de>
>Reply-To: opencms-dev at opencms.org
>To: <opencms-dev at opencms.org>
>Subject: [opencms-dev] Dynform feedback,  problems
>Date: Sat, 28 Feb 2004 15:08:47 +0100
>
>Hi dear all,
>
>For Those how are interessted in Op'n Works dynform modul:
>
>I do have imported the dynforms modul,which seems to be an interessting

>modul among other usefull modules of the opencms platform. When I try 
>to preview the samples in the backoffice or under the samples folder of

>the modul itself I do become first of all:
>
>org.apache.jasper.JasperException: Resource loader error in file 
>'/system/modules/com.opnworks.opencms.dynforms/sample/survey.jsp'
>
>Root cause:
>org.apache.jasper.JasperException: This absolute uri
>(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or

>the jar files deployed with this application
>	at 
>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHan
>d
>ler.java:105)
>	at
>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.jav
a
>:430)
>  org.apache.jasper.JasperException: Resource loader error in file
>
>
>And then in the trace something like this:
>
>Root cause:
>org.apache.jasper.JasperException: This absolute uri
>(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or

>the jar files deployed with this application
>	at 
>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHan
>d
>ler.java:105)
>	at
>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.jav
a
>:430)
>NoLogger [Debug] - DYNFORMS : com.opnworks.util.logging.Logger is
>configured
>getBackofficeUrl:
>system/modules/com.opnworks.opencms.dynforms/jsptemplates/back
>office.jsp
>getBackofficeUrl:
>system/modules/com.opnworks.opencms.dynforms/jsptemplates/back
>office.jsp
>getBackofficeUrl:
>system/modules/com.opnworks.opencms.dynforms/jsptemplates/back
>office.jsp
>Exception2: Connection refused: connect
>getBackofficeUrl:
>system/modules/com.opnworks.opencms.dynforms/jsptemplates/back
>office.jsp
>Exception2: Connection refused: connect
>Exception2: Connection refused: connect
>Exception2: Connection refused: connect
>
>Has anybody had the same problem?
>
>My opencms 5.0.1 installation is runing under
>Tomcat 4.1.27
>MySQL 4.NT
>jdbc: mysql-connector-java-2_0_14-bin.jar
>java version "1.4.1"
>xerces-1_4_4.jar
>
>And I do had to create c:\logs\opnworks.log in which I do can read the 
>following
>
>2004-02-28 03:35:48,104 ERROR [Thread-7] 
>opnworks.com.opnworks.util.dynamic_properties.DynPropCollectionDefiniti
>o
>n  (-1) Error on line 2: The document type declaration for root element
>type "collectionDefinition" must end with '>'.
>Exception Trace
>Error on line 2: The document type declaration for root element type
>"collectionDefinition" must end with '>'.
>org.jdom.JDOMException: Error on line 2: The document type declaration
>for root element type "collectionDefinition" must end with '>'.
>	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:367
>
>The "collectionDefinition" must end with '>'    ??????
>
>but it ends with '>'
>
>I can create the xml form templates in the backoffice of the modul and 
>view them in the db table dynforms. But why do I become the Exception2:

>Connection refused: connect in the trace ?
>
>Shall I use the latest mysql jdbc driver (version 3)? Shall the db be 
>named opencms (I do have changed the name and for the generation of the

>tables I have changed the sql script, so that I could create the db 
>tables successfully)
>
>How can I configure the log4j properties,I do not can find the 
>log4j.xml or something like this. Which version of the SAXParser are 
>you using for the development?
>
>For me as a newbie to Java and opencms at all it seems to be a db, 
>jasper and xcerces parsing problem.
>
>Now the good news:
>
>I can also view the saveResponse.html or saveResponse.jsp and become 
>:-)
>:
>
>Thank you for your participation.
>
>Back to e-newsletter
>
>C2003 Mirasol Op'nWorks (http://www.opnworks.com) - The Open Source 
>experts
>
>Thanks for your help in advance and your good idea and work.
>
>Nice regards form Berlin - Germany
>Arash Kaffamanesh
>
>arash at pomegranate.de
>www.pomegranate.de
>The COCO's (Collaboration Consultants)
>
>
>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please 
>visit http://mail.opencms.org/mailman/listinfo/opencms-dev

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list