Finally managed to join to the forum. I have issue with Artifactory and Tomcat at work.
Sometimes Artifactory takes ages to load on the UNIX server at work. It does eventually, do you know what is going on?
The main problem: I lost the whole context, because when I was logged in as administration, the session time out and I got an unauthorisation screen. After hitting the link to go back to the main Artifactory page, the web app got stuck. It never got there, and the context died.
What in tarnation is going?
Is it a Tomcat thing or Firewall ? My UNIX server is blocked from Internet access , corporation rules apply. I commented out the virtual repos and other Internet repos, but no luck ....
2008/11/28 Pilgrim, Peter <Peter.Pilgrim@lloydstsb.co.uk>
INFO: The listener "org.artifactory.webapp.servlet.ArtifactoryHomeConfigurer" is already configured for this context. The duplicate definition has been ignored.
INFO: The listener "org.artifactory.webapp.servlet.LogbackConfigListener" is already configured for this context. The duplicate definition has been ignored.
INFO: The listener "org.artifactory.webapp.servlet.ArtifactoryContextConfigurer" is already configured for this context. The duplicate definition has been ignored.
SEVERE: Context [/artifactory] startup failed due to previous errors
--
Peter Pilgrim | E-Channel Services Technical Lead, Products & Markets
Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK
' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901
+ peter.pilgrim@lloydstsb.co.uk
: www.lloydstsbcorporatemarkets.com
This e-mail is only for the above addressees. It may contain confidential or privileged information. If you are not an addressee you must not copy, distribute, disclose or use any of the information in it or any attachments. If you have received it in error please notify the sender and delete it immediately.
Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500.
Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555.
Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372.
Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc.
Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc are authorised and regulated by the Financial Services Authority.
Lloyds TSB Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555.
Lloyds TSB Group plc is a signatory to the Banking Codes.
Telephone calls may be monitored or recorded.
--
Peter A. Pilgrim
Java EE Software Development / Design / Architecture (``A Sun Java Champion'')
Hi Yaov and all
Finally managed to join to the forum. I have issue with Artifactory and Tomcat at work.
Sometimes Artifactory takes ages to load on the UNIX server at work. It does eventually, do you know what is going on?
The main problem: I lost the whole context, because when I was logged in as administration, the session time out and I got an unauthorisation screen. After hitting the link to go back to the main Artifactory page, the web app got stuck. It never got there, and the context died.
What in tarnation is going?
Is it a Tomcat thing or Firewall ? My UNIX server is blocked from Internet access , corporation rules apply. I commented out the virtual repos and other Internet repos, but no luck ....
2008/11/28 Pilgrim, Peter <Peter.Pilgrim@lloydstsb.co.uk>
2008-11-28 15:41:52,766 [INFO ] (o.a.j.JcrServiceImpl:438) - Working copy commit done (0 files).
2008-11-28 16:01:52,767 [INFO ] (o.a.j.JcrServiceImpl:438) - Working copy commit done (0 files).
2008-11-28 16:21:52,761 [INFO ] (o.a.j.JcrServiceImpl:438) - Working copy commit done (0 files).
2008-11-28 16:41:52,766 [INFO ] (o.a.j.JcrServiceImpl:438) - Working copy commit done (0 files).
2008-11-28 16:42:03,266 [ERROR] (o.a.w.RequestCycle :1437) - Not authorized to instantiate class org.artifactory.webapp.wicket.
page.admin.AdminPage
org.apache.wicket.authorization.UnauthorizedInstantiationException: Not authorized to instantiate class org.artifactory.webapp.w
icket.page.admin.AdminPage
at org.artifactory.webapp.wicket.page.admin.AdminPage.<init>(AdminPage.java:25) [AdminPage.class:na]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_05]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_05]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_05]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_05]
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:2
62) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:2
83) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.
java:210) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) [wicket-
1.3.5.jar:1.3.5]
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) [wicket-1.3.5.jar:1.3.5]
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) [wicket-1.3.5.jar:1.3.5]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na]
at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:146) [RepoFilter.class:na]
at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) [RepoFilter.class:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na]
at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:122) [AccessFilter.class:na]
at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:87) [AccessFilter.class:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [catalina.jar:na]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:na]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:na]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:na]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) [tomcat-coyote.jar:na]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:n
a]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:na]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_05]
2008-11-28 16:45:05,919 [INFO ] (o.a.s.ArtifactoryApplicationContext:155) - Destroying org.artifactory.security.ldap.InternalLda
pAutenticator
2008-11-28 16:45:05,920 [INFO ] (o.a.s.ArtifactoryApplicationContext:155) - Destroying org.artifactory.security.SecurityServiceI
nternal
28-Nov-2008 17:04:16 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28-Nov-2008 17:04:16 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
28-Nov-2008 17:04:16 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/52 config=null
28-Nov-2008 17:04:16 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9916 ms
28-Nov-2008 17:04:17 org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/artifactory] has not been started
28-Nov-2008 17:04:17 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/artifactory]
28-Nov-2008 17:05:56 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive artifactory.war
28-Nov-2008 17:06:30 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.artifactory.webapp.servlet.ArtifactoryHomeConfigurer" is already configured for this context. The duplicate definition has been ignored.
28-Nov-2008 17:06:30 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.artifactory.webapp.servlet.LogbackConfigListener" is already configured for this context. The duplicate definition has been ignored.
28-Nov-2008 17:06:30 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.artifactory.webapp.servlet.ArtifactoryContextConfigurer" is already configured for this context. The duplicate definition has been ignored.
28-Nov-2008 17:06:31 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
28-Nov-2008 17:06:31 org.apache.catalina.core.StandardContext start
SEVERE: Context [/artifactory] startup failed due to previous errors
--
Peter Pilgrim | E-Channel Services Technical Lead, Products & Markets
Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK
' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901
+ peter.pilgrim@lloydstsb.co.uk
: www.lloydstsbcorporatemarkets.com
This e-mail is only for the above addressees. It may contain confidential or privileged information. If you are not an addressee you must not copy, distribute, disclose or use any of the information in it or any attachments. If you have received it in error please notify the sender and delete it immediately.
Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500.
Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555.
Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372.
Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc.
Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc are authorised and regulated by the Financial Services Authority.
Lloyds TSB Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555.
Lloyds TSB Group plc is a signatory to the Banking Codes.
Telephone calls may be monitored or recorded.
--
Peter A. Pilgrim
Java EE Software Development / Design / Architecture (``A Sun Java Champion'')
:: http://jroller.com/peter_pilgrim ::
:: http://jroller.com/javawug ::
:: https://java-champions.dev.java.net/
:: http://www.linkedin.com/in/peterpilgrim2000
:: http://www.facebook.com/profile.php?id=570597454
:: http://twitter.com/peter_pilgrim
:: A Sun Certified Enterprise Architect for Java EE 5 platform
Hi Yoav
Don't bother with this issue.
1. I had the wrong environmental variable set up in the UNIX login profile e.g.
# Internal Repository for Java modules
## export ARTIFACTORY_HOME=/development/agile/Artifactory/artifactory-1.3.0-beta-2
export ARTIFACTORY_HOME=/development/agile/Artifactory/artifactory-1.3.0-beta-6.1
Dumb, dumb, dumb
2. The duplicate context message is a red herring, which appears to longer standing Tomcat Bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=44423
For all other people, I recently wrote a blog article recently that covers Apache Ivy, Apache Ant and JFrog Artifactory. It was about building an Enterprise Repository.
http://www.jroller.com/peter_pilgrim/entry/building_an_enterprise_repository_with
Have fun.
Thanks