Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Hi,
I am trying to build my project using ant tool, but it is erroring out as follows:
Buildfile: D:\My Software\eclipse\workspace\ShoppingCart\build.xmlprepare:compile: [javac] Compiling 2 source files to D:\My Software\eclipse\workspace\ShoppingCart\build\WEB-INF\classes [javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath BUILD FAILEDD:\My Software\eclipse\workspace\ShoppingCart\build.xml:46: Compile failed; see the compiler error output for details. Total time: 1 second Please find the build.xml:
<project name="Shopping Cart" default="compile" basedir="."> <property name="app.name" value="ShoppingCart" /> <property name="app.path" value="/${app.name}" /> <property name="app.version" value="0.1-dev" /> <property name="build.home" value="${basedir}/build" /> <property name="catalina.home" value="C:\Program Files\Apache Software Foundation\Tomcat 5.0" /> <property name="dist.home" value="${basedir}/bin" /> <!--<property name="docs.home" value="${basedir}/docs" /> --> <property name="manager.url" value="http://localhost:8080/manager" /> <property name="src.home" value="${basedir}/src" /> <property name="web.home" value="${basedir}/web" /> <property name="lib.home" value="${basedir}/WEB-INF/lib" /> <target name="all" depends="clean,compile" description="Clean build and dist directories, then compile" /> <target name="clean" description="Delete old build and dist directories"> <delete dir="${build.home}" /> <delete dir="${dist.home}" /> </target> <target name="prepare"> <!-- Create build directories as needed --> <mkdir dir="${build.home}" /> <mkdir dir="${build.home}/WEB-INF" /> <mkdir dir="${build.home}/WEB-INF/classes" /> <!-- Copy static content of this web application --> <copy todir="${build.home}/web"> <fileset dir="${web.home}" /> </copy> <!-- Copy external dependencies as required --> <!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** --> <mkdir dir="${build.home}/WEB-INF/lib" /> <copy todir="${build.home}/WEB-INF/lib"> <fileset dir="${lib.home}" /> </copy> <!-- Copy static files from external dependencies as needed --> <!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** --> </target> <target name="compile" depends="prepare" description="Compile Java sources"> <!-- Compile Java classes as necessary --> <mkdir dir="${build.home}/WEB-INF/classes" /> <javac srcdir="${src.home}" destdir="${build.home}/WEB-INF/classes" bootclasspath="${lib.home}" source="1.5"/> <!-- Copy application resources --> <copy todir="${build.home}/WEB-INF/classes"> <fileset dir="${src.home}" excludes="**/*.java" /> </copy> </target> <target name="dist" depends="compile" description="Create binary distribution"> <!-- Copy documentation subdirectories <mkdir dir="${dist.home}/docs" /> <copy todir="${dist.home}/docs"> <fileset dir="${docs.home}" /> </copy> --> <!-- Create application JAR file --> <jar jarfile="${dist.home}/${app.name}-${app.version}.war" basedir="${build.home}" /> <!-- Copy additional files to ${dist.home} as necessary --> </target> </project> thnx,
Rakesh
Sounds like your JBuilder environment is screwed up; see what the classpath and bootclasspath are set to, and correct the error. (This is a question that belongs on a JBuilder website.)
Similar Messages
-
Win8繁体装lv打包的程序出错fatal error unable to find initialization file
win8繁体装lv打包的程序出错fatal error unable to find initialization file
我的labview是2012简体版本,在win7简体系统上开发
-
Well, now I'm pulling my hair out even more because I can't get it to resolve anything in jaxws-rt.jar at runtime. Note: compile-time still works FINE.
I was messing with classpaths and stuff (and the endorsed dirs option of course) and it was "working" to the extent I had posted before, but then I kept playing with it and at some point I said, this isn't working and I need to reset all this stuff back to the way it was.
... so I did that. And now it won't resolve "PolicyException:"
java.lang.NoClassDefFoundError: com/sun/xml/ws/policy/PolicyException
This doesn't mean anything to you guys I bet, but that happens when it FIRST gets inside the web service code, which references PolicyException (doesn't even use it at that point.. I'm assuming the import is screwing it up when it's in the constructor). So now it won't resolve at all. Before, it was getting past this point and telling me the "method not found" error on the next line or this same error for WSBindingProvider two lines down, when it's actually being used. AWESOME.
I downloaded the latest jaxws-rt.jar and all its dependencies, shoved that into my lib folder, and set the endorsed dir to that folder (There's kind of a web of dependencies here. jaxws-rt.jar expects all its dependencies to be in the same folder, it seems, so I don't know how it was "working" before when I just copied jaxws-rt.jar into my separate endorsed dir - but I can't move all of those files to endorsed because I need them in my project (which expects them to be in the lib folder)). What happened? It went back to my original "String" error (first error in the first post), which means it's not getting endorsed at all from that location.
What a mess.
Can someone tell me what the heck I'm supposed to do with this jar file? -
Hi all,
i try to use pfi with a project that i did with air in flash builder.
I make my swf with ant task
<target name="releasecompile" depends="init">
<echo>
Ant Task :: releaseCompile
</echo>
<java jar="${MXMLC.JAR}" fork="true" failonerror="true">
<arg value="-debug=false"/>
<arg value="+flexlib=${SDK_HOME}frameworks"/>
<arg value="+configname=air"/>
<arg value="-file-specs=${MAIN_SOURCE_FILE}"/>
<arg value="-output=${build}/${APP_ROOT_FILE}"/>
<arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5.swc" />
</java>
</target>
i have a swf in result and i play pfi like this
./pfi -package -target ipa-ad-hoc -provisioning-profile /Users/stef/Desktop/PROJECT/PROJECT_Config-2.mobileprovision -storetype pkcs12 -keystore /Users/stef/Desktop/PROJECT/Certificats2.p12 -storepass mypass /Users/stef/Desktop/PROJECT/PROJECTConfig.ipa /Users/stef/Documents/Adobe\ Flash\ Builder\ 4/PROJECT/src/PROJECTConfigurateur-app.xml -C /Users/stef/Desktop/PROJECT/ PROJECTConfigurateur.swf Default.png icons/Icon57.png icons/Icon29.png icons/Icon512.png
Exception in thread "main" java.lang.Error: Unable to find named traits: org.puremvc.as3.multicore.patterns.facade::Facade
at adobe.abc.Domain.resolveTypeName(Domain.java:195)
at adobe.abc.Domain.resolveTypeName(Domain.java:112)
at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:274)
at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:837)
at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:388)
at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:280)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:160)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:329)
at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:196)
at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:366)
at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
at com.adobe.air.ipa.PFI.main(PFI.java:112)
do you have some ideas about this ?
Regards
StefOk,
<target name="releasecompile" depends="init">
<echo>
Ant Task :: releaseCompile
</echo>
<java jar="${MXMLC.JAR}" fork="true" failonerror="true">
<arg value="-debug=false"/>
<arg value="+flexlib=${SDK_HOME}frameworks"/>
<arg value="+configname=air"/>
<arg value="-file-specs=${MAIN_SOURCE_FILE}"/>
<arg value="-output=${build}/${APP_ROOT_FILE}"/>
<arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5. swc" />
</java>
</target>
I mistake this line
<arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5. swc" />
must be
<arg value="-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5.swc" />
for include the content in the swf.
Regards
Stef -
I've been developing an AIR application for Android and iOS. During development, I've run the application (in debug mode) in the desktop simulator as well as on an iPhone 4 and a Nook Tablet.
However, I recently tried to "Export Release Build" for iOS and hit the following error: (I've stripped out the package and class information in the error message below)
!ENTRY com.adobe.flexbuilder.project 4 43 2012-04-06 13:09:15.516
!MESSAGE Error occurred while packaging the application:
Exception in thread "main" java.lang.Error: Unable to find named traits: valid.package.path.here::ValidClassName
at adobe.abc.Domain.resolveTypeName(Domain.java:231)
at adobe.abc.Domain.resolveTypeName(Domain.java:148)
at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6665)
at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
Compilation failed while executing : ADT
!STACK 0
java.lang.Exception
at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1019)
at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doPackage (ExportReleaseVersionWizard.java:283)
at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:152)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)
at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
The class the error message is referring to is defined with a SWC that my project links to. However, I've even tried to define a class with that same name (and location) within my project and it still fails to find it.
Why am I able to Project->Clean and run this project within the desktop AIR player (or on the device in debug mode) but unable to export it as a release build?
I have found a couple of threads mentioning a similar error but none of them have been marked as resolved.At this point I feel I am talking to myself, but I will share my work-around in case it helps another who may stumble across this post.
In my particular case, both my main AIR application and my ANE wrapper library were referencing the same external Flex library (same revision). Both projects had the library linkage set to merge. Changing the linkage to "External" on one of the 2 libraries (it doesn't seem to matter which) and leaving the other as "Merged into code" enabled the export to complete without the bizarre "Unable to find named traits" error. -
Cannot find class java/lang/Thread
I'm getting this error trying to compile a program that I'm writing in java. Its a very simple program just to get me back to basics. Any ideas as to how I can fix this problem??
Extracted from Sun's website,
* Error Message: "Exception in thread NULL" or
"Unable to initialize threads: cannot find class java/lang/Thread"
If you are getting one of these fatal error messages when running java,
javac, or appetviewer, you should check your CLASSPATH environment variable.
It may list "c:\java" or the "classes" directory from an older release. You can either unset the CLASSPATH variable, or set it to
include only the latest version of the Java platform class library. For example:
C:\> set CLASSPATH=.;C:\jdk1.1.8\lib\classes.zip
This will make sure that you are using the correct classes for this release.
-- Sudha -
SIM Error - Unable to find screen - Create Item Ticket and Signer error
Hi,
When I bring up the SIM application from Eclipse, everything works normally.
But I navigate to ITEM TICKET SCREEN, and here when i click on Create , to create an Item Ticket,
ideally It should open the Item Ticket Detail Screen,
instead it throws an error,
2013-01-14 11:30:16,855 ERROR [AWT-EventQueue-1][application.NavigationManager] Unable to find screen: oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailScreen
and the screen is not opened, it just maintains the current screen which is ITEM TICKET LIST SCREEN,
but this is present in Navigation.xml screen and then i am able to find it in one for the project folders,
Any idea why exactly I am getting this issue, any way to make it work fine.
it was working sometime back, and i dont think any change regarding this has been made.
sim version :13.2
in a totally un-realted scenario (that's what I think, there is one more class "NEWRetailItemSearchProcessor", for this I get an exception,
signer information does not match signer information of other classes in the same package
I have two questions,
1. Is it because of the signer Issue, I am getting the other error -"*Unable to find screen: oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailScreen*"
2. How do I resolve the signer issue,
it says,
class "oracle.retail.sim.closed.simclient.editor.NEWRetailItemSearchProcessor"'s signer information does not match signer information of other classes in the same package
but in this package "oracle.retail.sim.closed.simclient.editor" -- there is no other class except the one mentioned NEWRetailItemSearchProcessor
2013-01-14 11:30:16,855 ERROR [AWT-EventQueue-1][application.NavigationManager] Unable to find screen: oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailScreen
2013-01-14 11:30:16,855 ERROR [AWT-EventQueue-1][application.NavigationManager] java.lang.SecurityException: class "oracle.retail.sim.closed.simclient.editor.NEWRetailItemSearchProcessor"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:776)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailPanel.initializeScreen(ItemTicketDetailPanel.java:136)
at oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailPanel.<init>(ItemTicketDetailPanel.java:116)
at oracle.retail.sim.shared.swing.itemticket.ItemTicketDetailScreen.<init>(ItemTicketDetailScreen.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.retail.sim.closed.application.NavigationManager.createScreen(NavigationManager.java:166)
at oracle.retail.sim.closed.application.NavigationManager.startScreen(NavigationManager.java:183)
at oracle.retail.sim.closed.application.NavigationManager.navigate(NavigationManager.java:78)
at oracle.retail.sim.closed.application.SimplifiedApplicationFrame.navigate(SimplifiedApplicationFrame.java:221)
at oracle.retail.sim.closed.application.SimplifiedApplicationFrame.actionPerformed(SimplifiedApplicationFrame.java:211)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at oracle.retail.sim.closed.swing.event.HotKeyEventQueue.dispatchEvent(HotKeyEventQueue.java:34)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Edited by: 924506 on 14 Jan, 2013 3:53 AMto fix the signer issue
1) open the jar which contains required class file( i mean the one which gets called when u click on item tick button)
in winrar software
2) and remove below files
manifest.mf and mykey.sf or somthing.sf
then resign your jar and deploy it.
i hop this would work fine.
some time what happen when we sign the jar it does not removes old sign instead removing it enter one more entry in that file
hence it has two entry.
its better to follow above steps. -
Error: Unable to find class for bean
Dear all,
please help help with the problem
i've a jsp as follows:
<@page import="java.util.*, com.abc.*" %>
<jsp:useBean id="mybean" class="MyClass" />
<% out.println("Testing bean"); %>
where MyClass.class is located WEB-INF/classes/com/abc/MyClass.class
it works fine in Oracle iAS with oc4j 1.0.2.1.1 (not 9iAS R2)
when i upgrade to 9iAS R2 with oc4j 9.0.3
it's complaining the error of
OracleJSP: oracle.jsp.parse.JspParseException: Line # 8, <jsp:useBean id="mybean" class="MyClass" />
Error: Unable to find class for bean: mybean defined by tag with class: MyClass
then i changed the line <jsp:useBean....> to
<jsp:useBean id="mybean" class="com.abc.MyClass" />
it didn't complain the error
anyone know that the syntax of specifying class must be coded as package.xxx.xxx etc?
Thank you very muchYou should specify the fully qualified class name (i.e. with package structure) in the class attribute of useBean tag.
Read the syntax of useBean tag here
http://java.sun.com/products/jsp/syntax/1.1/syntaxref1115.html
Chandar -
Run time error - Exception in thread "main" java.lang.NoClassDefFoundError:
Can can one help me with this error:
Exception in thread "main" java.lang.NoClassDefFoundError: TestEnv
The program is a simple one
import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.String.*;
//A Very Simple Example
class TestEnv {
public static void main(String[] args){
System.out.println("Env is fine");
Compile the program:
javac TestEnv.java
Run the program:
java TestEnv
Error: Exception in thread "main" java.lang.NoClassDefFoundError: TestEnvTry setting the classpath properly. It seems the runtime evironment is unable to find the compiled class files. Nothing else is wrong.
--Anil -
HELP Needed with this error: Exception in thread "main" java.lang.NoClass
Folks,
I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
"Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
Here is the one of the test programs that I am using:
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Test1 {
public Test1() throws Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
} // Test
public static void main (String args[]) throws Exception {
Test1 test = new Test1();I want to say that there was nothing wrong
with my classpath config., I am still not sure why
that didn't work, there is what I did to resolved
this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
(For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
1. I had to set my DB connection protocol to TCP/IP
(this was not the default), this was done by running
the
file "svrnetcn.exe" and then in the SQL Server Network
Utility window, enable TCP/IP and set the port to
1433.Irrelevant to the classpath problem.
2. I then copied all three of the Microsoft JDBC
driver files to the ..\jre\lib\ext dir of my jdk
installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
3. Updated my OS path to located these files
and....BINGO! (that simple)Unnecessary for solving classpath problems.
4. Took a crash course on JDBC & basic Java and now I
have created my database, all tables, scripts,
stored procedures and can read/write and do all kinds
of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about. -
JVM Loader Error: Unable to find supported JDK or JRE version
Hello,
I am trying to use Visibroker (Borland version 6.5) with JDK 1.5.2
When I try to run idl2java, it gives me the following message:
JVM Loader Error:
Unable to find a supported JDK or JRE version. The JVM Version should be either 1.3.1 or 1.4.1 and above.
Check your installation and use -VBJjavavm or -javahome(vbj only) to specify the JDK or JRE location
I am using eclipse IDE - i created an external tool configuration for idl2java giving the argument *.idl
I looked in the forum and tried the suggestions given in this thread
http://forum.java.sun.com/thread.jspa?threadID=376403&messageID=3052413
Where am I going wrong. Can someone help me?
Thaks
ManjuHi,
I don't know if you got an answer to this problem. It looks like you need to install Borland Service Pack 1 (for BES 6.5) to fix this issue. I spent a couple of days squirming, trying to figure out this issue.
Hope this helps.
Regards,
Sony. -
AutoPatch error: Unable to find job when restart
OS is RHEL 5.7, and Oracle ebs R12.1.1 installed with patch applied 6078836, 11072566, 8576725...
Problem summary: AutoPatch error:Unable to find job when restarting, and FND_INSTALL_PROCESSES table does not exist
In the NLS patch update with 4 merged patches,
while 16 workers are running to create rdf files as below, it made my Putty (v0.60) crashed. Below example is succeeded case taken from the log of one worker to let you know which task was on-going...
Source: /d01/oracle/SID/apps/apps_st/appl/pa/12.0.0/reports/SF/PAXPCTCE.rdf
Successfully generated report "PAXPCTCE.rdf".
Generated 1 files successfully.
Generated 0 files with non-fatal warnings.
Generated 0 files with fatal errors.
adrepgen is exiting with status 0
End of adrepgen session
Date/time is Wed Sep 07 2011 15:22:44
Eventually, I had to run adctrl for changing job status <Failed>, and re-run adpatch. Then it ran several assigned jobs completed successfully.
Then again, it made my Putty crash, and repeated few times like that.
When there are 69 jobs remaining, autopatch error occurred.
There are now 69 jobs remaining (current phase=A1001):
0 running, 69 ready to run and 0 waiting.
Reading completed jobs from restart file (if any).
AutoPatch error:
Unable to find job when restarting.
When adctrl was checked to see worker status [1],
Enter your choice [1] : 1
Error: The FND_INSTALL_PROCESSES table does not exist.
This table is used for communication with the
worker processes, and if it does not exist, it
means that the workers are not running,because
the ad utility has not started them yet.
How can this be resolved?
Can I just re-run the patch as if it runs newly by ignoring the previous session of adpatch when asked the continuation of the previous session at the adpatch?
Will this help?
Thanks as always for the help.
- SHError: The FND_INSTALL_PROCESSES table does not exist.
This table is used for communication with the
worker processes, and if it does not exist, it
means that the workers are not running,because
the ad utility has not started them yet.
How can this be resolved? If the table does not exist, then you cannot fix it.
Can I just re-run the patch as if it runs newly by ignoring the previous session of adpatch when asked the continuation of the previous session at the adpatch?
Will this help?Correct -- This is the only option you have.
Thanks,
Hussein -
Graphics Error: Unable to find suitable font!
I am trying to use the program rasmol (that displays molecules), and I get the error:
Graphics Error: Unable to find suitable font!
I installed rasmol by
pacman -Sy rasmol
today for version 2.7.3-2
also did I do a system upgrade today:
pacman -Suy
the section "Files" in /etc/X11/xorg.conf contains:
ModulePath "/usr/lib/xorg/modules"
RgbPath "/usr/share/X11/rgb"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/util"
I have added all directories in /usr/share/fonts to be sure and restarted X.
I tried installing all font packages that I could find, but the error is still the same:
#pacman -Q | grep font
font-bh-ttf 1.0.0-2
fontcacheproto 0.1.2-1
fontconfig 2.3.2-6
fontsproto 2.0.2-1
gsfonts 8.11-3
libfontenc 1.0.2-1
libxfont 1.1.0-1
libxfontcache 1.0.2-1
ttf-ms-fonts 1.3-8
xorg-font-utils 1.0.1-1
xorg-fonts-alias 1.0.1-1
xorg-fonts-encodings 1.0.0-1
xorg-fonts-misc 1.0.0-2
#pacman -Q | grep ttf
font-bh-ttf 1.0.0-2
sdl_ttf 2.0.8-1
ttf-bitstream-vera 1.10-4
ttf-cheapskate 2.0-4
ttf-isabella 1.003-2
ttf-junicode 0.6.5pre20051126-2
ttf-ms-fonts 1.3-8
I removed the fonts.dir and fonts.scale in /usr/share/fonts and /usr/share/fonts/TTF and did mkfontscale and mkfontdir
to replace them.
restarting X and retrying to run rasmol still gives the same error.
I have tried to search google for the error message but all I could find was the source code that probably produced the message:
http://www.bernstein-plus-sons.com/soft … c/x11win.c
and some redhat binary file that gives some fonts seemingly along with the error message:
http://www.bernstein-plus-sons.com/cgi- … smol_16BIT
...Options^@Colours^@Display^@File^@Graphics Error: %s!^@-*-*-bold-o-normal-*-14-*^@-*-serf-bold-o-normal-*-14-*^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@-*-helvetica-bold-o-normal-*-14-*^@Unable to find suitable font^@%x %s^@Comm....
which might be an indication for which fonts I need.
Could anyone please give me some assistance to get the program working,
perhaps by giving advise on how to install the abovementioned fonts
or anything else that I have failed to do.
I would really appreciate it , thanxHey,
i too get the same error that no suitable fonts could be found. I installed all the fonts mentioned in this thread. My Section "Files" looks like this:
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/artwiz-fonts"
FontPath "/usr/share/fonts/speedo"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/util
EndSection
Still the error occurs. Does somebody know how to fix this?
greetings koelle -
Error: Unable to find matching navigation case
Hi all, after I wrote this thread:
ui:include if I pass a variable, some one can tell me some tips?
I do some step forward and now the application returns this error:
Unable to find matching navigation case with from-view-id '/include.xhtml' for action '#{stiliPortaleController.prepareEdit}' with outcome 'logic.action(WEB-INF/jspf/stiliPortale/Edit.xhtml)'
Can some one help me?
The include.xhtml is on "web root" and the second page "Edit.xhtml" is on WEB-INF/jspf/stiliPortale/Edit.xhtml... the strange thing (for me that I'm newbie) is that I have these two method:
public String include_page(){
String value="WEB-INF/jspf/stiliPortale/List.xhtml";
setPageIncluded(value);
return "include";
public String action(String value)
setPageIncluded(value);
return "include";
and the first method works properly the second nope!
The difference is that the first method is called in a JSF page, the second in a managed bean!
What shoud I do?
Thank you for your help!As usual I continued to search the solution of my problem and I find something about the Fluent navigation.
Now I add in my faces-config.xml this code:
<navigation-rule>
<from-view-id>/include.xhtml</from-view-id>
<navigation-case>
<from-action>#{stiliPortaleController.prepareEdit}</from-action>
<from-outcome>logic.action('WEB-INF/jspf/stiliPortale/Edit.xhtml')</from-outcome>
<to-view-id>/include.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
...and now the error disappeared but... the page doesn't change!
The code is this, index.xhtml I have:
<h:commandLink action="#{ logic.action('WEB-INF/jspf/stiliPortale/List.xhtml') }" value="Show All StiliPortale Items"/>
...and it's work recalling this method in logic.class:
public void setPageIncluded(String pageIncluded)
this.pageIncluded=pageIncluded;
public String action(String value)
setPageIncluded(value);
return "include";
...and in include.xhtml I have this code:
<ui:include src="#{logic.pageIncluded}"/>
...and, as I said, It works properly because the application open the page include.xhtml included the List.xhtml.
Now the problem is the in the List.xhtml I have this link:
<h:commandLink action="#{stiliPortaleController.prepareEdit}" value="#{bundle.ListStiliPortaleEditLink}"/>
...and in StiliPortaleController.java I have this method:
public String prepareEdit() {
current = (StiliPortale) getItems().getRowData();
selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
return "logic.action('WEB-INF/jspf/stiliPortale/Edit.xhtml')";
...I think the problem is that when I recall the method action the second time it initialize a new logic object and the include.xhtml take the variable from the first object! Could it be correct?
If it is correct, how can I resolve this new problem?
Thank you for your help! -
Hi,
The following exception occurs, when the workflow was waiting after it has made
a synchronous call to an external system through WTC Interface.
I had read Rob's comments earlier for WLI 6.1 SP1 on this exception that there
would be a fix available for it in the next minor release. For your information,
I had got this exception in WLI 6.1 SP3. Is still EJB Container's timeout excels
the JTA's timeout? Can anybody help me out to find a fix for this problem?
Thanks in Advance,
Regards
Jegadeesan.
The Stack Trace is given below :
<Error marking transaction for rollback: java.lang.IllegalStateException: Cannot
mark the transaction for rollback. xid=4362:5b4c62b47adcc632, status=Rolled back.
[Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out
after 31 seconds
Xid=4362:5b4c62b47adcc632(6932052),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
since begin=31,seconds left=30,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[ecwli001+admin_ecwli001]=(state=active),properties=({weblogic.jdbc=t3://147.149.116.70:50101}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+,
Resources={})],CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+)]>
java.lang.IllegalStateException: Cannot mark the transaction for rollback. xid=4362:5b4c62b47adcc632,
status=Rolled back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction
timed out after 31 seconds
Xid=4362:5b4c62b47adcc632(6932052),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
since begin=31,seconds left=30,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[ecwli001+admin_ecwli001]=(state=active),properties=({weblogic.jdbc=t3://147.149.116.70:50101}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+,
Resources={})],CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+)]
at weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(TransactionImpl.java:1492)
at weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImpl.java:466)
at weblogic.ejb20.manager.BaseEJBManager.handleSystemException(BaseEJBManager.java:255)
at weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:215)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:153)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:124)
at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:63)
at com.bea.wlpi.server.principal.WLPIPrincipalBean_u7lmf4_EOImpl.getOrganizationInfo(WLPIPrincipalBean_u7lmf4_EOImpl.java:463)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.getBusinessCalendarProcessor(Unknown
Source)
at com.bea.wlpi.server.workflow.Timer.dateAdd(Unknown Source)
at com.bea.wlpi.server.workflow.action.ActionTimedEvent.getScheduleTimestamp(Unknown
Source)
at com.bea.wlpi.server.workflow.action.ActionTimedEvent.execute(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Decision.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Decision.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
Source)
at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
Source)
at com.bea.wlpi.server.workflow.Start.activate(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.start(Unknown Source)
at com.bea.wlpi.server.workflow.Workflow.instantiate(Unknown Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWithErrorHandling(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantiate(Unknown
Source)
at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.instantiate(WorkflowProcessorBean_h7kt4j_EOImpl.java:692)
at com.bea.wlpi.server.eventprocessor.EventProcessor.checkTrigger(Unknown Source)
at com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(Unknown Source)
at com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(Unknown Source)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:262)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:214)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1865)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)You could change the transaction timeout value, but I'd re-examine the
application and see if the transaction times could be reduced some.
29 seconds seems like a long time.
Maybe you are looking for
-
Suggestions for remote access of Kiosks
I am starting planning a upgrade of a interactive kiosk and have been requested to include a number of additional options. Current Setup The Kiosk is a instore touchscreen unit that allows the customers to select and read product inforamtion, play vi
-
Select all rows in af:table
Hi, I need to select all rows in af:table, not only on current page. I have following code on custom select all action: getTable2().getSelectionState().addAll()and on button that needs to perform some action on selected rows I have this code
-
Selecting a shape in Acrobat 8.2
Trying to select a rounded rectangle in Acrobat 8.2. I can select a logo but not the shape. Trying to copy it and paste on another page in the document
-
Random classcast exception - com.sun.jndi.cosnaming.CNCtxFactory
Hi, I am trying to use a remote ejb (weblogic 8.1.5/ jdk 14) from a j2se 1.5 rmi-iiop client. If I use com.sun.jndi.cosnaming.CNCtxFactory to look up the remote home & then use the remote interface, I get the following error RANDOMly (i.e only some c
-
This thing: http://grab.by/54r7 -- Where is it. It's not appearing. Does anyone see this when their iOS4 device is connected, and GoodReader is installed? (Or if you don't have GoodReader, but you do see it, what app appears?)