Forum LAMS for Tech-Heads - General Forum: Re: Copied LAMS server, updated urls but get error when run.bat is executed


 
Search: 

2: Re: Copied LAMS server, updated urls but get error when run.bat is executed
By: b u
In response to 1 03/21/11 11:18 PM
[ Reply | Forward ]
Correction...



I have a LAMS server installed and running OK with help from the LAMS support. I then recently copied this server over to another server and updated the URLs in about 5 files.
I then executed the following file C:\lams\jboss-4.0.2\bin\run.bat and I get this error on the command prompt continously - it goes on for a while. The error is: "java" is not recognised as an internal or external command, opreable program or batch file.

Can you please give me a list of steps to update this copy and make it work.

Posted by b u

3: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
In response to 2 03/22/11 07:59 AM
[ Reply | Forward ]
Hi BU :-)

Do you have Sun's Java JDK installed in that machine? If so just make sure that before you run run.bat, you set up and environment variable (JAVA_HOME) pointing to the directory in which Java JDK is installed.

Here's how to do it in Windows.

Additionally, when moving LAMS server probably the only URL change you need to do is when the server starts, you need to login as Sysadmin, go to the Sysadmin menu then Edit Configuration Settings and in the change the Server URL accordingly.

Thanks,

Ernie

Posted by Ernie Ghiglione

4: Re: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
By: b u
In response to 3 03/22/11 05:45 PM
[ Reply | Forward ]
Thanks for the reply.
Are you saying I should login as an administrator account to that server? And when I log in I should look for the sysadmin menu? I can't find this menu - is this System Configuration? Can you give me more specific steps please - I'm lost!

Posted by b u

5: Re: Re: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
In response to 4 03/22/11 11:15 PM
[ Reply | Forward ]
> Are you saying I should login as an administrator account to that server?

Yes.

Once you login as the administrator, then you will be able to see a menu like this:

Once you click on the Sysadmin menu, go to "Edit Configuration Settings". In there search for the Server URL:

.. change the domain/IP to the new one. Click on save and voila!

Posted by Ernie Ghiglione

6: Re: Re: Re: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
By: b u
In response to 5 03/27/11 03:48 PM
[ Reply | Forward ]
Thanks you for giving me screenshots and specific steps Ernie but I am not able to browse lams yet. My current situation is this:
1) I have Eclipse setup and I am able to build the Lams_build project as listed in your site:


Then in lams_build project, select the build.xml file, right mouse click to get the popup menu and select "Run As", "Ant Build...". Its about 3/4 the way down the menu. Make sure you pick "Ant Build...", not "Ant Build".

A dialog box will appear. Uncheck the usage entry (this is the default) and turn on

•"rebuild-db"
•"assemble-ear"
•"deploy-ear"
•"deploy-tools"
•and "copyfiles" IN THAT ORDER. The order is really really important. Then click Run.

2) In that page it says that the next step is to start jboss:

Now that everything is deployed and the database is setup, you can now start JBOSS. Good luck!

Once JBOSS is running, you should be able to access LAMS as .... If you are running locally on your PC, it will probably be http://localhost:8080/lams.

I don't know how to start jboss and when I tried browsing the localhost url, I get service is unavailable message.

Posted by b u

7: Re: Re: Re: Re: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
By: b u
In response to 6 03/27/11 04:20 PM
[ Reply | Forward ]
in addition to my previous post...
I have rebuilt the lams_build project successfully with no errors so I then checked if I had a lams.log on my jboss directory. I don't have one on the date the project was rebuilt. Also I am confused as there is a lams.txt and lams.log1 files - which one is it? Samething for server.log - I can't find one created when the project was rebuilt.
I really need some assistance to go from here...


Other questions that you can clarify for me:
- where is the jbos directory? I am looking at this directory in my machine "C:\lams\jboss-4.0.2\server\default\log" - is this correct.

Posted by b u

8: Re: Re: Re: Re: Re: Re: Re: Copied LAMS server, updated urls but get error when run.bat is executed
In response to 7 03/27/11 04:51 PM
[ Reply | Forward ]
Hi BU,

Right, so if you are building LAMS from source, make sure you have all the components installed before hand:

http://wiki.lamsfoundation.org/display/lams/Development+Environment

LAMS Source doesn't come with JBoss Application server, so you will need to install it before hand.

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum