You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Joerg Spiegel (JIRA)" <ji...@apache.org> on 2010/09/28 08:57:33 UTC

[jira] Created: (AXIS2-4832) Modules not getting loaded from classpath in BEA Weblogic 10.x

Modules not getting loaded from classpath in BEA Weblogic 10.x
--------------------------------------------------------------

                 Key: AXIS2-4832
                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
             Project: Axis2
          Issue Type: Bug
          Components: deployment
    Affects Versions: 1.4.1
         Environment: JDK 5 , WebSphere application server 6.1
            Reporter: Joerg Spiegel
            Assignee: Andreas Veithen
             Fix For: 1.5


I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay



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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

    Description: 
Sorry, this was my first try to create a ticket.
Please remove!


> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel closed AXIS2-4832.
--------------------------------

    Resolution: Fixed

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

              Summary: -  (was: Modules not getting loaded from classpath in BEA Weblogic 10.x)
    Affects Version/s:     (was: 1.4.1)
          Environment:     (was: JDK 5 , WebSphere application server 6.1)
           Issue Type: Test  (was: Bug)
          Description:     (was: I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay

)
             Priority: Trivial  (was: Major)
        Fix Version/s:     (was: 1.5)
          Component/s:     (was: deployment)

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel closed AXIS2-4832.
--------------------------------

    Resolution: Fixed

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

    Description: 
Sorry, this was my first try to create a ticket.
Please remove!


> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

    Description: 
Sorry, this was my first try to create a ticket.
Please remove!


> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel closed AXIS2-4832.
--------------------------------

    Resolution: Fixed

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel closed AXIS2-4832.
--------------------------------

    Resolution: Fixed

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

              Summary: -  (was: Modules not getting loaded from classpath in BEA Weblogic 10.x)
    Affects Version/s:     (was: 1.4.1)
          Environment:     (was: JDK 5 , WebSphere application server 6.1)
           Issue Type: Test  (was: Bug)
          Description:     (was: I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay

)
             Priority: Trivial  (was: Major)
        Fix Version/s:     (was: 1.5)
          Component/s:     (was: deployment)

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

              Summary: -  (was: Modules not getting loaded from classpath in BEA Weblogic 10.x)
    Affects Version/s:     (was: 1.4.1)
          Environment:     (was: JDK 5 , WebSphere application server 6.1)
           Issue Type: Test  (was: Bug)
          Description:     (was: I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay

)
             Priority: Trivial  (was: Major)
        Fix Version/s:     (was: 1.5)
          Component/s:     (was: deployment)

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Closed: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel closed AXIS2-4832.
--------------------------------

    Resolution: Fixed

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

    Description: 
Sorry, this was my first try to create a ticket.
Please remove!


> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

              Summary: -  (was: Modules not getting loaded from classpath in BEA Weblogic 10.x)
    Affects Version/s:     (was: 1.4.1)
          Environment:     (was: JDK 5 , WebSphere application server 6.1)
           Issue Type: Test  (was: Bug)
          Description:     (was: I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay

)
             Priority: Trivial  (was: Major)
        Fix Version/s:     (was: 1.5)
          Component/s:     (was: deployment)

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

    Description: 
Sorry, this was my first try to create a ticket.
Please remove!


> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>
> Sorry, this was my first try to create a ticket.
> Please remove!

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Updated: (AXIS2-4832) -

Posted by "Joerg Spiegel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Spiegel updated AXIS2-4832:
---------------------------------

              Summary: -  (was: Modules not getting loaded from classpath in BEA Weblogic 10.x)
    Affects Version/s:     (was: 1.4.1)
          Environment:     (was: JDK 5 , WebSphere application server 6.1)
           Issue Type: Test  (was: Bug)
          Description:     (was: I tried to deploy the axis2  ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of  "jar" for eg.  the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of  just "jar"  and "file". Also since the "wsjar" is not actually an instance of  "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

else if (fileName.startsWith("wsjar")) {
    fileName =fileName.substring("wsjar:".length());
    fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
}

Thanks
Vijay

)
             Priority: Trivial  (was: Major)
        Fix Version/s:     (was: 1.5)
          Component/s:     (was: deployment)

> -
> -
>
>                 Key: AXIS2-4832
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4832
>             Project: Axis2
>          Issue Type: Test
>            Reporter: Joerg Spiegel
>            Assignee: Andreas Veithen
>            Priority: Trivial
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org