Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5D857792 for ; Fri, 9 Dec 2011 14:35:49 +0000 (UTC) Received: (qmail 9666 invoked by uid 500); 9 Dec 2011 14:35:49 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 9604 invoked by uid 500); 9 Dec 2011 14:35:49 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 9597 invoked by uid 99); 9 Dec 2011 14:35:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 14:35:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [146.6.25.6] (HELO irongate.mail.utexas.edu) (146.6.25.6) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 14:35:44 +0000 DomainKey-Signature: s=main; d=austin.utexas.edu; c=nofws; q=dns; h=X-IronPort-MID:X-Utexas-Seen-Inbound:Received:Received: From:To:CC:Subject:Thread-Topic:Thread-Index:Date: Message-ID:References:In-Reply-To:Accept-Language: Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: x-originating-ip:Content-Type:MIME-Version; b=Kc8PrDRUS1xl3i6KQgwtPNqtEZcsqyMkmGxXiPohuxcK9HY/hVwNQMUi 9wCg6ayDN/y2g36YUDp2JeBR9TD/UQUX5CXGS+9K9G3O0/LT4JB6XLIKM IgcaIT07CyrFCWbxx5+4/z1t+zrSkkDkqVaVU1lqdaXBBVUr/FFpk5mkQ 0=; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austin.utexas.edu; i=joe.devries@austin.utexas.edu; q=dns/txt; s=main; t=1323441344; x=1354977344; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20"DeVries,=20Joe"=20|Subject:=20RE:=20Determining=20blocks=20specified=20fo r=20building=20an=20existing=20cocoon=0D=0A=202.1.9=20jar |Date:=20Fri,=209=20Dec=202011=2014:35:22=20+0000 |Message-ID:=20|To:=20Robby=20Pelssers=20,=20"dev@cocoon.apache.org"=0D=0A=09|CC:=20"Sands=20Alden=20Fish=20(sand s@mit.edu)"=20,=20"Scott=20Phillips=0D=0A =20(scott.a.phillips@gmail.com)"=20|MIME-Version:=201.0|In-Reply-To:=20<78B923726E7D59 429936580CF127E943A1EE5F3B30@eu1rdcrdc1wx032.exi.nxp.com> |References:=20=0D=0A=20<78B923726E7D594299365 80CF127E943A1EE4D18B6@eu1rdcrdc1wx032.exi.nxp.com>=0D=0A =20=0D=0A=20<78B923726E7D59429936580CF127E943A 1EE4D1DB9@eu1rdcrdc1wx032.exi.nxp.com>=0D=0A=20=0D=0A=20<78B923726E7D59429936580CF127E943A1EE5F3B30@eu1 rdcrdc1wx032.exi.nxp.com>; bh=TgO6KpTLX1yPpP4dYDcvBU9YnHMMqThXyRk1tFj19UE=; b=OPolpyBwEmoczPq6RAkruYOrv7aDiaX+2zyWdqbga5nQR3Q8TwfsFcXg a1ZSq4Z9W8SWzqPvHFNmKTEMwgrqUXbsMyTYclgDtpHa76awLwzI12iee ytJOfyGzk8gX8/ErdgdwarWdle3HKQBjlBKKyGutUnoGPsEwpTeKYM5O1 c=; X-IronPort-MID: 147036413 X-Utexas-Seen-Inbound: true Received: from exdhub01.austin.utexas.edu ([172.16.71.118]) by irongate.mail.utexas.edu with ESMTP; 09 Dec 2011 08:35:24 -0600 Received: from EXMBX01.austin.utexas.edu ([fe80::85d7:1e8c:643:dcf6]) by EXDHUB01.austin.utexas.edu ([fe80::3464:8ed:b29c:75f5%13]) with mapi id 14.01.0339.002; Fri, 9 Dec 2011 08:35:23 -0600 From: "DeVries, Joe" To: Robby Pelssers , "dev@cocoon.apache.org" CC: "Sands Alden Fish (sands@mit.edu)" , "Scott Phillips (scott.a.phillips@gmail.com)" Subject: RE: Determining blocks specified for building an existing cocoon 2.1.9 jar Thread-Topic: Determining blocks specified for building an existing cocoon 2.1.9 jar Thread-Index: Acy150H6ByAWEy6+SJ6jb2DNhX5FMwAAeFdQAAAxaPAAFssC8AANjJ/gAACa4tAAAEh38A== Date: Fri, 9 Dec 2011 14:35:22 +0000 Message-ID: References: <78B923726E7D59429936580CF127E943A1EE4D18B6@eu1rdcrdc1wx032.exi.nxp.com> <78B923726E7D59429936580CF127E943A1EE4D1DB9@eu1rdcrdc1wx032.exi.nxp.com> <78B923726E7D59429936580CF127E943A1EE5F3B30@eu1rdcrdc1wx032.exi.nxp.com> In-Reply-To: <78B923726E7D59429936580CF127E943A1EE5F3B30@eu1rdcrdc1wx032.exi.nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.83.231.126] Content-Type: multipart/alternative; boundary="_000_E6F0FC607D659F4D82A46DD33EE345C00E1F9945EXMBX01austinut_" MIME-Version: 1.0 --_000_E6F0FC607D659F4D82A46DD33EE345C00E1F9945EXMBX01austinut_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The application is mission critical and not trivial to rewrite. We are cur= rently evaluating options for a better long term solution including switchi= ng the underlying DSpace to version 1.8.x which uses Cocoon 2.2. I was h= oping for a 'quick' solution to be able to better debug the current code ba= se, but I agree that this may not be a viable option. Thanks Again, Joe -- Joe DeVries Sr Software Developer/Analyst Digital Library Services, TDL University of Texas at Austin 512-495-4639 PCL 1.335 / S5477 From: Robby Pelssers [mailto:Robby.Pelssers@nxp.com] Sent: Friday, December 09, 2011 8:28 AM To: DeVries, Joe; dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu); Scott Phillips (scott.a.phillips@gmai= l.com) Subject: RE: Determining blocks specified for building an existing cocoon 2= .1.9 jar Hi Joe, I can understand that you want to be able to restore a situation where you = actually have matching sources and config for your existing application. = On the other hand this might be a tricky task from the looks of it. Is this= a huge application?! Porting the app to Cocoon2.2 or Cocoon 3 is no optio= n? I'm pretty sure you will like working with the newer versions even more= and even I am planning to switch from Cocoon2.2 to Cocoon3 next year. I kn= ow this involves a lot of work but sometimes the effort is worth the return= you get. If you guys should consider moving to C2 or higher there might be more resp= onse to help out. If this is impossible maybe some die hard 'Cocoon 2.1.x= ' people can give more help. Robby From: DeVries, Joe [mailto:joe.devries@austin.utexas.edu] Sent: Friday, December 09, 2011 3:19 PM To: Robby Pelssers; dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu); Scott Phillips = (scott.a.phillips@gmail.com) Subject: RE: Determining blocks specified for building an existing cocoon 2= .1.9 jar Hi Robby, Regarding my objective, we have an application which relies on an old versi= on of DSpace. DSpace 1.5.1 uses the custom cocoon jar for which we no long= er have the source, or ability to recreate. I would like to build a 2.1.9 = jar and have the source for debugging that is compatible with the existing = version. My other objective (and likely the more important one) is to ga= in a better understanding of how Cocoon works. Thanks for looking into it, I appreciate your help. Joe -- Joe DeVries Sr Software Developer/Analyst Digital Library Services, TDL University of Texas at Austin 512-495-4639 PCL 1.335 / S5477 From: Robby Pelssers [mailto:Robby.Pelssers@nxp.com] Sent: Friday, December 09, 2011 1:43 AM To: dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu); Scott Phillips = (scott.a.phillips@gmail.com); DeVries, J= oe Subject: RE: Determining blocks specified for building an existing cocoon 2= .1.9 jar I'm not really that familiar with the building of Cocoon2.1.x apps but shou= ldn't there be some blocks.properties (not 100% sure about the name) file u= sed by ant where you can determine which blocks you want to include? That = would be a good starting point to compare with the default one. By the way, I noticed that the last modified timestamps were very similar, = as if the Dspace jar was from a scheduled build from another day. Regular cocoon jar : 4/12/2006 12:56 PM DSpace jar: 4/11/2006 12:56 PM Can you also explain what the point is of this exercise? You don't have th= e sources used to build the DSpace.jar in some source repository? Kind regards, Robby From: DeVries, Joe [mailto:joe.devries@austin.utexas.edu] Sent: Thursday, December 08, 2011 10:43 PM To: dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu); Scott Phillips = (scott.a.phillips@gmail.com) Subject: RE: Determining blocks specified for building an existing cocoon 2= .1.9 jar Hi Robby, I ran Java Decompiler on both jars and compared the resulting files. Unfor= tunately there are over 600 differences (see attached list), with oddities = such as: cocoon-2.1.9.src\org\apache\cocoon\Cocoon.java cocoon: boolean result =3D this.threadSafeProcessor.process(environment); dspace -2.1.9.src\org\apache\cocoon\Cocoon.java: result =3D this.threadSafeProcessor.process(environment); However, I don't know very much about decompiling, so maybe these are misle= ading results. There are also 6 new classes in the DSpace version: org\apache\cocoon\components\flow\javascript\fom \CompilingClassLoader$1.ja= va org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader$2.ja= va org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader$3.ja= va org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader$4.ja= va org\apache\cocoon\generation\ JXTemplateGenerator$3.java org\apache\cocoon\transformation\IncludeTransformer$1.java I was going to look into a tool like clirr to check for binary compatibilit= y and see if that can narrow down any differences. Joe -- Joe DeVries Sr Software Developer/Analyst Digital Library Services, TDL University of Texas at Austin 512-495-4639 PCL 1.335 / S5477 From: Robby Pelssers [mailto:Robby.Pelssers@nxp.com] Sent: Thursday, December 08, 2011 2:39 PM To: dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu) Subject: RE: Determining blocks specified for building an existing cocoon 2= .1.9 jar I unpacked both jar files with winrar and noticed some differences in size = for a few files. One of those files is cocoon.roles for example. I suggest you take the same approach and find out by using some compare too= l to find the exact differences. Kind regards. Robby Pelssers From: DeVries, Joe [mailto:joe.devries@austin.utexas.edu] Sent: Thursday, December 08, 2011 9:25 PM To: dev@cocoon.apache.org Cc: Sands Alden Fish (sands@mit.edu) Subject: Determining blocks specified for building an existing cocoon 2.1.9= jar Hello, I am trying to recreate a custom built Cocoon 2.1.9 jar used by DSpace. Th= e custom jar has a different size and checksum from the 'official' cocoon-2= .0.9.jar, and I don't believe that there were and changes to the source cod= e. It was likely built with certain blocks included/excluded. Is it possible to somehow determine which blocks were included/excluded at = build time by looking at an existing jar file? http://repo1.maven.org/maven2/org/dspace/xmlui/cocoon/cocoon/2.1.9/cocoon-2= .1.9.jar md5: 8f4d38294286cb550a2262720833fb55 http://mirrors.ibiblio.org/pub/mirrors/maven2/cocoon/cocoon/2.1.9/cocoon-2.= 1.9.jar md5: 1d80a0a9ed50764c06b664427a2d5098 Thanks, Joe DeVries -- Joe DeVries Sr Software Developer/Analyst Digital Library Services, TDL University of Texas at Austin 512-495-4639 PCL 1.335 / S5477 --_000_E6F0FC607D659F4D82A46DD33EE345C00E1F9945EXMBX01austinut_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

The application is mis= sion critical and not trivial to rewrite.  We are currently evaluating= options for a better long term solution including switching the underlying= DSpace to version 1.8.x which uses Cocoon 2.2.    I was hoping for a ‘quick’ solution to = be able to better debug the current code base, but I agree that this may no= t be a viable option.

 

Thanks Again,


Joe

 

--

Joe DeVries

Sr Software Developer/Analy= st

Digital Library Services, T= DL

University of Texas at Aust= in

512-495-4639

PCL 1.335 / S5477

 

From: Robby Pe= lssers [mailto:Robby.Pelssers@nxp.com]
Sent: Friday, December 09, 2011 8:28 AM
To: DeVries, Joe; dev@cocoon.apache.org
Cc: Sands Alden Fish (sands@mit.edu); Scott Phillips (scott.a.philli= ps@gmail.com)
Subject: RE: Determining blocks specified for building an existing c= ocoon 2.1.9 jar

 

Hi Joe,

 

I can understand that = you want to be able to restore a situation where you actually have matching= sources and config for your existing application.   On the other= hand this might be a tricky task from the looks of it. Is this a huge application?!  Porting the app to Cocoon2.2 or = Cocoon 3 is no option?  I’m pretty sure you will like working wi= th the newer versions even more and even I am planning to switch from Cocoo= n2.2 to Cocoon3 next year. I know this involves a lot of work but sometimes the effort is worth the return you get.

 

If you guys should con= sider moving to C2 or higher there might be more response to help out. &nbs= p; If this is impossible maybe some die hard ‘Cocoon 2.1.x’= ; people can give more help.

 

Robby

 

From: DeVries,= Joe [mailto:joe.devri= es@austin.utexas.edu]
Sent: Friday, December 09, 2011 3:19 PM
To: Robby Pelssers; dev@coc= oon.apache.org
Cc: Sands Alden Fish (sands@mit.edu= ); Scott Phillips (scott.= a.phillips@gmail.com)
Subject: RE: Determining blocks specified for building an existing c= ocoon 2.1.9 jar

 

Hi Robby,

 

Regarding my objective= , we have an application which relies on an old version of DSpace.  DS= pace 1.5.1 uses the custom cocoon jar for which we no longer have the sourc= e, or ability to recreate.  I would like to build a 2.1.9 jar and have the source for debugging that is compatible = with the existing version.    My other objective (and likely= the more important one) is to gain a better understanding of how Cocoon wo= rks.

 

Thanks for looking int= o it, I appreciate your help.

 

Joe<= /p>

 

--

Joe DeVries

Sr Software Developer/Analy= st

Digital Library Services, T= DL

University of Texas at Aust= in

512-495-4639

PCL 1.335 / S5477

 

From: Robby Pe= lssers [mailto:Robby.Pelssers@n= xp.com]
Sent: Friday, December 09, 2011 1:43 AM
To: dev@cocoon.apache.org
Cc: Sands Alden Fish (
sands@mit.edu= ); Scott Phillips (scott.= a.phillips@gmail.com); DeVries, Joe
Subject: RE: Determining blocks specified for building an existing c= ocoon 2.1.9 jar

 

I’m not really t= hat familiar with the building of Cocoon2.1.x apps but shouldn’t ther= e be some blocks.properties (not 100% sure about the name) file used by ant= where you can determine which blocks you want to include?  That would be a good starting point to compare with the def= ault one.

 

By the way, I noticed = that the last modified timestamps were very similar, as if the Dspace jar w= as from a scheduled build from another day.

Regular cocoon jar : 4= /12/2006 12:56 PM

DSpace jar: 4/11/2006 = 12:56 PM

 

Can you also explain w= hat the point is of this exercise?  You don’t have the sources u= sed to build the DSpace.jar in some source repository?

 

Kind regards,

Robby

From: DeVries,= Joe [mailto:joe.devri= es@austin.utexas.edu]
Sent: Thursday, December 08, 2011 10:43 PM
To: dev@cocoon.apache.org
Cc: Sands Alden Fish (
sands@mit.edu= ); Scott Phillips (scott.= a.phillips@gmail.com)
Subject: RE: Determining blocks specified for building an existing c= ocoon 2.1.9 jar

 

Hi Robby,

 

I ran Java Decompiler = on both jars and compared the resulting files.  Unfortunately there ar= e over 600 differences (see attached list), with oddities such as:

 

cocoon-2.1.9.src\org\a= pache\cocoon\Cocoon.java cocoon:

boolean result =3D thi= s.threadSafeProcessor.process(environment);

 

dspace -2.1.9.src\org\= apache\cocoon\Cocoon.java:     

result =3D this.thread= SafeProcessor.process(environment);

 

However, I don’t= know very much about decompiling, so maybe these are misleading results.

 

There are also 6 new c= lasses in the DSpace version:

org\apache\cocoon\components\flow\javascript\fom \CompilingClassLoader= $1.java

org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader= $2.java

org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader= $3.java

org\apache\cocoon\components\flow\javascript\fom\ CompilingClassLoader= $4.java

org\apache\cocoon\generation\ JXTemplateGenerator$3.java

org\apache\cocoon\transformation\IncludeTransformer$1.java<= /span>

 

I was going to look in= to a tool like clirr to check for binary compatibility and see if that can = narrow down any differences.

 

Joe<= /p>

 

--

Joe DeVries

Sr Software Developer/Analy= st

Digital Library Services, T= DL

University of Texas at Aust= in

512-495-4639

PCL 1.335 / S5477

 

From: Robby Pe= lssers [mailto:Robby.Pelssers@n= xp.com]
Sent: Thursday, December 08, 2011 2:39 PM
To: dev@cocoon.apache.org
Cc: Sands Alden Fish (
sands@mit.edu= )
Subject: RE: Determining blocks specified for building an existing c= ocoon 2.1.9 jar

 

I unpacked both jar fi= les with winrar and noticed some differences in size for a few files. = One of those files is cocoon.roles for example.

 

I suggest you take the= same approach and find out by using some compare tool to find the exact di= fferences.

 

Kind regards.

Robby Pelssers

 

From: DeVries,= Joe [mailto:joe.devri= es@austin.utexas.edu]
Sent: Thursday, December 08, 2011 9:25 PM
To: dev@cocoon.apache.org
Cc: Sands Alden Fish (
sands@mit.edu= )
Subject: Determining blocks specified for building an existing cocoo= n 2.1.9 jar

 

Hello,

I am trying to recreate a custom built Cocoon 2.1.9 jar used by DSpace.&nbs= p; The custom jar has a different size and checksum from the ‘officia= l’ cocoon-2.0.9.jar, and I don't believe that there were and changes = to the source code.  It was likely built with certain blocks included/excluded. 

Is it possible to som= ehow determine which blocks were included/excluded at build time by looking= at an existing jar file?

http://repo1.maven.org/maven2/org/dspace/xmlui/cocoon/= cocoon/2.1.9/cocoon-2.1.9.jar
md5: 8f4d38294286cb550a2262720833fb55

http://mirrors.ibiblio.org/pub/mirrors/maven2/cocoon/cocoon/2.1.9/cocoo= n-2.1.9.jar
md5: 1d80a0a9ed50764c06b664427a2d5098


Thanks,
Joe DeVries

 

 

--

Joe DeVries

Sr Software Developer/Analyst<= /span>

Digital Library Services, TDL<= /span>

University of Texas at Austin<= /span>

512-495-4639

PCL 1.335 / S5477

 

--_000_E6F0FC607D659F4D82A46DD33EE345C00E1F9945EXMBX01austinut_--