Author Topic: ERROR : AppletDir is not supported  (Read 4230 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
ERROR : AppletDir is not supported
« 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.

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: ERROR : AppletDir is not supported
« Reply #1 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
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ERROR : AppletDir is not supported
« Reply #2 on: September 29, 2010, 05:37:37 AM »
Nope. This also didn't work... :(

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ERROR : AppletDir is not supported
« Reply #3 on: September 29, 2010, 11:01:32 PM »
For a resolution to this please see my other post "Problem with initial connection with Ondemand".