如何打包ejb和jsp,然后部署到weblogic上
我现在是用jar命令把我写的ejb程序打成一个myejb.jar包,然后在用jar命令把所有的jsp和web_inf下的东西打成一个web.war包。
我在weblogic的控制台上新建一个ejb,但是出现了异常,具体情况如下:
<2002-12-4 下午12时42分24秒> <Error> <Management> <InvocationTargetException set
ting attribute Deployed on MBean mydomain:Name=OrgaServiceEJB,Location=myserver,
Type=ApplicationConfig to value true. Method: public void weblogic.management.mb
eans.custom.Application.setDeployed(boolean) throws weblogic.management.Deployme
ntException,weblogic.management.UndeploymentException
weblogic.management.DeploymentException: Could not deploy: 'OrgaServiceEJB.jar'
Possible reasons include:
1. The bean or an interface class has been modified but
the deployment descriptor has not been updated
2. The database mappings in the deployment descriptor do not
match the database definition
3. The jar file is not a valid jar file
4. The jar file does not contain a valid bean
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:35)
at weblogic.j2ee.Application.deploy(Application.java:177)
at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)