cancel
Showing results for 
Search instead for 
Did you mean: 

Java Docs for Deploy APIs

Former Member
0 Kudos

Hello all,

I was trying to create an application which uses DeployManagerImpl class file. I got an exception

 
java.lang.NoClassDefFoundError: com/sap/exception/BaseException
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)

in the line


			DeployManager dm = new DeployManagerImpl();

I don't get any errors in my IDE and i've the server jar files on my laptop (which i've added in the class path of the project). This class is available in the sapj2eenginedeploy.jar.

1. Why am i getting the error above?

2. Can i find the javadocs for the above mentioned class file?

Thanks

ak.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Ankur,

Try this link,which describe the DeployManager api

http://support.jalios.com/docs/javadoc/com/jalios/jcms/DeployManager.html

Regards,

Sri

Former Member
0 Kudos
Former Member
0 Kudos
import javax.enterprise.deploy.spi.DeploymentManager;
import com.sap.engine.deployment.SAPDeploymentFactory;
import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException;

.
.
.
.

public DeploymentManager obtainDeploymentManager(String uri, String user, String pass)
        throws DeploymentManagerCreationException
    {
        DeploymentFactory factory = new SAPDeploymentFactory();
        Logger.log(location, 300, "Obtaining Deployment Manager");
        return dm = factory.getDeploymentManager(uri, user, pass);
    }

I think,after you read this code you will resolve you problem.

if you have any question,I can give you fully code.

Former Member
0 Kudos

I have resolved a similar problem.

You can send a m to me if to would like to.

Former Member
0 Kudos

Folks, Point 1 is cleared. I didn't add the exception.jar.

I need help on point 2 - the javadocs part of the question.