NoClassDefFoundError...plz help!!
HI All
Iam working ona struts application which uses a jar file. I am using eclipse ide and added the external jar file to the build path. When I am trying to access one of the classes of the jar file it is giving "NoClassDefFoundError". When I am writing the source code in the ide, all the methods and variables are displayed when I press a dot after that class object. so I think, that the class is available for access, but when I run it, its not working. I have written a normal java class for the same in which I have declared every function as static and when I ran it its working fine. But when I am using it in struts using the eclipse ide, its generating the NoClassDefFoundError.
Plz help me..
Thanks sar.h,
you are right!!. I didn't add the external jar into the lib folder, I only added to the external jar files to build path. But when I copied it into the lib folder, its working. But still I am unable to understand, why only that particular class was not accessed, as rest of them all were accessed without copying it into the lib folder. still I'm confused.. anyhow thanks for your help.
Similar Messages
-
Plz help to solve this error in out.println statement
Hi All,
I am pretty new to weblogic8.1.I am Getting a error if i try to concatenate a object to the string in out.println
statement.
For your kind reference progam and error pattern is enclosed.
public class Test extends HttpServlet
PrintWriter out;
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
out=res.getWriter();
String aaa="Google";
out.println("Hai"+aaa);
ERROR IS:
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at Test.doGet(Test.java:15)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
If i use the statement like;
out.println("Hai");
out.println(aaa); ...It works fine
Plz, help me out there.Thanks All.
PrithMy guess is this is a classpath issue. Read weblogic's documentation on how to install the software thoroghly, then re-install it. Double check that JAVA_HOME is set properly, and that you are using a fairly recent Sun Java VM, versus an old MS Java VM...
-
Plz help me on this very simple error
hello everybody...i'm very new to java programming...i'm unable to execute my program though it has been compiled...my coding is something like this and is very easy>>
class abc
public static void main(String [] args)
System.out.println("hello");
and at the time of execution...this error is shown up>>
C:\Documents and Settings\Ishan\Desktop>java abc
Exception in thread "main" java.lang.NoClassDefFoundError: abc
Caused by: java.lang.ClassNotFoundException: abc
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)
Could not find the main class: abc. Program will exit.
plz help me on this. thanks.Follow the instructions in this tutorial:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
See problem solutions here:
http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html -
Error while running jdev on redhat el3 version plz help me
hi pal i m having problem while running jdeveloper 10g in redhat linux el3 patform plz help mee
but i have no problem running jdeveloper 9
error is as follows
root@oracle bin# ./jdev
Oracle JDeveloper 10g 10.1.3
Copyright 1997, 2005 Oracle. All Rights Reserved
java.lang.NoClassDefFoundError: oracle/jdeveloper/vcs/changelist/MultiChangeList
Status
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at oracle.jdevimpl.vcs.generic.esax.VCSHookHandler.class$(VCSHookHandler
.java)
at oracle.jdevimpl.vcs.generic.esax.VCSHookHandler.<clinit>(VCSHookHandl
er.java:91)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.ide.extension.spi.HookHandlerHook$HookHandlerVisitor.start(Unkn
own Source)
at javax.ide.extension.spi.SAXManifestParser$Handler.startElement(Unknow
n Source)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
rser.java:1280)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidati ngParser.java:328)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP arser.java:295)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
at javax.ide.extension.spi.SAXManifestParser.parse(Unknown Source)
at javax.ide.extension.ExtensionRegistry.loadExtension(Unknown Source)
at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtension(Extension ManagerImpl.java:331)
at javax.ide.extension.ExtensionRegistry.loadExtensions(Unknown Source)
at javax.ide.extension.ExtensionRegistry.loadExtensions(Unknown Source)
at javax.ide.extension.ExtensionRegistry.initialize(Unknown Source)
at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionMan agerImpl.java:763)
at javax.ide.Service.getService(Unknown Source)
at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(Unknown So urce)
at oracle.ide.ExtensionRegistry.getOracleRegistry(ExtensionRegistry.java :81)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1049)
at oracle.ide.Ide.startup(Ide.java:672)
at oracle.ideimpl.Main.start(Main.java:49)
at oracle.ideimpl.Main.main(Main.java:25)
root@oracle bin#
Sabin shrestha
[email protected]
Kathmandu Nepalbut i have no problem while running in windows...
my jdk version is jdk1.5.0_06
everything is fine just facing the above problem -
Could you plz help me?!?!?!I'm NEW!!!
Hi to everyone!
I'm new at java,I mean that i just started learning how to program in Java and i have a problem while compiling my fisrt program in Java!
Firstly,i have to say that i have downloaded the jre-1_5_0_04-windows-i586-p.exe and installed it in my pc.From the installation a Java folder was being created.
I used Cygwin(an editor on my PC) in order to write the program :
public class HelloWorldApp {
public static void main(String args[ ]) {
System.out.println("Hello World!");
Then after storing the program i tried to compile it using javac and it outputted :
user@owner ~
$ javac HelloWorldApp.java
bash: javac: command not found
I tried then to use sthg else(java only,not javac) and it outputted
user@owner ~
$ java HelloWorldApp.java
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/java
Well,could you plz help me and tell me where is the problem?
I mean that ,shall i use a different editor or sthg else?
Thanks in advance! : )
Good evening!!!Then save ur prog in bin
folderYou should definitely not do this.
and then compile it will surely work. Bye.You can compile it, though, after saving it to a better place. That's what the path is for. You wouldn't set the path if you were going to store everything in the bin folder.
Instead, store it in a java specific folder under My Documents (Windows) or your home directory. -
Error while opening a module. plz help me, very urgent.
when i try to open a module, the following error message appears on my screen.
" no j2ee component found in d:\krisp\programs\servlets".
i've installed bea in c: drive and my servlet program is in d: drive.
plz help me, it's very urgent.Can you provide some more information? What were you doing when this happened?
Can you post the entire error message?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder> go it says this file doesn't exist. can some1 plz help? how can i put all my application through application folder?
Something really odd is going on. In your first screen shot, I noticed that the Applications folder does not have the proper icon displayed in the side bar. Also, in the title bar it lists it as Applications 08-59-29-909.
Not sure where it's picking up that odd name, unless it's because it's still truly within the Trash folder.
Try this. In the Finder > Preferences > General > turn on "Always open folders in a new window". (I have a feeling you have the default setting with this off).
Now, in Finder > Go > move down and open the Applications Folder from there. Now open the folder where you see all your applications that you show in your screen shot, select all, and move them to this true appliactions folder.
This is what you should properly seeing (but with different apps listed):
See how the Applications folder has the icon of the letter A shaped with a pencil, ruler & pen. -
how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...
Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.
-
Hi,
plz tell me the way to print text/data using printer in flex. I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
I am using flex 3 (flex Builder 3 IDE).
Thanks in advance!!!Hi Sagar,
Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
// Here mainContainer is the container or box id the contents of which you want to print
private function doPrintContainer():void
var printJob:FlexPrintJob = new FlexPrintJob();
if(printJob.start() != true) return;
try
var mainContainerHeight:int = mainContainer.height;
//Increasing the height of the desired component to be printed.
mainContainer.height = mainContainer.measuredMinHeight;
mainContainer.verticalScrollPolicy = "off";
//Adding the resized Component to our FlexPrintjob and then sending the print request
printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);
printJob.send();
//Resizing the component back to normal size
mainContainer.height = mainContainerHeight;
mainContainer.verticalScrollPolicy = "auto";
catch(error:Error)
trace("Error : " + error.message);
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari -
I have an i pod touch 5 and I try to download a new app from the app store so i goto the app store and click download then click it again to install it and it installs but it dont leave an app icon on the home page so i go back to the app store and it says open in a ble box so i click open and it dont open it just keeps saying open and it wont open! please help me!!!!!!!!!!!
I ment blue not ble sorry but plz help!
-
Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps
You said you updated yur 1G iPod to 4.2.1. A 1G can only go to 3.1.3 and thus you must have jailbroken it to get to 4.2.1 and that can cause problems.
ArealDJ wrote:
I have the same problem.. apps won't download and won't open. I have a 1st Gen ipod touch and recently upgraded my MacBook Pro (2012) and as soon as I upgraded the iPod Touch to 4.2.1, this happened. I restored to factory defaults and still cannot dl and open apps. Any way to diagnose this problem? Apple tech charges $29.99 for out of warranty products and if I am reluctant to pay with them telling me its simply a hardware problem. -
I had to restore my Macbook Pro from Time Capsule yesterday and now when I go to log in as my usual Admin, it says there is a FileVault error and my access is denied. I created another temporary Admin acct, but everything I had on my desktop, etc is "gone" I can look up the "drive' or wahtever it's called, but I can't access any of it. All I want to do is log back in as my usual self (the regular Admin) - plz help! Thanks. p.s. I"m (obviously) not that computer savvy!
Triple-click the line below to select it:
/System/Library/CoreServices/Directory Utility.app
Rght-click or control-click the highlighted text and select
Services ▹ Open
from the contextual menu.* The application Directory Utility will open.
In the Directory Utility window, click the lock icon and authenticate. Select the Directory Editor tool in the toolbar. Select Users from the Viewing menu in the toolbar, if not already selected. Select the affected user account in the list. On the right is a list of properties and values. Select the property "HomeDirectory" and delete it by clicking the minus-sign icon directly below the property list. There are two such icons in the window. You want the one on the right, not the one on the left.
CAUTION: Do not click the minus-sign icon on the left, below the user list.
Then click the Save button in the lower right corner of the window. Quit Directory Utility.
CAUTION: There is no "undo" in Directory Utility. If you make a mistake and delete something in the Directory Editor that should not have been deleted, restore your whole system from a backup and start over. I have no other help to offer in that case.
Try again to log in as the affected user. If you can log in, you should find a file in the home folder with the name of the user and the filename extension "sparseimage" or "sparsebundle". Double-click that file. A disk image should open. Copy your files from that disk image to restore them.
I strongly suggest that you deactivate legacy FileVault in the Security & Privacy preference pane, then log out and log back in. Consider activating FileVault 2 if you want that kind of security.
*If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above. -
Error in variables,plz help me
I created a variable del_var.The sql query assosiated with this variable is.
Delete from schema.file_name_table where rownum=1;
After refreshing it.it is deleting first row in the table.But it is resulting in an error
"17003 : null : java.sql.SQLException: Invalid column index java.sql.SQLException: Invalid column index "
Plz help meHi,
You can't use a 'Delete" command at a refreshing variable because at a refresch the variable need to receive a value back and the delete doesn't return value.
Change the command to "select....."
Does it make sense to you? -
Not able to access webservice after migrating from 8.1 to 10.3,plz help
Hi All,
Prev our application was running in weblogic 8.1 and now we moved to 10.3
We are able to deploy our webservice in 10.3 and access the wsdl but we are not able to access the webservice from the client.
Even the testclient is not comming up.
After spending long time in that,now i dont have any clue on this issue.
Plz help on this
Thanks ni advance,
MouliSunil,
We are not seeing any exception.We regenerated the webservice and then deployed in the 10.3
When we make req from the client ,we are getting null response but thing is there are no log trace in the server side for that
folllowing is the input string we are pasing to the method notifyservice
IN the client we pass the wsdl url and then pass the following input string and hit the notifySerivce method
Req:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><object><GLCCode>102431</GLCCode><callBackNumber>888256798</callBackNumber></object>
Res:
<m:notifyService xmlns:m="http://www.testportal.com/outbound/tsp/WowWebservices">
<result xsi:nil="true"/>
</m:notifyservice>
Therre was an exception in the client side,plz check below
javax.xml.rpc.soap.SOAPFaultException: Failed to get operation name from incoming request
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
Thanks For your time,
Mouli -
HT2534 My Apple ID is not working.....plz help
My Apple ID is not working I made it yesterday using my PC .......plz help.......
Try sign in to iTunes and App Store
Settings>iTunes and App Store>Apple ID
Maybe you are looking for
-
how can i find my icloud ID ? i had upgraded my iphone4 to IOS7 and created an Icould ID, after couple of months my phone was restored and when i am trying to use my iphone4 it is asking me for icloud ID please see the exact message in bracket (Thi
-
Change month of a report by selecting the Year in the EPM context bar
Hi All, I am very new on BPC 10 and actually I am trying to make some report. I just try to make a simple thing : display all the month of a year choose by a user (without using the "Editor Report") I made a simple report using EPMOlapMember, but whe
-
Calculations for 6 months from todays date
Need to calculate the total of all the months starting from today's date for the next 6 months from the current date. For ex Month Total 01.07.2008 10 01.08.2008 20 01.09.2008 50 01.10.2008
-
Uploading and sending a PDF document from document management
Hello to all, does anybody know a function module which is able to upload a pdf document stored within the document managemenent system of ERP and then send it via e-mail? Thanks to all Jörg
-
How to set up VLANs for Cisco SG500 - 28 switch
Hi, First of all, this is my first post in here, I hope someone can help me, and please be patient since I am very little experienced. OK, so let me explain you the scenarion that I am facing and hopefully someone will be able to help me. We have a C