[JBoss JIRA] Created: (JBOSGI-306) Invalic classloader policy created
by Thomas Diesler (JIRA)
Invalic classloader policy created
----------------------------------
Key: JBOSGI-306
URL: https://jira.jboss.org/jira/browse/JBOSGI-306
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Framework
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: Framework 1.0.0 Alpha4
* OSGiClassLoaderFactory.createClassLoader() sets the ClassLoaderPolicyFactory on the Module
* ClassLoaderPolicyModule.registerClassLoaderPolicy() calls getPolicy() on itself
* getPolicy() should call policyFactory.createClassLoaderPolicy() on the factory that was set above
However the policyFactory is null so it falls back to ClassLoaderPolicyModule.createClassLoaderPolicy(), which results in the
wrong policy being created.
Caused by: java.lang.IllegalArgumentException: Invalid policy: VFSClassLoaderPolicy@190d536{vfs:///home/tdiesler/svn/jboss-osgi/trunk/reactor/framework/bundle/target/osgi-store/bundle-0/bundle-1269577893252.jar/}
at org.jboss.osgi.framework.classloading.OSGiBundleClassLoader.<init>(OSGiBundleClassLoader.java:46)
at org.jboss.osgi.framework.classloading.OSGiClassLoaderSystem.createClassLoader(OSGiClassLoaderSystem.java:71)
at org.jboss.classloader.spi.base.BaseClassLoaderSystem$1.run(BaseClassLoaderSystem.java:126)
at org.jboss.classloader.spi.base.BaseClassLoaderSystem$1.run(BaseClassLoaderSystem.java:123)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.classloader.spi.base.BaseClassLoaderSystem.registerClassLoaderPolicy(BaseClassLoaderSystem.java:122)
at org.jboss.classloader.spi.ClassLoaderSystem.registerClassLoaderPolicy(ClassLoaderSystem.java:494)
at org.jboss.classloader.spi.ClassLoaderSystem.registerClassLoaderPolicy(ClassLoaderSystem.java:436)
at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:147)
at org.jboss.osgi.framework.classloading.OSGiClassLoaderFactory.createClassLoader(OSGiClassLoaderFactory.java:88)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months
[JBoss JIRA] Created: (JBOSGI-318) Linkage error for javax.servlet.Servlet in AS600
by Thomas Diesler (JIRA)
Linkage error for javax.servlet.Servlet in AS600
------------------------------------------------
Key: JBOSGI-318
URL: https://jira.jboss.org/jira/browse/JBOSGI-318
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Integration (JBoss)
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.0.0 Beta8
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(Ljava/lang/String;Ljavax/servlet/Servlet;Ljava/util/Dictionary;Lorg/osgi/service/http/HttpContext;)V" the class loader (instance of org/jboss/osgi/framework/classloading/OSGiBundleClassLoader) of the current class, org/ops4j/pax/web/service/internal/HttpServiceProxy, and the class loader (instance of org/jboss/osgi/framework/classloading/OSGiBundleClassLoader) for interface org/osgi/service/http/HttpService have different Class objects for the type javax/servlet/Servlet used in the signature
at org.ops4j.pax.web.service.internal.Activator$2.createService(Activator.java:104)
at org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl.getService(HttpServiceFactoryImpl.java:34)
at org.jboss.osgi.framework.bundle.OSGiServiceState.getService(OSGiServiceState.java:391)
... 20 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months
[JBoss JIRA] Created: (JBOSGI-319) LinkageError for the type javax/servlet/Servlet
by Thomas Diesler (JIRA)
LinkageError for the type javax/servlet/Servlet
------------------------------------------------
Key: JBOSGI-319
URL: https://jira.jboss.org/jira/browse/JBOSGI-319
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Integration (JBoss)
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.0.0 Beta8
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(Ljava/lang/String;Ljavax/servlet/Servlet;Ljava/util/Dictionary;Lorg/osgi/service/http/HttpContext;)V" the class loader (instance of org/jboss/osgi/framework/classloading/OSGiBundleClassLoader) of the current class, org/ops4j/pax/web/service/internal/HttpServiceProxy, and the class loader (instance of org/jboss/osgi/framework/classloading/OSGiBundleClassLoader) for interface org/osgi/service/http/HttpService have different Class objects for the type javax/servlet/Servlet used in the signature
at org.ops4j.pax.web.service.internal.Activator$2.createService(Activator.java:104)
at org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl.getService(HttpServiceFactoryImpl.java:34)
at org.jboss.osgi.framework.bundle.OSGiServiceState.getService(OSGiServiceState.java:391)
... 20 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months