I have built executable .jar file with izpack-maven-plugin.
If i run it like:
java -jar install.jar -everything is okay.
But if I run it using JWS i have got an error message:
Can't load log handler "com.izforge.izpack.util.LogHandler"
java.lang.ClassNotFoundException: com.izforge.izpack.util.LogHandler
java.lang.ClassNotFoundException: com.izforge.izpack.util.LogHandler
Exception in thread "AWT-EventQueue-0" com.izforge.izpack.api.exception.IzPackException: com.izforge.izpack.api.exception.ContainerException: com.izforge.izpack.api.exception.ResourceNotFoundException: Cannot find named resource: 'info'
at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:64)
Caused by: com.izforge.izpack.api.exception.ContainerException: com.izforge.izpack.api.exception.ResourceNotFoundException: Cannot find named resource: 'info'
Caused by: com.izforge.izpack.api.exception.ResourceNotFoundException: Cannot find named resource: 'info'
Any ideas?
Thanks.
Related
Running Capedwarf shows this error:
xybrek#ubuntu:~/CapeDwarf_WildFly_2.0.0.Final/bin$ ./capedwarf.sh /path/to/war
ls: cannot access './../modules/com/google/appengine/main/appengine-api-1.0-sdk-*-capedwarf*': No such file or directory
Exception in thread "main" org.jboss.modules.ModuleLoadException: Error loading module from /home/xybrek/CapeDwarf_WildFly_2.0.0.Final/modules/com/google/appengine/main/module.xml
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:155)
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:132)
at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:154)
at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:148)
at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:455)
at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:358)
at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:305)
at org.jboss.modules.Module.addPaths(Module.java:1036)
at org.jboss.modules.Module.link(Module.java:1406)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1434)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:242)
at org.jboss.modules.Main.main(Main.java:385)
Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'appengine-api-1.0-sdk-1.9.24-capedwarf.jar' at path 'appengine-api-1.0-sdk-1.9.24-capedwarf.jar' (position: END_TAG seen ...</filter>\n </resource-root>... #33:25) caused by: java.io.FileNotFoundException: /home/xybrek/CapeDwarf_WildFly_2.0.0.Final/modules/com/google/appengine/main/appengine-api-1.0-sdk-1.9.24-capedwarf.jar (No such file or directory)
at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:723)
at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:572)
at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:394)
at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:219)
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:153)
... 13 more
=========================================================================
What could be the fix for this? There's no such jar anywhere.
It looks like the bytecode modification didn't yet kick in.
(we modify GAE API jar on the fly the first time, as we need some bytecode hacks)
I have used java 1.9.0 and the path is correctly set in environment variable. Moreover,both Solr and java are in C drive. But its showing a consistent error:
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.SolrCLI
"Failed removing old solr logs"
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.SolrCLI
"Failed archiving old GC logs"
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.SolrCLI
"Failed archiving old console logs"
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.SolrCLI
"Failed rotating old solr logs"
Error: Unable to access jarfile start.jar
Error: Could not find or load main class org.apache.solr.util.SolrCLI
Help me solve this error..
The critical error in the logs seems to be " Unable to access jarfile start.jar".
Maybe this can help SLES Apache Solr start.jar, Unable to access jarfile
I have written a SOLR(4.10.3) plugin using netbeans. I have created jar by building the project.
My class name is SolrPostFilter (SolrPostFilter.jar file)
This is the complete path of this jar ~/solr-4.10/plugin/lib. plugin jar file lies in lib directory.
I have registered my plugin like this in solrconfig.xml
<queryParser name="ModuloPostFilter" class="SolrPostFilter"/>
Is this path correct ?
When I reload core, following error appears
org.apache.solr.common.SolrException: Error handling 'reload' action
at org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:737)
at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:225)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Unable to reload core [collection1]
at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:591)
at org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:735)
... 31 more
Caused by: org.apache.solr.common.SolrException: Error loading class 'SolrPostFilter'
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:881)
at org.apache.solr.core.SolrCore.reload(SolrCore.java:437)
Caused by: org.apache.solr.common.SolrException: Error loading class 'SolrPostFilter'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:421)
Caused by: java.lang.ClassNotFoundException: SolrPostFilter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Where is the problem. I think, its path is not set. How to do it?
project run on local machine, but after deploy on server get hibernate.cfg.xml not found error.same war file deploy on local machine tomcat it work.
2015-07-13 07:00:00 ERROR JobRunShell:211 - Job grpPM.jobPM threw an unhandled Exception:
org.hibernate.HibernateException: Hibernate.cfg.xml not found
at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2095)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2076)
at hibernet.HibernateConnection.getInstance(HibernateConnection.java:32)
at hibernet.HibernateData.getConnection(HibernateData.java:45)
at stockRefresh.Script330.runScript(Script330.java:34)
at StockRefresh330.execute(StockRefresh330.java:13)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2015-07-13 07:00:00 ERROR ErrorLogger:2425 - Job (grpPM.jobPM threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.hibernate.HibernateException: Hibernate.cfg.xml not found]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.hibernate.HibernateException: Hibernate.cfg.xml not found
at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2095)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2076)
at hibernet.HibernateConnection.getInstance(HibernateConnection.java:32)
at hibernet.HibernateData.getConnection(HibernateData.java:45)
at stockRefresh.Script330.runScript(Script330.java:34)
at StockRefresh330.execute(StockRefresh330.java:13)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
Put your hibernate.cfg.xml in your classpath. and if you don't want, use the below to get context of your XML file.
Configuration configuration = new Configuration();
configuration.configure("hibernate.cfg.xml");//Here you can give your exact path w.r.t your project`
Put your hibernate.cfg.xml under src/main/resources if the file is the same folder as your Java files your build system may not copy it.
I was trying to start Cassandra on FreeBSD with /usr/local/share/cassandra/bin/cassandra.
But it gives me the following error messages, any idea how to get around the problem? Any suggestions will be GREATLY appreciated. Thank you.
INFO 21:16:38,666 JNA not found. Native methods will be disabled.
ERROR 21:16:38,684 Exception encountered during startup.
java.lang.ExceptionInInitializerError
at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:584)
... 2 more
Caused by: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180)
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:187)
... 2 more
Exception encountered during startup.
java.lang.ExceptionInInitializerError
at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:73)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:224)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:584)
... 2 more
Caused by: java.lang.RuntimeException: Cannot locate storage-conf.xml via storage-config system property or classpath lookup.
at org.apache.cassandra.config.DatabaseDescriptor.getStorageConfigPath(DatabaseDescriptor.java:180)
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:187)
... 2 more
Is this cassandra 0.6.x? You probably want to upgrade to the latest cassandra, 0.7.4
The error is because Cassandra can't locate storage-conf.xml. This file should be in your cassandra conf directory, see http://wiki.apache.org/cassandra/StorageConfiguration
If you upgrade to cassandra 0.7.x, you will need a cassandra.yaml file instead.