Skip to Content
0
Former Member
Oct 03, 2005 at 11:13 AM

Generating Java Proxies - Corrupt EJBs

36 Views

Hi,

I have generated both a client and server Java proxies, and have imported the the following external libraries: aii_msg_runtime.jar,

aii_proxy_xirt.jar,

aii_utilxi_misc.jar &

guidgenerator.jar.

I have created a EJB Project myEJB with a Bean implementation <myInterface>_PortTypeImpl extending com.sap.aii.proxy.xiruntime.core.AbstractProxy and implementing the interface <myInterface>_PortType.

If I try to select in the J2EE explorer view one of the following generated beans I get error 'Corrupt ejb':

AbstractProxyBean,

AbstractProxyBean2,

AbstractProxyInboundBean,

AbstractProxyInboundBean2,

AbstractProxyInboundBean4,

<myInterface>_PortTypeBean.

So, I create a EJB Assembly Project myEJBAssembly and assisgn the myEJB to the assembly, I remove the references to the following

AbstractProxyBean,

AbstractProxyBean2,

AbstractProxyInboundBean,

AbstractProxyInboundBean2,

AbstractProxyInboundBean4,

in the ejb-jar.xml descriptor file. leaving <myInterfcace>_PortTypeBean which leaves me only the <myInterface>_PortTypeBean in my assembly.

I do not change any code in the bean and try to build JAR files from the context menu (root node on Assembly ) and I get an error: 'EnterpriseJavaBean <myInterface>_PortTypeBean is corrupt.

I need to be able to generate the Jar files prior to building my .ear file to deploy.

Please help.

Also,

Should I be able to see the bean infomation such as the Overview where I can naviate to the bean class, home interface too, as I cannot see this at all when I select one of the generated beans.

Thanks in advance.

Mark