Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63276 - dev-java/cocoon uses packed jars
Summary: dev-java/cocoon uses packed jars
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 94701 161951 216791 216803 216806 216810 216823 216825 216826 216828 217270 217273 217275 217285 217288 217436 217488
Blocks: 69972
  Show dependency tree
 
Reported: 2004-09-08 08:23 UTC by Thomas Matthijs (RETIRED)
Modified: 2015-08-28 20:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
First attempt of unbundeling as many as possible JAR files (cocoon-2.1.10.ebuild,7.61 KB, text/plain)
2008-04-08 15:54 UTC, charles17
Details
Only 38 unresolved bundled jar files (cocoon-2.1.10.ebuild,14.05 KB, text/plain)
2008-04-11 20:08 UTC, charles17
Details
Resolved jsp-api.jar using dev-java/servletapi (cocoon-2.1.10.ebuild,14.70 KB, text/plain)
2008-04-12 10:39 UTC, charles17
Details
Blocks no longer deactivated (cocoon-2.1.11.ebuild,15.88 KB, text/plain)
2008-04-12 19:40 UTC, charles17
Details
Compiler message with dev-java/bcel (compiler_message,793 bytes, text/plain)
2008-04-13 09:44 UTC, charles17
Details
Diff content of bcel.jar (diff_-u_bcel_jar,1.44 KB, text/plain)
2008-04-13 09:48 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Matthijs (RETIRED) gentoo-dev 2004-09-08 08:23:50 UTC
Following the new java policy, packages shouldn't rely on packed jars, dependencies need to be added on our own packages and used.
Comment 1 charles17 2008-04-08 15:54:24 UTC
Created attachment 149108 [details]
First attempt of unbundeling as many as possible JAR files

Starting from the stable release of Cocoon-2.1.10 I've tried to unbundle as many as possible bundeled jars.  To keep it simple for the beginning, I completely disabeled all "blocks" and dismissed them without replacements.  So, the result will give a very basic cocoon.  

Those files that could not successfully be replaced were kept as bundeles and are listed here:
/work/cocoon-2.1.10/lib/core/avalon-framework-api-4.3.jar
/work/cocoon-2.1.10/lib/core/avalon-framework-impl-4.3.jar
/work/cocoon-2.1.10/lib/core/excalibur-i18n-1.1.jar
/work/cocoon-2.1.10/lib/core/excalibur-naming-1.0.jar
/work/cocoon-2.1.10/lib/core/excalibur-pool-instrumented-2.1.jar
/work/cocoon-2.1.10/lib/core/excalibur-sourceresolve-2.1.jar
/work/cocoon-2.1.10/lib/core/excalibur-store-2.1.jar
/work/cocoon-2.1.10/lib/core/excalibur-xmlutil-2.1.jar
/work/cocoon-2.1.10/lib/core/javacApi-0.9.jar
/work/cocoon-2.1.10/lib/core/javacImpl-0.9.jar
/work/cocoon-2.1.10/lib/core/jdtcore-3.0.2.jar
/work/cocoon-2.1.10/lib/core/js-1.6R5.jar
/work/cocoon-2.1.10/lib/endorsed/xalan-2.7.0.jar
/work/cocoon-2.1.10/tools/instrumentation/lib/excalibur-instrument-client-2.1.jar
/work/cocoon-2.1.10/tools/jetty/lib/jetty-4.2.23.jar
/work/cocoon-2.1.10/tools/jetty/lib/servlet-2.3.jar

Building cocoon works fine with zero errors and 11 warnings.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2008-04-08 23:29:37 UTC
(In reply to comment #1)
> /work/cocoon-2.1.10/lib/core/js-1.6R5.jar

dev-java/rhino:1.6 most likely

> /work/cocoon-2.1.10/lib/endorsed/xalan-2.7.0.jar

dev-java/xalan

> /work/cocoon-2.1.10/tools/jetty/lib/servlet-2.3.jar

java-virtuals/servlet-api
Comment 3 charles17 2008-04-09 12:58:59 UTC
So the lisst of unresolved bundles is trimmed down to:

Bug 216803	lib/core/avalon-framework-api-4.3.jar
Bug 216803	lib/core/avalon-framework-impl-4.3.jar
Bug 176099	lib/core/excalibur-i18n-1.1.jar
Bug 216810	lib/core/excalibur-naming-1.0.jar
Bug 161940	lib/core/excalibur-pool-instrumented-2.1.jar
Bug 163936	lib/core/excalibur-sourceresolve-2.1.jar
Bug 216826	lib/core/excalibur-store-2.1.jar
Bug 216828	lib/core/excalibur-xmlutil-2.1.jar
Bug ?216828?	lib/core/javacApi-0.9.jar
Bug 216791	lib/core/javacImpl-0.9.jar
Still trying	lib/core/jdtcore-3.0.2.jar
Troubles	lib/endorsed/xalan-2.7.0.jar
Bug ?161940?	tools/instrumentation/lib/excalibur-instrument-client-2.1.jar
Still trying	tools/jetty/lib/jetty-4.2.23.jar

Xalan makes some trouble on compilation and I am still trying with large dependencies of jetty and jdtcore.
Comment 4 charles17 2008-04-10 04:35:38 UTC
More unresolved bundle jar files from /lib/optional:

chaperon-20040205.jar
cocoon-serializers-charsets-0.2.jar
daisy-htmlcleaner-1.4.1.jar
daisy-util-1.4.1.jar
db-ojb-1.0.4.jar
deli-x050330.jar
dojo-rsrc-20060614.jar
excalibur-datasource-2.1.jar
geronimo-spec-activation-1.0.2-rc4.jar
geronimo-spec-javamail-1.3.1-rc5.jar
geronimo-spec-jms-1.1-rc3.jar
geronimo-spec-jta-1.0.1B-rc3.jar
jackrabbit-core-1.0.1.jar
arta-slide-webdavlib.jar
jdbi-1.3.1.jar
jena-2.1.jar
joost-20040330.jar
jsp-api-2.0.jar
myfaces-api-r233484.jar
myfaces-impl-r233484.jar
nekodtd-0.1.11.jar
pizza-1.1.jar
pluto-1.0.1.jar
portals-bridges-common-1.0.jar
portlet-api-1.0.jar
quartz-1.5.2.jar
slide-kernel-2.1.jar
slide-stores-2.1.jar
slide-webdavservlet-2.1.jar
spark-0.2.jar
wsrp4j-consumer-0.3-dev.jar
wsrp4j-shared-0.3-dev.jar
xindice-1.1b4.jar
xmldb-common-20030701.jar
xmldb-xupdate-20040205.jar
xreporter-expression-r683.jar
Comment 5 charles17 2008-04-11 20:08:38 UTC
Created attachment 149430 [details]
Only 38 unresolved bundled jar files

We're getting closer.  Using some ebuilds from the overlay there are now only 38 unresolved bundled jar files.  
avalon-framework-api-4.3.jar
avalon-framework-impl-4.3.jar
excalibur-xmlutil-2.1.jar
excalibur-naming-1.0.jar
excalibur-sourceresolve-2.1.jar
excalibur-store-2.1.jar
javacApi-0.9.jar
javacImpl-0.9.jar
chaperon-20040205.jar
cocoon-serializers-charsets-0.2.jar
daisy-htmlcleaner-1.4.1.jar
daisy-util-1.4.1.jar
db-ojb-1.0.4.jar
deli-x050330.jar
dojo-rsrc-20060614.jar
excalibur-datasource-2.1.jar
jackrabbit-core-1.0.1.jar
jdbi-1.3.1.jar
jena-2.1.jar
joost-20040330.jar
jsp-api-2.0.jar
myfaces-impl-r233484.jar
nekodtd-0.1.11.jar
pizza-1.1.jar
pluto-1.0.1.jar
portals-bridges-common-1.0.jar
quartz-1.5.2.jar
slide-kernel-2.1.jar
slide-stores-2.1.jar
slide-webdavservlet-2.1.jar
spark-0.2.jar
wsrp4j-consumer-0.3-dev.jar
wsrp4j-shared-0.3-dev.jar
xindice-1.1b4.jar
xmldb-xupdate-20040205.jar
xreporter-expression-r683.jar
excalibur-instrument-client-2.1.jar
jetty-4.2.23.jar
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2008-04-11 23:55:54 UTC
(In reply to comment #5)
> jsp-api-2.0.jar

servlet-api:2.4

> xindice-1.1b4.jar

dev-db/xindice

> xmldb-xupdate-20040205.jar

dev-java/xmldb?
Comment 7 charles17 2008-04-12 10:35:48 UTC
(In reply to comment #6)
> > jsp-api-2.0.jar
> 
> servlet-api:2.4
> 
Done

> > xindice-1.1b4.jar
> 
> dev-db/xindice
> 
> > xmldb-xupdate-20040205.jar
> 
> dev-java/xmldb?
> 
How to use with "java-pkg_jar-from"?

/opt/xindice/java/lib/xindice.jar
/opt/xindice/java/lib/xmldb-xupdate.jar
/opt/xindice/java/lib/xmldb.jar
Comment 8 charles17 2008-04-12 10:39:53 UTC
Created attachment 149468 [details]
Resolved jsp-api.jar using dev-java/servletapi
Comment 9 charles17 2008-04-12 19:40:25 UTC
Created attachment 149504 [details]
Blocks no longer deactivated

Returned to standard setting (not using "local.blocks.properties")
Comment 10 charles17 2008-04-13 09:44:14 UTC
Created attachment 149540 [details]
Compiler message with dev-java/bcel

Need help with rewriting classpath.
Comment 11 charles17 2008-04-13 09:48:57 UTC
Created attachment 149542 [details]
Diff content of bcel.jar

Comparing jakarta-bcel-20040329.jar from Cocoon and bcel.jar from portage I find these differences.
Comment 12 Ralph Sennhauser (RETIRED) gentoo-dev 2012-06-11 14:52:22 UTC
From http://cocoon.apache.org//3.0/

Apache Cocoon 3 is a major rewrite of Cocoon 2.2. Like Cocoon 2 it is based around the concept of pipelines and sitemaps and it is very similar to Cocoon 2.2 in many respects but is slimmed down and designed to be easily used with Java code (= no frameworks required!). On top of this, Cocoon 3 has the goal of becoming the best available platform for RESTful webservices and web applications.

Sounds like more dependencies isn't seen as a feature anymore. Anyone interested to work on this?
Comment 13 James Le Cuirot gentoo-dev 2015-08-28 20:07:48 UTC
This has been last-rited. Closing.