on 12-18-2008 7:50 PM
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.
Hi Ankur,
Try this link,which describe the DeployManager api
http://support.jalios.com/docs/javadoc/com/jalios/jcms/DeployManager.html
Regards,
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer these links,
https://www.gigaspaces.com/wiki/label/sbadeploymentapi+javadocs
http://edocs.bea.com/alsb/docs25/deploy/config_appx.html
http://www.javadocexamples.com/
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have resolved a similar problem.
You can send a m to me if to would like to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Folks, Point 1 is cleared. I didn't add the exception.jar.
I need help on point 2 - the javadocs part of the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.