[
https://issues.jboss.org/browse/WFLY-5715?page=com.atlassian.jira.plugin....
]
Oleg Hoefling commented on WFLY-5715:
-------------------------------------
# yes
# Java(TM) SE Runtime Environment (build 1.8.0_65-b17) / Java HotSpot(TM) 64-Bit Server VM
(build 25.65-b01, mixed mode)
# I use the mysql driver
Steps to reproduce (my user already belongs to wildfly group):
# {{$ wget
http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz}}
# {{$ tar zxvf wildfly-9.0.2.Final.tar.gz -C /opt}}
# {{$ chown -R wildfly:wildfly /opt/wildfly-9.0.2.Final}}
# {{$ chmod -R g+w /opt/wildfly-9.0.2.Final/standalone
/opt/wildfly/domain/configuration}}
# {{$ /opt/wildfly-9.0.2.Final/bin/add-user.sh (add one for management realm)}}
# {{$ /opt/wildfly-9.0.2.Final/bin/standalone.sh}}
# {{$ /opt/wildfly-9.0.2.Final/bin/jboss-cli.sh --connect}}
# {{\[standalone@localhost:9990 /\]
/deployment=mysqlconnector.jar:add(enabled=true,content=\[url=file:///home/hoefling/Downloads/mysql-connector-java-5.1.37.jar])}}
# {{\[standalone@localhost:9990 /\] data-source add --name=myappds
--jndi-name=java:/myappds --connection-url=jdbc:mysql://localhost:3306/myappdb
--driver-name=mysqlconnector.jar_com.mysql.jdbc.Driver_5_1 --user-name=app
--password=app}}
# {{\[standalone@localhost:9990 /\]
/deployment=myapp.war:add(enabled=true,content=\[url=file:///home/hoefling/projects/myapp/target/myapp.war])}}
Verify two artifacts were deployed:
{panel}$ ls -l /opt/wildfly-9.0.2.Final/standalone/data/content/
total 8
drwxrwxr-x 3 prod prod 4096 Jan 29 18:01 4e
drwxrwxr-x 3 prod prod 4096 Jan 29 18:01 b4{panel}
Wait five minutes or so:
{panel}$ ls -l wildfly-9.0.2.Final/standalone/data/content/
total 4
drwxrwxr-x 3 prod prod 4096 Jan 29 18:01 4e
{panel}
The myapp deployment is gone. Note that I can only reproduce this when installing Wildfly
into /opt, as when I install e.g. in my home directory, the cleanup of deployments does
not happen.
Wildfly 9/10 removing deployments after a certain time
------------------------------------------------------
Key: WFLY-5715
URL:
https://issues.jboss.org/browse/WFLY-5715
Project: WildFly
Issue Type: Bug
Affects Versions: 9.0.2.Final, 10.0.0.CR4
Environment: Ubuntu 12.04.5 LTS
Reporter: Sven Ulrich
Assignee: ehsavoie Hugonnet
Attachments: Dummy.war, ifxjdbc_4.10.jar, server.log, standalone.xml
I have setup a Wildfly 10 CR4 on a Ubuntu 12.04.5 LTS. The server is running fine.
Now I want to deploye my jar files (jdbc driver and jee apps).
All is uploaded via the management web interface running on the port 10010 (added offset
of 20 because a WF8 is running on Port 8080)
First I log into the web interface and navigate to the tab deployments. Then I use the
button add.
In the popup window:
1: Upload a new deployment
2: I choose ifxjdbc_4.10.jar for e.g.
3: In Verify upload enabled is set and everything else is standard
4: The upload takes round about 30sec.
Now I can setup datasources for this driver and its works fine. My next step is to stop
the server and restart it. Then the server wont start because the content is missing for
the jar.
It wont be an issue for me if i could be 100% sure that the server wont be restarted
anytime :)
I have added my standalone.xml and the log with hopefully all needed information.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)