on 05-19-2007 8:28 AM
Dear programmers,
I've problems with deploying a JAR file. I have tried to build 3 projects:
- Java project
- External Library DC project
- J2EE server component - Library DC
I did made a .jar file from the java project (without errors).
I've put the jar file into the external library project and builded the project.
The link to the Library DC was succesfull, and also the '<var>gen/default/plublic/defLib/lib/java</var> then you meet <var>js.jar</var>' was O.K.
After deploying the library is found in the visual administrator, but the JAR file is not!
Any ideas, what the problem could be?
- Adri
Expose the jar as public part of type assembly from the External Library DC project.
Then add this External Library DC project to dc dependency list of J2EE server component (Library DC).
Have you done this ?
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've extracted the sda file, and no .JAR file is included. What should I do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adri,
I an not sure why is happening in your case. Can you please do following. It should solve your problem.
1) Create External Library DC.
2) Add the jar under libraries folder in the DC.
3) Expose this jar as public part.While exposing select "Can be packaged in other build result (e.g. SDA)"
4) Create the J2EE Server Component of library type.
5) Add the External Library DC as used dc in the J2EE dc.
6) Build the J2EE dc.
Check the sda. It should have the jar from External Library DC.
Regards,
Ashwani Kr Sharma
Hi Ashwani Kr Sharma,
Thanks for your reply! I did exactly what you said, but the sda doesn't contain the jar file.
I uploaded the JAR file to my website, is it possible that the file is corrupt or not correct? <a href="http://www.digia3.nl/javajar.jar">Link to jar file</a>
Maybe I added the JAR at a wrong way to the external library project? I copied the file, and pasted it in the 'libraries' folder with windows explorer.
In advance,
Adri
Hi,
I using the SP19 IDE. There it is working correctly.
By the thread you posted it is definetly a bug in SP16. Even i was not expecting this wrong behavior in SP16. This would be major bug.
To continue your work you can manually copy the jar in the root of archive file for library DC and then deploy it.
Regards,
Ashwani Kr Sharma
Well, I've copied the JAR directly into the SDA file (src folder) and tried to deploy it with the SDM DeployTool. That was not working, so I tried to edit the provider.xml file and added these lines:
<jars>
<jar-name>javajar.jar</jar-name>
</jars>
Deploying will work now properly, but the "NoClassDefFoundException" stays.
Also in the Visual Administrator, the JAR is under the librarie "libjava".
Any ideas? In advance,
Adri
Thanks for your reply.
I've deleted the projects and try it again.
The following piece of the warning report comes by building the library DC:
-
Warning: Warning: Source folder does not exist, will be ignored: server
Plugin initialized in 0.046 seconds
Preparing data context..
No 'default' JDK defined, will use running VM.
Data context prepared in 0.016 seconds
packDeployArchive:
[srcpacker] Creating source archive
[srcpacker] No sources available for packing, no archive will be created.
[timer] Source archive creation finished in 0.031 seconds
[jarsap] Info: JarSAP version 20041217.1600
[jarsap] Info: JarSAPProcessing version 20060104.1634 / JarSL version 20060106.1831
[jarsap] Property jarsap.info.dir is not set.
[jarsap] Building: D:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\sap.com\libjava\_comp\gen\default\deploy\sap.com~libjava.sda with compression
[timer] JarSAP finished in 0.234 seconds
Ant build finished OK
-
I added the external library dc as an 'build' dependency to the library dc. The external library was builded successfully with the jar as public part. (assembly)
Any ideas?
Regards, Adri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adri,
The build seem to be fine. Can you please open the <b>sap.comlibjava.sda</b> file @ <b>D:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\sap.com\libjava\_comp\gen\default\deploy\sap.comlibjava.sda</b> and verify that the jar from external libraby dc is bundled here.
If it is bundled proceed to deploy and library dc and verify the results.
Regards,
Ashwani Kr Sharma
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.