Jar file can not work well
Hi All,
an error: base.ejb.command.CommandException: crypto.ITrustConfig.isAllowRecallSecurityQuestionAndAnswerEmpty()Z
throwed by the tomcat server.But the source code does not have a character "Z" followed by the method. Any body encounter the same problem or give me some advice?
What is the return type?, and how is toString implemented for the class?
Similar Messages
-
Seek your help about the issue of Sun JES can not work well in HP9000
Recently I am testing Sun JES (Java Enerprise System) 2005Q4 in HP9000 (HP-UX 11.11), but I encountered some troubles, after installation, Sun AM -- Access Manager (its old name is Identity Server) and Sun Portal Server can not work well, others (such as Sun App Svr, Directory Svr, Admin Svr) are OK.
When I try to access AM admin console (http://myhost.mydomain.com:8080/amconsole), exception was thrown as below:
exception
javax.servlet.ServletException
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:300)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.lang.NoClassDefFoundError
com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:99)
com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:242)
com.iplanet.am.console.base.ConsoleServletBase.checkAuthentication(ConsoleServletBase.java:355)
com.iplanet.am.console.base.ConsoleServletBase.validateSSOToken(ConsoleServletBase.java:238)
com.iplanet.am.console.base.ConsoleServletBase.onBeforeRequest(ConsoleServletBase.java:188)
com.iplanet.jato.ApplicationServletBase.fireBeforeRequestEvent(ApplicationServletBase.java:1105)
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:591)
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
After many test, I still can not finger out what is the real reasons casued this exception in HP-UX.
The possible risk is JES 2005Q4 requires some software and hp-ux bundles patches before install JES, but I can NOT find the exact version of them from hp web site, and use corresponding higher version to release them.
JES 2005Q4 needs:
Perl (B.5.6.1.F) HP-UX11i
Tour A.02.02
Libiconv 1.9.2
GOLDAPPS11i & GOLDBASE11i (June 2004, B.11.11.0406.5)
I installed:
perl_D.5.8.0.G_HP-UX_B.11.11_32+64
TOUR_B.03.01_HP-UX_B.11.11_32_64
libiconv-1.11-hppa-11.11
GOLDQPK11i_B.11.11.0612.459
I am very appreciated for your help!
Thanks!!
Vhu
===============
some test env:
bash-3.00# uname -a
HP-UX rp3440 B.11.11 U 9000/800 1110163507 unlimited-user license
bash-3.00# java -version
java version "1.5.0.01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.01-_06_jun_2005_05_20)
Java HotSpot(TM) Server VM (build 1.5.0.01 jinteg:06.06.05-04:39 PA2.0 (aCC_AP), mixed mode)
JES media:
java_es_05Q4-ga2-hpux-parisc.zip
installed components in JES: App Svr, AM, Portal Svr, Directory Svr, Admin Svr.This is a double posting, please only post in one discussion at a time.
Keynote 6.5 is stable and reliable under Yosemite for most users.
As with all new operating systems and applications, a small number of users find a few problems.
Copy and pasting text from and into Keynote from all the applications I have, work perfectly: the applications include; Safari, Mail, Word, PowerPoint, excel, Pages, Numbers, iMovie, Photoshop, InDesign, Illustrator.
If you want to place graphics into Keynote, use one of the following methods:
Insert > Coose
click the media button on an image placehoder
click the media button on the tool bar
drag and drop from a Finder window
Copy and pasting images into Keynote is not supported -
.jar file is not working properly :developed in NETBEANS
Hi Gurus,
i am using NETBEANS IDE 7.2.
i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
but when i run executable .jar file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
this is how i call the .bat file...
String filePath = "D:/pms/Libraries/portlib.bat";
try {
Process p = Runtime.getRuntime().exec(filePath);
} catch (Exception e) {
e.printStackTrace();
and below is the contents of portlib.bat file
java -jar "D:\SMS\SMS\dist\SMS.jar"
you must probably ask why i am calling a .jar file using .bat file .
reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working ,
thanks.Thanks Sir ,
You need to first test an example that works like the one in the article.
There are plenty of other examples on the web - find one you like:
http://javapapers.com/core-java/os-processes-using-java-processbuilder/
I tried this one.
try {
ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
File commands = new File("D:/SMS/SMS/Send_message.bat");
File dirOut = new File("C:/process/out.txt");
File dirErr = new File("C:/process/err.txt");
dirProcess.redirectInput(commands);
dirProcess.redirectOutput(dirOut);
dirProcess.redirectError(dirErr);
dirProcess.start();
} catch (IOException ex) {
Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
as instructed in the article i compiled both the projects at same version or sources and libraries which is 1.7
here is my version details
C:\>javac -version
javac 1.7.0_07
C:\>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
inside the NETBEANS IDE c:\process\err.txt remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
here is the error text
java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
here is /SMS/SMS
unknown source ? -
Hi,
I have an Applet packed in a JAR file. It works very well in my local site, but when I upload it to internet it throws a java.lang.ClassNotFoundException: nibbly
Of course I've checked names, cases, files are in the same directory.
The html code is very simple:
<APPLET ARCHIVE="nibbly.jar" CODE="nibbly.class"
WIDTH=402 HEIGHT=350>
</APPLET>
Any help or advice would be appreciated.
Thank youyou can see the error in
www.magnino.terra.cl/arch/nibbly.html
I will check the "binary mode" of my FTP
the nibbly.jar is in the same directory of the nibbly.html page
thank you
Luis -
FM: ALSM_EXCEL_TO_INTERNAL_TABLE can not work well.
I want to upload an excel file, but unfortnately, I found the function
ALSM_EXCEL_TO_INTERNAL_TABLE does not work well.
As you know, the uploaded data will be seperated by #.
but no reason ,there will be double ## between the data.
More exactly, the ideal data should be
Wrong !
Row Col value Row Col value
001 001 A 001 001 A
001 002 B -> 001 002 B##C
002 001 C 001 003 D
002 002 D
Could you kindly explain what on earth the problem is?
My office (excel) version is office 2003
and SAP' is 620 (batch lever is 57)
thanks a lot!ALSM_EXCEL_TO_INTERNAL_TABLE works well with almost all types of excel sheets.
But it do produce problems when there are blank column values in between.
Refer these links might help you -
Re: Problem with ALSM_EXCEL_TO_INTERNAL_TABLE
FM "ALSM_EXCEL_TO_INTERNAL_TABLE Documentation
Regards,
Amit
Reward all helpful replies. -
Jar file is not working after deleting all packages from the same directory
hello
i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
Please tell me what may be the reason???
thanks in advancedhello
i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
Please tell me what may be the reason???
thanks in advanced -
.jar file suddenly not working
I have some minimal experience working with .jar files, but I am baffled here.
Recently, the jar file for one of my programs stopped working. I had just made a change to my main class, so i repackaged the jar. Now it says "Can't find main class" when I try to run it. It will only work if I add the line
Class-Path: . (there is a period there)
to my manifest.
This would be fine, but I want to use exe4j to make it into a Windows executable. exe4j must do something where it does not honor the mainifest settings, because the executable gives out a "can't find main class" error no matter what.
What has happened? It is only an issue with this program, i have repackaged several others to test, and they work without the "Class-Path" workaround. I'm pretty sure that it's not something in the nature of the program itself, because it worked eariler, and my only change was a small one (the text of a few JLabels).
I have made sure that my main class is in the root of my jar file, and I have the Main-Class attribute correctly set in my manifest. The program runs fine outside the jar, but displays this odd behavior only when "jarred".
Any help would be greatly appreciated.also, it's only the one class that's affected.
I tried setting the Main-Class to other classes in the jar, and that worked fine. When I tried to make a workaround, making one of the other classes' main call the one I wanted, i got a "fatal exception" error. I'm pretty sure it still couldn't find the file. -
My JAR file is not working properly!!!
Hi everyone,
I made an application that has a GUI (window). I converted it into a JAR file so I can send it to a friend by email. Then she can run it to generate the output. First, the user has to select a destination to save the .txt file (using JFileChooser). Then enters the inputs (using JTextFields). Clicks "Run" button (Results will be calculated and copied to the file). A Message will appear indicating that the results are copied. The problem is that when I run the application in the IDE (Eclipse) it works fine. But when I convert it into JAR, The moment I click the "Run" button, suddenly the window closes. Please HELP???
Thank youDrClap wrote:
Eng.Sh_2004 wrote:
Sorry guys, but i would like to make things clearer, As I mentioned earlier, What i'm doing is the following: 1) Using the Jfilechooser, save the results into a filename.txt file _[main class in the manifest file (class for the GUI) ]._ 2) Click "run" to write the data to the created file in step 1 [_another class is used to write to file_]. I have a feeling that the problem is related to the manifest main class. What do you think guys?I think your description of the problem is very bad. And I think your idea of making wild guesses is a bad way of diagnosing problems.
First of all. A JFileChooser does not save anything. It just allows the user to select a file to be saved to. So if you thought that the first step was writing anything or creating any file, you're probably wrong. But examining the code would help you understand.
Second, if you're having problems because one class chooses the file name and a second class writes data to it, then you're probably running into the basic beginner problem we see around here all the time of how to communicate data between objects. Again, examining the code might help.
Third, you need to understand what is writing that error message. Examining the code would help there too.
So: stop guessing. Look at the code.I'm still New To Java that's why i find difficulty in problems diagnosis. Regarding the JAR problem, as you mentioned, I used JFileChooser to select a file and (copying data) is the other part. So I will look at the code again.
Edited by: Eng.Sh_2004 on Aug 26, 2010 1:10 PM -
Help -- Trying to create JAR file but not working
Hi everyone
I have created a rather noddy Java program that consists of 4 JComboBox's and 1 JButton on a JFrame.
When the button is clicked a text file is generate with the options that have been selected.
There are severial files that the program uses for this:
gcc.java
OutToFile.java
gccConfirm.java
MyNewWindow.java
main.java
I am using Jcreator and so must use the command line to create the Jar file.
I have never done a jar file before so I did an example with a hello world program and got it working now problem. I did the same for this program and the JAR file is generated without error. I double click on the JAR file to run the application, but nothing happens. I can see the application running in memory but nothing loads on the screen. However if I run it from the command line using Java -jar gcc.jar then everything is ok.
can anyone help me here?
thanks in advanceIf you run you .jar from the command line (a shell in unix speak) there
already is a console where your java program can send it's System.out
stuff. Right click on your .jar and select 'properties' (or similar). Note
that your .jar is run by 'javaw'. This executable is similar to the 'java'
executable except that it doesn't open a console for you. Change the
'javaw' command to 'java' and voila, there's your console again.
kind regards,
Jos -
Executing jar file does not work
i am using net beans 4.1, jdk 1.4.2_09 and jre 5.0 update 4.
i create a jar in netbeans, exit netbeans, go to the directory where the jar has been placed and double click the jar file to run it. when i do so i get an hour glass momentarily and then nothing. the program does not execute. i hope i am not missing something very basic here. i assume i can run the program by double clicking the jar file ....
i have checked in netbeans to insure that all classes are in the jar, the manifest looks good, etc, etc. it looks like all the pieces of the jar are in place but the program will not run. please help.
thanks,
dave ...Directory of C:\JAVA\PROJECTS\DIST
10/04/2005 10:09 AM <DIR> .
10/04/2005 10:09 AM <DIR> ..
10/04/2005 10:09 AM 25,203 gift_email.jar
1 File(s) 25,203 bytes
2 Dir(s) 124,456,144,896 bytes free
C:\JAVA\PROJECTS\DIST>echo %CLASSPATH%
c:\java\projects\dist;c:\Program Files\netbeans-4.1\ide5\modules\ext
C:\JAVA\PROJECTS\DIST>java -jar gift_email.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
at giftrecpt.email.gift_email_gui.initComponents(gift_email_gui.java:38)
at giftrecpt.email.gift_email_gui.<init>(gift_email_gui.java:24)
at giftrecpt.email.gift_email_gui.main(gift_email_gui.java:142)
C:\JAVA\PROJECTS\DIST>
i added the location of the absolutelayout method to the classpath but still get the error. i also included this same reference in netbeans to the project under run-time libraries. so it seems that i have added the necesary references but still no luck. what could i be missing? the manifest makes no mention of class path. here it is below:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2_09-b05 (Sun Microsystems Inc.)
Main-Class: giftrecpt.email.gift_email_gui
X-COMMENT: Main-Class will be added automatically by build
thanks,
dave ... -
Webex can not work well on firefox on linux 64 bit? I need I solution please
when I try to work on webex,the program loads but I can not share my desktop or use the audio device.
Hi,
Unfortunately Webex does not support desktop sharing on Linux. This is not a Firefox related issue but a Webex one.
Sorry about that!
Curtis -
Can I downgrade to 5.1 from 6.1? Just updated to 6.1 and hate it! iTunes is not working well at all! Shuts down!
i believe there is a way to revert to an older os if you still have the file on your pc...if not then you'll have to take it up with apple...maybe they can give you a link to an older version...do not follow the links on google, for most of these have a malware hidden within...i found this out the hard way
-
After I upgraded to IOS 8 my iPhone is not working well at all .. the most serious issue is the wifi which is too slow and can't connect to apple store and can't update my application .. also tried to search or update for ios 8 but also can't connect . safari also always can't connect to any the server . please check and advise
Hey ahmedfromtanta,
Thanks for the question. After reviewing your post, it sounds like trouble with Wi-Fi. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
iOS: Troubleshooting Wi-Fi networks and connections
Thanks for using Apple Support Communities.
Have a nice day,
Mario -
I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?
Thank you for your time Woody. Recently the Mac seems to freeze a lot, seemingly due to a problem with the airport, especially if the computer is inactive for anything more than a few minutes. Then yesterday I suddenly couldn't send or receive messages so I got in touch with my server and they reconfigured the mail account. I can now receive messages but can't send them, always getting a timed out message when I try to send an email. I phoned the server again and they said it must be a problem with Mail as we tried sending a message online from the server's webpage and it worked fine, so they suggested I reinstall Mail. So hence my original question. Sorry for the rambling! I'm not very computer minded.
-
I upgraded my 3gs to ios5 and the sound of the messages is not working well, it's slow and my bluetooth definitions are not stable how can i get back to the ios4
App Store->Purchased
iTunes->Purchased->Download All
Maybe you are looking for
-
Restating my issue / question... When I send email from this iMac, there is a string of characters assigned. The characters are all the "alpha numeric" characters on the QWERTY key board. This only occurs when email is sent from this iMac. The issue
-
Your suggestions would be greatly appreciated.
-
HT5624 I can't buy gold for my game ( game of war fir age )
Hey there I can't buy gold from iTunes Store from the game I don't know why Can you help me please guys Thanks you very much
-
Converting connection string to localDB to database in azure
Hello there, I have an application that I'd like to upload on Azure (I have the free subscription, not that it matters anyway) and this application connects to a database where I store a few bits of data (only text based entries so really small). Now
-
MSS iview talent profile internals
hello experts, in the MSS iView talent profile (See help link below) http://help.sap.com/erp2005_ehp_04/helpdata/EN/9e/71dad0aba74a62a07bdee6edf8d91f/content.htm information is presented in two visual areas (left and right): 1. the left side shows in