[ 
https://issues.apache.org/jira/browse/FELIX-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12785294#action_12785294
 ] 

Bulat Nigmatullin commented on FELIX-1909:
------------------------------------------

I've started my project under JDK 7 with packages.extra setting, but now 
application don't start under JDK 6. DEBUG log:

Welcome to Felix
================

WARNING: Only R4 bundles can be fragments.
WARNING: Only R4 bundles can be fragments.
WARNING: Only R4 bundles can be fragments.
DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 2.0 -> org.osgi.service.log -> 5.0
DEBUG: WIRE: 2.0 -> org.osgi.service.url -> 0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 5.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 5.0 -> org.osgi.service.cm -> 3.0
DEBUG: WIRE: 11.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 11.0 -> org.osgi.service.log -> 5.0
DEBUG: WIRE: 11.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 11.0 -> org.osgi.service.startlevel -> 0
DEBUG: DYNAMIC WIRE: 2.0 -> org.apache.felix.shell -> 11.0
DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 4.0 -> org.osgi.service.cm -> 3.0
DEBUG: WIRE: 4.0 -> org.osgi.service.log -> 5.0
DEBUG: WIRE: 4.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 4.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 4.0 -> org.osgi.service.url -> 0
DEBUG: WIRE: 4.0 -> org.osgi.util.tracker -> 0
{felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = 
/home/xmpp/xmppserver/plugins, felix.fileinstall.debug = -1, 
felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = 
/tmp/fileinstall--347938761108191474, felix.fileinstall.filter = null}
{felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = 
/home/xmpp/xmppserver/lib, felix.fileinstall.debug = -1, 
felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = 
/tmp/fileinstall--6111613190533094582, felix.fileinstall.filter = null}
DEBUG: WIRE: 13.0 -> javax.mail -> 20.0
DEBUG: WIRE: 13.0 -> javax.mail.internet -> 20.0
DEBUG: WIRE: 13.0 -> javax.naming -> 0
DEBUG: WIRE: 13.0 -> javax.servlet -> 1.0
DEBUG: WIRE: 13.0 -> javax.servlet.http -> 1.0
DEBUG: WIRE: 13.0 -> javax.sql -> 0
DEBUG: WIRE: 13.0 -> javax.xml.parsers -> 0
DEBUG: WIRE: 13.0 -> org.codehaus.janino -> 14.0
DEBUG: WIRE: 13.0 -> org.xml.sax -> 0
DEBUG: WIRE: 13.0 -> org.xml.sax.helpers -> 0
DEBUG: WIRE: 20.0 -> javax.activation -> 0
DEBUG: WIRE: 20.0 -> javax.net -> 0
DEBUG: WIRE: 20.0 -> javax.net.ssl -> 0
DEBUG: WIRE: 20.0 -> javax.security.auth.callback -> 0
DEBUG: WIRE: 20.0 -> javax.security.auth.x500 -> 0
DEBUG: WIRE: 20.0 -> javax.security.sasl -> 0
DEBUG: WIRE: 20.0 -> sun.security.util -> 0
Started bundle: file:/home/xmpp/xmppserver/lib/logback-core-0.9.17.jar
Started bundle: 
file:/home/xmpp/xmppserver/lib/com.springsource.org.codehaus.janino-2.5.15.jar
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [33.0] and javax.servlet from [1.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]
DEBUG: Constraint violation for 40.0 detected; module can see javax.servlet 
from [1.0] and javax.servlet from [33.0]


Then application goes to infinite loop and i can stop it only by kill -9 java 
command.


> Apache Felix on JDK7 
> ---------------------
>
>                 Key: FELIX-1909
>                 URL: https://issues.apache.org/jira/browse/FELIX-1909
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: felix-2.0.2
>         Environment: Ubuntu Linux 9.04 64-bit
> java version "1.7.0-ea"
> Java(TM) SE Runtime Environment (build 1.7.0-ea-b76)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b05, mixed mode)
>            Reporter: Bulat Nigmatullin
>            Priority: Minor
>
> I tried to start our OSGi application on JDK7, but got a lot of errors like 
> this
> Unresolved constraint in bundle javax.mail.mail [20]: package; 
> (package=javax.activation)
> I've modified Apache Felix config.properties:
> org.osgi.framework.system.packages.extra= \
>   javax.activation; \
>   javax.crypto; \
>   javax.crypto.interfaces; \
>   javax.crypto.spec; \
>   javax.management; \
>   javax.naming; \
>   javax.naming.directory; \
>   javax.naming.spi; \
>   javax.net; \
>   javax.net.ssl; \
>   javax.security.auth; \
>   javax.security.auth.callback; \
>   javax.security.auth.x500; \
>   javax.security.cert; \
>   javax.security.sasl; \
>   javax.sql; \
>   javax.swing; \
>   javax.swing.border; \
>   javax.swing.event; \
>   javax.swing.plaf; \
>   javax.swing.plaf.basic; \
>   javax.swing.table; \
>   javax.swing.text; \
>   javax.swing.tree; \
>   javax.xml.namespace; \
>   javax.xml.parsers; \
>   javax.xml.stream; \
>   javax.xml.transform; \
>   javax.xml.transform.dom; \
>   javax.xml.transform.stream; \
>   org.ietf.jgss; \
>   org.xml.sax; \
>   org.xml.sax.helpers; \
>   org.w3c.dom;
> But one error remained:
> org.osgi.framework.BundleException: Unresolved constraint in bundle 
> com.springsource.org.dom4j [18]: package; 
> (&(package=javax.xml.stream)(version>=1.0.1)(!(version>=2.0.0)))
> My application work on JDK6 without all that extra packages. But now Felix 
> requires them. Is this behaviour correct?
> How to fix this javax.xml.stream import?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to