How to use wildfly-cp to create a development server on Linux? - linux

I am trying to setup a development box based on Fedora 23. I am using Eclipse Mars for development, and Wildfly 8 application server. The goal is to be able to use Eclipse and Wildfly together, using only the system-provided rpm packages.
The problem: I cannot use Wildfly from Eclipse, because the server is in /usr/share, and owned by root. This is understandable, even preferable. AFAIK I should use wildfly-cp to create an environment, which can be used to run Wildfly as a normal user. However, I could not manage to do so yet.
I am looking for detailed instructions how to make it work from Eclipse.

Related

Spring bean create exception on Linux

My problem is very absurd but really I checked many times before I write here. I have a web application. We developed it with Spring 3.2 and we are deploying it on WebLogic. jdk version is 1.7.0_79 and WebLogic version is 12.1.x. I am using Windows 8 and because of security policies of my company my computer is very slow and irritating (anti virus program, hdd encryption etc.). I decided to install Oracle Virtual Box and Oracle Linux 7 as guest OS on VirtualBox. I installed same version jdk and WebLogic for guest OS.
After prepared my dev environment I came across a deployment failure which says bean create exception (because of circular reference). I checked the code and I noticed there is really a circular reference. But when I build the project on Windows there is no problem. I compared class by class but there is no difference between two. For testing I removed Inject annotation from the field causing circular reference and I could deploy project. That is if I build same code in Linux I can not deploy it neither on Linux nor on Windows.
I extracted two war files and copied classes from war generated on Windows to other and it worked again. I know this is very strange but I tried every combination to be sure.

Eclipse behavior on Linux when shared by multiple users

We are trying to setup Eclipse in a shared environment, i.e., it will be installed on a Linux server and each user connects to it using remote X. There are different reasons for sharing Eclipse, one being proper integration with ClearCase.
Our admin has setup eclipse with some default plugins and each user accesses eclipse thru remote X. Now, I wanted to install a new plugin so that it can be used by everyone. After installing the plugin, it's accessible to me only, it's not available for others. However, the plugins installed by admin are available to everyone.
When looked, the plugin installed by me and the plugin installed by admin are at different location:
plugin installed by me:
/home/ernesto/.eclipse/org.eclipse.platform_4.2.0_53742576/plugins/
where /home/ernesto/ is my home directory.
plugin installed by admin:
/project/eclipse/plugins/
where /project/eclipse is eclipse installation directory
Is it due to permissions? Is this behavior documented somewhere?
I am using eclipse juno 4.2, it's SuSE Linux server.
You are right. It's due to permission restriction.
You can find detail information from Eclipse's documentation.
Note: There are a lot of existing known defects in this scenario.

Currently Liferay Portal CE is installed on java 32 bit, is it harmless, if I reinstall java to 64 bit?

Currently Liferay Portal CE is installed on java x32, is it harmless, if I reinstall java to x64?
And which configuration files I need to change if I reinstall java to x64?
What do you mean by "Reinstalling it" ?
By simply changing JAVA_HOME environment variable and adding the 64-bits binaries at the beginning of your path, everything should work.
Liferay is just a set of APIs and bunch of web apps called portlets, themes, layouts etc. It comes with the standard containers and servers like Tomcat, JBoss etc.
If Tomcat/JBoss works well with the Java 64 bit, Liferay will too work with that.
I don't think Liferay will have any issue with the architecture. It depends on the compatibility of JVM that you have.

CDC-1.0/Foundation-1.0,J2SE-1.3

How to setup/configure the environment "CDC-1.0/Foundation-1.0,J2SE-1.3" of an OS (for example windows XP, linux)?
Because I want to run the embedded AWT application which requires this environment.
one possibility is to install an IDE which contains all that. the one which seems the most appropriate to me is NetBeans. go and see on their site, there are some tutorials on installation, setup and project creation
note that there may be other IDEs to perform the same task, i am just not aware of them.

Problems creating a Java Mobile Application project

I have installed the Netbeans 6.7 IDE with Java ME included, but cannot create a Mobile Application project from the Java ME category. When I select the project type the wizard stops at "Finding Feature" with the message:
Not all requested modules can be enabled:
[StandardModule:org.netbeans.modules.mobility.end2end.kig jarFile:C:\Program Files\NetBeans 6.7\mobility8\modules\org-netbeans-modules-mobility-end2end-kit.jar.
I am attempting to run this on Vista Home Premium. I have tried to run the IDE as Administrator with no luck.
I am at a loss for where to go next as I cannot seem to find any information regarding this issue. Even if you don't have the solution any insight into this error message would be helpful.
I am unable so far to get the project running via the Netbeans IDE install. I have, for the time being, installed the Java ME SDK which includes a very stripped down version of the Netbeans IDE for mobile development.
I originally had some issues starting the SDK as well on Vista. The IDE reported that it could not connect to the device manager on localhost. After some searching I found this link: Java ME SDK Startup Problem which suggests changing the hosts file localhost entry from IPv6 to IPv4. The fix worked perfectly and I can now compile and run code in the emulator.
This is not an optimal solution as the SDK does not include the visual design tools, however I am able to get a basic project going in the mean time.
I have given up on the 6.7 version and have instead located and installed 6.5.1. This previous version has been working just fine and seems to do everything I need.
I ran into the exact same error today while installing NB 6.8 beta. To resolve it we need to install two plugins:
Java Web Applications (as mentioned by Ali above) and
Sun Java System Web Server 7.0
Note that these two are part of the Category called "Java Web and EE" hence the confusion that we need to install Glassfish App Server. But we need these two plugins because they are required for debugging using breakpoints in emulator. Netbeans runs a web server when we do breakpoint based debugging.
Also note that the Java Web applications needs SOAP Web Services and JavaScript Debugger plugins to run and so these plugins are also installed when you try to install it.
You also need to install "Java Web Applications" plugin.
Tools->Plugins->Available Plugins
If the module is present, you should try unzipping it to check its content makes sense.
You should also be able to rebuild it from Netbeans sources.
You can also try to figure out why this happens by debugging the module loader inside Netbeans from its sources, using another IDE, presumably the latest version of Netbeans you can find without the issue.
If the module is missing, you might want to get the missing jar file from an installation of a previous version of Netbeans, see if it is compatible.
6.5.1 isn't missing any module.
back in version 5.5, the mobility module had to be downloaded and installed separately from the main IDE.
If you want to consider using Eclipse for developing your J2ME app...I've written a post related to that some time ago: here.

Resources