cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Add Jar to JavaBean Modeler

Former Member
0 Kudos

Hi all,

I'm new to WebDynpro and EJBs and am trying to develop a webdynpro application that will read/write to an Oracle database using EJBs.

I am on sp16 in my developer studio.

I have already built the EJB project and tested it and it works fine. I also created my Data Access Command Bean as per the instructions in the SDN tutorial. I also added both jar files into my webdynpro project classpath.

My problem is when I try to import the command bean into the webdynpro model. After I type in the Model Name, Package and specify the source to be Local JAR file and browse to the JAR file, I get an error message when I click on next. The message says: "The system cannot find the path specified".

Just in case you are wondering, I select "Deploy Time" when I browse for the JAR file but changing it to "Design Time" does not change the error message.

Did anyone experience the same error message? Do I need to configure something in my developer studio to enable it to locate files in my workspace????

I'm getting frustrated with this error message...help, please!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Alaa,

Try to use my advices from post <a href="/people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works">JavaBean Model Import: when it really works</a>

I guess you are missing ejb20.jar reference, so add it, restert IDE and re-try. More info in my blog.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Thank you both Saravanan and Valery for your answers.

Valery:

I do have ejb20.jar added to my buildpath. To test if I did something wrong, I imported the tutorial files provided in the sdn. I deleted the BeanModel that was already created but left all other jar files and classpath entries as they were and tried to recreate the beanmodel myself. I still get the same error message at the same location.

Here is the log entry for the developer studio. I don't quite understand the error log. Do you guys have an idea of what I am supposed to do to fix this ZipException?

!ENTRY com.tssap.util 4 0 Jul 27, 2006 09:30:53.616

!MESSAGE Jul 27, 2006 9:30:53 AM com.sap.ide.metamodel.core.dc.DevComponentService [Thread[main,5,main]] Error: Error while checking manifest attribute DC-Type for file /SeismicProject/lib/BonusCalculationEJB.jar

!STACK 0

java.util.zip.ZipException: The system cannot find the path specified

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:112)

at java.util.jar.JarFile.<init>(JarFile.java:127)

at java.util.jar.JarFile.<init>(JarFile.java:65)

at com.sap.ide.metamodel.core.dc.DevComponentService.getPublicPartManifestAttributeValue(DevComponentService.java:73)

at com.sap.ide.metamodel.core.project.ProjectService.isDCTypeMetamodelRelevant(ProjectService.java:287)

at com.sap.ide.metamodel.core.project.ProjectService.addPublicPartJars(ProjectService.java:80)

at com.sap.ide.metamodel.core.project.ProjectService.updateMetamodelJarsFromClasspath(ProjectService.java:247)

at com.sap.ide.metamodel.core.plugin.MetamodelManager.getMetamodelManager(MetamodelManager.java:147)

at com.sap.ide.webdynpro.service.core.MetamodelServices.getWebDynproRoot(MetamodelServices.java:138)

at com.sap.ide.webdynpro.controllereditor.ControllerEditorResourceChecker.setEditor(ControllerEditorResourceChecker.java:105)

at com.sap.ide.webdynpro.controllereditor.ControllerEditorResourceChecker.visit(ControllerEditorResourceChecker.java:90)

at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)

at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80)

at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119)

at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60)

at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)

at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82)

at com.sap.ide.webdynpro.controllereditor.Plugin$1.run(Plugin.java:112)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)

at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)

at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)

at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)

at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)

at com.sap.ide.eclipse.startup.Main.run(Main.java:795)

at com.sap.ide.eclipse.startup.Main.main(Main.java:602)

Saravanan:

What do you mean by a library project? Is it just a java project that includes both jar entries in its build path? Isn't the JAR file a library entry?

Former Member
0 Kudos

Alaa,

"The system cannot find the path specified" -- are you sure that file really exists??? Check your used library paths. Probably it is get removed somehow or is locked exclusively by some othe process...

VS

Former Member
0 Kudos

According to what I understand the two JAR files, namely BonusCalculationCommandBeans.jar & BonusCalculationEJB.jar, should be located in:

(myWorkspace)\TutWD_BonusCalculation\lib

and I just checked them and they are there. But how do I check if they are locked by some other process?

Is there any configuration in the developer studio to set a home path for java.util.zip tool?

Former Member
0 Kudos

Alaa,

Read stack trace: IDE tries to open file /<b>SeismicProject</b>/lib/BonusCalculationEJB.jar, not the /<b>TutWD_BonusCalculation</b>/lib/BonusCalculationEJB.jar

Valery

Former Member
0 Kudos

Valery,

I'm sorry I copied the wrong error log. The one you see above is the first error log that I had. That happened when I tried to copy the tutorial JARs into my own project "SeismicProject" to see if the problem was from my JAR files.

When I kept getting the same error message, I deleted BonusCalculationCommandBeans.jar and BonusCalculationEJB.jar from "SeismicProject" buildpath and deleted BeanModel from TutWD_BonusCalculation and tried recreating it. Here is the error I get with TutWD_BonusCalculation:

!ENTRY com.tssap.util 4 0 Jul 27, 2006 09:47:17.80

!MESSAGE Jul 27, 2006 9:47:17 AM com.sap.ide.metamodel.core.dc.DevComponentService [Thread[main,5,main]] Error: Error while checking manifest attribute DC-Type for file /TutWD_BonusCalculation/lib/BonusCalculationCommandBeans.jar

!STACK 0

java.util.zip.ZipException: The system cannot find the path specified

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:112)

at java.util.jar.JarFile.<init>(JarFile.java:127)

at java.util.jar.JarFile.<init>(JarFile.java:65)

...the error continues just like the one above.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I Thing better you have to create one Library projetc which contains all required jar files and deployed into server. After deploy you add jar files to Java Build path from Library project. This type you won't get path not found exception.

Kind Regards,

S.Saravanan.