Comments (5)
hi,
You used:
java org.jboss.tfonteyne.profilecloner.Main --controller=GERRYDESKTOPPC --username=matteg --password=secret --file=test.txt --add-deployments=false /from=subsystem/mail mail
but the syntax for the node is: /from=value
so you should use: /subsystem=mail mail
From the help screen:
Examples for "/from=value destinationvalue":
...
Standalone server:
/subsystem=security security
closing as not an issue
(edit: typo)
from profilecloner.
I should have mentioned that my first test used /subsystem/mail mail as you suggest.
Today I repeated the test and received the same result.
I also tried using /from=/subsystem/Mail Mail in case your program was case sensitive.
Same result.
I am attaching the log from today's test and also a screen image of my Admin console showing the default mail session exists.
20160817-exception.txt
from profilecloner.
WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final)
Windows 2008R2
Java 1.8.0_91
window 1:
C:\jboss\w10\bin>set JBOSS_HOME=c:\jboss\w10
C:\jboss\w10\bin>add-user.sh
...
C:\jboss\w10\bin>standalone.bat
(starts all ok)
Window 2:
C:\jboss\w10>set JBOSS_HOME=c:\jboss\w10
C:\jboss\w10>java -cp c:\jboss\w10\profilecloner.jar;.\bin\client\jboss-cli-client.jar org.jboss.tfonteyne.profilecloner.Main -c localhost -u admin -p secret
-f out.txt /subsystem=mail mail
aug 18, 2016 11:13:05 AM org.xnio.Xnio
INFO: XNIO version 3.3.4.Final
aug 18, 2016 11:13:05 AM org.xnio.nio.NioXnio
INFO: XNIO NIO Implementation Version 3.3.4.Final
aug 18, 2016 11:13:05 AM org.jboss.remoting3.EndpointImpl
INFO: JBoss Remoting version 4.0.18.Final
aug 18, 2016 11:13:06 AM org.jboss.as.cli.impl.CommandContextImpl printLine
INFO: Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions.
Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions.
C:\jboss\w10>type out.txt
batch
/subsystem="mail":add()
/subsystem="mail"/mail-session="default":add(jndi-name="java:jboss/mail/Default")
/subsystem="mail"/mail-session="default"/server="smtp":add(outbound-socket-binding-ref="mail-smtp")
run-batch
So works for me. Check your script for a start and double check the above syntax.
from profilecloner.
Looking over your sample, I realised that I had been using the domain version of defining the subsystem.
When I replaced /from=/subsystem/Mail Mail with /subsystem=mail mail everything worked fine.
If I may request - would it be possible to change your system to:
- Support using the same parameters whether the server is running in domain mode or standalone mode. This would avoid the problem altogether for those of us who always use standalone mode.
- Catch the exception and suggest that the user verify they are really running in domain mode .... are they perhaps running standalone ?
from profilecloner.
The tool is largely unaware of it being in domain or standalone mode.
The only time it notices is when you use the shortcut command to clone a full standalone profile
from the doc:
profile
The latter being a shortcut to clone all subsystems in individual batches
Other than this, the syntax is identical: /somenode=somename[/...] destinationname
from profilecloner.
Related Issues (9)
- java.lang.IllegalArgumentException: newValue is null HOT 1
- How to make a clone of server instances. any idea? HOT 1
- JBOSS EAP 6.4.23 Problem with injection of name="default" for some clone results. HOT 2
- Not working on JBoss EAP 6.0.1 (Update) HOT 6
- Error exporting jgroup TCPPING HOT 3
- Wildfly 9.0.1.Final jgroups stack does not like :add-protocol() but does like the standard :add() HOT 3
- Not working on WildFly 10.0.0.RC5 HOT 3
- outbound-socket-binding not exported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from profilecloner.