Maybe this will help. I also used the sample Maven overlay to do my
local customization and build, and it contains the following file:
...src/main/webapp/WEB-INF/spring-configuration/propertyFileConfigurer.xml
which has the following line in it:
<context:property-placeholder location="file:/etc/cas/cas.properties"/>
I think you need to do some more poking around among the files in the
overlay to get a better understanding of how things fit together, and
what you might need to customize to fit your installation.
Milt Epstein
Applications Developer
Graduate School of Library and Information Science (GSLIS)
University of Illinois at Urbana-Champaign (UIUC)
[email protected]
On Fri, 19 Dec 2014, Chris Adams wrote:
> Thanks. The log entry was from the catalina.2014-12-19.log. Apparently,
> Tomcat does not generate a catalina.out log file in Windows. However, the
> localhost log file show something interesting. Since this is Windows, it
> looks like the path is assuming Unix. Where do I modify this so that it looks
> in the right place, which is 'c:\SSO\CAS\cas.properties' ?
>
> \
> 19-Dec-2014 12:58:37.297 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.filterStart Exception starting
> filter springSecurityFilterChain
> org.springframework.beans.factory.BeanInitializationException: Could not
> load properties; nested exception is java.io.FileNotFoundException:
> \etc\cas\cas.properties (The system cannot find the path specified)
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Milt Epstein
> Sent: Friday, December 19, 2014 1:17 PM
> To: [email protected]
> Subject: RE: [cas-user] errors when building project
>
> There must be more log entries, perhaps in other logs, that contain more info
> about the problem. That line stating "Context [/cas] startup failed"
> indicates there was a problem. Which log did you pull these lines from?
> Based on my tomcat logs directory, the ones that might have more useful
> information are:
>
> catalina.out
> catalina.<date>.log (e.g., catalina.2014-12-19.log) localhost.<date>.log
> (e.g., localhost.2014-12-19.log)
>
> If "Error filterStart" is all you have, maybe that's a clue -- but I don't
> know what it means.
>
> Milt Epstein
> Applications Developer
> Graduate School of Library and Information Science (GSLIS) University of
> Illinois at Urbana-Champaign (UIUC) [email protected]
>
>
> On Fri, 19 Dec 2014, Chris Adams wrote:
>
> > Maybe this is helpful. However, I don???t see any previous errors.
> >
> > 19-Dec-2014 11:56:17.261 INFO [localhost-startStop-1]
> > org.apache.catalina.startup.HostConfig.deployWAR Deploying web
> > application archive C:\SSO\tomcat\webapps\cas.war
> > 19-Dec-2014 11:56:19.483 SEVERE [localhost-startStop-1]
> > org.apache.catalina.core.StandardContext.startInternal Error
> > filterStart
> > 19-Dec-2014 11:56:19.483 SEVERE [localhost-startStop-1]
> > org.apache.catalina.core.StandardContext.startInternal Context [/cas]
> > startup failed due to previous errors
> > 19-Dec-2014 11:56:19.491 INFO [localhost-startStop-1]
> > org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
> > application archive C:\SSO\tomcat\webapps\cas.war has finished in
> > 2,230 ms
> >
> > From: Chris Adams [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 11:39 AM
> > To: [email protected]
> > Subject: RE: [cas-user] errors when building project
> >
> > Thank you. I moved the cas.properties and log4j.xml from /etc in the
> > template to the /cas install folder. The cas.properties indicates that it
> > should look at ???http://localhost:8080???, which I am using. I ran ???mvn
> > clean package??? from the project folder. I moved the cas.war to
> > /tomcat/webapps and restarted tomcat. I see that it is deploying the
> > cas.war file. However, when I navigate to the page, the logs show:
> >
> > 127.0.0.1 - - [19/Dec/2014:11:18:57 -0800] "GET /cas/login HTTP/1.1"
> > 404 1012
> >
> > From: Dmitriy Kopylenko [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 9:56 AM
> > To: [email protected]<mailto:[email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > Yep, the cas.properties from etc directory of the repo needs to be
> > placed in /etc/cas, as stated here:
> > https://github.com/UniconLabs/simple-cas4-overlay-template#configurati
> > on
> >
> > Cheers,
> > D.
> >
> > On Dec 19, 2014, at 12:53 PM, Milt Epstein
> > <[email protected]<mailto:[email protected]>> wrote:
> >
> > Does your build (and hence your cas.war) include a cas.properties file
> > that has some settings that is leading to this behavior?
> >
> > Milt Epstein
> > Applications Developer
> > Graduate School of Library and Information Science (GSLIS) University
> > of Illinois at Urbana-Champaign (UIUC)
> > [email protected]<mailto:[email protected]>
> >
> >
> > On Fri, 19 Dec 2014, Chris Adams wrote:
> >
> > Sorry, I mistyped. I am using port 8080 for both. The
> > cas-server-webapp-4.0.0/login (out of the box) works and /cas/login does
> > not.
> >
> > From: Misagh Moayyed [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 9:28 AM
> > To: [email protected]<mailto:[email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > Your problem likely is that you are trying to get to a secure port
> > under a nonsecure protocol (8443 vs http)
> >
> > :)
> >
> > I don???t know how you would get a login page. That???s odd if you are
> > using the same tomcat.
> >
> > On Dec 19, 2014, at 10:22 AM, Chris Adams
> > <[email protected]<mailto:[email protected]><mailto:[email protected]>>
> > wrote:
> >
> > Thank you. Yes, that works flawlessly. However, after copying the cas.war
> > file over to the tomcat/webapps folder, when I browse to
> > http://localhost:8443/cas/login, I get a 404. If I copy the
> > cas-server-webapp-4.0.0.war to the webapps folder and navigate to it, I get
> > a login page. What did I miss ?
> >
> > From: Dmitriy Kopylenko [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 8:50 AM
> > To:
> > [email protected]<mailto:[email protected]><mailto:cas-u
> > [email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > You don???t have to pull in the CAS server source code repository at all.
> > Just clone this overlay repo to your own local computer (where you have JDK
> > and Maven installed) and do a build e.g. ???mvn clean package??? at the top
> > level directory. It will do the right thing and will build the final
> > cas.war binary which you then deploy to your servlet container of choice.
> > Does that make sense?
> >
> > D.
> >
> > On Dec 19, 2014, at 11:45 AM, Chris Adams
> > <[email protected]<mailto:[email protected]><mailto:[email protected]>>
> > wrote:
> >
> > Thank you. Okay, so then I am assuming that I could utilize the template
> > referred to, create a workspace somewhere on the server and do the build,
> > then move the .war file to tomcat webapps. It seems that part of the
> > problem that I have been having is that I have been doing the build from
> > within the CAS install directory.
> >
> > Can someone verify this ?
> >
> > From: Dmitriy Kopylenko [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 8:19 AM
> > To:
> > [email protected]<mailto:[email protected]><mailto:cas-u
> > [email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > You could try this ->
> > https://github.com/UniconLabs/simple-cas4-overlay-template
> >
> > Cheers,
> > Dmitriy.
> >
> > On Dec 19, 2014, at 11:15 AM, Chris Adams
> > <[email protected]<mailto:[email protected]><mailto:[email protected]>>
> > wrote:
> >
> > Thank you for your reply. Where should I be building from ?
> >
> > From: Scott Battaglia [mailto:[email protected]]
> > Sent: Friday, December 19, 2014 5:33 AM
> > To:
> > [email protected]<mailto:[email protected]><mailto:cas-u
> > [email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > You're still building within CAS. If you were using the pure WAR overlay
> > process, your errors should not be coming from this directory:
> > /usr/local/cas-server-4.0.0/cas-server-webapp/target/surefire-reports
> >
> >
> >
> > On Thu, Dec 18, 2014 at 6:00 PM, Chris Adams
> > <[email protected]<mailto:[email protected]><mailto:[email protected]>>
> > wrote:
> > Actually, I am using Maven WAR overlay. I am having a heck of a time
> > building a basic WAR package. I started on a Unix machine and now am
> > testing on a Win 7.
> >
> > The latest attempt gives me an error about the license plugin.
> > [ERROR] Failed to execute goal
> > com.mycila.maven-license-plugin:maven-license-plu
> > gin:1.9.0:check (default) on project cas-server-webapp: Resource
> > c:\SSO\CAS\src\ licensing\header.txt not found in file system,
> > classpath or URL: unknown protocol
> > l: c -> [Help 1]
> >
> > I added a plugin section in the pom.xml and ran it again, to no avail. Is
> > the license header information supposed to be fetched from
> > mycila.com<http://mycila.com/><http://mycila.com/>, or ???..?
> >
> > <plugin>
> > <groupId>com.mycila.maven-license-plugin</groupId>
> > <artifactId>maven-license-plugin</artifactId>
> > <configuration>
> > <header>${cs.dir}\src\licensing\header.txt</header>
> > <skipExistingHeaders>true</skipExistingHeaders>
> > <strictCheck>true</strictCheck>
> > <headerDefinitions>
> >
> > <headerDefinition>${cs.dir}\src\licensing\header-definitions.xml</headerDefinition>
> > </headerDefinitions>
> > <aggregate>true</aggregate>
> > <excludes>
> > <exclude>LICENSE</exclude>
> > <exclude>**/INSTALL*</exclude>
> > <exclude>**/NOTICE*</exclude>
> > <exclude>**/README*</exclude>
> > <exclude>**/readme*</exclude>
> > <exclude>**/*.log</exclude>
> > <exclude>**/*.license</exclude>
> > <exclude>**/*.txt</exclude>
> > <exclude>**/*.crt</exclude>
> > <exclude>**/*.crl</exclude>
> > <exclude>**/*.key</exclude>
> > <exclude>**/*.checkstyle</exclude>
> > <exclude>**/*.properties</exclude>
> > <exclude>**/.gitignore</exclude>
> > <exclude>**/overlays/**</exclude>
> > <exclude>src/licensing/**</exclude>
> > <exclude>**/testCA/**</exclude>
> > <exclude>**/.idea/**</exclude>
> > <exclude>**/*.keystore</exclude>
> > <exclude>**/*.example</exclude>
> > <exclude>**/*.sample</exclude>
> > <exclude>**/*.conf</exclude>
> > <exclude>**/*.doc</exclude>
> > <exclude>**/*.jmx</exclude>
> > </excludes>
> > </configuration>
> > <executions>
> > <execution>
> > <phase>compile</phase>
> > <goals>
> > <goal>check</goal>
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
> >
> > From: John Gasper
> > [mailto:[email protected]<mailto:[email protected]>]
> > Sent: Wednesday, December 17, 2014 8:43 AM
> > To:
> > [email protected]<mailto:[email protected]><mailto:cas-u
> > [email protected]>
> > Subject: Re: [cas-user] errors when building project
> >
> > Chris,
> >
> > It looks like you are trying to build CAS Server from source, and not
> > building a deployment using the Maven WAR Overlay method. If so, unless you
> > have a specific reason, I'd look into using the overlay method.
> >
> > As for the specific error, that's common when mixing incompatible library
> > versions. You may need to do some excluding.
> >
> > Good luck!
> > John
> >
> > On 12/16/14 1:04 PM, Chris Adams wrote:
> > Hello all,
> >
> > When building a project, I get some error messages. I know that I can
> > build without running tests, but I am wondering what this means and whether
> > I should figure it out before building. I did run with debug logging and
> > this is the result. I am not sure how to proceed.
> >
> > Results :
> >
> > Tests in error:
> > testWiring(org.jasig.cas.WiringTests): Error creating bean with name
> > 'serviceRegistryReloaderJobDetail' defined in file
> > [/usr/local/cas-server-4.0.0/cas-server-webapp/src/main/webapp/WEB-INF
> > /spring-configuration/applicationContext.xml]: Invocation of init
> > method failed; nested exception is java.lang.NoSuchMethodError:
> > org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Lja
> > va/util/Set;
> >
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
> >
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO] BUILD FAILURE
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO] Total time: 01:10 min
> > [INFO] Finished at: 2014-12-16T13:00:58-08:00 [INFO] Final Memory:
> > 26M/64M [INFO]
> > ----------------------------------------------------------------------
> > -- [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
> > on project cas-server-webapp: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> > /usr/local/cas-server-4.0.0/cas-server-webapp/target/surefire-reports for
> > the individual test results.
> > [ERROR] -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
> > (default-test) on project cas-server-webapp: There are test failures.
> >
> > Please refer to
> > /usr/local/cas-server-4.0.0/cas-server-webapp/target/surefire-reports for
> > the individual test results.
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> > at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> > at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> > at
> > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> > at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
> > 56) Caused by: org.apache.maven.plugin.MojoFailureException: There are
> > test failures.
> >
> > Please refer to
> > /usr/local/cas-server-4.0.0/cas-server-webapp/target/surefire-reports for
> > the individual test results.
> > at
> > org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:83)
> > at
> > org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:176)
> > at
> > org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:150)
> > at
> > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:650)
> > at
> > org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> > ... 19 more
> > [ERROR]
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >
> > --
> >
> > You are currently subscribed to
> > [email protected]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:[email protected]
> > t>
> >
> > 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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:chr
> > [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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:sco
> > [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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:chr
> > [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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:dkopylenko@
> > unicon.net>
> >
> > 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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:chr
> > [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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:dkopylenko@
> > unicon.net>
> >
> > 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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:chr
> > [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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:mmoayyed@unicon
> > .net>
> >
> > 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]<mailto:[email protected]><mailto:cas-u
> > [email protected]> as:
> > [email protected]<mailto:[email protected]><mailto:chr
> > [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]<mailto:[email protected]> as:
> > [email protected]<mailto:[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]<mailto:[email protected]> as:
> > [email protected]<mailto:[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]<mailto:[email protected]> as:
> > [email protected]<mailto:[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]<mailto:[email protected]> as:
> > [email protected]<mailto:[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