Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Initializing TilesPlugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Initializing TilesPlugin" Watch "Initializing TilesPlugin" New topic
Author

Initializing TilesPlugin

Markus Staab
Greenhorn

Joined: Nov 04, 2004
Posts: 1
I want to use tiles in my application, however, I get an error message when the TilesPlugin initializes:

<04.11.2004 10.52 Uhr CET> <Warning> <Net> <BEA-000905> <Could not open connection with host: jakarta.apache.org and port: 80.>
2004-11-04 10:52:35,859 [main] ERROR org.apache.struts.tiles.TilesPlugin - Can't create Tiles definition factory for module ''.
<04.11.2004 10.52 Uhr CET> <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "application".
javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles.xml'. Tried all: '1' addresses, but could not connect over HTTP to server: 'jakarta.apache.org', port: '80'
...

I added the taglib to my web.xml:
<taglib>
<taglib-uri>struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
</taglib>

The plug-in is defined in the struts-config.xml:
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-parser-validate" value="false" />
<set-property property="definitions-config" value="/WEB-INF/tiles.xml" />
</plug-in>

As far as i can tell, the tiles.xml is also valid:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
<tiles-definitions>
...
</tiles-definition>

I'm using Struts 1.2.4 on WebLogic 8.1

Thanks for your help.
 
Consider Paul's rocket mass heater.
 
subject: Initializing TilesPlugin
 
Similar Threads
Struts1.3 tiles problem
error with tiles , please help
tiles XML definition help
Someone out there! Help with tiles-def.xml
Struts 1.1 / Tomcat 5.0.16 - "Servlet Action is not available"