- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Resource kann nicht im ContentCreator gefunden werden
Hallo Community,
ich bin an einen Punkt angekommen, bei dem ich leider nicht weiter weiss.
Folgende Situation:
Ich habe ein Modul:
<components>
<library>
<name>Modul-Name</name>
<description>Modul-Beschreibung</description>
<resources>
<resource scope="server">lib/${project.artifactId}-${project.version}.jar</resource>
</resources>
</library>
In diesem Modul befindet sich ein Velocity-Template
src/main/resources/templatename.vm
Dieses rufe ich wie folgt auf:
_velocityEngine = new VelocityEngine();
_velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
_velocityEngine.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());
_velocityEngine.init();
_template = _velocityEngine.getTemplate(Constants.
// hierbei der Konstante
public static final String VELOCITY_TEMPLATE = "templatename.vm";
Wenn ich diese dann auf dem FS-Server installiere und das Modul im SiteArchitect trigger funktioniert alles super - also, die Resource wird gefunden.
Fรผhre ich es jedoch im ContentCreator aus, so bekomme ich eine Exception, dass das besagte Template (Velocity) nicht gefunden werden kann.
In der FSM jedoch befindet sich das Template im root.
Ich hoffe, ich konnte mein Problem verstรคndlich erklรคren.
FS-Version: 5.2 R3
Viele Grรผรe aus Dresden
Marcel
- Labels:
-
Developers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Lรถsung gefunden:
Problem war, das die lib nicht auf dem Tomcat war.

