Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arquillian-wls-remote-rest is using an old version of jersey #31

Open
mtau11 opened this issue May 4, 2017 · 1 comment
Open

arquillian-wls-remote-rest is using an old version of jersey #31

mtau11 opened this issue May 4, 2017 · 1 comment

Comments

@mtau11
Copy link

mtau11 commented May 4, 2017

Issue Overview

it looks like most of arquillian-container-wls is using jersey 2.18, however arquillian-wls-remote-rest is using an older jersey 2.15

Expected Behavior

The following code should return a serviceUrl;
JMXServiceURL serviceUrl = new JMXServiceURL( "service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime");

Current Behavior

an exception caused by java.lang.NoSuchMethodError: org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder.<init>(Ljava/lang/ClassLoader;[Ljava/lang/String;)V

Steps To Reproduce
  1. start a 12c Weblogic instance

  2. Compile and run a client with $WL_HOME/server/lib/wlthint3client.jar on the classpath along with the arquillian-wls-remote-rest and dependent jars. Client can simply contain the following code:
    `
    ...
    public void main(String args[]) {
    try {
    JMXServiceURL serviceUrl =
    new JMXServiceURL(
    "service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime");

        Hashtable env = new Hashtable();
         env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                 "weblogic.management.remote");
         env.put("java.naming.factory.initial",
                 "weblogic.jndi.WLInitialContextFactory");
         env.put(javax.naming.Context.SECURITY_PRINCIPAL, "xxxx");
         env.put(javax.naming.Context.SECURITY_CREDENTIALS, "xxxx");
    
         jmxCon = JMXConnectorFactory.newJMXConnector(serviceUrl, env);
    

`

Additional Information

I don't have permission to create a PR, also having trouble building due to: Could not resolve dependencies for project org.jboss.arquillian.container:arquillian-wls-remote-rest:jar:1.0.2.Final-SNAPSHOT: Could not find artifact org.jboss.arquillian.container:arquillian-wls-common:jar:1.0.2.Final-SNAPSHOT

@ddrechse
Copy link

+1
This is causing dependency conflicts because of the old jersey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants