views:

3470

answers:

6

Attempting to build a Java web project on Netbeans 6.8. Getting the following error.

"The module has not been deployed."

It points to my build-impl.xml file line 577.

line 577 is <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>

This is on Glassfish v3.

Glassfish Error log says SEVERE: Exception in command execution : java.lang.IllegalArgumentException: URI has an authority component java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(File.java:368)... etc

any idea waht "URI has an authority component" means?

A: 

Flip over to the GlassFish output tab, it'll give you better info. Netbeans gives you that generic error, but Glassfish gives you the details. When I get this it's usually a typo in one of my JSP or XML files...

Brian Knoblauch
i posted the glassfish error above. i've double checked my typos and syntax. still not sure.
Kirby
+1  A: 

The solution was simply that the uri was malformed... the reason the uri was malformed was because the location of my project was over a "\\" unc path. This issue was fixed when i used a local workspace.

Thx for the assistance guys.

Kirby
Can you send me the complete stacktrace from the server log? It seems like there needs to be a code fix here... or a better error message.
vkraemer
let me know where to send it? or post it in a comment?
Kirby
A: 

Ihave exactly the same problem as you, but i don't understand the solutin "the location of my project was over a "\" unc path" i need your help please

amira
A: 

i had the same problem (netbeans 6.9.1 ) and the fix is so simple :)

i realized the netbeans didn't create a META-INF folder and thus no context.xml found so i create the META-INF folder under the main Project folder

and create file context.xml with the following content

<?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/home"/>

and it run :)

S.Hawary
A: 

I found out that the url of the application conflicted with a module in the sun glassfish So, in the file sun-web.xml I renamed the /servlets-samples It is now working.

MostafaEweda
A: 

I also faced similar problem while working on affablebean e-commerce site development. I received an error: Module has not been deployed. I checked the sun-resources.xml file and found following statements which made the error.

<resources>
  <jdbc-resource enabled="true"
                 jndi-name="jdbc/affablebean"
                 object-type="user"
                 pool-name="AffableBeanPool">
  </jdbc-resource>

  <jdbc-connection-pool allow-non-component-callers="false"
                        associate-with-thread="false"
                        connection-creation-retry-attempts="0"
                        connection-creation-retry-interval-in-seconds="10"
                        connection-leak-reclaim="false"
                        connection-leak-timeout-in-seconds="0"
                        connection-validation-method="auto-commit"
                        datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
                        fail-all-connections="false"
                        idle-timeout-in-seconds="300"
                        is-connection-validation-required="false"
                        is-isolation-level-guaranteed="true"
                        lazy-connection-association="false"
                        lazy-connection-enlistment="false"
                        match-connections="false"
                        max-connection-usage-count="0"
                        max-pool-size="32"
                        max-wait-time-in-millis="60000"
                        name="AffableBeanPool"
                        non-transactional-connections="false"
                        pool-resize-quantity="2"
                        res-type="javax.sql.ConnectionPoolDataSource"
                        statement-timeout-in-seconds="-1"
                        steady-pool-size="8"
                        validate-atmost-once-period-in-seconds="0"
                        wrap-jdbc-objects="false">

    <description>Connects to the affablebean database</description>
    <property name="URL" value="jdbc:mysql://localhost:3306/affablebean"/>
    <property name="User" value="root"/>
    <property name="Password" value="nbuser"/>
  </jdbc-connection-pool>
</resources>

Then I changed the statements to the following which is simple and works. I was able to run the file successfully.

<resources>
  <jdbc-resource enabled="true" jndi-name="jdbc/affablebean" object-type="user" pool-name="AffablebeanPool">
    <description/>
  </jdbc-resource>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="AffablebeanPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
    <property name="URL" value="jdbc:mysql://localhost:3306/AffableBean"/>
    <property name="User" value="root"/>
    <property name="Password" value="nbuser"/>
  </jdbc-connection-pool>
</resources>
Zakir Sajib