Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
FormAPI Error:500
System
here is simple datacapture.cfg I have written to check formapi.
--------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="shoes">
<!-- data-capture-requirements elements contain area elements -->
<ruleset name="TeamSite Templating">
<item name="Date">
<text size="40"/>
</item>
<itemref name="Address"/>
<script>
<![CDATA[
alert ("Hello, world!");
]]>
</script>
</ruleset>
</data-capture-requirements>
----------
Giving me following error
Location: /iw/webdesk/templating/datacapture.jsp
Internal Servlet Error
javax.servlet.ServletException: Address
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
....
...
I can open a DCT w/o problem but also w/o message "Hello, world".
my iw.cfg reads, section..
[teamsite_templating]
# use_java_ui=false
# data_root=templatedata
enable_formapi=true
I have also ran iwreset after changes. Anything missing?
Find more posts tagged with
Comments
Migrateduser
Take out the following line. It will work then.
<itemref name="Address"/>
Migrateduser
Sorry forgot to mention that ..
Yes.. I alredy tried removing the line,
<itemref name="Address"/>
thats why i mentioned ...
I can open a DCT w/o problem but also w/o message "Hello, world"... inshort FormAPI not working ..
The environment is ..
Soloaris 8, TS5.5.2 with SP3, Templating 5.5.2 with SP3, browser IE 6
Migrateduser
Tried moving script tag after ruleset as below .. showing now following error.
---
Templating Error Page
An internal problem was encountered trying to create a requirements object for type About_Us/Faq_vf
-----
The log file shows...
Exception for type About_Us/Faq_vf:
An unexpected element of type "script" was found inside of "data-capture-requirements".
-----
any error in datacapture.cfg below...
---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="shoes">
<!-- data-capture-requirements elements contain area elements -->
<ruleset name="TeamSite Templating">
<item name="Date">
<text size="40"/>
</item>
</ruleset>
<script>
<![CDATA[
alert("Hello, world!");
]]>
</script>
</data-capture-requirements>
---
Edited by sacrh on 08/01/03 09:52 AM (server time).
JonathonG
Did you turn on FormAPI in your iw.cfg and run an iwreset -a?
In iw.cfg, you should have something like:
[teamsite_templating]
enable_formapi=true
Jonathon
Interwoven Architecture Consultant
Migrateduser
yes jonathan.. I am already done with both at the begining itself.
Migrateduser
Got it working ... changed couple of things .. don remember which exactly did the trick .. but for sure .. its giving me error.. for the script tag outside <ruleset> tag.
navneet
another option is to put the stuff in an external js file and then put an alert in there..