This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243502 - Can't deploy wildfly
Summary: Can't deploy wildfly
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 06:59 UTC by jojoka
Modified: 2014-09-01 15:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jojoka 2014-04-03 06:59:20 UTC
Hello

I have updated the plugin to the latest. And since netbeans does not deploy my app. I really don't see any error message.
The last lines:
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 4.868s
Finished at: Wed Apr 02 15:57:00 CEST 2014
Final Memory: 14M/177M
------------------------------------------------------------------------
NetBeans: Deploying on WildFly Application Server
profile mode: false
debug mode: false
force redeploy: true

And in the wildfly window:

15:56:52,210 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "postgresql-9.3-1101.jdbc4.jar" (runtime-name : "postgresql-9.3-1101.jdbc4.jar")
15:56:52,444 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
15:56:52,444 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
15:56:52,444 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.0.0.Final "WildFly" started in 6007ms - Started 265 of 319 services (97 services are lazy, passive or on-demand)

And when I add war by copy to standalone/deployments:

16:00:36,640 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "WildFl2-1.0-SNAPSHOT.war" (runtime-name: "WildFl2-1.0-SNAPSHOT.war")
16:00:38,824 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Initializing Mojarra 2.2.5-jbossorg-3 20140128-1641 for context '/WildFl2-1.0-SNAPSHOT'
16:00:41,008 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.0.3.Final
16:00:41,148 INFO [org.primefaces.webapp.PostConstructApplicationEventListener] (MSC service thread 1-4) Running on PrimeFaces 4.0
16:00:41,195 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /WildFl2-1.0-SNAPSHOT
16:00:41,554 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "WildFl2-1.0-SNAPSHOT.war" (runtime-name : "WildFl2-1.0-SNAPSHOT.war")
Comment 1 ehsavoie 2014-04-03 07:14:56 UTC
Could you please givre me the plugin version, how you build your project, is the deploy on save checked ?
Comment 2 Lynx6 2014-04-03 22:16:20 UTC
I have exactly the same problem, in my case I have tested each Proxy Settings. I can start the server going to the Services Tab, but when I deploy (choosing the "run" option) an application happens nothing (no log message).
Comment 3 ehsavoie 2014-04-06 08:21:02 UTC
jojoka : I don't reproduce, I don't have enough infos to look at it.
Comment 4 Lynx6 2014-04-07 22:14:27 UTC
I would like add a weird case:

- When I add a datasource like "java:/jdbc/sml" using the Oracle's jdbc (created like a module) the application is not deployed.

Reason? I don't know because no log is displayed.
Comment 5 ehsavoie 2014-04-08 06:20:10 UTC
How do you add your datasource ?
Could you attache the application and the configuration file ?
Comment 6 Lynx6 2014-04-08 16:06:08 UTC
The application is really big, problems begins when I have changed to NB 8 from NB 8 RC...
Comment 7 ehsavoie 2014-04-08 16:34:50 UTC
How do you add your datasource ?
Comment 8 ehsavoie 2014-04-08 16:36:51 UTC
Did you try removing the server and reconfiguring it ?
What kind of application is it ? war / ear / ....
maven / netbeans ?
is deploy on save checked ?
Comment 9 Lynx6 2014-04-09 03:58:45 UTC
Did you try removing the server and reconfiguring it?
Yes, I noticed the problem with datasource when I reconfigured the server.

What kind of application is it ? war / ear / ....
war

maven / netbeans ?
maven with netbeans

is deploy on save checked ?
no, is unchecked...


Not related, the last patch fixed the proxy problem...
Comment 10 Lynx6 2014-04-11 03:15:45 UTC
the datasource is added from the wildfly console (localhost:9990) the driver is created like a module, when I deploy from the console the application run, but when I deploy from NB nothing happens.

I'm testing with Oracle JDBC driver 11.2.0.4. Tomorrow I will verify a weird case, I'll use the 11.2.0.3 version, because I was having a similar problem with glassfish.
Comment 11 Lynx6 2014-04-11 16:48:43 UTC
i can't reproduce it, works with GF but not when I use WF...
Comment 12 ehsavoie 2014-04-11 16:53:08 UTC
Did you try to remove the plugin and reinstall it (so that its configuration is rebuilt) I had some strange behaviours with old config.
The datasource is accessible when netbeans try to deploy ? Do you see it with the plugin ?
Comment 13 Lynx6 2014-04-11 18:39:48 UTC
Yes I have reinstalled netbeans, wildfly... wildfly is started in the services tab but the app is deployed only when I remove the jdbc driver module from the server.

I don't know if is related but Netbeans displayed this:
Fri Apr 11 13:35:50 COT 2014 Thread[exec_Run (ped)_5,1,exec_Run (ped)_5] java.io.FileNotFoundException: derby.log (Acceso denegado)

ped = Application name
Acceso denegado = Access denied
Comment 14 Lynx6 2014-04-11 19:02:47 UTC
I couldnt find this problem on internet, but I have fixed it, I dont know why this is happening with Netbeans.

Fix: Add this line to the oracle driver.
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>

Thanks, all is working now.
Comment 15 andy56_uk 2014-05-19 13:35:47 UTC
(In reply to Lynx6 from comment #14)
> I couldnt find this problem on internet, but I have fixed it, I dont know
> why this is happening with Netbeans.
> 
> Fix: Add this line to the oracle driver.
> <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-
> class>
> 
> Thanks, all is working now.

I've had the same problem trying to implement a MySQL database.

The workaround you posted also worked for me by defining the MySQL driver as follows:-
										<driver name="mysql" module="com.mysql">
  <xa-datasource-class>
    com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  </xa-datasource-class>
</driver>

This was necessary even though I don't want/need to use an XA datasource, otherwise the NB build fails with no meaningful information.
Comment 16 ehsavoie 2014-05-19 13:55:49 UTC
What was your configuration ?
I have a simple one with :
<driver name="pg" module="org.postgresql">
  <driver-class>org.postgresql.Driver</driver-class>
</driver> and it's working properly.