You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Alan D. Cabrera" <ad...@toolazydogs.com> on 2009/01/21 08:08:13 UTC

Building samples

I'm having trouble building the samples and am loath to read the Ant  
files.  :)

What are the commands to build them?


Regards,
Alan


Re: Building samples

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
[873]nobu:adc:trunk$ ant samples
Buildfile: build.xml

download-ivy:
      [echo] Installing Ivy for automated dependecy management...
       [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/ivy-2.0.0-beta2.jar
       [get] To: /Users/adc/.ant/lib/ivy.jar
       [get] Not modified - so not downloaded

load-ivy:

retrieve-dependencies:
No ivy:settings found for the default reference 'ivy.instance'.  A  
default instance will be used
      [null] no settings file found, using default...
      [null] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ 
  ::
      [null] :: loading settings :: url = jar:file:/Users/adc/.ant/lib/ 
ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.jsecurity#jsecurity; 
0.9.0
[ivy:retrieve] 	confs: [core, web, ehcache, quartz, spring, samples,  
retroweaver, test, docbook]
[ivy:retrieve] 	found commons-logging#commons-logging;1.1.1 in public
[ivy:retrieve] 	found commons-beanutils#commons-beanutils;1.7.0 in  
public
[ivy:retrieve] 	found javax.servlet#servlet-api;2.4 in public
[ivy:retrieve] 	found javax.servlet.jsp#jsp-api;2.0 in public
[ivy:retrieve] 	found net.sf.ehcache#ehcache;1.4.1 in public
[ivy:retrieve] 	found quartz#quartz;1.5.2 in public
[ivy:retrieve] 	found org.springframework#spring;2.5.6 in public
[ivy:retrieve] 	found org.springframework#spring-webmvc;2.5.6 in public
[ivy:retrieve] 	found backport-util-concurrent#backport-util- 
concurrent;3.1 in public
[ivy:retrieve] 	found xerces#xercesImpl;2.8.1 in public
[ivy:retrieve] 	found log4j#log4j;1.2.15 in public
[ivy:retrieve] 	found javax.servlet#jstl;1.2 in public
[ivy:retrieve] 	found taglibs#standard;1.1.2 in public
[ivy:retrieve] 	found hsqldb#hsqldb;1.8.0.7 in public
[ivy:retrieve] 	found org.hibernate#hibernate;3.2.6.ga in public
[ivy:retrieve] 	found asm#asm-attrs;1.5.3 in public
[ivy:retrieve] 	found dom4j#dom4j;1.6.1 in public
[ivy:retrieve] 	found antlr#antlr;2.7.6 in public
[ivy:retrieve] 	found cglib#cglib;2.1_3 in public
[ivy:retrieve] 	found asm#asm;1.5.3 in public
[ivy:retrieve] 	found commons-collections#commons-collections;2.1.1 in  
public
[ivy:retrieve] 	found org.apache.geronimo.specs#geronimo- 
jta_1.0.1B_spec;1.1.1 in public
[ivy:retrieve] 	found net.sourceforge.retroweaver#retroweaver;2.0.5 in  
public
[ivy:retrieve] 	found asm#asm-commons;3.1 in public
[ivy:retrieve] 	found asm#asm-tree;3.1 in public
[ivy:retrieve] 	found asm#asm;3.1 in public
[ivy:retrieve] 	found asm#asm-util;3.1 in public
[ivy:retrieve] 	found net.sourceforge.retroweaver#retroweaver-rt;2.0.5  
in public
[ivy:retrieve] 	found org.jsecurity#docbook-libs;1.0.0 in public
[ivy:retrieve] 	found org.easymock#easymock;2.3 in public
[ivy:retrieve] 	found org.easymock#easymockclassextension;2.3 in public
[ivy:retrieve] 	found junit#junit;4.4 in public
[ivy:retrieve] :: resolution report :: resolve 903ms :: artifacts dl  
24ms
[ivy:retrieve] 	:: evicted modules:
[ivy:retrieve] 	net.sf.ehcache#ehcache;1.2.3 by  
[net.sf.ehcache#ehcache;1.4.1] in [samples, test]
[ivy:retrieve] 	commons-logging#commons-logging;1.0.4 by [commons- 
logging#commons-logging;1.1.1] in [samples, test]
[ivy:retrieve] 	asm#asm;1.5.3 by [asm#asm;3.1] in [test]
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|       core       |   2   |   0   |   0   |   0   ||   2   |   0   |
	|        web       |   4   |   0   |   0   |   0   ||   4   |   0   |
	|      ehcache     |   3   |   0   |   0   |   0   ||   3   |   0   |
	|      quartz      |   3   |   0   |   0   |   0   ||   3   |   0   |
	|      spring      |   6   |   0   |   0   |   0   ||   6   |   0   |
	|      samples     |   24  |   0   |   0   |   2   ||   22  |   0   |
	|    retroweaver   |   7   |   0   |   0   |   0   ||   7   |   0   |
	|       test       |   34  |   0   |   0   |   3   ||   31  |   0   |
	|      docbook     |   1   |   0   |   0   |   0   ||   1   |   0   |
	---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.jsecurity#jsecurity [sync]
[ivy:retrieve] 	confs: [core, web, ehcache, quartz, spring, samples,  
retroweaver, test, docbook]
[ivy:retrieve] 	0 artifacts copied, 79 already retrieved (0kB/73ms)

init:

compile:
      [echo] Compiling all modules...

template:
      [echo] Executing 'compile' for the core module...

compile.src:
     [javac] Compiling 28 source files to /Users/adc/dev/jsecurity/ 
trunk/core/build/classes

compile.test:

compile:
      [echo] Executing 'compile' for the web module...

compile.src:
     [javac] Compiling 9 source files to /Users/adc/dev/jsecurity/ 
trunk/web/build/classes

compile.test:

compile:
      [echo] Executing 'compile' for the ehcache module...

compile.src:
     [javac] Compiling 1 source file to /Users/adc/dev/jsecurity/trunk/ 
support/ehcache/build/classes

compile:
      [echo] Executing 'compile' for the spring module...

compile.src:
     [javac] Compiling 3 source files to /Users/adc/dev/jsecurity/ 
trunk/support/spring/build/classes

compile.test:

compile:
      [echo] Executing 'compile' for the quartz module...

compile.src:
     [javac] Compiling 1 source file to /Users/adc/dev/jsecurity/trunk/ 
support/quartz/build/classes

compile:

jar.jdk15:

BUILD FAILED
/Users/adc/dev/jsecurity/trunk/common.ant.xml:118: /Users/adc/dev/ 
jsecurity/trunk/build/classes not found.

Total time: 4 seconds
[874]nobu:adc:trunk$

On Jan 21, 2009, at 9:28 AM, Jeremy Haile wrote:

> I just built the samples successfully with no errors with the latest  
> code from trunk.  If you provide more information about how/why your  
> targets failed, I'd be happy to help diagnose/correct the problem.
>
>
>
> On Jan 21, 2009, at 10:15 AM, Alan D. Cabrera wrote:
>
>> Ok, I did try that and the targets failed.  Do they work for you  
>> guys?
>>
>>
>> Regards,
>> Alan
>>
>> On Jan 21, 2009, at 6:57 AM, Jeremy Haile wrote:
>>
>>> Alan,
>>>
>>> With ant, you can type "ant -p" to get a list of all of the  
>>> targets and their descriptions.  There's no need to go digging  
>>> through an ant file.  If you do that, you'll see there are several  
>>> "samples" related ant targets, but the one you are interested in  
>>> is probably the "samples" target which builds all of the sample  
>>> applications.
>>>
>>> Jeremy
>>>
>>> On Jan 21, 2009, at 2:08 AM, Alan D. Cabrera wrote:
>>>
>>>> I'm having trouble building the samples and am loath to read the  
>>>> Ant files.  :)
>>>>
>>>> What are the commands to build them?
>>>>
>>>>
>>>> Regards,
>>>> Alan
>>>>
>>>
>>>
>>
>
>


Re: Building samples

Posted by Les Hazlewood <lh...@apache.org>.
Thanks for helping - I won't be able to look at this until after work...

On Wed, Jan 21, 2009 at 12:28 PM, Jeremy Haile <jh...@fastmail.fm> wrote:

> I just built the samples successfully with no errors with the latest code
> from trunk.  If you provide more information about how/why your targets
> failed, I'd be happy to help diagnose/correct the problem.
>
>
>
>
> On Jan 21, 2009, at 10:15 AM, Alan D. Cabrera wrote:
>
>  Ok, I did try that and the targets failed.  Do they work for you guys?
>>
>>
>> Regards,
>> Alan
>>
>> On Jan 21, 2009, at 6:57 AM, Jeremy Haile wrote:
>>
>>  Alan,
>>>
>>> With ant, you can type "ant -p" to get a list of all of the targets and
>>> their descriptions.  There's no need to go digging through an ant file.  If
>>> you do that, you'll see there are several "samples" related ant targets, but
>>> the one you are interested in is probably the "samples" target which builds
>>> all of the sample applications.
>>>
>>> Jeremy
>>>
>>> On Jan 21, 2009, at 2:08 AM, Alan D. Cabrera wrote:
>>>
>>>  I'm having trouble building the samples and am loath to read the Ant
>>>> files.  :)
>>>>
>>>> What are the commands to build them?
>>>>
>>>>
>>>> Regards,
>>>> Alan
>>>>
>>>>
>>>
>>>
>>
>

Re: Building samples

Posted by Les Hazlewood <lh...@apache.org>.
I just re-enabled the samples build.  When I refactored the build into
modules, I forgot to enable the samples.  They are now enabled like any
other module.  Also, the dist directory (<projectRoot>/jsecurity-{version}/
is cleaner now, with the 'full' jsecurity.jar in this directory and the
modules and samples .jars/wars in their respective subdirectories.  This is
cleaner and easier to peruse.

Finally, although the samples builds are re-enabled and building/packaging
functions correctly, I'm fairly certain a few of them would fail at
runtime.  I created an issue to track this:

https://issues.apache.org/jira/browse/JSEC-47

This would be a good issue for someone to work on that hasn't had much
runtime experience with JSecurity - they'll experience first hand how to
debug/set-up an application.  Most of the samples already have a head-start
and wouldn't take much work to get one or more running again.  Any takers?
;)

- Les

On Wed, Jan 21, 2009 at 3:45 PM, Les Hazlewood <lh...@apache.org>wrote:

> Interesting - although again I can't test this out until tonight, it seems
> that a classes dir that is being referenced in the ant file does not exist
> on disk.  Doesn't sound like an Ivy issue to me.  I'll check it out when I
> get home.  I'll prolly blast my local Ivy cache anyway just in case.
>
>
> On Wed, Jan 21, 2009 at 3:20 PM, Emmanuel Lecharny <el...@gmail.com>wrote:
>
>>  Jeremy Haile wrote:
>>
>>> I just built the samples successfully with no errors with the latest code
>>> from trunk.  If you provide more information about how/why your targets
>>> failed, I'd be happy to help diagnose/correct the problem.
>>>
>>
>> I got the same errors than Alan. I just did a full build (ant), and then a
>> build samples :
>>
>> BUILD FAILED
>> /home/elecharny/apacheds/jsecurity/trunk/common.ant.xml:118:
>> /home/elecharny/apacheds/jsecurity/trunk/build/classes not found.
>>
>>
>> Java 1.6.0_10
>> Apache Ant version 1.7.0 compiled on December 13 2006
>>
>> http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/ivy-2.0.0-beta2.jar
>> linux
>> fresh Jsecurity check out.
>>
>> I suggest you doom your ivy repo, and co jsecurity from scratch.
>>
>> --
>> --
>> cordialement, regards,
>> Emmanuel Lécharny
>> www.iktek.com
>> directory.apache.org
>>
>>
>>
>

Re: Building samples

Posted by Les Hazlewood <lh...@apache.org>.
Interesting - although again I can't test this out until tonight, it seems
that a classes dir that is being referenced in the ant file does not exist
on disk.  Doesn't sound like an Ivy issue to me.  I'll check it out when I
get home.  I'll prolly blast my local Ivy cache anyway just in case.

On Wed, Jan 21, 2009 at 3:20 PM, Emmanuel Lecharny <el...@gmail.com>wrote:

> Jeremy Haile wrote:
>
>> I just built the samples successfully with no errors with the latest code
>> from trunk.  If you provide more information about how/why your targets
>> failed, I'd be happy to help diagnose/correct the problem.
>>
>
> I got the same errors than Alan. I just did a full build (ant), and then a
> build samples :
>
> BUILD FAILED
> /home/elecharny/apacheds/jsecurity/trunk/common.ant.xml:118:
> /home/elecharny/apacheds/jsecurity/trunk/build/classes not found.
>
>
> Java 1.6.0_10
> Apache Ant version 1.7.0 compiled on December 13 2006
>
> http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/ivy-2.0.0-beta2.jar
> linux
> fresh Jsecurity check out.
>
> I suggest you doom your ivy repo, and co jsecurity from scratch.
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: Building samples

Posted by Emmanuel Lecharny <el...@gmail.com>.

Jeremy Haile wrote:
> I just built the samples successfully with no errors with the latest 
> code from trunk.  If you provide more information about how/why your 
> targets failed, I'd be happy to help diagnose/correct the problem.

I got the same errors than Alan. I just did a full build (ant), and then 
a build samples :

BUILD FAILED
/home/elecharny/apacheds/jsecurity/trunk/common.ant.xml:118: 
/home/elecharny/apacheds/jsecurity/trunk/build/classes not found.


Java 1.6.0_10
Apache Ant version 1.7.0 compiled on December 13 2006
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta2/ivy-2.0.0-beta2.jar
linux
fresh Jsecurity check out.

I suggest you doom your ivy repo, and co jsecurity from scratch.

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: Building samples

Posted by Jeremy Haile <jh...@fastmail.fm>.
I just built the samples successfully with no errors with the latest  
code from trunk.  If you provide more information about how/why your  
targets failed, I'd be happy to help diagnose/correct the problem.



On Jan 21, 2009, at 10:15 AM, Alan D. Cabrera wrote:

> Ok, I did try that and the targets failed.  Do they work for you guys?
>
>
> Regards,
> Alan
>
> On Jan 21, 2009, at 6:57 AM, Jeremy Haile wrote:
>
>> Alan,
>>
>> With ant, you can type "ant -p" to get a list of all of the targets  
>> and their descriptions.  There's no need to go digging through an  
>> ant file.  If you do that, you'll see there are several "samples"  
>> related ant targets, but the one you are interested in is probably  
>> the "samples" target which builds all of the sample applications.
>>
>> Jeremy
>>
>> On Jan 21, 2009, at 2:08 AM, Alan D. Cabrera wrote:
>>
>>> I'm having trouble building the samples and am loath to read the  
>>> Ant files.  :)
>>>
>>> What are the commands to build them?
>>>
>>>
>>> Regards,
>>> Alan
>>>
>>
>>
>


Re: Building samples

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Ok, I did try that and the targets failed.  Do they work for you guys?


Regards,
Alan

On Jan 21, 2009, at 6:57 AM, Jeremy Haile wrote:

> Alan,
>
> With ant, you can type "ant -p" to get a list of all of the targets  
> and their descriptions.  There's no need to go digging through an  
> ant file.  If you do that, you'll see there are several "samples"  
> related ant targets, but the one you are interested in is probably  
> the "samples" target which builds all of the sample applications.
>
> Jeremy
>
> On Jan 21, 2009, at 2:08 AM, Alan D. Cabrera wrote:
>
>> I'm having trouble building the samples and am loath to read the  
>> Ant files.  :)
>>
>> What are the commands to build them?
>>
>>
>> Regards,
>> Alan
>>
>
>


Re: Building samples

Posted by Jeremy Haile <jh...@fastmail.fm>.
Alan,

With ant, you can type "ant -p" to get a list of all of the targets  
and their descriptions.  There's no need to go digging through an ant  
file.  If you do that, you'll see there are several "samples" related  
ant targets, but the one you are interested in is probably the  
"samples" target which builds all of the sample applications.

Jeremy

On Jan 21, 2009, at 2:08 AM, Alan D. Cabrera wrote:

> I'm having trouble building the samples and am loath to read the Ant  
> files.  :)
>
> What are the commands to build them?
>
>
> Regards,
> Alan
>