Endeca Preview :: javax.servlet.ServletException: javax.jcr.PathNotFoundException: previewUrl (500) - preview

While accessing the Preview Settings of an app in Endeca Workbench, the following error is thrown: (This issue is happening when the Preview settings' textbox is stored with empty string accidentally). Any workaround to fix this issue?
[Environment: Endeca 3.1.2, ATG 10.2, Linux]
javax.servlet.ServletException: javax.jcr.PathNotFoundException: previewUrl (500)
The requested URL /ifcr/sites/MyEndecaApp/configuration/tools/preview.html resulted in an error in /apps/endeca/preview/html.jsp.
Exception:
org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.jcr.PathNotFoundException: previewUrl
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:560)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:496)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:442)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:173)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:84)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:388)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:456)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
at com.endeca.ifcr.servlets.post.ConflictDetectionFilter.doFilter(ConflictDetectionFilter.java:217)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:269)
at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
at com.endeca.workbench.filters.RootFilter.doFilter(RootFilter.java:84)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.workbench.filters.NoCacheFilter.doFilter(NoCacheFilter.java:56)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.workbench.filters.LastVisitedFilter.doFilter(LastVisitedFilter.java:50)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.workbench.filters.AccessFilter.doFilter(AccessFilter.java:54)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.ifcr.filters.NoSuchPrincipalFilter.doFilter(NoSuchPrincipalFilter.java:84)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.ifcr.servlets.get.WorkbenchRedirectFilter.doFilter(WorkbenchRedirectFilter.java:102)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at com.endeca.ifcr.servlets.get.CacheControlFilter.doFilter(CacheControlFilter.java:91)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:101)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:161)
at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:183)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at com.endeca.workbench.ready.WorkbenchReadyFilter.doFilter(WorkbenchReadyFilter.java:174)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:277)
at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jcr.PathNotFoundException: previewUrl
at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2523)
at org.apache.jsp.apps.endeca.preview.html_jsp._jspService(html_jsp.java:151)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
... 66 more
Request Progress:
0 (2013-04-17 06:03:23) TIMER_START{Request Processing}
0 (2013-04-17 06:03:23) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
0 (2013-04-17 06:03:23) LOG Method=GET, PathInfo=/sites/MyEndecaApp/configuration/tools/preview.html
0 (2013-04-17 06:03:23) TIMER_START{ResourceResolution}
0 (2013-04-17 06:03:23) TIMER_END{0,ResourceResolution} URI=/ifcr/sites/MyEndecaApp/configuration/tools/preview.html resolves to Resource=JcrNodeResource, type=endeca/preview, superType=null, path=/sites/MyEndecaApp/configuration/tools/preview
0 (2013-04-17 06:03:23) LOG Resource Path Info: SlingRequestPathInfo: path='/sites/MyEndecaApp/configuration/tools/preview', selectorString='null', extension='html', suffix='null'
0 (2013-04-17 06:03:23) TIMER_START{ServletResolution}
0 (2013-04-17 06:03:23) TIMER_START{resolveServlet(JcrNodeResource, type=endeca/preview, superType=null, path=/sites/MyEndecaApp/configuration/tools/preview)}
0 (2013-04-17 06:03:23) TIMER_END{0,resolveServlet(JcrNodeResource, type=endeca/preview, superType=null, path=/sites/MyEndecaApp/configuration/tools/preview)} Using servlet /apps/endeca/preview/html.jsp
0 (2013-04-17 06:03:23) TIMER_END{0,ServletResolution} URI=/ifcr/sites/MyEndecaApp/configuration/tools/preview.html handled by Servlet=/apps/endeca/preview/html.jsp
0 (2013-04-17 06:03:23) LOG Applying Requestfilters
1 (2013-04-17 06:03:23) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
1 (2013-04-17 06:03:23) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
1 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.ifcr.servlets.get.CacheControlFilter
1 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.ifcr.servlets.get.WorkbenchRedirectFilter
1 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.ifcr.filters.NoSuchPrincipalFilter
1 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.workbench.filters.AccessFilter
5 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.workbench.filters.LastVisitedFilter
11 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.workbench.filters.NoCacheFilter
11 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.workbench.filters.RootFilter
11 (2013-04-17 06:03:23) LOG Applying Componentfilters
11 (2013-04-17 06:03:23) LOG Calling filter: com.endeca.ifcr.servlets.post.ConflictDetectionFilter
11 (2013-04-17 06:03:23) TIMER_START{/apps/endeca/preview/html.jsp#0}
12 (2013-04-17 06:03:23) LOG SCRIPT ERROR: javax.servlet.ServletException: javax.jcr.PathNotFoundException: previewUrl
12 (2013-04-17 06:03:23) TIMER_END{1,/apps/endeca/preview/html.jsp#0}
13 (2013-04-17 06:03:23) TIMER_START{handleError:throwable=org.apache.sling.api.SlingException}
16 (2013-04-17 06:03:23) TIMER_END{3,handleError:throwable=org.apache.sling.api.SlingException} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
18 (2013-04-17 06:03:23) TIMER_END{18,Request Processing} Dumping SlingRequestProgressTracker Entries
________________________________________
ApacheSling/2.2 (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17; Linux 2.6.18-238.el5 amd64)

This might not work, but you can try running /control/export_site.sh, which will generate an XML file. In there you can find the settings for preview and edit it. Then run import_site.sh.
Note that there might be downsides with this (some elements of landing pages aren't exported, such as revision history, who edited, etc).

Related

Struts 2 - Exception starting filter struts2

I just started with this Struts 2 HelloWorld Tutorial [1] and exactly followed the steps explained in this tutorial but there is a problem with starting the filters. Here is the console output:
[1] https://www.tutorialspoint.com/struts_2/struts_examples.htm
Jun 06, 2017 4:53:35 PM org.apache.catalina.core.AprLifecycleListener init
INFORMATION: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_112\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_131/bin/server;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\eclipse;;.
Jun 06, 2017 4:53:35 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorldStruts2' did not find a matching property.
Jun 06, 2017 4:53:36 PM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["http-bio-18080"]
Jun 06, 2017 4:53:36 PM org.apache.catalina.startup.Catalina load
INFORMATION: Initialization processed in 428 ms
Jun 06, 2017 4:53:36 PM org.apache.catalina.core.StandardService startInternal
INFORMATION: Starting service Catalina
Jun 06, 2017 4:53:36 PM org.apache.catalina.core.StandardEngine startInternal
INFORMATION: Starting Servlet Engine: Apache Tomcat/7.0.52
Jun 06, 2017 4:53:39 PM org.apache.catalina.startup.TaglibUriRule body
INFORMATION: TLD skipped. URI: /struts-tags is already defined
Jun 06, 2017 4:53:39 PM org.apache.catalina.core.ApplicationContext log
INFORMATION: No Spring WebApplicationInitializer types detected on classpath
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
Jun 06, 2017 4:53:39 PM org.apache.catalina.core.StandardContext filterStart
SCHWERWIEGEND: Exception starting filter struts2
java.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector
File: ContainerImpl.java
Method: construct
Line: 427 - com/opensymphony/xwork2/inject/ContainerImpl.java:427:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:427)
at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:218)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:52)
at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:91)
at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:571)
at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:568)
at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:560)
at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:568)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:278)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:160)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:410)
... 26 more
Caused by: java.lang.NoSuchMethodError: org.apache.commons.lang3.text.StrSubstitutor.setValueDelimiter(Ljava/lang/String;)Lorg/apache/commons/lang3/text/StrSubstitutor;
at com.opensymphony.xwork2.config.providers.EnvsValueSubstitutor.<init>(EnvsValueSubstitutor.java:32)
... 31 more
Jun 06, 2017 4:53:39 PM org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Error filterStart
Jun 06, 2017 4:53:39 PM org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Context [/HelloWorldStruts2] startup failed due to previous errors
Jun 06, 2017 4:53:39 PM org.apache.coyote.AbstractProtocol start
INFORMATION: Starting ProtocolHandler ["http-bio-18080"]
Jun 06, 2017 4:53:39 PM org.apache.catalina.startup.Catalina start
INFORMATION: Server startup in 3183 ms
I think there is no need to paste my code here as it is exactly the code as stated in the tutorial link above. Except I replaced
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
with
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
as proposed in this answer, which did not resolve the issue: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
I am using struts 2.3.4, but tried it also with struts 2.2 and 2.5 - neither works.
I found the flaw: I have left the struts 2.5 jars in the "Deployment Assembly", since some other post proposed this when it showed some other exception. I removed them and booom.. now it works. Thanks, Aleksandr!

Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

I am using Xcode Version 6.3.2 and appium version 1.3.7.
I am getting below defined error message, When I start appium server
Launching Appium with command:
'/Applications/Appium.app/Contents/Resources/node/bin/node'
lib/server/main.js --command-timeout "7200" --pre-launch
--platform-version "7.1.2" --platform-name "iOS" --app "com.company.iphone.sampleApp" --udid
"1c71d40a38f94c9e6682f5409e6ea6c0ec081736" --show-ios-log
--device-name "iPhone 5s" --isolate-sim-device
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app info: [debug] App is an iOS bundle, will
attempt to run as pre-existing
info: [debug] Creating new appium session
cb824b1c-461e-41c1-9f34-2746150b37af info: [debug] Removing any
remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 8.3
info: [debug] Not checking whether simulator is available since we're
on a real device info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at
/Applications/Appium.app/Contents/Resources/node_modules/appium/company.iphone.sampleApp/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML info: [debug] Could not
parse plist file (as XML) at
/Applications/Appium.app/Contents/Resources/node_modules/appium/company.iphone.sampleApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't
exist info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not
work. If you experience this, you will need to re-run appium with the
--native-instruments-lib flag info: [debug] Preparing uiauto bootstrap info: [debug] Dynamic bootstrap dir: /Users/alk/Library/Application
Support/appium/bootstrap info: [debug] Dynamic env:
{"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically
generated. Do not manually modify! ... info: [debug] Dynamic bootstrap
path: /Users/alk/Library/Application
Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
info: [debug] Reusing dynamic bootstrap:
/Users/alk/Library/Application
Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js info: [debug]
Getting device string from opts:
{"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.3.2","iOSSDKVersion":"8.3","deviceName":"iPhone
5s","platformVersion":"7.1.2"} info: [debug] fixDevice is on info:
[debug] Final device string is: 'iPhone 5s (7.1.2 Simulator)' info:
[debug] Not setting device type since we're on a real device info:
[debug] Checking whether we need to set app preferences info: [debug]
Not setting iOS and app preferences since we're on a real device info:
[debug] Running ios sim reset flow info: [debug] Killing the simulator
process info: [debug] Killall iOS Simulator info: [debug] Killing any
other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we're using a real device
info: [debug] No iOS / app preferences to set info: [debug] Starting
iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid
1c71d40a38f94c9e6682f5409e6ea6c0ec081736 info: [debug] Checking app
install status using:
/Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap
isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle
com.company.iphone.sampleApp
info: [debug] App is installed.
info: [debug] fullReset not requested. No need to install. info:
[debug] Starting command proxy.
info: [debug] Instruments socket server started at
/tmp/instruments_sock info: [debug] Starting instruments info: [debug]
Instruments is at:
/Applications/Xcode.app/Contents/Developer/usr/bin/instruments info:
Launching instruments info: [debug] Attempting to run app on real
device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 info:
[debug] Spawning instruments with command:
/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate
-D /tmp/appium-instruments/instrumentscli0.trace -w 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 company.iphone.sampleApp -e
UIASCRIPT "/Users/alk/Library/Application
Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js" -e
UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra
without-delay env: {} info: [debug] And launch timeouts (in ms):
{"global":90000}
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s
mobile_installation_proxy[127] : 0x1004ac000 handle_connection: Could
not receive request from host.
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] :
01cdc000 -[hostWatcher initWithCheckinGoop:]: created
[F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005]
[fd=17] info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s
lockdownd[25] : 01cdc000 -[hostWatcher initWithCheckinGoop:]:
replacing old hostWatcher for F0FE931A-0099-4F10-932A-FAE4065DF358:
[F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:17629]
[fd=13] info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s
lockdownd[25] : 01cdc000 -[hostWatcher invalidate]: invalidating host
F0FE931A-0099-4F10-932A-FAE4065DF358 info: [IOS_SYSLOG_ROW ] May 29
16:57:11 P-v-iphone-5s lockdownd[25] : 01d64000 _25-[hostWatcher
invalidate]block_invoke: watcher for
F0FE931A-0099-4F10-932A-FAE4065DF358 has already been replaced by
[F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005]
[fd=17]
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] :
01d64000 -[hostWatcher dealloc]: dealloc
[F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:17629]
[fd=13] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
locationd[60] : NStatManagerHandleSrcCounts:1717 couldn't find
NStatSourceRef for 629 info: [IOS_SYSLOG_ROW ] May 29 16:57:12
P-v-iphone-5s locationd[60] : NStatManagerHandleSrcDescriptor:1263
update descriptor for invalid source info: [IOS_SYSLOG_ROW ] May 29
16:57:12 P-v-iphone-5s lockdownd[25] : 01f84000 -[watchedServiceInfo
logService:]: first service [client=deviceconsole
(F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:25309)]
[fd=22] [pid=137 (syslog_relay fd=21)] [hb=14018437927] info:
[IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
01f84000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:25309)] [fd=22] [pid=137 (syslog_relay fd=21)]
[hb=14018437927] info: [debug] [INST STDERR] 2015-05-29 16:57:09.460
instruments[4584:88508] Failed to start Instruments daemon on
'P_v_iphone_5s (7.1.2)' (The service is invalid.) info:
[IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
021a4000 -[hostWatcher runWatcher]: starting loop for
[F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005]
[fd=17] info: [debug] [INST] Waiting for device to boot... info:
[IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
02094000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:25565)] [fd=12] [pid=137 (syslog_relay fd=26)]
[hb=14019322067]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
01bcc000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:25821)] [fd=23] [pid=137 (syslog_relay fd=29)]
[hb=14019420444] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
lockdownd[25] : 0200c000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:26077)] [fd=24] [pid=137 (syslog_relay fd=30)]
[hb=14019682524] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
lockdownd[25] : 02094000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:26333)] [fd=25] [pid=137 (syslog_relay fd=31)]
[hb=14019845299] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
lockdownd[25] : 02094000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:26589)] [fd=26] [pid=137 (syslog_relay fd=32)]
[hb=14019858305] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
lockdownd[25] : 0200c000 -[watchedServiceInfo logService:]: Watching
[client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358
fe80::6e40:8ff:fea6:b9a:26845)] [fd=27] [pid=137 (syslog_relay fd=33)]
[hb=14020003369] info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s
lockdownd[25] : 01efc000 spawn_service_agent: Could not look up
service in the map info: [IOS_SYSLOG_ROW ] May 29 16:57:12
P-v-iphone-5s lockdownd[25] : 01efc000 spawn_and_handle_checkin: Could
not spawn the com.apple.instruments.remoteserver service
agent:InvalidService info: [IOS_SYSLOG_ROW ] May 29 16:57:12
P-v-iphone-5s lockdownd[25] : 01efc000 spawn_service_agent: Could not
look up service in the map info: [IOS_SYSLOG_ROW ] May 29 16:57:12
P-v-iphone-5s lockdownd[25] : 01efc000 spawn_and_handle_checkin: Could
not spawn the com.apple.instruments.server service
agent:InvalidService
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
0200c000 set_response_error: handle_start_session SessionActive
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
0200c000 spawn_service_agent: Could not look up service in the map
info: [debug] [INST STDERR] 2015-05-29 16:57:09.564
instruments[4584:88502] Failed to start Instruments daemon on
'P_v_iphone_5s (7.1.2)' (The service is invalid.)
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
0200c000 spawn_and_handle_checkin: Could not spawn the
com.apple.instruments.remoteserver service agent:InvalidService info:
[IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
0200c000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] :
0200c000 spawn_and_handle_checkin: Could not spawn the
com.apple.instruments.server service agent:InvalidService

email connector doesnt work

I've tried several tutorials/solved questions but the email connector doesn't seem to work for me. any advice anyone ? i've added a new runtime variable _JPI_VM_OPTIONS = Djava.net.preferIPv4Stack=true but nothing seems to work i never receive the mail. I'm trying to send a mail to my personal email, and when i open my inbox, nothing. also when i logged in as administrator, i found the email connector in failed tasks. so my problem is whatever i do, my email connector doesn't work. as i said i've tried several web tutorial /youtube tutorial and nothing seems to work for me. I've configured the proxy when i installed bonita. i've tried also with my company smtp(besides gmail smtp) and it doesn't work.
here is my bonita engine log :
13 avr. 2015 15:43:00 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=57 | HOSTNAME=G3127 | TENANT_ID=1 | The user has executed the task [name = , display name = , id = <20002>, parent process instance = <1001>, root process instance = <1001>, process definition = <5266138508294277224>]
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: charset UTF-8
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: message test test denial
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: html true
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: subject test
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: bcc null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: cc null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: to anwarbenkassou90#gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: from anwarbenkassou90#gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: userName anwarbenkassou90#gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: starttlsSupport false
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: sslSupport false
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: smtpPort 465
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: smtpHost smtp.gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: replyTo null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameters
INFO: password ******
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameters
INFO: Headers null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: headers []
13 avr. 2015 15:43:03 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
GRAVE: THREAD_ID=97 | HOSTNAME=G3127 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 20004, connectorDefinitionName = EmailDenial] failed. The failure will be handled.
13 avr. 2015 15:43:03 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
GRAVE: THREAD_ID=97 | HOSTNAME=G3127 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=5266138508294277224 | PROCESS_NAME=RMA | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1001 | ROOT_PROCESS_INSTANCE_ID=1001 | FLOW_NODE_DEFINITION_ID=-7928415675851615386 | FLOW_NODE_INSTANCE_ID=20004 | FLOW_NODE_NAME=Email Denial | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=EmailDenial | CONNECTOR_INSTANCE_ID=20001 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com"
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=5266138508294277224 | PROCESS_NAME=RMA | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1001 | ROOT_PROCESS_INSTANCE_ID=1001 | FLOW_NODE_DEFINITION_ID=-7928415675851615386 | FLOW_NODE_INSTANCE_ID=20004 | FLOW_NODE_NAME=Email Denial | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=EmailDenial | CONNECTOR_INSTANCE_ID=20001 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:332)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:150)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:125)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:127)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:324)
... 14 more
Caused by: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:151)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:121)
... 15 more
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:72)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:203)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:178)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more
Caused by: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:473)
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:70)
... 7 more
Caused by: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1970)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:471)
... 9 more
Caused by: java.net.UnknownHostException: smtp.gmail.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
... 16 more
thank you :)
If you work in a company that use a proxy, it's is mostly possible that the email is blocked by this proxy.
If this is the issue, you need to use the smtp of your company or ask to the administrator of the proxy.
As you can see in the log entry below, the Bonita XP (or Portal, dependig on your Bonita version) cannot reach the host smtp.gmail.com. Probable cause is a missing proxy configuration or a firewall rule prohibiting the access.
Caused by: java.net.UnknownHostException: smtp.gmail.com

Using tile in struts2

I am following a tutorial of Tile in Struts2, but ran into the following error:
SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.tiles.web.startup.AbstractTilesListener.<init>(AbstractTilesListener.java:44)
at org.apache.tiles.web.startup.TilesListener.<init>(TilesListener.java:38)
at org.apache.struts2.tiles.StrutsTilesListener.<init>(StrutsTilesListener.java:48)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
... 20 more
Sep 1, 2012 6:43:25 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Sep 1, 2012 6:43:25 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 1, 2012 6:43:25 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/Tiles] startup failed due to previous errors
Sep 1, 2012 6:43:25 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-2005"]
Sep 1, 2012 6:43:25 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 1, 2012 6:43:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1990 ms
All jar files that I have in my Web-Content/lib folder are as following:
axis.jar
axis2.war
axis2-1.6.2-bin.zip
axis2-1.6.2-src.zip
commons-beanutils-1.8.0.jar
commons-collections-3.2.1.jar
commons-digester-2.1.jar
commons-discovery-0.2.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging.jar
commons-logging-api-1.1.jar
commons-validator-1.3.1.jar
freemarker-2.3.15.jar
freemarker-2.3.16.jar
javassist-3.7.1.GA.jar
jaxrpc.jar
jdom-1.1.jar
json-lib-2.1-jdk15.jar
junit-4.8.2.jar
mysql-connector-java-5.1.17.jar
ognl-3.0.jar
saaj.jar
saaj-api-1.3.jar
spring-beans-2.5.6.jar
spring-context-2.5.6.jar
spring-core-2.5.6.jar
spring-test-2.5.6.jar
spring-web-2.5.6.jar
sqlitejdbc-v056.jar
struts2-core-2.2.1.jar
struts2-dojo-plugin-2.2.1.jar
struts2-json-plugin-2.2.1.jar
struts2-junit-plugin-2.2.1.jar
struts2-spring-plugin-2.2.1.jar
struts2-tiles-plugin-2.2.1.jar
tiles-api-2.2.1.jar
tiles-compat-2.2.1.jar
tiles-core-2.2.1.jar
tiles-extras-2.2.1.jar
tiles-jsp-2.2.1.jar
tiles-portlet-2.2.1.jar
tiles-servlet-2.2.1.jar
wsdl4j.jar
xstream-1.2.2.jar
xwork-core-2.2.1.jar
What do I do to fix this?
You add the library the error message says is missing; Slf4J.
It looks like you're trying to do dependency management by hand--IMO that is a Very Bad Idea. It makes upgrading difficult, deployment difficult, understanding the differences between compile, test, and deployment requirements difficult, and so on.
For example, why deploy a source jar, or junit?
if you get the following error:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.tiles.web.startup.AbstractTilesListener.
add this dependency
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>2.2.2</version>
</dependency>
or add this jar :
slf4j-api-1.5.8.jar
jcl-over-slf4j-1.5.8.jar

Spring Security sends AuthenticationEvent twice

I've embeded Spring Security in my existing JSF 2 application running on Glassfish 3.1.2.
To do it, I used approach using forwarding to /j_spring_security_check, described in the following article:
http://ocpsoft.org/java/acegi-spring-security-jsf-login-page/
My code is almost 1-to-1 copy of the code of the article.
Here is login.xhtml:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
template="/template/template.xhtml">
<ui:define name="content">
<h:form id="loginForm" prependId="false">
<h:panelGrid columns="2">
<h:outputText value="#{msg['loginDialog.login']}: " />
<h:inputText id="j_username" required="true" />
<h:outputText value="#{msg['loginDialog.password']}" />
<h:inputSecret id="j_password" required="true" />
</h:panelGrid>
<h:commandButton type="submit"
action="#{loginBean.doLogin}"
value="#{msg['loginDialog.register']}" />
</h:form>
</ui:define>
Here is my login bean:
public class LoginBean implements Serializable {
public String doLogin() throws IOException, ServletException {
ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
Map map = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
String j_user = (String) map.get("j_username");
String j_pwd = (String) map.get("j_password");
RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check?j_username=" + j_user + "&j_password=" + j_pwd);
dispatcher.forward((ServletRequest) context.getRequest(), (ServletResponse) context.getResponse());
FacesContext.getCurrentInstance().responseComplete();
return null;
}
}
And this is declaration of security context:
<context:component-scan base-package="com.mycompany.package"/>
<security:global-method-security
secured-annotations="enabled">
</security:global-method-security>
<security:http auto-config="true"
access-denied-page="/accessDenied.xhtml">
<security:intercept-url pattern="/*"
access="ROLE_VIEWER,ROLE_CREATOR,ROLE_ADMIN" />
<security:form-login
login-processing-url="/j_spring_security_check"
login-page="/login.xhtml"
default-target-url="/main.xhtml"
authentication-failure-url="/login.xhtml" />
<security:logout logout-url="/logout*"
logout-success-url="/login.xhtml"
invalidate-session="true"/>
</security:http>
<security:authentication-manager>
<security:authentication-provider user-service-ref='userDetailsService'/>
</security:authentication-manager>
Then I created a listener to catch all AbstractAuthenticationEvent:
public class AuthenticationListener implements
ApplicationListener<AbstractAuthenticationEvent> {
private final static Log log = LogFactory.getLog(AuthenticationListener.class);
#Override
public void onApplicationEvent(AbstractAuthenticationEvent e) {
// some processing
}
}
The problem is: after each successefull login, the AuthenticationEvent is generated twice, not once, as it could be suggested.
Would somebody explain, what is wrong ?
Some addition: the event is generated twice, because (I don't understand why), there is automatic logout right after login and then new authentication. Here is the snippet from log:
INFO: ** trying to retrieve user
INFO: ** user is found
INFO: Hibernate: insert into audit (EVENT_TYPE, EVENT_TIMESTAMP,
USER_ID) values (?, ?, ?)
INFO: Current Session destroyed :3ee7b951888eb8920d07fefceaec by
org.apache.catalina.session.StandardSessionFacade#57ac8e Logging out
user...
INFO: Logging out
INFO: Current Session created : 3f1fd377302220f2f27313c06cdc at Mon
Jun 25 16:00:57 CEST 2012 by
org.apache.catalina.session.StandardSessionFacade#912e6a
INFO: Hibernate: insert into audit (EVENT_TYPE, EVENT_TIMESTAMP,
USER_ID) values (?, ?, ?)
Here is the the log with debugging on (sorry for the long list):
26 Jun 2012 12:47:58,703 DEBUG HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
26 Jun 2012 12:47:58,703 DEBUG SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
26 Jun 2012 12:48:04,078 DEBUG FilterChainProxy : /login.xhtml at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
26 Jun 2012 12:48:04,078 DEBUG HttpSessionSecurityContextRepository : HttpSession returned null object for SPRING_SECURITY_CONTEXT
26 Jun 2012 12:48:04,078 DEBUG HttpSessionSecurityContextRepository : No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade#10fbf9. A new one will be created.
26 Jun 2012 12:48:04,078 DEBUG FilterChainProxy : /login.xhtml at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter'
26 Jun 2012 12:48:04,078 DEBUG FilterChainProxy : /login.xhtml at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
26 Jun 2012 12:48:04,078 DEBUG FilterChainProxy : /login.xhtml at position 4 of 10 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'
26 Jun 2012 12:48:04,078 DEBUG FilterChainProxy : /login.xhtml at position 5 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
26 Jun 2012 12:48:04,078 DEBUG DefaultSavedRequest : pathInfo: both null (property equals)
26 Jun 2012 12:48:04,078 DEBUG DefaultSavedRequest : queryString: both null (property equals)
26 Jun 2012 12:48:04,078 DEBUG DefaultSavedRequest : requestURI: arg1=/mdmd/; arg2=/mdmd/login.xhtml (property not equals)
26 Jun 2012 12:48:04,093 DEBUG HttpSessionRequestCache : saved request doesn't match
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml at position 6 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
26 Jun 2012 12:48:04,093 DEBUG AnonymousAuthenticationFilter : Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken#6faba4dc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ANONYMOUS'
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter'
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
26 Jun 2012 12:48:04,093 DEBUG AntPathRequestMatcher : Checking match of request : '/login.xhtml'; against '/accessdenied*'
26 Jun 2012 12:48:04,093 DEBUG AntPathRequestMatcher : Checking match of request : '/login.xhtml'; against '/login*'
26 Jun 2012 12:48:04,093 DEBUG FilterSecurityInterceptor : Secure object: FilterInvocation: URL: /login.xhtml; Attributes: [IS_AUTHENTICATED_ANONYMOUSLY]
26 Jun 2012 12:48:04,093 DEBUG FilterSecurityInterceptor : Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken#6faba4dc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ANONYMOUS
26 Jun 2012 12:48:04,093 DEBUG AffirmativeBased : Voter: org.springframework.security.access.vote.RoleVoter#88fcb2, returned: 0
26 Jun 2012 12:48:04,093 DEBUG AffirmativeBased : Voter: org.springframework.security.access.vote.AuthenticatedVoter#18620f5, returned: 1
26 Jun 2012 12:48:04,093 DEBUG FilterSecurityInterceptor : Authorization successful
26 Jun 2012 12:48:04,093 DEBUG FilterSecurityInterceptor : RunAsManager did not change Authentication object
26 Jun 2012 12:48:04,093 DEBUG FilterChainProxy : /login.xhtml reached end of additional filter chain; proceeding with original chain
26 Jun 2012 12:48:04,281 DEBUG FilterChainProxy : /j_spring_security_check?j_username=admin&j_password=admin at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
26 Jun 2012 12:48:04,281 DEBUG FilterChainProxy : /j_spring_security_check?j_username=admin&j_password=admin at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter'
26 Jun 2012 12:48:04,281 DEBUG FilterChainProxy : /j_spring_security_check?j_username=admin&j_password=admin at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
26 Jun 2012 12:48:04,281 DEBUG UsernamePasswordAuthenticationFilter : Request is to process authentication
26 Jun 2012 12:48:04,296 DEBUG ProviderManager : Authentication attempt using org.springframework.security.authentication.dao.DaoAuthenticationProvider
26 Jun 2012 12:48:04,296 INFO UserDetailsServiceImpl : ** trying to retrieve user
26 Jun 2012 12:48:06,203 INFO UserDetailsServiceImpl : ** user is found
26 Jun 2012 12:48:06,421 WARN LoggerListener : Authentication event AuthenticationSuccessEvent: admin; details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232
26 Jun 2012 12:48:06,421 DEBUG SessionFixationProtectionStrategy : Invalidating session with Id '7f9b291fe5d980eba4639fdcb232' and migrating attributes.
26 Jun 2012 12:48:06,468 DEBUG SessionFixationProtectionStrategy : Started new session: 7f9eb44f14616034a4b5169d6ac6
26 Jun 2012 12:48:06,468 DEBUG UsernamePasswordAuthenticationFilter : Authentication success. Updating SecurityContextHolder to contain: org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN
26 Jun 2012 12:48:06,531 WARN LoggerListener : Authentication event InteractiveAuthenticationSuccessEvent: admin; details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232
26 Jun 2012 12:48:06,531 DEBUG SavedRequestAwareAuthenticationSuccessHandler : Redirecting to DefaultSavedRequest Url: 'http://localhost:9080/mdmd/'
26 Jun 2012 12:48:06,531 DEBUG DefaultRedirectStrategy : Redirecting to 'http://localhost:9080/mdmd/'
26 Jun 2012 12:48:06,531 DEBUG HttpSessionSecurityContextRepository : SecurityContext stored to HttpSession: 'org.springframework.security.core.context.SecurityContextImpl#be0d966d: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN'
26 Jun 2012 12:48:06,562 DEBUG ExceptionTranslationFilter : Chain processed normally
26 Jun 2012 12:48:06,562 DEBUG SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
26 Jun 2012 12:48:06,593 DEBUG FilterChainProxy : /index.jsp at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
26 Jun 2012 12:48:06,609 DEBUG HttpSessionSecurityContextRepository : Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl#be0d966d: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 4 of 10 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 5 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : pathInfo: both null (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : queryString: both null (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : requestURI: arg1=/mdmd/; arg2=/mdmd/ (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : serverPort: arg1=9080; arg2=9080 (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : requestURL: arg1=http://localhost:9080/mdmd/; arg2=http://localhost:9080/mdmd/ (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : scheme: arg1=http; arg2=http (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : serverName: arg1=localhost; arg2=localhost (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : contextPath: arg1=/mdmd; arg2=/mdmd (property equals)
26 Jun 2012 12:48:06,609 DEBUG DefaultSavedRequest : servletPath: arg1=/index.jsp; arg2=/index.jsp (property equals)
26 Jun 2012 12:48:06,609 DEBUG HttpSessionRequestCache : Removing DefaultSavedRequest from session if present
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 6 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
26 Jun 2012 12:48:06,609 DEBUG AnonymousAuthenticationFilter : SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
26 Jun 2012 12:48:06,609 DEBUG FilterChainProxy : /index.jsp at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
26 Jun 2012 12:48:06,609 DEBUG AntPathRequestMatcher : Checking match of request : '/index.jsp'; against '/accessdenied*'
26 Jun 2012 12:48:06,625 DEBUG AntPathRequestMatcher : Checking match of request : '/index.jsp'; against '/login*'
26 Jun 2012 12:48:06,625 DEBUG AntPathRequestMatcher : Checking match of request : '/index.jsp'; against '/sessionexpired*'
26 Jun 2012 12:48:06,625 DEBUG AntPathRequestMatcher : Checking match of request : '/index.jsp'; against '/*'
26 Jun 2012 12:48:06,625 DEBUG FilterSecurityInterceptor : Secure object: FilterInvocation: URL: /index.jsp; Attributes: [ROLE_AVIEWER, ROLE_BVIEWER, ROLE_ACREATOR, ROLE_BCREATOR, ROLE_AREGISTER, ROLE_BREGISTER, ROLE_ADMIN]
26 Jun 2012 12:48:06,625 DEBUG FilterSecurityInterceptor : Previously Authenticated: org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN
26 Jun 2012 12:48:06,625 DEBUG AffirmativeBased : Voter: org.springframework.security.access.vote.RoleVoter#88fcb2, returned: 1
26 Jun 2012 12:48:06,625 DEBUG FilterSecurityInterceptor : Authorization successful
26 Jun 2012 12:48:06,625 DEBUG FilterSecurityInterceptor : RunAsManager did not change Authentication object
26 Jun 2012 12:48:06,625 DEBUG FilterChainProxy : /index.jsp reached end of additional filter chain; proceeding with original chain
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 4 of 10 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 5 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 6 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
26 Jun 2012 12:48:11,953 DEBUG AnonymousAuthenticationFilter : SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken#be0d966d: Principal: org.mycompany.domain.security.UserDetailsImpl#1508a8b; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails#fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 7f9b291fe5d980eba4639fdcb232; Granted Authorities: ROLE_ADMIN'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
26 Jun 2012 12:48:11,953 DEBUG FilterChainProxy : /main.xhtml reached end of additional filter chain; proceeding with original chain

Resources