Make sure you have a clean Maven install:
http://www.jumpingbean.co.za/blogs/mark/maven_noclassdeffound

On Thu, Aug 11, 2011 at 2:58 AM, Anthony Huang <[email protected]> wrote:
> Hello, Mr. William.
>
> When i configured the Maven, some error are occured, they are :
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/codehaus/classwor
> lds/Launcher
> Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.codehaus.classworlds.Launcher.  Program 
> will
> exit.
>
> What were that?
>
> Thank You,
> Anthony Huang
>
> 2011/8/11, William G. Thompson, Jr. <[email protected]>:
>> Alexandre,
>>
>> Try this pom.xml as a starting point:
>> https://github.com/wgthom/cas-maven-overlay
>>
>> Best,
>> Bill
>>
>>
>> On Wed, Aug 10, 2011 at 1:26 PM, Alexandre Adao <[email protected]> wrote:
>>> I having problems with dependencies.
>>> Failed to collect dependencies for [org.jasig.cas:cas-server-
>>> webapp:war:3.4.2.1 (runtime),
>>> org.jasig.cas:cas-server-support-generic:jar:3.4.2.1 (runtime)]
>>>
>>> See the output..and please let me what should i do?
>>>
>>> thanks--
>>>
>>> C:\work\local-cas>mvn clean package
>>> [INFO] Scanning for projects...
>>> [WARNING]
>>> [WARNING] Some problems were encountered while building the effective
>>> model for edu.morgan.cas:local
>>> -cas:war:1.0-SNAPSHOT
>>> [WARNING] 'build.plugins.plugin.version' for
>>> org.apache.maven.plugins:maven-war-plugin is missing. @
>>>  line 13, column 21
>>> [WARNING]
>>> [WARNING] It is highly recommended to fix these problems because they
>>> threaten the stability of your
>>>  build.
>>> [WARNING]
>>> [WARNING] For this reason, future Maven versions might no longer
>>> support building such malformed pro
>>> jects.
>>> [WARNING]
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building local-cas 1.0-SNAPSHOT
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> Downloading:
>>> http://oss.sonatype.org/content/repositories/releases/org/opensaml/opensaml/1.1b/opensa
>>> ml-1.1b.pom
>>> Downloading:
>>> http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
>>> Downloading:
>>> http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
>>> Downloading:
>>> http://repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 2.625s
>>> [INFO] Finished at: Wed Aug 10 09:13:59 EDT 2011
>>> [INFO] Final Memory: 6M/109M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal on project local-cas: Could not resolve
>>> dependencies for project edu.
>>> morgan.cas:local-cas:war:1.0-SNAPSHOT: Failed to collect dependencies
>>> for [org.jasig.cas:cas-server-
>>> webapp:war:3.4.2.1 (runtime),
>>> org.jasig.cas:cas-server-support-generic:jar:3.4.2.1 (runtime)]: Faile
>>> d to read artifact descriptor for org.opensaml:opensaml:jar:1.1b:
>>> Could not transfer artifact org.op
>>> ensaml:opensaml:pom:1.1b from/to jboss
>>> (http://repository.jboss.com/maven2): Access denied to: http:
>>> //repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
>>> -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>> the -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following arti
>>> cles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> C:\work\local-cas>
>>>
>>> --------
>>>
>>> C:\work\local-cas>mvn clean package
>>> [INFO] Scanning for projects...
>>> [WARNING]
>>> [WARNING] Some problems were encountered while building the effective
>>> model for edu.morgan.cas:local
>>> -cas:war:1.0-SNAPSHOT
>>> [WARNING] 'build.plugins.plugin.version' for
>>> org.apache.maven.plugins:maven-war-plugin is missing. @
>>>  line 13, column 21
>>> [WARNING]
>>> [WARNING] It is highly recommended to fix these problems because they
>>> threaten the stability of your
>>>  build.
>>> [WARNING]
>>> [WARNING] For this reason, future Maven versions might no longer
>>> support building such malformed pro
>>> jects.
>>> [WARNING]
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building local-cas 1.0-SNAPSHOT
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO]
>>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ local-cas ---
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
>>> @ local-cas ---
>>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>>> resources, i.e. build is platfo
>>> rm dependent!
>>> [INFO] skip non existing resourceDirectory
>>> C:\work\local-cas\src\main\resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
>>> local-cas ---
>>> [INFO] No sources to compile
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.4.3:testResources
>>> (default-testResources) @ local-cas ---
>>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>>> resources, i.e. build is platfo
>>> rm dependent!
>>> [INFO] skip non existing resourceDirectory
>>> C:\work\local-cas\src\test\resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:2.3.2:testCompile
>>> (default-testCompile) @ local-cas ---
>>> [INFO] No sources to compile
>>> [INFO]
>>> [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ local-cas ---
>>> [INFO] No tests to run.
>>> [INFO] Surefire report directory:
>>> C:\work\local-cas\target\surefire-reports
>>>
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> There are no tests to run.
>>>
>>> Results :
>>>
>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>>>
>>> [INFO]
>>> [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ local-cas ---
>>> [INFO] Packaging webapp
>>> [INFO] Assembling webapp [local-cas] in
>>> [C:\work\local-cas\target\local-cas-1.0-SNAPSHOT]
>>> [INFO] Processing war project
>>> [INFO] Processing overlay [ id org.jasig.cas:cas-server-webapp]
>>> [INFO] Webapp assembled in [1391 msecs]
>>> [INFO] Building war: C:\work\local-cas\target\cas.war
>>> [WARNING] Warning: selected war files include a WEB-INF/web.xml which
>>> will be ignored
>>> (webxml attribute is missing from war task, or ignoreWebxml attribute
>>> is specified as 'true')
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESS
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 6.031s
>>> [INFO] Finished at: Wed Aug 10 08:57:26 EDT 2011
>>> [INFO] Final Memory: 9M/109M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> C:\work\local-cas>dir
>>>  Volume in drive C has no label.
>>>  Volume Serial Number is 70AE-E804
>>>
>>>
>>> On Tue, Aug 9, 2011 at 2:03 PM, William G. Thompson, Jr.
>>> <[email protected]> wrote:
>>>> Can you post your authN handler config and the actual log message?
>>>>
>>>> Bill
>>>>
>>>>
>>>> On Tue, Aug 9, 2011 at 11:19 AM, Eric Fortenberry <[email protected]>
>>>> wrote:
>>>>> I am working on this with a client as well and we stuck on this exact
>>>>> same
>>>>> step.  When following along on the CAS on Windows 2008 Quick Start
>>>>> Guide,
>>>>> step 10 is where the authentication fails and we got an http 404 error
>>>>> and
>>>>> the description is that requests source is not available.   The
>>>>> requested
>>>>> resource is /CAS-server-webapp-3.4.8/login.
>>>>> https://wiki.jasig.org/display/CASUM/CAS+on+Windows+Quick+Setup+Guide
>>>>> Any insight would be very much appreciated.
>>>>> Eric
>>>>>
>>>>> On Aug 8, 2011, at 12:55 PM, Alexandre Adao wrote:
>>>>>
>>>>> I am hung on the next step after my CAS and Tomcat are installed and
>>>>> running. I was able to get successfully the page
>>>>> http://localhost:8080/cas-server-webapp-3.4.2.1/login and used the
>>>>> default password and netID and it works.  Therefore, it looks like
>>>>> that the installation was done correctly. Now I Ineed to configure the
>>>>> CAS to authenticate against LDAP. I am confused on the steps. What
>>>>> would the next step to configure the CAS to use LDAP?
>>>>>
>>>>> On Mon, Aug 8, 2011 at 12:48 PM, William G. Thompson, Jr.
>>>>> <[email protected]> wrote:
>>>>>
>>>>> Hi Alex,
>>>>>
>>>>> Have you tried to follow the LDAP instructions in the CAS Manual:
>>>>>
>>>>> https://wiki.jasig.org/display/CASUM/LDAP
>>>>>
>>>>> Which part are you hung up on?
>>>>>
>>>>> Bill
>>>>>
>>>>>
>>>>> On Mon, Aug 8, 2011 at 12:27 PM, Alexandre Adao <[email protected]>
>>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I am new on CAS and I would like some help on How to install and
>>>>>
>>>>> Configure step by step CAS on Windows 2008 with Authentication using
>>>>>
>>>>> LDAP. I was able to install the the TomCat,CAS server, and the maven 2
>>>>>
>>>>> with no problem and they are running fine. Now I need to configure the
>>>>>
>>>>> CAS to authenticate using LDAP for production. The instructions that I
>>>>>
>>>>> have found was not to clear in details..
>>>>>
>>>>> Thanks, for any help.
>>>>>
>>>>> Alex Adao
>>>>>
>>>>> --
>>>>>
>>>>> You are currently subscribed to [email protected] as:
>>>>> [email protected]
>>>>>
>>>>> To unsubscribe, change settings or access archives, see
>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> You are currently subscribed to [email protected] as:
>>>>> [email protected]
>>>>>
>>>>> To unsubscribe, change settings or access archives, see
>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>>
>>>>>
>>>>> --
>>>>> You are currently subscribed to [email protected] as:
>>>>> [email protected]
>>>>> To unsubscribe, change settings or access archives, see
>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>>
>>>>> --
>>>>> You are currently subscribed to [email protected] as:
>>>>> [email protected]
>>>>> To unsubscribe, change settings or access archives, see
>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>
>>>> --
>>>> You are currently subscribed to [email protected] as:
>>>> [email protected]
>>>> To unsubscribe, change settings or access archives, see
>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>
>>>>
>>>
>>> --
>>> You are currently subscribed to [email protected] as:
>>> [email protected]
>>> To unsubscribe, change settings or access archives, see
>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>
>>>
>>
>> --
>> You are currently subscribed to [email protected] as:
>> [email protected]
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
>
> --
> You are currently subscribed to [email protected] as: [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to