You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Mikko Apo (JIRA)" <ji...@apache.org> on 2007/02/06 17:09:17 UTC

[jira] Created: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

PropertiesSettings fails to load properties on Websphere 6.0
------------------------------------------------------------

                 Key: WW-1712
                 URL: https://issues.apache.org/struts/browse/WW-1712
             Project: Struts 2
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.0.5
         Environment: Websphere 6.0 running under Rational Application Developer 6.0
Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
struts2-core-j4-2.0.5.jar
struts2-blank-2.0.5 app
            Reporter: Mikko Apo
            Priority: Blocker


PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).

I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):

if ( settingsUrl == null ) {
    settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
}

I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-1712.
---------------------------

    Resolution: Fixed
      Assignee: Don Brown

Should be fixed by using a more robust properties file search algorithm that includes looking at the class's classloader.

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>         Assigned To: Don Brown
>             Fix For: 2.0.8
>
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Mikko Apo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40018 ] 

Mikko Apo commented on WW-1712:
-------------------------------

Thanks for the quick reply =)

I upgraded the components and now the WS version is WebSphere Platform 6.0 [BASE 6.0.2.5 cf50549.21]  but that didn't help so apparently the bug(?) isn't fixed.

Adding a copy of Kevin Edgecomb's LaunchServlet didn't help.

I was already using FilterDispatcher.

The only way to get the HelloWorld running was replacing the PropertiesSettings with a patched version using the code above.

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>            Priority: Blocker
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1712:
---------------------------

    Fix Version/s: 2.0.7

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>            Priority: Blocker
>             Fix For: 2.0.7
>
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1712:
---------------------------

    Flags: [Patch]

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>             Fix For: 2.0.8
>
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1712:
---------------------------

    Priority: Major  (was: Blocker)

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>             Fix For: 2.0.7
>
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1712) PropertiesSettings fails to load properties on Websphere 6.0

Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39999 ] 

Philip Luppens commented on WW-1712:
------------------------------------

I believe this might help:

http://forums.opensymphony.com/thread.jspa?threadID=26068&messageID=68992#68992
http://wiki.opensymphony.com/display/WW/WebSphere

> PropertiesSettings fails to load properties on Websphere 6.0
> ------------------------------------------------------------
>
>                 Key: WW-1712
>                 URL: https://issues.apache.org/struts/browse/WW-1712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.5
>         Environment: Websphere 6.0 running under Rational Application Developer 6.0
> Java version = J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20060120 (JIT enabled)
> struts2-core-j4-2.0.5.jar
> struts2-blank-2.0.5 app
>            Reporter: Mikko Apo
>            Priority: Blocker
>
> PropertiesSettings fails to load properties on Websphere 6.0 running under Rational Application Developer 6.0 (using struts2-core-j4-2.0.5.jar ).
> I was able to get the blank application running by adding the following snippet to PropertiesSettings(String name):
> if ( settingsUrl == null ) {
>     settingsUrl = this.getClass().getClassLoader().getResource( name + ".properties" );
> }
> I'm using the struts2-blank-2.0.5 app and the files setup the same way as in the .war. PropertiesSettings was not able to load default.properties from the core.jar or struts.properties from WEB-INF\classes until the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.