cancel
Showing results for 
Search instead for 
Did you mean: 

Issue on "Import JavaBean Model"

Former Member
0 Kudos

I am using the command pattern with javabeans to be able to expose ssb functionality in the backend for my web dynpro application. I am having so many issue though trying to import the javabean local jar file. If i make it so that there is nothing in the javabean class but the getters/setters, constructor and an empty execute method things work. If i try to add helper class calls within the execute method or i try to instantiate any other classes within the contstructor i am not able to import the javabean jar. i have tried to do this so many ways and i'm really lost on why it's not working. any ideas on what should/should not be in the javabean jar or javabean class in order to make this work?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Dora,

I had the same problem, even with the most simple JavaBean Class. I found out that the export-jar function of the Developer Studio 2.0.13 creates sightly different jars than when I use the jar-tool from the command line. You can check the jar structure by using the command

jar tf file.jar

:

JAR File created by Developer Studio (did not work):

D:temp>jar tf test.jar 
META-INF/MANIFEST.MF
de/test/bean/SimpleBean.class

JAR created by jar tool from the SDK from the top directory with

jar cf test.jar de

:

D:temp>jar tf test.jar de
META-INF/
META-INF/MANIFEST.MF
de/
de/test/
de/test/bean/
de/test/bean/SimpleBean.class

The second jar file worked for me even <b>without any special manifest file</b> but the one that is automatically created.

I hope that helps!

Jari

Former Member
0 Kudos

SP11 does the same exact thing. is there any good documentation that shows a more advanced example on javabean import that involves complex types?

Former Member
0 Kudos

I saw in another post that writing a manifest file helpse the import but i get the issue there where the manifest file gets overwritten when i try to export the bean files into a jar. At this point i'm wondering if it's even possible to do this with web dynpro?

Former Member
0 Kudos

Hi Dora,

I hope here I've provided a complete answer:

/people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works

Valery Silaev

EPAM Systems

http://www.netweaverteam.com/

P.S. The same is posted to topic by Ken, so we can discuss further issues in my blog, or in his thread.

Former Member
0 Kudos

Dora,

If your problem is solved please close this thread

VS

Former Member
0 Kudos

Dora,

Sounds like you are using SP9 / SP10 IDE.

Since SP11 I've never encountered such problems.

VS

Former Member
0 Kudos

Can complex type not be instantiated or used in the java bean? If I take out anything that's not a primitive type things work.

Former Member
0 Kudos

Dora,

Currently you have to apply the following workaround:

1. During model import un-check "complex" properties.

2. Open corresponding WD class for generated model (perspective WebDynpro, node Models) and add your property manually.

VS