OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: pankaj.puranik on September 29, 2010, 03:19:36 AM

Title: ERROR : AppletDir is not supported
Post by: pankaj.puranik on September 29, 2010, 03:19:36 AM
Hi

I am trying to construct a ODConfig object as below :

odConfig = new ODConfig(
            CitarProperties.getProperty("AfpViewer"), // AfpViewer
            CitarProperties.getProperty("LineViewer"), // LineViewer
            CitarProperties.getProperty("MetaViewer"), // MetaViewer
                  Long.parseLong(CitarProperties.getProperty("MaxHits")), // MaxHits
                  CitarProperties.getProperty("AppletDir"), // AppletDir
                  CitarProperties.getProperty("Language"), // Language
                  CitarProperties.getProperty("TempDir"), // TempDir
                  CitarProperties.getProperty("TraceDir"), // TraceDir
                  Integer.parseInt(CitarProperties.getProperty("TraceLevel")), // trace
                                                                                                                  // level
                  CitarProperties);

Here are the enteries in my properties file :

AfpViewer=pdf
LineViewer=applet
MetaViewer=
MaxHits=500
AppletDir=D:\\Program Files\\IBM\\OnDemand Web Enablement Kit\\applets
Language=ENU
TempDir=D:\\temp
TraceDir=D:\\temp
TraceLevel=4

Here's the error I get :

ODException: com.ibm.edms.od.ODException: Property: AppletDir is not supported
 id = 0
 msg = Property: AppletDir is not supported
com.ibm.edms.od.ODException: Property: AppletDir is not supported
   at com.ibm.edms.od.ODConfig.parseProperties(ODConfig.java:1657)
   at com.ibm.edms.od.ODConfig.<init>(ODConfig.java:473)
   at Test.main(Test.java:162)

Thanks
Pankaj.
Title: Re: ERROR : AppletDir is not supported
Post by: Alessandro Perucchi on September 29, 2010, 05:23:37 AM
(...)
Here are the enteries in my properties file :
(...)
AppletDir=D:\\Program Files\\IBM\\OnDemand Web Enablement Kit\\applets
(...)

Hello Pankaj,

Well if I am not wrong the AppletDir is the relativ path to your web URL, so you should put something like   "/applets" and not the path of the directory in your server.

The documentation for this entry is here: http://publib.boulder.ibm.com/infocenter/cmod/v8r4m1/index.jsp?topic=/com.ibm.ondemand.odwekmp.doc/ars1y371106.htm

I know I have many problems to understand that sometimes the path requested by the variable was an actual server path, and sometimes it was a path relative to an URL.

I hope this helps and I hope that is the problem you are facing.

Cheers,
Alessandro
Title: Re: ERROR : AppletDir is not supported
Post by: pankaj.puranik on September 29, 2010, 05:37:37 AM
Nope. This also didn't work... :(
Title: Re: ERROR : AppletDir is not supported
Post by: pankaj.puranik on September 29, 2010, 11:01:32 PM
For a resolution to this please see my other post "Problem with initial connection with Ondemand".