Well... as it turns out, it looks like the problem is arising from the
ConfigurationManager, when it tries to getConfigurationProviders().  I've
added stacktraces to the source code of
"com.opensymphony.xwork2.config.ConfigurationManager" and it revealed the
following error:
25 Jul 2007 11:12:04,210 [ERROR] StandardContext - Exception starting
filter struts2
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at
java.security.AccessController.checkPermission(AccessController.java:427)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
        at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:275)
        at
com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:130)
        at
com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:128)
        at
com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:154)
        at
com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:126)
        at
com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:111)
        at
com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)


Now, to answer your question, here are my jars:

avalon-framework-4.1.3.jar  log4j-1.2.9.jar   struts2-core-2.0.9.jar
commons-logging-1.1.jar     logkit-1.0.1.jar  xwork-2.0.4.jar
freemarker-2.3.8.jar        ognl-2.6.11.jar


Aladin



> Without more setup details I'm not sure how we can
> help; what JARs do you have in WEB-INF/lib?
>
> d.
>
> --- Aladin <[EMAIL PROTECTED]> wrote:
>
>> Looks as thought the root of the problem occurs in
>> Dispatcher when it calls:
>>
>> private Container init_PreloadConfiguration() {
>>   Configuration config =
>> configurationManager.getConfiguration();
>>   ...
>> }
>>
>> So, the problem hierarchy:
>> Filter:init():dispatcher.init() =>
>> Dispatcher:init_PreloadConfiguration()
>>
>> The error messages appear when the line above is
>> called...
>>
>> ... investigation continues ...
>>
>> Aladin
>>
>>
>>
>> > The class is actually packaged as test.Test, I
>> just removed it from the
>> > post for simplicity (I won't do that next time).
>> >
>> > Also, I've tried the two url-patterns.  Both /*
>> and /execute/* don't work.
>> >  They give the same error.
>> >
>> > Aladin
>> >
>> >
>> >> There appears to be a few things that may be
>> causing your problem -
>> >>
>> >> First off, is your class not qualified with a
>> package, or maybe you're
>> >> using the spring-plugin? If not, in your action
>> configuration, it seems
>> >> like the action is configured incorrectly -
>> >>
>> >>    <action name="Test" class="Test">
>> >>
>> >> Maybe should be -
>> >>
>> >>    <action name="Test" class="your.package.Test">
>> >>
>> >> Next, you should probably have the Struts2 filter
>> filtering everything -
>> >>
>> >>
>> >> <url-pattern>/execute/*</url-pattern>
>> >>
>> >> Should be -
>> >>
>> >> <url-pattern>/*</url-pattern>
>> >>
>> >> -W
>> >>
>> >> -----Original Message-----
>> >> From: Aladin [mailto:[EMAIL PROTECTED]
>> >> Sent: Wednesday, July 25, 2007 10:08 AM
>> >> To: user@struts.apache.org
>> >> Subject: Unable to get started with Struts2
>> >>
>> >> Hello,
>> >>
>> >> I'm running Tomcat 5.5 on Linux (Fedora) and java
>> 1.5.0_12-b04.
>> >>
>> >> I have the simplest of Struts2 application and I
>> keep getting an error
>> >> in the logs stating:
>> >>
>> >> ERROR TP-Processor5
>> org.apache.catalina.core.StandardContext - Error
>> >> filterStart ERROR TP-Processor5
>> org.apache.catalina.core.StandardContext
>> >> - Context [/webapps/test] startup failed due to
>> previous errors
>> >>
>> >>
>> >> Have any of you encountered this problem and if
>> so, how did you resolve
>> >> it?
>> >>
>> >> Struts.xml:
>> >> ...
>> >> <struts>
>> >>  <package name="test" extends="struts-default">
>> >>    <action name="Test" class="Test">
>> >>      <result>/HelloWorld.jsp</result>
>> >>    </action>
>> >>   </package>
>> >> </struts>
>> >>
>> >> Web.xml
>> >> ...
>> >> <filter>
>> >> <filter-name>struts</filter-name>
>> >>
>>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
>> >> ss>
>> >> </filter>
>> >>
>> >> <filter-mapping>
>> >> <filter-name>struts</filter-name>
>> >> <url-pattern>/execute/*</url-pattern>
>> >> </filter-mapping>
>> >>
>> >> pom.xml
>> >> ...
>> >> <dependency>
>> >>  <groupId>org.apache.struts</groupId>
>> >>  <artifactId>struts2-core</artifactId>
>> >>  <version>2.0.9</version>
>> >> </dependency>
>> >>
>> >> Thanks.
>> >> Aladin
>> >>
>> >>
>>
> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>>
> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> >
>>
> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>
>
>
>
>
> ____________________________________________________________________________________
> Got a little couch potato?
> Check out fun summer activities for kids.
> http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to