File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Modifying JBOSS twiddle code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Modifying JBOSS twiddle code" Watch "Modifying JBOSS twiddle code" New topic
Author

Modifying JBOSS twiddle code

Aliaksei Stasheuski
Greenhorn

Joined: Apr 08, 2011
Posts: 14
Hello to everyone! I've got a problem: I need to make some modifications in the jboss twiddle code, but I can't find the twiddle project source code ready for building. when using a java decompiler and making new project in eclipse. exporting it as .jar file does not solve the solution. changing twiddle.jar in jboss as bin folder with the newly build one threw an error. For some reason it cant find the RMIadaptor (it threw the CASTException) in this line

It is a pitty, but the (RMIAdaptor) cast expression doesn't help. any tips?
Thank in advance!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

The twiddle source code can be found in the JBoss AS 6.0 source download at console/src/main/java/org/jboss/console/twiddle
In other versions it is also in the console directory, though the exact subdirectories vary.


JBoss In Action
Aliaksei Stasheuski
Greenhorn

Joined: Apr 08, 2011
Posts: 14
Thank you. Peter! But I've still got some problems. well. I've downloaded the jboss 5.1 source code and made some modifications in the twiddle Getcommand class. now I just want to build the console part of the source code. I use the build.bat for this. My environment variables (like JAVA_HOME and PATH) are set to the jdk folder and jdk\bin folder respectively. but the Java compiler still produces come errors. Here is the content of the build.log file:

Thank in advance!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

You cannot just build console. You need to first go into the build directory and run build.bat there. The first build will take a while, but after that builds will go quicker since only changes are recompiled. You might even be able to do the build within the console directory. But the full app server has to be built first - the errors you are getting is because the other parts of the app server that supply the JMX classes have not yet been built.
Aliaksei Stasheuski
Greenhorn

Joined: Apr 08, 2011
Posts: 14
Peter. thank you for reply. but unfortunatelly nothing of this helps. I've tried to run the build.bat in the build folder first and it runs seccesfully. What concerns the console module, so I've found in the build.log the following:

but I still do not inderstand where this folder /qa/home/....... is. I know that the build script uses maven to build all in the proper way. and if memory serves me, the output of the maven compile process thould be in the output folder in the main maven directry, but there is nothing. where have I made a mistake?
Thank in advance!
Aliaksei Stasheuski
Greenhorn

Joined: Apr 08, 2011
Posts: 14
there are new problems(( As it have been found out the build.log I've recently produce reference to in my last post wasn't modifying while executing of build.bat. The build script doesn't make any modifications to it at all abd fails with the following error

as I think, The main phrase is the "Error building POM (may not be this project's POM)." but I ddn't change anything in the project architecture. All i've done is downloading the source code archive from the

http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/

and unpack it in the proper directory.
Thank in advance
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10201
    
166

Hmm it looks like that path is hardcoded or set in some properties file. Where did you get the source from? /qa/home/rrajasekaran is the location where the JBoss AS QA lead would have built the server.

[My Blog] [JavaRanch Journal]
Aliaksei Stasheuski
Greenhorn

Joined: Apr 08, 2011
Posts: 14
Hello Jaikiran, As I've just written in my last post, the strange path is now not the issue, cause it was from the build.log file, that doesn't want to update. and I just didn't see it earlier. Now the build script doesn't create the log fikle at all. The recent issue is that the build script throw the Error "Error building POM (may not be this project's POM".
Thank in advance!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modifying JBOSS twiddle code