Giter Site home page Giter Site logo

Comments (5)

tfonteyn avatar tfonteyn commented on May 28, 2024

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.

matteg avatar matteg commented on May 28, 2024

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
wf10-mail

from profilecloner.

tfonteyn avatar tfonteyn commented on May 28, 2024

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.

matteg avatar matteg commented on May 28, 2024

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:

  1. 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.
  2. Catch the exception and suggest that the user verify they are really running in domain mode .... are they perhaps running standalone ?

from profilecloner.

tfonteyn avatar tfonteyn commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.