Problem when modifying the jar file of a portal component
I get the umelogonbase.jar from the com.sap.portal.runtime.logon component, extract it with winzip, do not make any changes to the source code, then re-create the jar file and add it back to the component. Now, when I deploy the component to the Portal I get the following error:
"Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
com/sap/security/core/logonadmin/IAccessToLogic.
Exception id: 10:30_08/08/07_0012_15067450
See the details for the exception ID in the log file"
any idea what I am doing wrong here?
I am doing this because I need to change the texts in the umelogonbase.jar, so this is the first step to see that the component still runs once I modify the jar file.
Note: I create the jar file by creating a jar-type project in NWDS and then exporting the project as jar.
Do you have JDK installed? If not then please install it by downloading from http://java.sun.com/j2se/1.4.2/download.html. Install it in your local machine. Then inside the installation folder\bin folder you will find the jar.exe.
Also create the environment parameter named JAVA_HOME and set the value as the installation directory of JDK for example JAVA_HOME=C:\j2sdk1.4.2_13. Also add the following to your Path environment variable
C:\j2sdk1.4.2_13\bin;C:\j2sdk1.4.2_13\lib;
these path names should vary depending upon your actual JDK installation folder name.
Regards,
Shubho
Similar Messages
-
Problem when downloading the JAR file
I'm just install JRE and testing my first applet application. I'm facing the problem that I can not download the JAR file from my localhost computer.
I've enable cache in Java Control Panel and running my applet. Normally, it will download the jar file from my localhost and save it to the cache directory of Java. And then finding all classes neccessary to run my applet in the JAR file.
But I discover that I can not download the JAR file and save to my computer. I try to put the URL to download this JAR file (http://localhost/myjar.jar) in my web address, it start to download this file properly. But when open it with WINRAR, I got an error that the file "Unexpected end of file".
I try to put this file from onther computer in my LAN. And use the URL to download it. This time I can open the JAR file with WINRAR althrought the file size is the same
Anyone know why there are some errors when download from my localhost? Thanks in advance for any help!!!Yeah everything matches up!
Could it have something to do with the string encoding? I created the file in ANSI format? Would this have an effect on it? -
How to modify the jar files information for Script Assets??
Hi,
I am using Open Script 9.2. We can add the external JAR files using Script->Script Properties--> Script Assets. I need to change the jar files when ever i am going to execute no of scripts. How can I modify them using JAVA Coding without manual handling. Is there any specific methods existed in OpenScript to serve the above scenario.
Thanks in Advance.
Thanks & Regards,
Siva ThotaHi,
When you say alter the jar file, do you mean alter the contents of the java code within the jar. If this is yes then the simple answer is no. As you are probably aware, a jar file contains pre-compiled java code, which you will not be able to alter. What is it you are trying to achieve?
A simple answer maybe to use a child script which you can include into your main script. You can then change the code in the child script, and when you play back, this 'new' code will be compiled, and included within the replay.
Regards
Wayne. -
Getting error when running the jar file..
Hi All,
I am new to executing jar file..Actually i have one class which contains the following code.
import com.documentum.fc.client.DfClient;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.common.DfLoginInfo;
import com.documentum.fc.common.IDfLoginInfo;
import com.documentum.fc.common.DfException;
import com.fidelity.ftg.ereviewg2.migration.util.MigrationResource;
* This class is used for creating docbase connection
* *@type* DocbaseConnection
* *@author* a405304
* *@see*
public *class *DocbaseConnection {
//public static ResourceBundle resource;
IDfSessionManager sMgr = *null*;
IDfSession session = *null*;
String docbaseName;
*private* *static* DocbaseConnection +docbaseCon+;
* Constructor for DocbaseConnection
* *@throws* DfException
* *@throws* Exception
*private* DocbaseConnection()*throws* DfException, Exception{
//ResourceBundle bundle = ResourceBundle.getBundle(Constants.RESOURCE_PATH,Locale.getDefault());
MigrationResource bundle = MigrationResource.+getBundle+();
String userId = bundle.getString("DOCBASE_USERID");
String password = bundle.getString("DOCBASE_PASSWORD");
docbaseName = bundle.getString("DOCBASE_NAME");
IDfClient client = DfClient.+getLocalClient+();
sMgr = client.newSessionManager();
IDfLoginInfo loginInfo = *new* DfLoginInfo();
loginInfo.setUser( userId );
loginInfo.setPassword( password );
loginInfo.setDomain("");
sMgr.setIdentity( docbaseName, loginInfo );
session= sMgr.getSession( docbaseName );
System.+out+.println("# Connected to Docbase: "+session);
}Now i create the jar file whose name is docbaseconnection.jar
Now when i am running this jar file by using the following command then i am getting the following error..
C:\JAR_FILES>java -jar docbaseconnection.jar
Exception in thread "main" java.lang.NoClassDefFoundError: com/documentum/fc/client/DfQuery
For running this docbaseconnection.jar file i need the following thing in classpath...
C:\Program Files\Documentum\dctm.jar;C:\Program Files\Documentum\Shared\dfc.jar;C:\Program Files\Documentum\Shared\log4j.jar
I already add this jar files in the classpath of environment variables..Then also i am getting the same error..
Kindly help me...........Well, let´s supose your manifest is defined as I did in my previous post. So, your directory base should be something like:
C:\dir
docbaseconnection.jar
dctm.jar
dfc.jar
anotherlibraries.jar
But, let´s supose you want something like
C:\dir
docbaseconnection.jar
lib (folder, which contains dctm.jar, dfc.jar, etc)
Then you should change the class-path of your manifest to
Class-Path: ./lib/dctm.jar ./lib/dfc.jar
That´s what I meant -
Problem in modifying the class file in the jar file
Hi,
We created Support Desk link in the mast head with the help of
com.sap.portal.epsolman.par
it is working fine.but when we submit the error message it will a notification message saying that created Successfully.
But we want to change that notification message to something else.But we found out that we need to change that in the java file .Basically the problem is we dont know, after changing the java file, how do we compile it and put it back into jar file of that par file and deploy on to the portal
java file is Solman.java
points will be awarded for sure
Bala Duvvurihi,
go thru this [link|How to deploy PAR File on portal??]
hope this helps.
Regards,
Nikhil -
"no manifiest section for signature file entry" when run the Jar file
I built an application by using JBuilder 8.0 and it works fine. But when I deploy it into a jar file, whenever I run it, the following exception appears:
Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry javax/security/cert/Certificate.class
at sun.securtiy.util.SignatureFileVerifier.verifySection
Because I didn't do anything about the security when build the application. I am really confused. Can somebody help?I had a similiar problem using NetBeans. There must be a way to view the properties of your jar from Jbuilder and set its manifest. I am very new to this myself, but all I did was edit another manifest and copied into mine. Here is my example manifest:
Manifest-Version: 1.0
Main-Class: J3Ed
The first line is the default line for a manifest. It is very simple and there is much more that could be added, but is not always necessary. I recommend reading the documentation :
http://developer.java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
Also if you have an archiving utility such as powerarchiver or winzip, open your JAR and check to see that you have a MANIFEST.MF file. If you do then edit it where needed, if not create one and its relative location should be set to META-INF/MANIFEST.MF.
Hope this helps. -
Modify the jar file content !!
hi , i have a jar file that i want to add a class to it ... can anyone help ?
What about JAR Files?
The Java ARchive (JAR) format is based on the standard ZIP file format with an optional manifest file. If you wish to >create JAR files or extract files from a JAR file from within your Java applications, use the java.util.jar package, which >provides classes for reading and writing JAR files. Using the classes provided by the java.util.jar package is very similar >to using the classes provided by the java.util.zip package as described in this article. Therefore, you should be able to >adapt much of the code in this article if you wish to use the java.util.jar package. http://java.sun.com/developer/technicalArticles/Programming/compression/ -
Hi all,
I Trying to deploy a simple J2SE app by making an Executable JAR File, however I don'r understand how to add a valid value to the Main Class field.
I followed the following description within Jdev, after creating a Deployment Profile:
Deploying an Executable JAR File
You can make your simple archive or J2EE Client Module into an executable JAR file that you can launch with the java command.
To deploy an executable JAR file:
1) Select and right-click the simple archive or client icon in the Navigator to display the context menu.
2) Choose Properties.
3) Click JAR Options in the tree.
4) Select Include Manifest File (META-INF/MANIFEST.MF).
5) In the Main Class field, enter the fully qualified name of the application class that is to be invoked.
7) Click OK.
8) Launch the executable JAR file from the command line:
java -jar myapp.jar
where myapp represents your JAR file name.
Like I said it's in 5) I'm doing something worng
My deploy-file (PlotPrint.deploy) looks the following:
<?xml version = '1.0' encoding = 'windows-1252'?>
<client-deployment xmlns="http://xmlns.oracle.com/jdeveloper/903/deploy/j2ee-client-jar" nselem="client-deployment" class="oracle.jdeveloper.deploy.jar.ClientProfile">
<archiveOptions>
<additionalManifests/>
<compressed>false</compressed>
<hasManifest>true</hasManifest>
<mainClass>PlotPrintClient</mainClass>
</archiveOptions>
<archiveTargetPlatform/>
<cdaSettings>
<additionalArchives/>
<afterFilters/>
<beforeFilters/>
<duringFilters/>
<selectedArchives>
<archives>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdbc/lib/classes12.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdbc/lib/nls_charset12.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdev/lib/jdev-rt.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/soap/lib/soap.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlparserv2.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jlib/javax-ssl-1_2.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jlib/jssl-1_2.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/activation.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/mail.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/http_client.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/webservices/lib/wsdl.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlparserv2.jar!/"/>
<Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlcomp.jar!/"/>
</archives>
<selectionMode>0</selectionMode>
</selectedArchives>
</cdaSettings>
<defaultConnection class="java.lang.String"/>
<deployClientMaxHeapSize/>
<earURL path="deploy/PlotPrint.ear"/>
<enterpriseAppName/>
<jarURL path="deploy/PlotPrint.jar"/>
<profileDeps/>
<properties/>
<selectedProjectFiles>
<autoInclude>true</autoInclude>
<deploySourceAs>0</deploySourceAs>
<files class="[Ljava.net.URL;"/>
<selectionFilters/>
</selectedProjectFiles>
</client-deployment>
I using Oracle9i Jdev, but have also tried it un the new Jdev 10g version, but the same problem everytime:
Error message: Could not find the main class: program will exit.
Please help I really need this to work
Message was edited by:
MHCI
Message was edited by:
MHCIYes that was the problem so I have changed the element mainClass to
<mainClass>xxPlotPrint.MHCI.PlotPrintClient</mainClass>
But now another probem has occured, since I get the following error when run the jar-file (When I run the app from within Jdev there are no warnings or errors).
----Batch-file-----
@echo off
java -jar PlotPrint.jar
echo Test Plot and Print Batch-file!
pause
---- out to cmd ----
Exception in thread "Thread-0" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
at xxPlotPrint.MHCI.NNE35_worker.run(NNE35_worker.java:42)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-2" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
at xxPlotPrint.MHCI.OCEJobDB_worker.run(OCEJobDB_worker.java:41)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-1" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
at xxPlotPrint.MHCI.NNE27_worker.run(NNE27_worker.java:42)
at java.lang.Thread.run(Unknown Source)
It's the same problem in all three exceptions (the exactly the same code), however I was a bit to quick this is the line (the line before I process the xml doc :-)
import org.w3c.dom.Element;
responseData = new Vector();
responseData = test_NNE35_SOAP.getXSDdoc();
Element elements = ( (org.w3c.dom.Element)responseData.elementAt(0) ); (line 42)
Please help I don't understad why I receive this exception, since I included the xmlparserv2.jar file, and don't even have a workaround :-( -
Problem is when iam exporting the jar file the manifest file chaning
LogWriter.java
MiniBrowser.java
SendMail.java
TestMiniBrowser.java
iam running the site scope program ,program is running fine
i add the mail.jar and activation.jar
when iam Exporting the JAR file ,the Manifest files is changing with out classpath
only showing the like this
Manifest-Version: 1.0
Sealed: true
Main-Class: p1.TestMiniBrowser
Actually i created the manifest files like this ..
Manifest-Version: 1.0
Sealed: true
Class-Path: mail.jar activation.jar icsops.jar
Main-Class: p1.TestMiniBrowser
problem is when iam exporting the jar file the manifest file is changing then iam not able the run the jar file ..iam Useing Eclipse sdk3.1
after exporing the jar the manifewst is canging but iam updating mauvally but when iam runingg the jar file
D:\pavansitescope>set calsspath=%classpath%C:\j2sdk1.4.1_03\bin;.;
D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\mail.jar;.;
D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\activation.jar;.;
D:\pavansitescope>set calsspath=%classpath%D:\pavansitescope\mail-plugin.jar;.;
D:\pavansitescope>java -jar icsops.jar
Arguments Usage:
1. URL link
2. From Address
3. To Addresses (seperated by comma)
4. Mail Server Host Name
D:\pavansitescope>java -jar icsops.jar [http://69.27.230.104/SiteScope/accounts/l]
ogin5/htdocs/Progress.html [[email protected]|mailto:[email protected]] [[email protected]|mailto:[email protected]] HYDMA
IL03
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingE
xception
at p1.TestMiniBrowser.start(TestMiniBrowser.java:42)
at p1.TestMiniBrowser.main(TestMiniBrowser.java:156)
D:\pavansitescope> -
When I download an add-on such as Colorful Tabs and start the installation process, I receive a message that Firefox cannot install the add-on because it cannot modify the necessary file. To what file is this referring?
That is usually caused by Firefox not unpacking the extension.
You can try to set the Boolean pref <b>extensions.alwaysUnpack</b> to <i>true</i> on the <b>about:config</b> page.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
*Use the Filter bar at to top of the about:config page to locate a preference more easily.
*Preferences that have been modified show as bold (user set).
*Preferences can be reset to the default via the right-click context menu if they are user set
*Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean) -
Where shall i save the jar file when i'm using a parser(JDOM) in jwsdp
I'm using jwsdp These errors are coming
when i compile.where shall i save the jdom.jar file?
do i have to change the server.xml file in jwsdp-1_0\conf directory ?
import org.w3c.dom.*;
^
MetaBuilder.java:4: cannot resolve symbol
symbol : class DocumentImpl
location: package dom
import org.apache.xerces.dom.DocumentImpl;
^
MetaBuilder.java:5: cannot resolve symbol
symbol : class DOMImplementationImpl
location: package dom
import org.apache.xerces.dom.DOMImplementationI
^
MetaBuilder.java:6: cannot resolve symbol
symbol : class Document
location: package dom
import org.w3c.dom.Document;
^
MetaBuilder.java:7: cannot resolve symbol
symbol : class OutputFormat
location: package serialize
import org.apache.xml.serialize.OutputFormat;
^
MetaBuilder.java:8: cannot resolve symbol
symbol : class Serializer
location: package serialize
import org.apache.xml.serialize.Serializer;
^
MetaBuilder.java:9: cannot resolve symbolHello,
the *.jar file thing is a common problem in Java. One simple solution to the problem is by saving the *.jar file in the C:\j2sdk1.4.0\jre\lib\ext\ folder. This directory is an extension to the regular java files and by doing this, java will look in this directory if you import some other files not included in the java package. This does not work if you are using JBuilder, couse JBuilder installs its own jsdk, which is uses, probably under the JBuilder folder.
TheLaw -
How to avoid the split problem when uploading the data from csv file
Dear Friends,
I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
i am using the code as below , please suggest me what i have to do in this regard
SPLIT wa_raw_csv AT ',' INTO
wa_empdata_csv-status
wa_empdata_csv-userid
wa_empdata_csv-username
wa_empdata_csv-Title
wa_empdata_csv-department.
APPEND wa_empdata_csv TO itab.
in the flat file i can see for one of the record for the field Title as
Director, Finance - NAR............there by through my code the wa_empdata_csv-Title is getting splited data as "Director, and Department field is getting Finance - NAR" , i can see that even though " Director, Finance - NAR" is one word it is getting split .
.......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
"Director,Finance - NAR" wil not be split into two words.
Thanks & Records
MadhuriHi Madhuri,
Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
If you are generating the file, use tab instead of comma.
If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
Regards,
Mohaiyuddin -
I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update, 11.4.62 (on a PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it (Ugh). First result Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there. Second result, upon installing iCloud again, I have two iCloud contact files shown in outlook - "iCloud" & iCloud, within iCloud". 1,332 & 1,385 contacts respectively.
Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere. This is NOT fun at 72-yrs old...!!
So, how do I make sure I haven't lost anythying from Outlook? Russ-AZInteresting response, Kappy - Back to original post: "First result: Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there (therefore, initially I had lost my contact file from Outlook). Second result, upon installing iCloud again, I now have two iCloud contact files shown in Outlook - "iCloud" & iCloud, within iCloud". W/ 1,332 & 1,385 contacts respectively.
Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere. This is NOT fun at 72-yrs old...!!
So, how do I make sure I haven't lost anythying from Outlook? Russ-AZ"
You can safely assume that I have tried using it! So, to make things a little clearer:
1) I now have two iCloud "contacts files", w/ a different total count. What's the difference? Why the different toatl count?
2) Since re-installing the Apple software (part of the MSVCR" recovery instructions) "couldn't possible affected Outlook", why am I getting an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere. What's in those files? And where are they?
Probably more important questions get down to:
3) Why is a basic Apple product upgrade "screwing-up Outlook"? This iTunes upgrade, failing to install properly forced Outlook 2007 into a 2-min start-up cycle. Which was fixed with this "Goat-Rpdeo" of re-installing MSVCR80.dll.
4) And under the latest release of iOS-7.0.4 on our iPhones, why is Apple now forcing us to use the iCloud to back-up our contacts, calendars & tasks, vs. allowing these files to be backed-up directly on our PC's via the USB cable?
Thanks again for your interest and comments. - Russ-AZ -
When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?
That is usually caused by a missing unpack directive (<em:unpack>true</em:unpack>) in the file install.rdf of that extension.
See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
----- -
Regardeless of the file name, I get the same message:
The jar file "NAME OF FILE-fx.jar" couldn't be launched. Check the Console for possible error messagesAlthough possibly not related to your problem, I have to remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. On top of this, it has known unpatched bugs and security problems. I urge you to update to the latest version of Firefox, for maximum security, stability, performance and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
Maybe you are looking for
-
Query to populate an alert message to avoid the duplication of Reference no
Hi Experts, SUB:Query to populate an alert message to avoid the duplication of BP reference no. In A/R invoice, BP reference (numAtcard) is used to enter sales Order no as the reference number. As human error, double A/R invoice is created to that pa
-
How do I convert a pdf in word and if I did where did it go or get sent to...
Look I am not looking to discuss anything all I want is to convert the PDF into word.... I thought I did and it even looked like I did ... but I can't find it... just want steps to convert pdf to word document
-
Should I use a keyboard cover with the new retina screen?
Someone in an apple store told me I shouldn't use a silicone keyboard cover on the new 13" macbook pro w/ retina because apparently theres not enough space for it when the laptop is closed and its been causing faults? Anyone know anything about this?
-
when we are using the WMA package and we try to send a message we get a alert is there any way by which we can go round it without having to press yes every time.. it is a big problem as the mobile phone should be able to respond to the incoming mess
-
Can I share calendars on a mac running 10.6 with a mac running 10.4?
I'm using DropBox. I'm guessing the files for iCal on 10.6 are not the same (ant not compatible) as/with the files used on iCal in 10.4 correct?