Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo 3.6.2 library load error (folder is expected as jar archive)(Load of Primefaces library log an error, but everything works fine.)
Virgo 3.6.2 library load error (folder is expected as jar archive) [message #1678967] Mon, 16 March 2015 12:10 Go to next message
Jan Horky is currently offline Jan HorkyFriend
Messages: 2
Registered: March 2015
Junior Member
Hi Virgo gurus.

I would like to ask you about following error logged during startup. Everything works fine so the error is confusing. Strange is that path exists but it is folder not the zip/jar file.
Can you please suggest how to remove this error? I prefer not to set logger to fatal level Smile

Thanks in advance, Jan


[2015-03-04 08:45:53.121] ERROR start-signalling-1           javax.enterprise.resource.webcontainer.jsf.config                 Unable to process annotations for url, file:/C:/VIRGO-~2.REL/work/deployer/s/global/30/0/primefaces-3.5.jar/META-INF/faces-config.xml.  Reason: java.io.FileNotFoundException: C:\VIRGO-~2.REL\work\deployer\s\global\30\0\primefaces-3.5.jar (Access is denied) 
[2015-03-04 08:45:53.142] ERROR start-signalling-1           javax.enterprise.resource.webcontainer.jsf.config                  java.io.FileNotFoundException: C:\VIRGO-~2.REL\work\deployer\s\global\30\0\primefaces-3.5.jar (Access is denied)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:214)
	at java.util.zip.ZipFile.<init>(ZipFile.java:144)
	at java.util.jar.JarFile.<init>(JarFile.java:152)
	at java.util.jar.JarFile.<init>(JarFile.java:89)
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:98)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
	at com.sun.faces.config.JavaClassScanningAnnotationScanner.processClasspath(JavaClassScanningAnnotationScanner.java:166)
	at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:125)
	at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85)
	at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:841)
	at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:793)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125)
	at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:109)
	at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:271)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:319)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:316)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:252)
	at org.eclipse.virgo.nano.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)


Re: Virgo 3.6.2 library load error (folder is expected as jar archive) [message #1679184 is a reply to message #1678967] Mon, 16 March 2015 14:05 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

Please say something more about the application that you are trying to deploy.

We didn't face such problem till now.

Also give information for Virgo distribution that you are using.

Regards,
Violeta
Re: Virgo 3.6.2 library load error (folder is expected as jar archive) [message #1679321 is a reply to message #1679184] Mon, 16 March 2015 15:11 Go to previous message
Jan Horky is currently offline Jan HorkyFriend
Messages: 2
Registered: March 2015
Junior Member
Ok, I see. Virgo distribution we use is: virgo-tomcat-server-3.6.2.RELEASE

It is application composed from several modules and lot of dependencies.
There is single war (OSGi fragment host) and several jars (OSGi fragmets) - let's say UI layer. Than each UI bundle has its own jar with published services - let's say business layer (that is not fragments).

UI - JSF 2, Primefaces, Spring 3.2.5
Business - JPA, Hibernate, Spring 3.2.5

Application is deployed by 2 plan files. First deploys dependencies and second deploys application bundles (see following plans - sorry for obfuscated names).

Virgo configuration was slightly changed:
- we have our own bundle repository (single for app and deps)
- java6-serve.profile was enriched by some ldap and aop waving things
- changed spring libraries to v. 3.2.5 and spring security v. 3.1.4

Aplication works well (we are able to deploy it). Only thing I don't like is that error because I don't know what's that mean (primefaces also works well).

After first pains in early development is Virgo very good piece of software. Thanks for that Smile

Jan

01_dependencies.plan

<plan name="01_dependencies.plan" version="3.0.3.RELEASE" scoped="false" atomic="false"
	xmlns="###httpwww###.eclipse.org/virgo/schema/plan"
	xmlns:xsi="###httpwww###.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="###httpwww###.eclipse.org/virgo/schema/plan ###httpwww###.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">

	<!-- JSF -->
	<artifact type="bundle" name="javax.validation" version="1.0.0"/>
	<artifact type="bundle" name="org.glassfish.javax.faces" version="2.1.24"/>
	<artifact type="bundle" name="javax.el-api" version="2.2"/>
	<artifact type="bundle" name="org.glassfish.web.el-impl" version="2.2"/>
	<artifact type="bundle" name="org.primefaces" version="3.5.0"/>

	<!-- File upload -->
	<artifact type="bundle" name="org.apache.commons.io" version="2.2"/> 
	<artifact type="bundle" name="org.apache.commons.fileupload" version="1.2.1"/>

	<!-- Authorization -->
	<artifact type="bundle" name="com.sun.xacml" version="2.0.0"/>

	<!-- Hibernate -->
	<artifact type="bundle" name="com.google.guava" version="15.0.0"/>
	<artifact type="bundle" name="com.jolbox.bonecp" version="0.8.0.RELEASE"/>
	<artifact type="bundle" name="com.springsource.org.dom4j" version="1.6.1"/>
	<artifact type="bundle" name="javassist.osgi" version="3.6.0.ga"/>
	<artifact type="bundle" name="org.jboss.logging.jboss-logging" version="3.1.0.GA"/> 
	<artifact type="bundle" name="classmate" version="0.8.0"/>   
	<artifact type="bundle" name="org.jboss.jandex" version="1.1.0"/>
	<artifact type="bundle" name="org.apache.servicemix.bundles.antlr" version="2.7.7.5"/>   
	<artifact type="bundle" name="org.hibernate.common.hibernate-commons-annotations" version="4.0.2.Final"/>  
	<artifact type="bundle" name="org.hibernate.core" version="4.2.6.Final"/>
	<artifact type="bundle" name="org.hibernate.entitymanager" version="4.2.6.Final"/>
	
	<!-- needed by AUD API -->
	<artifact type="bundle" name="jackson-mapper-asl" version="1.9.10"/>
	<artifact type="bundle" name="jackson-core-asl" version="1.9.10"/>
	<artifact type="bundle" name="org.apache.geronimo.specs.geronimo-j2ee-management_1.1_spec" version="1.0.1"/> 
	<artifact type="bundle" name="org.apache.xbean.spring" version="3.7"/> 
	<artifact type="bundle" name="org.apache.activemq.activemq-osgi" version="5.8.0"/>  
	
	<!-- DB -->
	<artifact type="bundle" name="com.springsource.org.postgresql.jdbc4" version="8.3.604"/>
	<artifact type="bundle" name="org.h2" version="1.3.173"/>

	<!-- configuration -->
	<artifact type="bundle" name="org.apache.commons.configuration" version="1.10"/> 
	<artifact type="bundle" name="org.apache.commons.lang" version="2.6"/>
	
	<!-- Spring Security -->
	<artifact type="bundle" name="org.springframework.security.config" version="3.1.4.RELEASE"/> 
	<artifact type="bundle" name="org.springframework.security.core" version="3.1.4.RELEASE"/> 
	<artifact type="bundle" name="org.springframework.security.web" version="3.1.4.RELEASE"/> 
	<artifact type="bundle" name="org.springframework.security.ldap" version="3.1.4.RELEASE"/> 
	<artifact type="bundle" name="org.springframework.ldap" version="1.3.1.RELEASE"/> 

	<!-- cvs -->
	<artifact type="bundle" name="net.sf.supercsv.super-csv" version="2.1.0"/> 
	<artifact type="bundle" name="net.sf.supercsv.super-csv-dozer" version="2.1.0"/>
	<artifact type="bundle" name="org.apache.servicemix.bundles.poi" version="3.9.0.2"/>
	<artifact type="bundle" name="org.apache.commons.codec" version="1.9.0"/>
	<artifact type="bundle" name="net.sf.dozer.dozer-osgi" version="5.5.1"/>
	<artifact type="bundle" name="org.apache.servicemix.bundles.commons-beanutils" version="1.8.3.2"/>
	<artifact type="bundle" name="org.apache.commons.collections" version="3.2.1"/>
	<artifact type="bundle" name="org.apache.commons.lang3" version="3.2.1"/>	
	<artifact type="bundle" name="poi.ooxml.schemas" version="3.11.0"/>
	<artifact type="bundle" name="org.apache.servicemix.bundles.xmlbeans" version="2.6.0.2"/>
	
	<!-- Visual Rules -->
	<artifact type="bundle" name="visualrules.osgi.runtime" version="6.2.1"/> 
</plan>



02_application.plan

<plan name="02_application.plan" version="3.0.3.RELEASE" scoped="false" atomic="false"
	xmlns="###httpwww###.eclipse.org/virgo/schema/plan"
	xmlns:xsi="###httpwww###.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="###httpwww###.eclipse.org/virgo/schema/plan ###httpwww###.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">

	<artifact type="bundle" name="vvv.audit.app.audit-app-osgi" version="0.0.0"/>

	<artifact type="bundle" name="ppp.file.api" version="3.1.6.RELEASE"/>
	<artifact type="bundle" name="ppp.core.core" version="3.1.6.RELEASE"/>
	<!-- FRAGMENT HOST -->
	<artifact type="bundle" name="ppp.core.ui" version="3.1.6.RELEASE"/>
	<artifact type="bundle" name="ppp.appconf.api" version="3.1.6.RELEASE"/>

	<artifact type="bundle" name="ccc.core" version="3.0.4.RELEASE"/>
	<!-- FRAGMENT -->
	<artifact type="bundle" name="ccc.ui" version="3.0.4.RELEASE"/>
	
	<artifact type="bundle" name="ooo.core" version="1.0.1.RELEASE"/>
	
	<artifact type="bundle" name="mmm.remoteapi" version="3.1.1.RELEASE"/>
	<artifact type="bundle" name="mmm.gwy" version="3.1.1.RELEASE"/>
	<artifact type="bundle" name="mmm.core" version="3.1.1.RELEASE"/>
	<artifact type="bundle" name="mmm.rules" version="3.1.0.RELEASE"/>
	<artifact type="bundle" name="mmm.st" version="3.1.1.RELEASE"/> 		
	<artifact type="bundle" name="mmm.remoteservice" version="3.1.1.RELEASE"/>
	<!-- FRAGMENT -->
	<artifact type="bundle" name="mmm.ui" version="3.1.1.RELEASE"/>
	
	<artifact type="bundle" name="nnn.osgi.mgmt" version="1.0.1.RELEASE"/>
	<artifact type="bundle" name="nnn.common.osgi.mocks" version="3.0.1.RELEASE"/>
	<artifact type="bundle" name="nnn.useraccess.api" version="1.1.0.RELEASE"/>
	
	<artifact type="bundle" name="nnn.ttt.admin.core" version="001.025.000"/>
	<artifact type="bundle" name="nnn.ttt.admin.ui" version="001.025.000"/> 
</plan>


Previous Topic:Import-Package error for already-deployed dependency
Next Topic:java.io.tmpdir points to an unexsiting folder
Goto Forum:
  


Current Time: Wed Nov 06 09:40:20 GMT 2024

Powered by FUDForum. Page generated in 0.03335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top