Author |
Message |
04/11/2008 16:24:40
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I am trying out the Dynamic Html Page and the Webstart integration. It was difficult to find out that the element <servlet id="AppletStarter"> and its corresponding servlet-mappings *.ccapplet and *.ccwebstart must be in web.xml. They are only casually mentioned in a forum topic. I suggest to include them in the default web.xml installed by CC and/or in the documentation.
I have succesfully started <http://localhost:50000/myappl/workplace.ccapplet?cctemplate=cctemplate.html> as well as <http://localhost:50000/myappl/workplace.ccwebstart. But I cannot start <http://localhost:50000/myappl/workplace.ccwebstart?cctemplate=cctemplate.jnlp>: "Ressource konnte nicht geladen werden: http://localhost:50000/myappl/$$name".
How can I go on?
|
|
|
04/11/2008 17:27:00
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5520
Offline
|
Hi Daniel,
the servlets are part of the standard web.xml... But your project was created before the ccapplet/ccwebstart feature came. We never overwrite the standard web.xml but always only update the web.xml_template in the same directory. BTW: there was a hint in the DevZone, when the feature was published: 09 Sept: "Existing applications need to transer the servlet-section "ApplsetStarter" from the web.xml_template file into the own web.xml file!"
Where did you place you template file? It is accessed by the classloader, so it must be placed inside your classes-directory. In your case this would means that it is directly located in "clases/cctemplate.jnlp" - is this correct?
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
04/11/2008 17:59:55
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn,
- I didn't notice web_template.xml, sorry!
- Yes, its is located in classes/cctemplate.jnlp, in the very same directory as classes/cctemplate.html. According to the error message, I think the template is found, but the $$name can't be interpreted. I attach the cctemplate.jnlp file.
Filename |
cctemplate.jnlp |
Download
|
Description |
|
Filesize |
2 Kbytes
|
Downloaded: |
519 time(s) |
|
|
|
04/11/2008 18:16:40
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5520
Offline
|
...could you take out the href="$$name" at the begining, so that it looks like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" codebase="$$codebase">
<information>
<title>CaptainCasa Enterprise Client</title>
<vendor>CaptainCasa GmbH</vendor>
<icon href="eclnt/images/splash.png" kind="splash"/>
</information>
...
Then it should work...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
06/11/2008 10:01:12
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Yes, now everything works fine. Thanks a lot!
|
|
|
|