Jar File Error
I am using eclipse. I have written a program and I wish to export it as a jar file that will run anywhere. I exported the file, and when i try to run it form the command line, i get this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
What am I doing wrong?
Many things.
- using an IDE as a newbie
- not searching for this error:
http://onesearch.sun.com/search/onesearch/index.jsp?qt=Exception+in+thread+%22main%22+java.lang.NoClassDefFoundError%3A&subCat=&site=dev&dftab=&chooseCat=javaall&col=developer-forums
- not looking at the FAQ:
http://access1.sun.com/FAQSets/newtojavatechfaq.html
;)
Similar Messages
-
invalid jar file error on mobile while installing my application..i have also checked cldc version and midp version of mobile and made my jar file according tom that..still that error is coming..
{color:red}CROSS POSTED{color} Including this --
{color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5240695
http://forum.java.sun.com/thread.jspa?threadID=5240696
http://forum.java.sun.com/thread.jspa?threadID=5240699
{color}
Cross posting is rude.
db -
Unable to access jar file error !
hello,
i have built my netbeans project and obtained the hequalifies.jar file . unfortunately when i'm trying to run this jar file from the prompt command I'mgetting the error: unable to access jar file
here is the command i'm typing:
C:\Users\User\Documents\NetBeansProjects\hEqUALIFIES\dist>java -jar " C:\Users\U
ser\Documents\NetBeansProjects\hEqUALIFIES\dist hequalifies.jar "
anyone has any clue?
10x!ok i'm gonna make it easier on you.
i gess i found what is the problem but have no idea how to solve it.
when i obtained the .jar file i also obtained a README.txt file in which it is written the following phrase:
** If a library on the projects classpath also has a Class-Path element*
specified in the manifest,the content of the Class-Path element has to be on the projects runtime path.
I'M SORRY BUT I DID NOT UNDERSTAND WHAT IS MEANT BY: what is "the projects runtime path"?
the content of my manifest is:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 10.0-b23 (Sun Microsystems Inc.)
Main-Class: hequalifies.ui.HeQualifies
Class-Path: lib/PlugIn
X-COMMENT: Main-Class will be added automatically by build
I'm having problem with lib/plugin. -
OIM 11g Using exportMetaData.sh to export the jar files error
Env OIM 11g (11.1.1.5.0) with iPlanet Connector installed on Linux 32-bit.
When running the exportMetaData.sh with the filter for configuration for the Jars files as “*”.
The error output is:
/home/oracle/exportData/exportPackage/Jars/JavaTasks/SJSDSProv.jar
java.io.FileNotFoundException: /home/oracle/exportData/exportPackage/Jars/JavaTasks/SJSDSProv.jar (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at oracle.iam.OIMMigration.util.OIMMigrationUtility.main(OIMMigrationUtility.java:206)
java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146)
at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
at oracle.iam.OIMMigration.util.OIMMigrationUtility.createZipFile(OIMMigrationUtility.java:429)
at oracle.iam.OIMMigration.util.OIMMigrationUtility.main(OIMMigrationUtility.java:242)
Export Package created : /home/oracle/exportData/exportPackage_2012:03:26::11:22:04.zip
Exiting...
The config.xml file used is (as provided in the document)
<?xml version="1.0" encoding="utf-8"?>
<MigrationDetails operation="Export">
<entityDetails>
<EntityType>Jars</EntityType>
<FilteringCriteria>
<Attribute>
<Name>Jar_Type</Name>
<Filter>*</Filter>
</Attribute>
</FilteringCriteria>
</entityDetails>
<entityDetails>
<EntityType>Plugins</EntityType>
<FilteringCriteria>
<Attribute>
<Name>Plugin_Name</Name>
<Filter>*</Filter>
</Attribute>
</FilteringCriteria>
</entityDetails>
<entityDetails>
<EntityType>CustomResourceBundles</EntityType>
<FilteringCriteria>
<Attribute>
<Name>Resource_Type</Name>
<Filter>*</Filter>
</Attribute>
</FilteringCriteria>
</entityDetails>
</MigrationDetails>
The exportMetaData.sh is correctly configured and those directories exist on the system.
CONTEXT_FACTORY="weblogic.jndi.WLInitialContextFactory"
PACKAGE_LOCATION=/home/oracle/exportData
TEMP_LOCATION_TO_EXTRACT=/home/oracle/exportTemp
CONFIGURATION_FILE=/odrive/oracle/oim11g_MWH/Oracle_IDM1/server/bin/config.xml
MODE="export"
Any help to resolve this issue would be much appreciated.
Regards,
ShaneHi Shane,
The problem appears to be an issue where the directory created is called "JavaTask" but the jars are trying to be placed into "JavaTasks".
Note the "s" appended at the end.
If you manually create the JavaTasks directory then run the tool, it should work. -
OSB Failed to create temporary jar file error
Hi everybody!
Lately we have been experimenting following error with OSB in production environment:
Caused By: com.bea.wli.sb.stages.StageException: com.bea.wli.config.component.NotFoundException: Failed to create temporary jar file
at stages.transform.runtime.JavaCalloutRuntimeStep.<init>(JavaCalloutRuntimeStep.java:122)
at stages.transform.JavaCalloutFactory.getStageRuntime(JavaCalloutFactory.java:80)
at com.bea.wli.sb.stages.StageMetadataImpl$DefaultStageFactory.getStageRuntime(StageMetadataImpl.java:245)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:92)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:68)
at com.bea.wli.sb.pipeline.RouterCompiler.getActionsRuntime(RouterCompiler.java:153)
at com.bea.wli.sb.pipeline.PipelineStage.<init>(PipelineStage.java:55)
at com.bea.wli.sb.pipeline.RouterCompiler.compileStage(RouterCompiler.java:104)
at com.bea.wli.sb.pipeline.Pipeline.<init>(Pipeline.java:105)
at com.bea.wli.sb.pipeline.RouterCompiler.compilePipeline(RouterCompiler.java:97)
at com.bea.wli.sb.pipeline.Router.<init>(Router.java:138)
at com.bea.wli.sb.pipeline.RouterCompiler.compileRouter(RouterCompiler.java:90)
at com.bea.wli.sb.pipeline.RouterCompiler.compile(RouterCompiler.java:80)
at com.bea.wli.sb.pipeline.RouterManager.compileRouter(RouterManager.java:667)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:83)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:50)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.pipeline.RouterRuntimeCache.getRuntime(RouterRuntimeCache.java:44)
at com.bea.wli.sb.pipeline.RouterManager.getRouterRuntime(RouterManager.java:638)
at com.bea.wli.sb.pipeline.RouterContext.getInstance(RouterContext.java:173)
at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:579)
at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.java:122)
at sun.reflect.GeneratedMethodAccessor2974.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy162.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused By: com.bea.wli.config.component.NotFoundException: Failed to create temporary jar file
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderDerivedTypeDef.computeData(ArchiveClassLoaderDerivedTypeDef.java:160)
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderDerivedTypeDef.computeData(ArchiveClassLoaderDerivedTypeDef.java:34)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderCache.get(ArchiveClassLoaderCache.java:38)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryDerivedTypeDef.computeData(ArchiveSummaryDerivedTypeDef.java:46)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryDerivedTypeDef.computeData(ArchiveSummaryDerivedTypeDef.java:23)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryCache.getArchiveSummary(ArchiveSummaryCache.java:31)
at com.bea.wli.sb.resources.archive.ArchiveRuntimeManager.getMethod(ArchiveRuntimeManager.java:367)
at stages.transform.runtime.JavaCalloutRuntimeStep.<init>(JavaCalloutRuntimeStep.java:100)
at stages.transform.JavaCalloutFactory.getStageRuntime(JavaCalloutFactory.java:80)
at com.bea.wli.sb.stages.StageMetadataImpl$DefaultStageFactory.getStageRuntime(StageMetadataImpl.java:245)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:92)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:68)
at com.bea.wli.sb.pipeline.RouterCompiler.getActionsRuntime(RouterCompiler.java:153)
at com.bea.wli.sb.pipeline.PipelineStage.<init>(PipelineStage.java:55)
at com.bea.wli.sb.pipeline.RouterCompiler.compileStage(RouterCompiler.java:104)
at com.bea.wli.sb.pipeline.Pipeline.<init>(Pipeline.java:105)
at com.bea.wli.sb.pipeline.RouterCompiler.compilePipeline(RouterCompiler.java:97)
at com.bea.wli.sb.pipeline.Router.<init>(Router.java:138)
at com.bea.wli.sb.pipeline.RouterCompiler.compileRouter(RouterCompiler.java:90)
at com.bea.wli.sb.pipeline.RouterCompiler.compile(RouterCompiler.java:80)
at com.bea.wli.sb.pipeline.RouterManager.compileRouter(RouterManager.java:667)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:83)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:50)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.pipeline.RouterRuntimeCache.getRuntime(RouterRuntimeCache.java:44)
at com.bea.wli.sb.pipeline.RouterManager.getRouterRuntime(RouterManager.java:638)
at com.bea.wli.sb.pipeline.RouterContext.getInstance(RouterContext.java:173)
at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:579)
at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.java:122)
at sun.reflect.GeneratedMethodAccessor2974.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy162.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused By: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at com.bea.wli.sb.util.IOUtils.storeToTempFile(IOUtils.java:245)
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderDerivedTypeDef.computeData(ArchiveClassLoaderDerivedTypeDef.java:120)
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderDerivedTypeDef.computeData(ArchiveClassLoaderDerivedTypeDef.java:34)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.resources.archive.classloader.ArchiveClassLoaderCache.get(ArchiveClassLoaderCache.java:38)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryDerivedTypeDef.computeData(ArchiveSummaryDerivedTypeDef.java:46)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryDerivedTypeDef.computeData(ArchiveSummaryDerivedTypeDef.java:23)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.resources.archive.summary.ArchiveSummaryCache.getArchiveSummary(ArchiveSummaryCache.java:31)
at com.bea.wli.sb.resources.archive.ArchiveRuntimeManager.getMethod(ArchiveRuntimeManager.java:367)
at stages.transform.runtime.JavaCalloutRuntimeStep.<init>(JavaCalloutRuntimeStep.java:100)
at stages.transform.JavaCalloutFactory.getStageRuntime(JavaCalloutFactory.java:80)
at com.bea.wli.sb.stages.StageMetadataImpl$DefaultStageFactory.getStageRuntime(StageMetadataImpl.java:245)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:92)
at com.bea.wli.sb.stages.impl.RuntimeBuilderImpl.buildRuntime(RuntimeBuilderImpl.java:68)
at com.bea.wli.sb.pipeline.RouterCompiler.getActionsRuntime(RouterCompiler.java:153)
at com.bea.wli.sb.pipeline.PipelineStage.<init>(PipelineStage.java:55)
at com.bea.wli.sb.pipeline.RouterCompiler.compileStage(RouterCompiler.java:104)
at com.bea.wli.sb.pipeline.Pipeline.<init>(Pipeline.java:105)
at com.bea.wli.sb.pipeline.RouterCompiler.compilePipeline(RouterCompiler.java:97)
at com.bea.wli.sb.pipeline.Router.<init>(Router.java:138)
at com.bea.wli.sb.pipeline.RouterCompiler.compileRouter(RouterCompiler.java:90)
at com.bea.wli.sb.pipeline.RouterCompiler.compile(RouterCompiler.java:80)
at com.bea.wli.sb.pipeline.RouterManager.compileRouter(RouterManager.java:667)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:83)
at com.bea.wli.sb.pipeline.RouterRuntimeCache$RouterRuntimeDerivedTypeDef.computeData(RouterRuntimeCache.java:50)
at com.bea.wli.config.derivedcache.DerivedCache.deriveTheValue(DerivedCache.java:453)
at com.bea.wli.config.derivedcache.DerivedCache.get(DerivedCache.java:273)
at com.bea.wli.config.derivedcache.DerivedResourceManager.getDerivedValueInfo(DerivedResourceManager.java:341)
at com.bea.wli.config.derivedcache.DerivedResourceManager.get(DerivedResourceManager.java:386)
at com.bea.wli.sb.resources.cache.DefaultDerivedTypeDef.getDerivedValue(DefaultDerivedTypeDef.java:106)
at com.bea.wli.sb.pipeline.RouterRuntimeCache.getRuntime(RouterRuntimeCache.java:44)
at com.bea.wli.sb.pipeline.RouterManager.getRouterRuntime(RouterManager.java:638)
at com.bea.wli.sb.pipeline.RouterContext.getInstance(RouterContext.java:173)
at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:579)
at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.java:122)
at sun.reflect.GeneratedMethodAccessor2974.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy162.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
It seems that error is caused because OSB is unable to create temporary jar file in /tmp/alsbTempJars. I looked for path and actually directory alsbTempJars is not present on disk. I had already created that directory in the past so I can't figure why it has been deleted.
Also I saw some out of disk space error in logs although I checked that it is at least 1Gb free at OSB mount point.
We've realized of this problem when checking logs after we got an error working with OSB web console.
To solve this error I had to create alsbTempJars directory and restart the node. Then error stopped and processing continued normaly. I think node activity was interrupted during error as I only see stack traces in log file.
OSB runs in a Linux machine with user Oracle that is also owner of alsbTempJars directory.
Hope someone could help us with this.
Regards,
Daniel.In case /tmp directory is automatically deleted, is it possible to configure a custom directory for alsbTempJars dir in OSB to assure it is never deleted?Add the -Djava.io.tmpdir=newTempDir parameter in the JAVA_PROPERTIES section of the setDomainEnv.sh script. This new location should be outside of the /tmp dir to avoid being cleared by any process.
I think best soultion would be to have alsbTempJars automatically created whenever /tmp is purged.Doing it on the fly may not be possible however you may anytime raise an enhancement request with support and if prod dev approves it, you may get a fix.
Regards,
Anuj -
Jar file error: could not find main class. program will exit
I have created a jar file using following command
jar cfm MyProj.jar Manifest.txt richa\*.class
and I have included main class header in the Manifest.txt. The executable jar file is created but when I double click on it, it prompts an error Could not find the main class. program will exit.
Please help. Its urgent..
Thanks in advanceThis simply state that jvm was unable to fine Main Class file.
I hope you have configured manifest file including your main file information and class path used by the project with proper package hierarchy,
as described in article
[https://java.sun.com/docs/books/tutorial/deployment/jar|https://java.sun.com/docs/books/tutorial/deployment/jar]
Edited by: Deepesh on Jul 13, 2008 4:58 AM -
i am trying to sign the sql server jdbc driver jar file to use in my jnlp application.but but i get this error.
C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
Enter Passphrase for keystore: asdfre
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compres
sed size (expected 5311 but got 5281 bytes)i am trying to sign the sql server jdbc driver jar
file to use in my jnlp application.but but i get this
error.
C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
Enter Passphrase for keystore: asdfre
jarsigner: unable to sign jar:
java.util.zip.ZipException: invalid entry compres
sed size (expected 5311 but got 5281 bytes)1. Try unjarring the jdbc driver file and rejar it again.
2. Are you sure you have the latest JDK. Previous versions had these issues. -
JRockIt Deleting JAR files - Error loading class
Hi there,
Customer is facing a very weird issue. Their application has an application that contains some EJBs and Web applications that, apparently for no reason, it starts to unload classes and delete JAR files and WAR files from the Weblogic's "extract" directory. If I bounce the application, everything starts working fine until a moment where the issues starts again.
I thought this was any kind of memory issue that was not allowing the JVM to free enough resource for loading the classes again after unloading it. But we gave enough memory for the JVM and it stills happening.
Thoughts? Any idea that might help us on troubleshooting is very welcome at this time.
Thanks in advance,
Davie-blade wrote:
Manifest-Version: 1.0
Class-Path: lib/tools.jar
Created-By: 1.6.0_18 (Sun Microsystems Inc.)
Main-Class: MainThe line in bold means: when app.jar will be run, it will look for additional classes in <same OS directory as itself>/lib/tools.jar.
It does not mean that it will look inside itself in the JAR directory /lib/tools.jar. -
Jar file error (Cannot open Jar file)
I am already tired JavaFX cos right from the time i have been writing programs with FX. I have not been able to deploy any of my application. After building, When i click the jar file icon in the dist folder it tells the file cant load. Pls how can i package with FX
Also something I noticed is that if you change the code of your jar file and rebuild it. If I do not go in and delete the old jar file from distributions folder the old jar will stay in the folder, this may just be me but it is something to look at.
-
Unsigned jacob.jar file causing forms loading slow
Dear All,
Oracle version : 10.1.2.0.2
OS: Windows 2003
Client IE version : IE 8
JRE version : JRE 1.6 update 21
JRE security setting : Mixed code (sandboxed vs. trusted) security verification - Disabled
We are getting the unsigned jar file error for jacob.jar, but it is running fine in many other places and giving unsigned jar file error for other jar files.
Loaded image: jar:http://192.168.100.88:7778/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
Trace level set to 5: all ... completed.
cache: Reading Signers from 0 http://192.168.100.88:7778/forms/java/jacob.jar | C:\Users\samm.AGS-STORE-005\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\48\dc408b0-3aabe349.idx
network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
network: Connecting http://192.168.100.88:7778/forms/lservlet;jsessionid=c0a8645830d6885b096494a44406bb10e869f532355e.e38LbhmPbxyKci0La3qPa3iNa38Re6fznA5Pp7ftolbGmkTy with proxy=DIRECT
I have seen sites to sign the jar files, but is it possible to overcome this error without signing. Since this error is taking 10-20 secs more to load the form.
Please help.
Thanks and Regards,
Anand.HI,
You need to sign both frmwebutil.jar and jacob.jar first the clear JAR cache ion end-user computer,so that new signed JAR files are downloaded to end-user machines.. -
Error while updating a jar file
I am trying to update a jar file using teh following command
jar -uf project.jar fileMy.prop
however while doing that i get the following error
java.io.IOException: Error in writing existing jar file
at sun.tools.jar.Main.run(Main.java:179)
at sun.tools.jar.Main.main(Main.java:904)Perhaps some process (your java program perhaps) is still running that has the file open still? You'll need to shut down the process(es) that have it open. Or you don't have proper rights to the directory/file. Not a java issue.
-
Error while deploying a JAR-File into 8i !
Hello to all Oracle experts,
At the attempt to deploy a Jar file into the 8i the following
error message comes onto Shell level:
initialization complete
loading : com/sun/xml/tree/XmlDocumentBuilder
ORA-01536: space quota exceeded for tablespace 'PROCON_DATA'
Error while loading com/sun/xml/tree/XmlDocumentBuilder
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.DBMS_LOB", line 700
ORA-06512: at "PROCON.LOADLOBS", line 1
ORA-06512: at line 1
creating : com/sun/xml/tree/XmlDocumentBuilder
Error while creating class com/sun/xml/tree/XmlDocumentBuilder
ORA-29509: incorrectly formed Java binary class definition
The command was:
loadjava -user procon/procon@t2srv1:1521:PROCON -thin -verbose -schema PROCON xml_un.jar
It would please me if somebody has an idea to this error !
nullHi Olivier,
you could try the following approach:
1. Package your JAR files as J2EE Engine libraries and deploy them on it as described here: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm">Working with J2EE Libraries</a>.
2. Set reference to this library from the application that use them. Depending on your application, refer to the appropriate documentation:
-- reference from a J2EE app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/15/d5d93fe80fed06e10000000a1550b0/frameset.htm">Referencing Libraries in Applications</a>
-- reference from a portal app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/02/788540ae1dbb4de10000000a1550b0/frameset.htm">Referencing Elements</a>
Hope that helps! -
Error in updating jar file in windows
Hi...
I am updating a jar file using Runtime.exec() by passing a batch file in it.
While updating the jar file I am getting error like this:
java.io.IOException: Error in writing existing jar file
at sun.tools.jar.Main.run(Main.java:198)
at sun.tools.jar.Main.main(Main.java:1022)
The batch file (upgradejar.bat) is like this:
echo IQuinox NextGen Upgrade Management
cd shared/upgrade/upgrade/IQfullversion/classes
jar uf ../../../../../../jars/ng.jar ./qlc/postmaster/PMStartup.class ./qlc/postmaster/wpm/admin/scheduler/others/OthersScheduleServlet.class
The java code is like this:
Process p=Runtime.getRuntime.exec( "cmd /C start "+upgradejar.bat);
if (p.waitFor() != 0) {
System.err.println("exit value = " +p.exitValue());
Thanks.I am using the jar file in my program. the jar file name is " _ng.jar_ " which is mentioned in the batch file.
The batch file is here :
echo IQuinox NextGen Upgrade Management
cd shared/upgrade/upgrade/IQfullversion/classes
jar uf ../../../../../../jars/ng.jar ./qlc/postmaster/PMStartup.class ./qlc/postmaster/wpm/admin/scheduler/others/OthersScheduleServlet.class -
Program will run with errors, but not at all in a .jar file
First off, here is my program right now:
import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
public class prune
public static void main(String args[])
String steamid="",time="";
BufferedReader infile = null;
BufferedWriter outfile = null;
FileReader fr = null;
FileWriter wr = null;
StringTokenizer strtk = null;
String line = null;
JOptionPane.showMessageDialog
(null, "Vault.ini Pruner v2");
String filepath = JOptionPane.showInputDialog("Enter the filepath to your vault.ini file.");
String strdeletenumber = JOptionPane.showInputDialog("Enter the number that vault entries under will be deleted");
int deletenumber = Integer.parseInt(strdeletenumber);
try
infile = new BufferedReader(new FileReader(filepath));
outfile = new BufferedWriter(new FileWriter(filepath));
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Can't open vault.ini:" + ioe);
try
while((line=infile.readLine())!=null)
strtk = new StringTokenizer(line);
steamid = strtk.nextToken();
time = strtk.nextToken();
if(Integer.parseInt(time)>=deletenumber)
outfile.write(steamid);
outfile.write(" ");
outfile.write(time);
outfile.newLine();
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Error:" + ioe);
try
outfile.close();
infile.close();
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Error:" + ioe);
System.exit(0);
}The program is supposed to open a vault.ini file and delete entries with a number lower than specified.
Vault files are set up like this:
STEAMID:X:XXXX 100000
Right now if I run the program through command prompt it erases both the vault.ini and new vault.ini. I am also trying to put it in an executable jar file and when I do that I get a "Failed to load main class manifest attribute" error. Any ideas on what is causing this?I don't know what is happening. I put your exact code into a small build environment and used a build file for ant that I have and it works just fine. Manifest files are a total pain which is why I use a tool to generate it. I know that the last line has to be blank and that no line can be over a certain length.
You've now spent several days avoiding ant and I got it running with ant in about 3 minutes. I'm really missing something.
For reference, the build file is below should you change your mind. Put your prune.java in a new directory named "src" and save this file below as build.xml in the parent directory of "src". Run the program with java -jar lib/prune.jar
<project name="jartest" default="main" basedir=".">
<!-- location properties -->
<property name="src.dir" location="src" />
<property name="dest.classes.dir" location="classes" />
<property name="dest.lib.dir" location="lib" />
<!-- value properties -->
<property name="dest.lib.name" value="prune.jar" />
<property name="main.class" value="prune" />
<!-- compile time value properties -->
<property name="compile.debug" value="true" />
<property name="compile.optimize" value="false" />
<property name="compile.deprecation" value="true" />
<property name="compile.source" value="1.4"/>
<property name="compile.target" value="1.4"/>
<!-- build -->
<target name="main" depends="compile,jar" />
<target name="compile">
<mkdir dir="${dest.classes.dir}"/>
<mkdir dir="${dest.lib.dir}"/>
<javac srcdir="${src.dir}"
destdir="${dest.classes.dir}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
source="${compile.source}"
target="${compile.target}" >
</javac>
</target>
<!-- clean -->
<target name="clean">
<delete dir="${dest.classes.dir}"/>
<delete dir="${dest.lib.dir}"/>
</target>
<!-- jar -->
<target name="jar" depends="compile">
<jar destfile="${dest.lib.dir}/${dest.lib.name}"
basedir="${dest.classes.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="${main.class}" />
</manifest>
</jar>
</target>
</project> -
Jar Files in a Jar File - Classpath Error
Hi,
I created a jar file that will have all the class files of the application. In the manifest file class path, I have the jar files the application is dependent on. The dependent jar files were kept outside of the application jar file. I was able to execute the main file in the application jar file. Then I created another jar file that holds all the dependent jar files the application is dependent on along with the application jar file into one super jar file. configured the main class attribute of the super jar file to that in the application jar file. When I try to execute it, I'm getting an error saying Class Not Found. Can someone guide me in setting the classpath for this super jar file in its manifest file.
Presently my manifest file classpath variable in the super jar file is set as App.jar Depend1.jar Depend2.jar
Thanks,
E HJava's standard class loaders do not support jar files inside of other jar files, and will give the error you see.
You can write your own customized class loader, use a 3rd-party solution (onejar at sourceforge is one), or remove the interior jars.
Maybe you are looking for
-
Creating a folder based on registation info?
I'm creating a user and want to add a feature where when their account is created, automatically a subfolder with their username is created and they are assigned that folder (for viewing images), any ideas on how I would do this in ADDT? I know how t
-
Implementation of BPM in PI 7.3
Hi all, Our client is upgrading the pi server from pi 7.1 to PI 7.3 (java only). So as an up gradation process we need to implement some BPM scenarios of PI 7.1 in PI 7.3. Could any one let us know how to approach for the above situation. Regards, Ab
-
I am helping a disabled person with a printing problem involving a Macbook, an Epson SX218, and MS Office for Macs. The Macbook had been recently updated to OS X 10.6.8, and the printer driver reinstalled, by an Apple store. She complained the printe
-
Unity 7 and Lotus Notes migration
Customer currently is on Unity 7 with Exchange 2010. They recentlly got bought out and will be migrating over to Dominos. Is there any any sort of migration path so they can still have access to their old voicemails on exchange? wo
-
Can I undo accidentally deleted text history?
Can I undo accidentally deleted text history?