How to add external jars when deploying webapp via worksop for wls 9.2
While attempting to deploy my web application using Workshop for WLS 9.2, WLS complains it is unavailable to resolve references to a 3rd party JAR(tomhawk.jar) which is being referenced by the JSPs. I have added the JAR via the J2EE module dependancy tab in workshop but that does not seem to be helping the deployment.
If i build the web application outside workshop and include the tomhawk.jar in the WEB-INF/lib folder of the deployed WAR file, the app works fine.
I have attempted to copy the tomhawk.jar into the <domain>/lib folder and restart the weblogic server. But this does not seem to help resolve the references.
Any clues on how i could achieve iterative deployments via workshop for WLS 9.2 pickup references to external JARs being referenced by the JSPs.
Thanks
Ramdas
Raj,
Thanks for your suggestion. The link that you sent out was useful. I was actually able to get the webapp to resolve its references to the 3rd party classes by adding the tomhawk.jar as an external jar via the "build path" property for the web project. I tested this by running the app in the WLS instance hosted by workshop and looks like the JAR from the build path gets somehow referenced during run time too. Not sure how this works?
Thanks
Ramdas
Similar Messages
-
How to add external jars in the configuration of JSmooth?
Hello,
I am trying to create an exe file from a java program using JSmooth.
The program is a simple hello world proogram.
I am developing under eclipse, and I am using some external jar files as libraries.
If my program is simple,; it works fine. If I add an import of a class that is in one of these jar files, I get the following error when executing the created .exe file:
"Could not find the main class. Program will exit".
I guess I have to add this Jar file to the path for the creation of the .exe file.
My question is: does anybody know HOW to add an external jar in the configuration of JSmooth for the creation of an exe file from a Java program?
Thanks for your help
Philippei have the same problem phsans
you know the answers??
thanks phsans:D -
Good morning.
I need to add an external library to my project. The library is the Apache POI (http://poi.apache.org/). Anyway, I do not know how to do it because it gives me many problems. I tried modifying the classpath and placing it in the lib folder of the project from "Navigator". Also project properties, add. jar outside, and throws me the following error:
The project not was built STI Since classpath is incomplete. Can not find the file class for java.lang.Iterable. Fix the classpath Rebuilding Then try this project. "LocalDevelopment ~ name ~ vendor."
Also this:
Indirectly this compilation unit references the missing type java.lang.Iterable (typically Some required class file is referencing a type Outside the classpath).
Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
I read the following link:
/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
but my version is 2.0.14 NetWeaver. On the other hand, did not understand because they do not know how to add "External Library DC. "
Infinitely appreciate any help. Thank you very much.I'm trying to work with POI that can be found in http://poi.apache.org/. The. jar I'm adding are
commons-logging-1.1.jar
junit-3.8.1.jar
log4j-1.2.13.jar
poi-3.7-20101029.jar
poi-examples-3.7-20101029.jar
poi-OOXML-3.7-20101029.jar
poi-OOXML-schemas-3.7-20101029.jar
poi-scratchpad-3.7-20101029.jar
Of the code is
HSSFWorkbook HSSFWorkbook book = new ();
/ / Create a sheet inside the book
HSSFSheet libro.createSheet leaf = ();
/ / Create a row within the sheet
HSSFRow row = hoja.createRow (0);
/ / Create a cell within the row
HSSFCell fila.createCell cell = ((short) 0);
/ / Create the contents of the cell and gets into it.
HSSFRichTextString HSSFRichTextString text = new ("hello world");
When I look for the "Organize Imports" I do not recognize any other additional library
Edited by: Daynet1840 on Feb 26, 2011 3:19 PM -
How to add external library in class path folder for use in Java call-out?
Hi,
I am working with Java callout component in OSB 12c using Jdeveloper.
Thing is Jar what i am using to perform conversion of json to xml that using external libraries.
When i have give reference of my project jar to java callout it doen't found external libraries.
Could you please tell me how to add external libraries in class path folder or How to use to add it through web-logic server ?
Thanks,
PavanHi,
Thanks, I have solved issue.
We can add on following path in windows pc:
C:\Users\your_usename\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\lib
One you add your external lib here then do restart weblogic server instance.
Now, you have that external lib or jar in use.
Cool! -
How to handle External Jar files in EJB DC
I have created a EJB DC.
I have added the required MDM Jar files to the class path.
These MDM Jar files are supplied by SAP for integration with Master Data Management.
But the DC build fails.
If I create the same project as a <b>REGULAR</b> EJB (non-dc approach)project, everything works fine.
Qn:
How to bundle the MDM jars (External jars)in a DC?
How to create the Public Parts in the DC for the added MDM External Jars?
How to use the above DC in the EJB DC?
Basically, I am looking for a step by step procedure,
to add external jars in a DC.
And to use the above DC in a EJB DC.
Any assistance in this regard is appreciated.You should not reference the MDM jar files by setting classpath directly. For setting references to it from your EJB DCs , you will have to create a DC of type "External Library". Deploy this DC also before your EJBs are deployed. You will then have to create a public part for this DC and the reference the public part from the DC metadata of the EJB DC ie set the Used DC list of EJB DC to the public part of the ext lib. You will get info about this in NDS help as well on help.sap.com
-
How to use external jars in NW2004
Hello Experts,
can i use the same approach mentioned in the below Weblog for using the external jars in NW2004.
/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
and if not then what will be the best way to achieve it in NW2004.
Please provide your inputs on above.
Regards,
SiddharthHi Sidharth,
If you are using web dynpro DC perspective then you need to follow the following points to use the external jar files in it.
1. Create a external library project.
2. copy the external jars in the library folder os the projects.
3.) Select all the jars from the u201CLibrariesu201D folder, Right click and then select Development Component and click on Add to Public Part
4.Select the first Radio Button (Provides an API)and give some nameto it.
5. Repeat the step no 3 but now select the second radio button other than as selected in step no 4.
6. Now build your lirary DC.
7. Now create a j2ee DC project.
8. ) Expand the node DC Definition and Right Click on Used DC. Select Add Used DC.
9. Select the External Library DC with build time dependency.
10.Right click on the J2EE DC and then select Development Component followed by Build
11. Right click on the J2EE DC and then select Development Component followed by Deploy
now you can use both the libary DC and the j2ee DC in your web dynpro DC as used DC.
But if you have created a web dynpro project only(but not DC) than you can directly add the external jars in java build path
hope this will help
regards
Narendra
Edited by: Narendra Singh on Oct 27, 2009 11:22 AM -
How to use external JARs in Eclipse
Hello.
I created a jar file like that:
jar -cvf0 WarShell.jar WarShell.class
I want to use WarShell.class in Eclipse but it not in my classpath,so I choose [Project] -> [Properties] -> Java Build Path -> Libraries -> Add External JARs and add WarShell.jar to the list.
But when I run the program I got a Exception:NoClassDefFoundError.
Why?How to fix it?
Another question... Your classpath is not available in Eclipse,right?
Thanks for your time! ^_^Hello.
I created a jar file like that:
jar -cvf0 WarShell.jar WarShell.class
I want to use WarShell.class in Eclipse but it not in
my classpath,so I choose [Project] -> [Properties]
-> Java Build Path -> Libraries -> Add External JARs
and add WarShell.jar to the list.
But when I run the program I got a
Exception:NoClassDefFoundError.
Why?How to fix it?Did you run your program from Eclipse ?
If yes, it should work (or seek for an Eclipse-specific forum.)
But if not, keep in mind that your project settings are limited to Eclipse. You'll have to define a correct classpath for running your application.
Another question... Your classpath is not available
in Eclipse,right?Mine? I don't think it is available for anyone ;-P -
How to add SDK jar file in NWDS
Dear Friends,
Currently i have an issue. I have to bring the BO favorite to my Portal Screen. My Portal is developed in PDK.
I have few links where the source code is writhen. Those link's are
/people/michael.nicholls/blog/2010/02/22/using-the-pdk-to-access-businessobjects-infoview
http://wiki.sdn.sap.com/wiki/display/Snippets/ReadInfoViewfavoritesfromthe+portal
I don't know more about BO. I have few points which i mentioned below.
1) How to add SDK jar file in NWDS.
2)DO i need any specific package for that.
Kindly help me with your Valuble suggestion and document.
Thanx in Advance.
Prashant KrishenHi,
for adding all the jar files in NWDS fallow below steps
windows >> preferences >>Java>>Java buildpath>>Libraries>>add external jars
Hope this helps
Edited by: polaka123 on Nov 13, 2010 12:44 PM -
How to add external images onto a control and still be able to resize
Hello,
I'm a LabVIEW newbie. I'm trying to customize the appearance of my VIs, and one of the things I like to do is to import external image and paste it onto the faceplate of the gauge indicator. I've followed the instruction in the Labview application note using the control editor and was able to paste the picture into indicator. But when I use it in the front panel and resize the gauge indicator, the image (added as a decoration) doesn't resize together with the indicator. My questions are:
1. How to add external images onto a control/indicator and still be able to resize the image automatically when I resize the control/indicator?
2. How to "add" a new part to an existing control/indicator? It looks like I can only customize/modify the existing parts of the control/indicator in the control editor.
Any help is appreciated. Thanks.1/ Do not use the image as an added decoration. Instead replace part of the control with the image. Tis is illustrated in the attached vi : the arrow was pasted as a decoration, and also used to replace the slide cursor. Changing the control size do not affect the decoration, but changes the cursor.
2/ What do you mean by adding new parts to a control. We have just seen that it was possible to modify a control. Now, if you want to include additionnal functionnality, that's another story. You can replace parts of the control, and this can give interesting results. You can edit a slide control, and replace the numeric indicator by another control, including a numeric indicator, that you can replace with etc...
But there, it still the same info displayed under different forms. If you want to have several independant functions on the same control, such as a string display and a boolean and a numeric indicator, then that's a job for a cluster...
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Slide with Arrow.vi 13 KB -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to add a default value in a site column for every item in a document library
HI
i created a content type with some site columns ,
and included in a Document library.
Process ( content type)
-ProcessNo
-ProcessName
after that i uploaded 100 Documents but not added value in a site column process name.
now how i add a default value in a site column for every document in a document library
adilHI
i get below error when i change the script
PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
Cannot index into a null array.
At C:\Scripts\updatedefaultvalue.ps1:8 char:7
+ IF($i[ <<<< "Title"] -eq $null)
+ CategoryInfo : InvalidOperation: (Title:String) [], RuntimeExce
ption
+ FullyQualifiedErrorId : NullArray
$web = Get-SPWeb http://tspmcwfe:89/
$list = $web.Lists["test"]
$item = $list.Items | Where { $_["Name"] -eq "Emc" }
foreach($i in $items)
IF($i["Title"] -eq $null)
$i["Title"] = "test"
$i.Update()
adil
Why are you piping a where in the items? Do you only want to add the "test" to ones matching
a name?
If you have ISE installed on your server I recommend you put your code in there and debug it.
If this is helpful please mark it so. Also if this solved your problem mark as answer. -
HOW TO add a videos or movies to IPOD TOUCH for first time...
HOW TO add a videos or movies to IPOD TOUCH for first time...
pls send step by step detail wise.. if you have a video for this ..pls mail me...
my email : [email protected]
thanks to allSee:
iOS and iPod: Syncing photos using iTunes
iOS: Syncing with iTunes
iTunes: Frequently asked questions about viewing and syncing videos
iTunes: May be unable to transfer videos to iPhone, iPad, or iPod -
How to suspend the installation after downloading packages via ota for lollipop 5.0.1. on my Note 4. always asks me to install it on notification bar. thank you
If you factory reset, it wont make the update go away, but you should back up and reset before you install the update.
-
How to include external jars - URGENT...
Hi:
I am using Eclipse for development.
My application uses some external jars.
This step is simple in Eclipse, one simply indicates where the jars are to the IDE.
However, when I make an executable JAR file from my project, those external JARs are not included.
So when I run my program, everything is fine until the parts that uses the external JARs.
Does anyone know how to include them outside of Eclipse platform?
I am going to see my client in an hour and of course I can't bring my source and install an Eclipse at my client's computer to show them my demo...
please help... thanx...You add those external jars to the classpath or the jars classpath if you're running the program from a jar. Or put the external jar to JAVA_HOME\lib\ext (IIRC)
-
How to import external jars in a CAF project?
Hello Experts!
Could you help me find out the way to import external jars in a CAF project. I have tried to import the jars
in ejbmodule using "java build path--->libraries". But while trying to build the project it's displaying error and all the imported jars automatically get removed from the list.
I have read that creation DC of type "External Library" can help me.
1) Create a DC of type external library
2) Copy my jars to folder "libraries"
What should I do next? And how can I import my DC of type "External Library" to my CAF project?
Looking forward for your suggestion.
Thanks & Regards
VitalyHi,
This article will guide you how to deploy the external jar files to the application server.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60a0f850-c451-2c10-a6a6-ddcabfa3a65b&overridelayout=true
Add the library project to the public part of your caf project to use the jar files.
Regards,
Gayathri
Maybe you are looking for
-
I have an Australian card associated with itunes and the App Store. However, I am no longer in Australia and I wish to change my country of residence and card to the UK/English. When I try to change country, it says there's a problem with a previous
-
In the photo app animated .gif files animate very, very slowly. So slowly in fact that I thought they were not animating at all. I have one made of of 40 frames and should loop the animation each second and the photo app takes about 5-10 seconds for
-
Cannot send fax from my mac after upgrading to yosemite
I used to be able to send a fax from my Macbook Pro by using Preview and then printing the PDF to the fax capability on my Laserjet colorMFP M475dn. After installing OS X Yosemite: a dialog told me that "Some of the software for the printer is missin
-
How to sync new Macbook Pro with 2011 iMAC on Snow Leapord
Hello, This is my first post so hello! My small business has an office iMAC and a Macbook Air both running 10.6.8. The two aren't synced in any way other than that the Air can access files from the iMAC's hard drive via the network. I have 2 email ac
-
Default language in business one.
The IT department purchased a couple of 64-bit machines running windows 7 pro. One of the machines is reverting the default language to czech as our implementer was a jerk when he updated our system before he quit on our partner. We are running in 20