Code Monkey home page Code Monkey logo

apache-fortress-quickstart's People

Contributors

shawnmckinney avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

apache-fortress-quickstart's Issues

Fails to deploy

Hi Shawn,
This is a great little project, thank you for sharing.
I'm sure this is down to a simple mistake of mine but I'm finding errors when deploying the application.

After having carefully followed your README - and choosing the ApacheDS route - I am experiencing the errors in logs below. Here's a summary of my setup:

  • Java 8 (jdk1.8.0_261.jdk)
  • Maven 3.6.3
  • Tomcat 7.0.107
  • Docker running successfully
  • $TOMCAT_HOME = /usr/local/apache-tomcat-7.0.107
  • fortress-realm-proxy successfully downloaded into $TOMCAT_HOME/lib
  • apache-fortress-quickstart packaged
  • java opts edited accordingly for ApacheDS
  • fortress-rest-2.0.5 successfully downloaded into $TOMCAT_HOME/webapps

Tomcat manager is successfully finding the deployment path but on deployment the following errors occur:

`
2021-02-09 14:09:38,024 (WARN ) static init: Error, null cfg file: fortress.properties
2021-02-09 14:09:38,028 (INFO ) getExternalConfig override name [is.arbac02] value [null]
2021-02-09 14:09:38,038 (INFO ) static init: load config realm [DEFAULT]
2021-02-09 14:09:38,053 (INFO ) LDAP POOL: host=[localhost], port=[389], min=[1], max=[10]
2021-02-09 14:09:38,057 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.18060.0.0.1
2021-02-09 14:09:38,057 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.7
2021-02-09 14:09:38,058 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.2
2021-02-09 14:09:38,058 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.18
2021-02-09 14:09:38,059 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.319
2021-02-09 14:09:38,059 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.3
2021-02-09 14:09:38,060 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.10.1
2021-02-09 14:09:38,060 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.473
2021-02-09 14:09:38,060 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.474
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.18060.0.0.1
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.7
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.2
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.18
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.319
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.3
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.10.1
2021-02-09 14:09:38,061 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.42.2.27.8.5.1
2021-02-09 14:09:38,062 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.9
2021-02-09 14:09:38,062 (INFO ) Registered pre-bundled control factory: 2.16.840.1.113730.3.4.10
2021-02-09 14:09:38,062 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.3
2021-02-09 14:09:38,063 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.4
2021-02-09 14:09:38,063 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.1
2021-02-09 14:09:38,063 (INFO ) Registered pre-bundled control factory: 1.3.6.1.4.1.4203.1.9.1.2
2021-02-09 14:09:38,064 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.473
2021-02-09 14:09:38,064 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.474
2021-02-09 14:09:38,064 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.841
2021-02-09 14:09:38,064 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.417
2021-02-09 14:09:38,065 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.1413
2021-02-09 14:09:38,065 (INFO ) Registered pre-bundled control factory: 1.2.840.113556.1.4.528
2021-02-09 14:09:38,066 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.1.8
2021-02-09 14:09:38,067 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.8
2021-02-09 14:09:38,068 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.3
2021-02-09 14:09:38,069 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.6
2021-02-09 14:09:38,070 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.18060.0.1.5
2021-02-09 14:09:38,071 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.1.11.1
2021-02-09 14:09:38,072 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.1.11.3
2021-02-09 14:09:38,073 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.1466.20037
2021-02-09 14:09:38,074 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.1
2021-02-09 14:09:38,075 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.2
2021-02-09 14:09:38,075 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.3
2021-02-09 14:09:38,076 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.4
2021-02-09 14:09:38,077 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.5
2021-02-09 14:09:38,078 (INFO ) Registered pre-bundled extended operation factory: 1.3.6.1.4.1.4203.555.6
2021-02-09 14:10:08,400 (ERROR) unable to bind connection: Cannot connect to the server: Connection refused
2021-02-09 14:10:08,400 (ERROR) static init: Error loading from remote config: SecurityException=org.apache.directory.fortress.core.FinderException: getConfig dn [cn=DEFAULT,null] caught LdapException=org.apache.directory.api.ldap.model.exception.LdapException: org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect to the server: Connection refused
Feb 09, 2021 2:10:08 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fortress-rest-2.0.5]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1007)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:983)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2019)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.AbstractMethodError: org.apache.catalina.realm.RealmBase.getName()Ljava/lang/String;
at org.apache.catalina.realm.RealmBase.toString(RealmBase.java:1257)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5530)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 10 more

Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive [/usr/local/apache-tomcat-7.0.107/webapps/fortress-rest-2.0.5.war]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fortress-rest-2.0.5]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1011)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:983)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2019)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive [/usr/local/apache-tomcat-7.0.107/webapps/fortress-rest-2.0.5.war] has finished in [30,613] ms
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/apache-tomcat-7.0.107/webapps/docs]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/apache-tomcat-7.0.107/webapps/docs] has finished in [153] ms
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/apache-tomcat-7.0.107/webapps/manager]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/apache-tomcat-7.0.107/webapps/manager] has finished in [74] ms
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/apache-tomcat-7.0.107/webapps/examples]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/apache-tomcat-7.0.107/webapps/examples] has finished in [195] ms
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/apache-tomcat-7.0.107/webapps/ROOT]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/apache-tomcat-7.0.107/webapps/ROOT] has finished in [25] ms
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/apache-tomcat-7.0.107/webapps/host-manager]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/apache-tomcat-7.0.107/webapps/host-manager] has finished in [50] ms
Feb 09, 2021 2:10:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 09, 2021 2:10:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 31165 ms
`
I've investigated the errors and double checked my versions match (e.g. 2.0.5 as you note in the README).
Any help would be greatly appreciated.

Many thanks, James

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.