OAAM 11g R2: Unable to load java class for custom configurable action

Need to configure a Configurable Action to get triggered for a particular action at a given checkpoint.
Steps Followed:
1. Created a java class implementing com.bharosa.vcrypt.tracker.dynamicactions.intf.DynamicAction, getParameters() and execute() methods were implemented in that java class.
2. Added necessary jars from $ORACLE_IDM_HOME\oaam\cli\lib to the build classpath.
3. Compiled and created a jar with it.
4. Extracted the oracle.oaam.extensions.war file into a working folder.
5. Added the Custom Jar created in step 3 into <working folder>/WEB-INF/lib/
6. Changed the following in MANIFEST.MF in <working folder>/META-INF/:
Specification-Version:11.1.2.0.1
Implementation-Version:11.1.2.0.1
7. Rejar-ed the oracle.oaam.extensions.war from the working folder using following command:
jar -cvfm oracle.oaam.extensions.war <working folder>\META-INF\MANIFEST.MF -C <working folder>/ .
8. Stopped the oaam_admin_server1, oaam_offline_server1 and oaam_server_server1.
9. Deleted the oracle.oaam.extensions deployment from the weblogic.
10. Deployed the newly created oracle.oaam.extensions as a shared library for oaam_admin_server1 and oaam_server_server1.
11. Started all managed servers.
But when I tried to create an action template with the java class I just created, it was throwing following error
+java.lang.ClassNotFoundException: *+
Unable to load configurable action class *. Ensure the class is made available in the class path.
Referred following documents:
1.      http://docs.oracle.com/cd/E27559_01/admin.1112/e27207/cfgactions.htm
2.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/cfg-action.htm
3.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/extend.htm
Kindly help me. Thanks in advance.
Edited by: 917717 on Dec 12, 2012 7:16 PM

This thread is a bit stale but I thought it might help to clarify one point about custom jar files on UCCX.
To properly load a custom jar:
Upload it into the classpath directory in the document repository. 
Select it under System | Custom Classes Configuration
Finally you need to restart the CCX Engine and the CCX Administration services.  If you have HA you need to restart them on both servers. 
Other notes:
When referencing your class in the CCX Editor, use the fully qualified name of the class.  Lots of other classes use things like Element or Document so you need to be explicit. The editor only knows about the 20 native classes by their object names.  If you create a Document object in the editor you are really creating a com.cisco.doc.Document object.  If you loaded jdom.jar and you wanted a jdom document then you need to create an object of type org.jdom.Document.
When compiling your custom jar files, be sure to compile for the version of Java that the CCX Engine runs.  In general UCCX 7.X and older use Java 1.4.  UCCX 8.X and higher use Java 1.6.  Several of the core Java classes had significant changes between 1.4 and 1.6. If you ran your code on UCCX 7 or earlier and now it fails in UCCX 8.X or higher, recomplile for Java 1.6 and you classes will likely work again.
Finally, check for security violations in UCCX 8.X or higher.  Cisco has restricted some of the things you can do.  These URL's have more information:
http://docwiki.cisco.com/wiki/Engine
http://docwiki.cisco.com/wiki/Troubleshooting_Tips_for_Unified_CCX_8.0
-Steven
Please help us make the communities better.  Rate helpful posts!

Similar Messages

  • Unable to load Java classes from byte arrays.

    I have an application started through JWS. It works fine except for one problem. The application allows the user to load an external class, typically received over a socket. These are not (and cannot) be signed. My application complains about not being able to load these when starting through JWS. When starting the application locally (i.e., run the jar file using 'java -jar APP.jar') it works fine.
    I guess I have to grant som additional permissions in my policy-file. But since these classes are user-defined, there is no way for me to define a static codebase. `
    Any ideas?

    Java Web Start installs a SecurityManager, and after that is responsible for assigning permission collections to any code loaded by the JNLPCLassLoader.
    If you have all-permissions for your jnlp loaded code, then use another ClassLoader to load some other code, That other class loader will assign the permissions to that code. If that ClassLoader dosn't extend SecureClassLoader, the code will get only the default permissions.
    You can fix this by
    1.) Use a ClassLoader that extends SecureClassLoader, and override getPermissions(), or
    2.) just call System.setSecurityManager(null), from the trusted code loaded by the JNLPCLassLoader.
    /Dietz

  • Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • Unable to load impl class error after WAR file rebuilt

    Hi
    I have the source code for a working WAR file. I wanted to make a small change to the code and rebuilt the WAR. Now the previous WAR version works but even when I rebuild the WAR from the unedited code I get the error "unable to load impl class"
    and ClassNotFoundException: Class bytes found but defineClass() failed for ...
    Does anyone know what kind of changes in my environment would cause this problem?
    Thanks
    J Armstrong

    This was caused by using jdk1.6.0_02 to compile the java files where jdk1.50_06 was required

  • Unable to load servlet  class specified in the module.

    Hi,
    Hope that I am in the right Forum to ask this question.
    I tried to develop basic servlet example as specified in http://java.sun.com/developer/onlineTraining/J2EE/Intro2/servlet/servlet.html.
    When I create WAR file in Deployment tool I get the following error. How can I rectify this?
    Thank you very much for any help.
    Regards,
    Indika
    Error :
    Unable to load servlet class specified in the module.
    Please contact online help for assistance.
    java.lang.UnsupportedClassVersionError : bonus/controller/BonusCalculationServlet (Unsupported major.minor version 49.0)

    Hi Yohan_co,
    I haven't used Application Server 8.2, but I think the problem is because the jdk that AS is using is previous to the jdk that your are using to compile your source files.
    I hope that it helps you.
    Regards

  • Unable to load a class specified in your ejb-jar.xml

    I was trying an example on entity bean CMP, i created the bean and tried to deploy it.I got the following error :-
    Exception:weblogic.management.ApplicationException: prepare failed for CMP Module: CMP Error: Exception preparing module: EJBModule(CMP,status=NEW) Unable to deploy EJB: C:\bea\user_projects\domains\Testdomain\applications\CMP.jar from CMP.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: pack.sams.ItemBean at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;)V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.utils.jars.VirtualJarFile;)V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic.utils.jars.VirtualJarFile;Ljava.lang.ClassLoader;Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Ljavax.naming.Context;Ljava.util.Map;)V(EJBDeployer.java:1302) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.ClassLoader;)V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1051) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2444) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2394) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2310) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;ZLjava.lang.StringBuffer;)Z(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    [Deployer:149033]preparing application CMP on ejb
    [Deployer:149033]failed application CMP on ejb
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application CMP on ejb.: Exception:weblogic.management.ApplicationException: prepare failed for CMP Module: CMP Error: Exception preparing module: EJBModule(CMP,status=NEW) Unable to deploy EJB: C:\bea\user_projects\domains\Testdomain\applications\CMP.jar from CMP.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: pack.sams.ItemBean at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;)V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.utils.jars.VirtualJarFile;)V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic.utils.jars.VirtualJarFile;Ljava.lang.ClassLoader;Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Ljavax.naming.Context;Ljava.util.Map;)V(EJBDeployer.java:1302) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.ClassLoader;)V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1051) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2444) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2394) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2310) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;ZLjava.lang.StringBuffer;)Z(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source) .
    Please suggest a solution to this error.
    Note that the class specified in the error is in its package. So this doesn't seems to be exact error. Please suggest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I have faced same problem most of time and resolved ot by recompileing my all the classes and new deployment descriptors. First you should make new java files for all clases(copy contents fron old java files ) and make anew package same as old and then do all the required process and re deploy it. I think because of some problem in class generation.

  • PHP & JAVA (Unable to load Java Library)

    Hello,
    I try to execute a script ncluding the call with JAVA routines, I obtain the following message:
    Fatal error: Unable to load Java Library /opt/j2sdk1.4.2_04/jre/lib/i386/libjava.so, error: libjvm.so: cannot open shared object file: No such file or directory in /usr/local/apache2/htdocs/prerequis.php on line 17
    My environment is as follows:
    Linux REDHAT 2.4.21, Apache 2.0.50, PHP 4.3.9, JDK 1.4.2_04
    Files php.ini :
    [Java]
    java.class.path = /usr/local/lib/php/php_java.jar
    java.home = /opt/j2sdk1.4.2_04
    java.library = /opt/j2sdk1.4.2_04/jre/lib/i386/libjava.so
    java.library.path = /usr/local/lib/php/extensions/no-debug-non-zts-20020429
    extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20020429
    extension=java.so
    If somebody has an idea??
    Thanks

    Shouldn't java.library.path point to java.library?

  • Jsp on iplanet 6.0 sp7 error: unable to load jsp class

    I am having trouble to install astraweb on iplanet with following error
    [06/Apr/2005:08:46:38] info (21397): WebApp service: uri = /astraweb/ contextPath = /astraweb servletPath = /index.jsp pathInfo = null servletName = jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:JspEngine --> /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: ServletPath: /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: PathInfo: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RealPath: /opt/iplanet60sp7/docs/astraweb/index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RequestURI: /astraweb/
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: QueryString: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:Classpath according to the Servlet Engine is: /opt/iplanet60sp7/docs/astraweb/WEB-INF/classes:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/Basej4.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/commons-fileupload-1.0.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/hsi.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/net.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/oreilly.jar:
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:unable to load jsp class: jsps.index_jsp
    [06/Apr/2005:08:46:38] failure (21397): Internal error: exception thrown from the servlet service function (uri=/astraweb/): java.lang.NullPointerException, Stack: java.lang.NullPointerException
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.isJspFileModified(JspServlet.java:231)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:199)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:171)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:596)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1058)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
    Any idea? Thanks

    In the course of your troubleshooting to date, have you worked through the following document, Jeff?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Help Please ....  Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • "Newbie Unable to load class for custom tag"

    I have recently written a custom tag but I have been unable to implement it in a JSP because the server is unable to load the .class file. Below I have supplied the files that contribute to make up the custom tag, aswell as the JSP file used to implement it.
    genericDBConnect.java
    stored in C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF\classes\jsp\tags\dbase
    package jsp.tags.dbase;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class genericDBConnect extends BodyTagSupport
    private String odbcDriver;
    private String dataSource;
    public void setOdbcDriver(String driver)
    odbcDriver = driver;
    public void setDataSource(String source)
    dataSource = source;
    public int doStartTag() throws JspException
    return EVAL_BODY_INCLUDE;
    public int doEndTag() throws JspException
    try{
    pageContext.getOut().print("This is the value of odbcDriver = " + odbcDriver + "and dataSource = " + dataSource);
         catch(Exception ioException)
         System.err.println("Exception thrown in genericDBConnect.doEndTag():");
         System.err.println(ioException);
         throw new JspException(ioException);
    return EVAL_PAGE;
    WEB.XML
    Stored in: C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <!DOCTYPE web-app PUBLIC
         "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
         "http://java.sun.com/dtd/web-app_2_2.dtd">
    <web-app>
         <display-name>Generic database Connector</display-name>
         <description>
         Connecting to a database using dataSource and OdbcDriver
              Attributes as well as sending a query to the database;
         </description>
         <taglib>
              <taglib-uri>/genericdbconnecttags.tld</taglib-uri>
              <taglib-location>/WEB-INF/genericdbconnecttags.tld</taglib-location>
         </taglib>
    </web-app>     
    genericdbconnecttags.tld
    C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
         "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>genericDBConnect</short-name>
         <tag>
              <name>dbconnect</name>
              <tag-class>jsp.tags.dbase.genericDBConnect</tag-class>          
              <attribute>
                   <name>dataSource</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
                   <name>odbcDriver</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
         </attribute>
         </tag>
    </taglib>
    DBTester.jsp
    Stored in:C:\jakarta-tomcat-3.2.3\webapps\exper
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Generic dataBase Connection</title>
    </head>
    <body>
    <%@ taglib uri="/genericdbconnecttags.tld" prefix="database" %>
    <database:dbconnect odbcDriver="sun.my.tag.lib" dataSource="hello">
    this is the the begining of the end of life as we know it
    </database:dbconnect>
    </body>
    </html>
    And this is the error I get:
    Error: 500
    Location: /exper/DBtester.jsp
    Internal Servlet Error:
    org.apache.jasper.compiler.CompileException: C:\jakarta-tomcat-3.2.3\webapps\exper\DBtester.jsp(8,0) Unable to load class null
         at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
         at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
         at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
         at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
         at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Please if you can help I will be very grateful

    I was searching about this problem and I found here.
    I'm using WSAD 4.0.3 and I'm making my first custom tag.
    Here is my files:
    ======================= CLASS ======================
    package sas.ric.tags.teste;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.PageContext;
    import java.io.IOException;
    public class ClTagHello extends TagSupport {
    public int doStartTag() {
         try {
              JspWriter out = pageContext.getOut();
              out.println("HELLO!");
         } catch (IOException ioe) {
              System.out.println("Erro in ClTagHello: " + ioe);
    return (SKIP_BODY);
    ================= TLD ==========================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>ric</short-name>
         <uri></uri>
         <info>Exemple</info>
         <tag>
              <name>hello</name>
              <tag-class>sas.ric.tags.teste.ClTagHello</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>
    ======================== JSP =====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    </HEAD>
    <%@ taglib uri="WEB-INF/app-tlds/tag-hello.tld" prefix="ric" %>
    <BODY>
    <ric:hello />
    </BODY>
    </HTML>
    ==========================================================
    Please, help me.
    Occur this error "JSPG0058E: Unable to load class null"
    Thank's

  • Error on Desktop: iTunes unable to load data class information from sync services.

    Error on Desktop; iTunes unable to load data class information from sync services.

    Hi there Randall112,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/ts2690
    -Griff W. 

  • TS2529 iTunes was unable to load data class information from Sync Services. Reconnect or try again later is the error message I am getting when i connect my iphone 4 to my windows based computer. Any help out there?

    iTunes was unable to load data class information from Sync Services. Reconnect or try again later. This is the message when I try to connect my iphone 4 to my computer. If anyone could help me with this, I would appreciate it.

    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591

  • I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
    tt2

  • Was unable to load data class info from sync services.  try again later.

    Since installing the latest version of itunes (11.1.5.5) whenever I have either mine or my wife's iphones (4 and 5c, both with the latest 7.1.1) turned on and I start iTunes, I receive the error message saying that itunes was unable to load data class info from sync services.  try again later.
    If I leave the phones turned off and open iTunes, I am able to sync my old ipod so it appears to be an issue with the software on the phones? 
    I'm just not sure where to start.  I've made sure that itunes has the latest version and no more updates are available.
    Thanks in advance,
    jamey8420

    this is on a windows 7 machine, btw.

  • ITunes was unable to load data class information from Sync Services. Reconnect or try again later.

    Ever since I upgraded to iTunes 10.4 I've been getting this dreaded message on many occasions when I try to sync my iPhone 4 or iPad 2 with my Win 7 64 bit machine. "iTunes was unable to load data class information from Sync Services. Reconnect or try again later." What happens is that local content (music, videos etc) will sync properly to my iPhone, but other content (such as Outlook information, MobileMe stuff, etc) will not.
    I have uninstalled and completely purged all Apple data from my PC (including hidden files and folders under Common Files and in the Registry) and reinstalled iTunes. Yet after one or two syncs, the same problem resurfaces. The other weird part is that the Sync Services crap-out message will happen after I do a successful sync, leave the iPhone connected to the PC, and don't even touch the computer for several hours.
    I've actually developed a very tedious work around that seems to restore syncing if for a short time.
    - Undock/unconnect all Apple devices from the PC.
    - Close iTunes, MobileMe control panel, and Safari (if you have it).
    - Start Task Manager (Ctrl + Alt + Del) and shut down iTunesHelper.exe and SyncServer.exe
    - Open up a Windows Explorer window (like My Computer) and under Tools, Folder Options, View, toggle on Show Hidden Files and toggle off Hide Protected Operating System FIles
    - In WIndows Explorer, navigate to "C:\Users\<your name>\App Data\Roaming\Apple Computer". Rename the folder Sync Services to something else, like Sync Services_Old.
    - In WIndows Explorere, navigate to "C:\Program Files (x86)\Common Files\Apple\Mobile Device Support" and double-click on AppleSyncNotifier.exe.
    - Go back to your Folder Options and turn off SHow Hidden Files and toggle on Hide Protected Operationg System Files
    Now you can start up iTunes again and connect your device. It should sync properly again (at least, until it doesn't once more).
    Does anyone at Apple have any idea about this error or a solution?

    I actually spent a fair amount of time on the phone with a senior Apple tech last week. He directed me to this topic:
    http://support.apple.com/kb/HT1923?viewlocale=en_US
    It's important that you go through the steps EXACTLY as described here and in the proper order. Also make sure MobileMe control panel is uninstalled (if you have it).
    Interestingly, when I went through this procedure and then reinstalled iTunes 10.4 64-bit  (didn't do MobileMe or Safari at this stage, but QT is automatically installed) everything worked perfectly. The aforementioned error messages disappeared and all is working flawlessly, as it should.
    I hope my expereince will help! Give it a try.

Maybe you are looking for

  • ITEM tab in the Approval Process overview IN srm 7.0 AND EP 7.1

    Hi Friends, I am working in SRM 7.0 with EP 7.1.. 1 . I have to remove 'ITEM' tab in the approval process overview screen which is apprearing in Portal. approval process overview screen will be appeared when 'Display / Edit Agents' Button in the Head

  • E-mails sent from PC users the photos are not present

    When opening some e-mails sent from PC users the photos are not present anyone have the same situation.

  • How to i get the speakers to work on my monitor the sounds comes out of my hard drive

    I have a large monitor on my desk and the sound does not come out of the speakers on the monitor the sound comes out of the mini hard drive- how do I fix that to get it to work out of the monitor

  • Re sizing photos again

    Hi Playing about with keynote I have found that I can get the right size by using Appearance in Slide Inspector and the image fill option. Very slow as I can only do one slide at a time but at least it works. Only problem is that if the slides do not

  • CF11 services won't restart

    I have 2 Windows Server 2012r2 boxes that I'm setting up. One is an RDS machine for some Devs to log onto and they other one will be a Production server for running scheduled tasks (separate from our main production server). The issue I've run into i