title: Deployment-Error: Java-Webproject from netbeans to glassfish 4.0
body: <p><strong>Setup</strong></p>
  
  <hr>
  
  <p>I'm using <code>Netbeans 7.4</code> on Mac OSX Mavericks and <code>Glassfish 4.0 (build 89)</code> on my dedicated server and <code>JDK 1.7</code>. To use the server locally I setup and ssh-tunnel. The following way:</p>
  
  <pre><code>ssh -L 4848:127.0.0.1:4848 -p 6122 glassfish@XXXXXXXXXX
  </code></pre>
  
  <p>This is working perfectly fine, I can access the server via localhost without any problems. To use this server I added a server in Netbeans, see prinscreen:</p>
  
  <p><img src="https://i.stack.imgur.com/PMoA8.png" alt="Serversetup in Netbeans"></p>
  
  <p><strong>Problem</strong></p>
  
  <hr>
  
  <p>Now I'd like to deploy the project to the server (Right-Click Project -> Deploy) but I get following Error:</p>
  
  <pre><code>Building jar: /Users/tzhware7/NetBeansProjects/SkyLogicAddon/dist/SkyLogicAddon.war
  Distributing /Users/tzhware7/NetBeansProjects/SkyLogicAddon/dist/SkyLogicAddon.war to [glassfish.ivo]
  glassfish.ivo, deploy, null, false
  /Users/tzhware7/NetBeansProjects/SkyLogicAddon/nbproject/build-impl.xml:1050: The module has not been deployed.
  See the server log for details.
  BUILD FAILED (total time: 1 second)
  </code></pre>
  
  <p>Now I'd checked the line where the Error-Show's up, which is following (1049-1051). For me everything looks normal:</p>
  
  <pre><code>&lt;target if="netbeans.home" name="-run-deploy-nb"&gt;
          &lt;nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>In advance I checked the serverlogs, which are empty - no error is shown. What am I doing wrong? Can someone advice me what to change? Thank you in advance!</p>
  
  <p><strong>Edit 1 - 08.01.2014</strong></p>
  
  <hr>
  
  <p>Allright, <em>I didn't found a solution for solving the problem above</em>, but following way worked at least to deploy the app manually.</p>
  
  <ol>
  <li>Netbeans -> Right-Click on Project -> Clean/Build (now check your outputlog where it save's the project.</li>
  <li>Now go to that path, you'll shoud find a <code>.war</code> file</li>
  <li>Log into your glassfish-server -> Click Application's -> Click deploy -> upload the <code>.war</code> file -> Click again deploy</li>
  </ol>
  
  <p>Now glassfish deploys the project for you. :)</p>
  
  <p><strong>Edit 2 - 17.01.2014</strong></p>
  
  <hr>
  
  <p>I could fix the problem, following was wrong. In netbeans I configured that the Target should be domain1, if you do this, it won't work. Let the target be empty, and everything works fine.</p>
  
  <p><em>Thank you Tim B for your help!</em></p>