title: Arquillian testing on remote server
body: <p>I want to test my war file on remote server but it is not working and giving me error:</p>
  
  <pre><code>sun.net.www.protocol.http.HttpURLConnection$HttpInputStream cannot be cast to com.itextpdf.text.pdf.codec.Base64$InputStream
  </code></pre>
  
  <p>I dont know what i am doing wrong.I am new to arquillian and have checked almost all the links available but still not got any solution over this.. </p>
  
  <pre><code>Here is my arquillian.xml
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  
  
  &lt;arquillian xmlns="http://jboss.org/schema/arquillian"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jboss.org/schema/arquillian
          http://jboss.org/schema/arquillian/arquillian_1_0.xsd"&gt;
  
      &lt;!-- Uncomment to have test archives exported to the file system for inspection --&gt;
      &lt;!-- &lt;engine&gt; --&gt;
      &lt;!-- &lt;property name="deploymentExportPath"&gt;target/&lt;/property&gt; --&gt;
      &lt;!-- &lt;/engine&gt; --&gt;
  
      &lt;!-- Force the use of the Servlet 3.0 protocol with all containers, as it 
          is the most mature --&gt;
      &lt;defaultProtocol type="Servlet 3.0" /&gt;
  
      &lt;!-- Example configuration for a remote JBoss EAP 6 instance --&gt;
      &lt;container qualifier="jboss" default="true"&gt;
          &lt;!-- By default, arquillian will use the JBOSS_HOME environment variable. 
              Alternatively, the configuration below can be uncommented. --&gt;
          &lt;configuration&gt;
              &lt;!-- &lt;property name="jbossHome"&gt;/opt/jboss7&lt;/property&gt; --&gt;      &lt;!-- &lt;property name="managementAddress"&gt;197.242.148.253&lt;/property&gt; &lt;property 
                  name="managementPort"&gt;22000&lt;/property&gt; &lt;property name="username"&gt;&lt;/property&gt; 
                  &lt;property name="password"&gt;&lt;/property&gt; --&gt;
  
  
              &lt;property name="managementAddress"&gt;197.242.148.253&lt;/property&gt;
              &lt;property name="managementPort"&gt;22000&lt;/property&gt;
              &lt;property name="username"&gt;abc&lt;/property&gt;
              &lt;property name="password"&gt;aabc123&lt;/property&gt;
  
  
  
          &lt;/configuration&gt;
  
      &lt;/container&gt;
  
  &lt;/arquillian&gt;
  </code></pre>
  
  <p>This is my test class</p>
  
  <pre><code>public class ArqTest extends Arquillian{
  
  
         //creates war and deploys it
          @Deployment(testable = true)
          public static WebArchive createNotTestableDeployment() {
              final WebArchive war = ShrinkWrap.create(WebArchive.class, "USSD.war")
                      .addClasses(ShowConversations.class)
              .addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
           System.out.println("deployed");
           System.out.println(war.getName());
              return war;
          }
  
  
  
       @RunAsClient
       @Test(dataProvider = Arquillian.ARQUILLIAN_DATA_PROVIDER)
         public void Test() throws IOException {
  
  
  
                  URL url = new URL("http://197.242.148.253");
                  InputStream is = (InputStream) url.openStream();
                  BufferedReader br = new BufferedReader(new
                  InputStreamReader(is));
                  String result = br.readLine();
  
  
                  System.out.println(result+"hello");
              br.close();
  
  
          }
  }
  </code></pre>
  
  <p>Can any body provide me some help over this</p>