You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2010/06/22 18:26:55 UTC
[jira] Created: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
----------------------------------------------------------------------------------------------
Key: OWB-400
URL: https://issues.apache.org/jira/browse/OWB-400
Project: OpenWebBeans
Issue Type: Bug
Components: Core
Affects Versions: M4
Reporter: Mark Struberg
Assignee: Mark Struberg
Fix For: 1.0.0-CR2
The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
java.io.IOException: Unable to scan directory of protocol: bundle
at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881329#action_12881329 ]
Mark Struberg commented on OWB-400:
-----------------------------------
after adding some logging, I saw the following classpath URLs comming back from a geronimo classloader: "bundle://319.0:9/"
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR2
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882137#action_12882137 ]
Mark Struberg commented on OWB-400:
-----------------------------------
I did start a new openwebbeans-osgi project which adds a OSGi environment classpath scanner using xbean-finder.
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR2
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881561#action_12881561 ]
Gurkan Erdogdu commented on OWB-400:
------------------------------------
>>>Only viable solution seems to ditch scannotation and use xbean-finder or some similar product instead.
Or you change this internal URLS to actual URLS that our code understands.
bundle://319.9:9 --> file :// etc...
This is the reason why Scanning provided as SPI. If you want to chage scanning, implement your own scanning using any other library and use it instead of chaning the current scanning using scannotation.
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR2
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-400.
-------------------------------
Fix Version/s: 1.0.0-CR1
(was: 1.0.0-CR2)
Resolution: Fixed
fixed by implementing an own ClasspathScanner for OSGi environments in webbeans-osgi.
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR1
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OWB-400) starting OWB as part of an EAR in geronimo
causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg closed OWB-400.
-----------------------------
got already shipped with alpha-1
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-alpha-1
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881587#action_12881587 ]
Mark Struberg commented on OWB-400:
-----------------------------------
Sadly there is no standard way to get the 'internal' URL from an OSGi ClassLoader. Those jars might come from a filesystem but also from a database.
Sure we might simply implement another Scanner for geronimo-3 using the SPI, but my point is that scannotation
* is not maintained anymore
* is not an apache project
* it has several reported (and not fixed) issues
* with no progress, and it is
* basically dead since early 2008.
Also, we will face more and more OSGi classloaders in the not so far future ;)
So, after alpha-1, we should imo try to generally replace scannotation with another attempt.
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR2
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-400) starting OWB as part of an EAR in
geronimo causes a exception due to missing 'bundle' protocol
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881351#action_12881351 ]
Mark Struberg commented on OWB-400:
-----------------------------------
seems like scannotation cannot handle OSGi bundles but exists with the exception above.
Scannotation seems not to be maintained anymore, so there is no quick way to get a fix in.
Only viable solution seems to ditch scannotation and use xbean-finder or some similar product instead.
> starting OWB as part of an EAR in geronimo causes a exception due to missing 'bundle' protocol
> ----------------------------------------------------------------------------------------------
>
> Key: OWB-400
> URL: https://issues.apache.org/jira/browse/OWB-400
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: M4
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.0.0-CR2
>
>
> The following Exception occurs when trying to deploy an EAR with OWB in geronimo:
> 2010-06-22 18:14:05,746 ERROR [WebScannerService] ERROR_0002
> java.io.IOException: Unable to scan directory of protocol: bundle
> at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:39)
> at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:291)
> at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:65)
> at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:74)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:117)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.