LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   JBOSS 5.1 does not work in CentOS 4.8 (https://www.linuxquestions.org/questions/linux-software-2/jboss-5-1-does-not-work-in-centos-4-8-a-895221/)

chenbo 08-03-2011 01:20 AM

JBOSS 5.1 does not work in CentOS 4.8
 
For some reason I need to use CentOS 4.8.

I installed Java 1.6.26 and JBOSS 5.1 on CentOS 4.8. However, When I use ./run.sh to run JBOSS I get the following message:

/bin/run.jaring required file: /opt/java/jboss

where /opt/java/jboss is the link to the JBOSS installation directory. Nothing else happens and there is no log.

I tried the search the error message, but got no hints.

Can anyone please help? Thanks in advance.

Elv13 08-03-2011 01:57 AM

I know it's not helping at all (well, it would help, but it's not the point). RHEL4/CentOS4 is getting closer to EOL (end of life). Even if JBOSS = RedHat, vendors tend not to support versions more than the previous version of a Linux OS. Even if you get JBOSS to work, you will have more and more problems now that RHEL6 is almost 1 year old.

If I were you, I would virtualize your RHEL4 install in a RHEL6/CentOS6 host OS using KVM. That way, you can more services one by one to the new OS until you can safely retire CentOS4. It will probably be easier that way. Of course, it can't be done in certain contexts, I am aware of that, I still maintain few CentOS3 and even a RH9 one, but if you can, start a step by step migration before things get out of control. As you seem to continue to update your software, it is probably necessary anyway.

chenbo 08-04-2011 01:29 AM

Problem solved.

The problem was because I copied a '.sh' file from another linux host via a windows machine. During the copy (or transfer), a '\r' character is inserted at the end of each line of the .sh file. And this .sh file set the path variable in linux. Because of the '\r', the path is not set correctly.

After I remove the '\r' from the end of the lines in .sh file, everything works.


All times are GMT -5. The time now is 01:12 PM.