How To deploy Adempiere project .war file on jboss server?
Kindly describe the steps briefly.
Manually Adempiere deployment is some what more complicated. You can't find the only one specific .war file in adempiere.
If you are going to do adempiere manually deployment then you need to find the following
*.jars and *.wars from source and place the jars and wars in respective places in jboss application server
webui.war
adempiereApps.war
adempiereRootBase.war
Adempiere.jar
AdempiereApps.jar
AdempiereRoot.jar
CCTools.jar
CSTools.jar
CompiereJasperReqs.jar
Generating the Adempiere Installer :- (You can download adempiere installer from sourceforge also)
Adempiere already integrated with jboss 4.2.3. For getting adempiere installers sake you need run the *ADEMPIERE_Trunk/utils_dev/build.xml* using ant. then system will craete installers for you. These installers are available *ADEMPIERE_Trunk/adempiere/install*.
Now copy these installer (.zip or .tar.gz) and place into your desired server location and extract it. Ex :-( C:\Adempiere or /home/user/Adempiere, this path we called as ADEMPIERE_HOME)
To Configure Adempiere server :-
open up a console window and go to the $ADEMPIERE_HOME/ directory. Run the script RUN_setup(.bat or .sh depending on your OS), Now it will open a popup enter your data (related to database configuration , application server configurations and ports) and click on the OK button. after 1 to 2 Minutes the process will be completed.
To Run Adempiere server :-
To run the ADempiere Server from a console, open up a console window and go to the $ADEMPIERE_HOME/utils directory. Run the script RUN_Server2 (.bat or .sh depending on your OS).
Now you can access from browser.
Related
One of my colleague is trying to install rundeck on a windows 10 OS. We have both followed the documentation guide on Rundeck's website. I was able to run and install Rundeck as a service but my colleague is stuck on the part where we need to run start_rundeck.bat because his Rundeck is not generating service.log. He can access the Rundeck UI but the logs are still not generating. Anyone knows how to fix this issue? Thanks!
Your colleague just needs to follow the instructions carefully.
Let me clarify the first steps focused on redirecting the standard output to the service.log file, I recreated the Rundeck installation on my Windows virtual machine:
First, check the minimal requirements. Rundeck needs OpenJDK 11 as the main dependency to work. You can obtain it from here, this implementation also works.
Create a new directory where the Rundeck .war file must be saved, e.g: C:\rundeck.
Go to this page and download .war file on the directory created in the previous step.
Open a new PowerShell terminal and set the Rundeck base directory: set RDECK_BASE=C:\rundeck.
Launch Rundeck for the first time to generate all files: java -jar rundeck-3.4.6-20211110.war (inside the directory created in the second step), wait until the Grails application running at http://localhost:4440 message appear, then stop the instance with ctrl + c key combination.
With any text editor, create a new file at C:\rundeck\ path called start_rundeck.bat with the following content:
set CURDIR=%~dp0
call %CURDIR%etc\profile.bat
java %RDECK_CLI_OPTS% %RDECK_SSL_OPTS% -jar rundeck-3.4.6-20211110.war --skipinstall -d >> %CURDIR%\var\logs\service.log 2>&1
And save it.
Go to the PowerShell terminal and just run the start_rundeck.bat file with .\start_rundeck.bat.
Now check the C:\rundeck\var\logs\service.log file.
At this point, it's possible to continue with the next steps: Configure Rundeck as a service using the nssm.exe program.
I had mistakely deleted my web services code. I don't have any backup of this code. Tried some file recovery tools but it didn't work. I have deployed the project in glass fish 4.0 server and the application works fine from there. So I am thinking is there any way I can generate the codes of that webservice?
Thank you
If you have the application deployed in your glassfish server then it is possible. You can always find your the .class files of original codes (not the one compiled by SEI) inside your domain folder of glassfish. Then you can use some third party tools to generate java codes from the class files. There are to ways that you can deploy your application in the glass fish server:-
By using the glass fish server web GUI and deploy it.
By using exernal IDE like eclipse where you create the glassfish server and deploy it.
For condition 1, goto :-
glassfish\domains\domain1\applications\__internal
where domain1 is your domain name. By default it is the name of your domain
For condition2, goto:-
glassfish4\glassfish\domains\domain1\eclipseApps
where domain1 is your domain name. By default it is the name of your domain
You can find your java codes inside WEB-INF\classes inside your project name.
Hope this helps.
I have created a installer to Deploy my web application on JBoss server what I does as follows
Files
HSQLDB Database folder.
JBoss folder including my application war file.
Launcher
In this section I have created two launchers
first to unzip/extract the given Directories (Generated Launcher)
another launcher to execute standalone.sh file of my JBoss server
(External Launcher)
Installer
here I have added 3 Action
to change the access mode of standalone.sh and
server.log file
Execute Launcher action to start JBoss server
when I run the installer then every thing works fine and it will start my JBoss to but problem is JBoss by default run on port 8080 thus if this port in use then it will not start my JBoss server now what I wanted to do is that
prompt user to specify the port number on which JBoss will run
give alert message after completion of installation process.
You can ask the user for the port value with a configurable form:
Select the installer node, and click on the add button, then on "Add screen" and choose the "Configurable form".
Add a "Text field with integer format" form component to ask for the port. The form component saves the user input to an installer variable, say to "jbossPort".
Use a "Replace text in XML files" action to change the port in the XML configuration file of JBoss. The port value is referenced like this: ${installer:jbossPort}, it is also available from the variable chooser (small arrow next to all text fields, select "Insert installer runtime varaiable", then select the "Bound variables" tab).
I am building a project in jdeveloper 11.1.2, but when i want to deploy it in weblogic it appears the next message
Error opening zip file or JAR manifest missing : ../modules/org.eclipse.persistence_1.1.0.0_2-1.jar
The file is there so i don't know what's happening.
The solution for this problem is removing the hash area named "RunConfigurations" in the project file. (Model.jpr)
I have resolved this issue in different way.
First of all it was an integrated weblogic server and the error was coming exactly after security patches have been installed on my Windows XP machine.
To repair:
In JDeverloper go to "View"->"Application Server Navigotor"; select IntegratedWeblogicServer and open properties. We need Domain Directory. Domain Directory for the IntegratedWeblogicServer is not located under "..:\Oracle\Middleware". By default it was placed (at least on my machine) under "C:\Documents and Settings\user name\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\".
So copy entire modules folder from you Fusion Middleware home "..:\Oracle\Middleware\" to "C:\Documents and Settings\user name\Application Data\JDeveloper\system11.1.2.1.38.60.81".
Restart integrated weblogic server.
It works for me ...
Good luck.
Answer for JDeveloper version : 11.1.2.1.0:
Right Click Model.jpr -> Project Properties -> Run/Debug/Profile -> Run Configurations. Select EclipseLink JPA Client -> Edit -> Launch Settings -> Java Options --> -javaagent:D:/JDeveloper/modules/org.eclipse.persistence_1.1.0.0_2-1.jar
D:/JDeveloper/modules is the path where my org.eclipse.persistence_1.1.0.0_2-1.jar file is located.
So give whatever your org.eclipse.persistence_1.1.0.0_2-1.jar path is after -javaagent:
I had the same problem with JDeveloper 11g 11.1.2.1.0 (R2) in Windows 7, and I solved it by uninstalling the following automatic updates of windows, it is not a problem of a project or specific application in JDeveloper, because it occurs at trying to run the integrated WebServer.
These are the uninstalled updates:
KB2647518
KB2665364
KB2641653
KB2639308
KB2621440
I had a two bat files start.bat and stop.bat for starting and stopping SOLR server manually,
Is it possible for me to create a windows serive which will call start.bat on starting the service and also call stop.bat on stopping the sERVICE
Consider Solr Multicore feature with Tomcat. Each core is like a fully fledged installation, "separate configurations and indexes, with their own config and schema for very different applications, but still have the convenience of unified administration" http://wiki.apache.org/solr/CoreAdmin
Even if you dont use multiple indexes, it's much more elegant to set up. Solr is available on startup if Tomcat is set that way. I assume you are using Solr 1.4.
You need to do these steps:
Set up a solr root directory
Overview
c:\solr
|-lib
|-solr.war
|-solr.xml
Create c:\solr
from the Solr package directory, copy the lib directory to the root dir.
from \example\webapps of Solr package directory, copy the solr.war
solr.xml has the following contents
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="false" sharedLib="lib">
<cores adminPath="/admin/cores">
<core name="myindex" instanceDir="myindexdir" />
</cores>
</solr>
The core parameter specifies a new core. The attributes specify that for serving http//localhost:8080/mysearchapp/myindex, the index directory is myindexdir, which brings us to the next step.
Create the actual core
Overview
c:\solr
|-lib
|-solr.war
|-solr.xml
|-myindexdir
|-bin
|-conf
|-data
copy the conf directory, where you have done your configuration to myindexdir. Dont bother creating bin and data, it will be automatically created.
Set up tomcat
install Tomcat, run it once (dont skip this) and open http://localhost:8080 to see if it is successfully installed
Of course, set it to start on boot by using services.msc
Open this directory
Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost
Create the file mysearchapp.xml
Context docBase="c:\solr\solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="c:\solr\" override="true" />
</Context>
Restart tomcat and open http://localhost:8080/mysearchapp/
If all goes well it will display
Welcome to Solr!
Solr Admin myindex
Now do your operations on your core like http://localhost:8080/mysearchapp/myindex/select?q=MY-QUERY
Solr runs on top of a Servlet container like Tomcat. So for starting Solr you have to configure Solr with your Servlet container and then start.
Yes you can of course create a Windows Service. However you have not mentioned which Servlet container are you using for running Solr?
If it is Apache Tomcat here you go:
1. Just go to tomcat/bin folder from command prompt
2. Say service.bat install
3. You can see the service being listed in the Microsoft Services
Application
4. Right click on the service and add solr home (in Start
parameters). For an example if your Solr home is in D drive then:
-Dsolr.solr.home="D:\solr"
5.You are done. Just right click on the service, start it or even you can set
it to start automatically when your system starts.