Bug 15129 - Distribution of this CTLX is unuseable
Summary: Distribution of this CTLX is unuseable
Status: RESOLVED LATER
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Ultradev 4 CTLX (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-06 00:59 UTC by Robert Brown III
Modified: 2009-11-29 19:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Brown III 2002-12-06 00:59:52 UTC
Dreamweaver version: Dreamweaver Ultradev 4
Tomcat Version: Tomcat 4.1, using default port 8080

Folowing the instructions given in the documentation for this component, I 
downloaded all appropriate applications, placed the CTLX WAR files in the 
Tomcat directory (including ultradev4-tutorial.war and TLDParser.war), and set 
all the necessary environment variables on my machine. I also ran the 
extension ctlx.mxp in order to place the extension in Dreamweaver.

Over the course of testing the CTLX, I discovered the following inadequacies 
in the distribution:

1: Tomcat is unable to run http://localhost:8080/ultradev4-tutorial/ctl-
message.jsp. It returns an error 404. After some work, I discovered that the 
reason for its failure is that the web.xml file has the following tag library 
reference:

  <taglib>
    <taglib-uri>/WEB-INF/app.tld</taglib-uri>
    <taglib-location>/WEB-INF/app.tld</taglib-location>
  </taglib>

The app.tld file is not included in the ultradev4-tutorial.war file (and 
consequently not in the application when Tomcat runs), so Tomcat fails to 
access the application. The only way to get around this problem is to 
eliminate the taglib reference.

2: The web.xml file for the ultradev4-tutorial application also contains 
taglib references to several standard struts tld files that are also missing 
from ultradev4-tutorial.war. In order for the application to work properly in 
Tomcat, these files must be included in the WEB-INF directory, or the taglib 
references must be removed.

3: The tutorial instructs us to Copy the struts.tld, struts-bean.tld and 
struts-logic.tld files from TOMCAT_HOME/webapps/ultradev4-tutorial/WEB-INF/ to
TOMCAT_HOME/webapps/TLDParser/tlds". After doing this, restarting Tomcat, and 
following the instructions for creating a "site" in Ultradev, I attempted to 
access the tag libraries as instructed in the tutorial:

"Open the extension's 'Use a Custom Tag Library' floater by selecting 
Window|Use Custom Tags."

Unfortunately, no tag libraries appear in the Custom Tag Library floater. 
Instead there is a great deal of HTML indicating that an error occurred. The 
documentation suggests that the floater behaves in this way when required 
javabeans are missing from the custom tag. According to the documentation:

"Many custom tag libraries include tags that require the presence of beans or 
variables to compile correctly. If one of these requirements is not met, the 
server will return an error message that will be displayed in Live Data Mode. 
To avoid such errors, make sure the all necessary beans are deployed on the 
server, and all necessary variables have been set before enabling Live Data 
Mode"

Upon checking all "variables", I was able to determine that they were properly 
set. Furthermore, since I was only using the struts tag libraries, I made sure 
that the ultradev4-tutorial application had the struts.jar file in its 
library. I used no other tag libraries; consequently I required no other 
Javabeans for the application. Apparently, something required is missing from 
the distribution that is required in order to allow Dreamweaver to properly 
access the Struts tag libraries.

Obviously, for the reasons given above, the Ultradev 4 CTLX is completely 
unusable as it is currently being distributed. Someone please fix the 
inadequacies described in this report -- and please test it in order to make 
sure that it has everything that it needs so that someone running the tutorial 
can actually do what the instructions say???

Thank you.
Comment 1 Henri Yandell 2009-11-29 19:43:18 UTC
Resolving. Taglib has been retired.