on 08-24-2005 6:44 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SP11 does the same exact thing. is there any good documentation that shows a more advanced example on javabean import that involves complex types?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
P.S. The same is posted to topic by Ken, so we can discuss further issues in my blog, or in his thread.
Dora,
Sounds like you are using SP9 / SP10 IDE.
Since SP11 I've never encountered such problems.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.