Weblogic Jar Install

Posted on by admin

Below are the steps to install Oracle Weblogic Server 12.1.2.0.0 on a Linux machine: Step 1: - Install JDK 1.7. - Download the WLS installer ' wls_121200.jar '. - Run the following command: Command: java -jar wls_121200.jar. Note: Make sure you run the above command in an X-Windows terminal.

  1. Java Jar Install

Java Jar Install

To meet prerequisites for installing the WAR file for WebLogic: 1. Check that the Oracle/Sun Java JDK 1.6 or 1.7 is installed. Check that the JAVAHOME system environment variable points to the JDK. Install the PostgreSQL, MySQL, Oracle, SQL Server, or DB2 database. The target database can be on a remote server. If you are using one of the following commercial databases: Oracle, SQL Server, or DB2, you will need to download a JDBC driver before beginning the installation steps. Download locations are the following:.

(Oracle). (SQL Server). (DB2) The downloaded JDBC jar should be copied into the following location:.

/buildomatic/confsource/db//jdbc For instance, for Oracle the driver would go here:. /buildomatic/confsource/db/oracle/jdbc See for more information. To install the WAR file for WebLogic: 1. Extract all files in jasperreports-server- 5.6-bin.zip. Choose a top-level directory, such as C: Jaspersoft on Windows or /home/ on Linux, for the extracted files. Unpacking the ZIP file creates the directory jasperreports-server- 5.6-bin. Check that WebLogic is installed in the default location on your local machine.

If WebLogic is not installed in the default location, or if you encounter problems using the buildomatic scripts, set up the database manually, as described in. After setting up the database manually, skip through, and proceed to. (If you are using Oracle or MySQL, you can skip this step.) Copy your JDBC driver to WebLogic and set your classpath. For example, for PostgreSQL: a. Copy the JDBC jar from /buildomatic/confsource/db/postgresql/jdbc to /server/lib b.

Add the following line to your /bin/setDomainEnv.cmd/sh file as follows. AppServerType =skipAppServerCheck appServerDir = path to WebLogic application server dbUsername =sa dbPassword =sa dbHost =localhost If your application server runs on Java 1.5, change your deployed JDBC driver as described in. Setup the database and optional sample databases using the buildomatic Ant scripts. Enter commands in the following table to call buildomatic Ant scripts: Exception: For DB2, skip this step and perform to in, then go to the next step of this procedure. You call buildomatic Ant scripts from the command line using the following syntax: Windows — js-ant Linux —./js-ant Commands Description cd /buildomatic Goes to the buildomatic directory. Js-ant create-js-db Create the jasperserver repository database js-ant init-js-db-pro js-ant import-minimal-pro Initializes database, loads core application data js-ant create-sugarcrm-db js-ant create-foodmart-db (Optional) Creates sample databases js-ant load-sugarcrm-db js-ant load-foodmart-db (Optional) Loads sample data into the sample databases js-ant import-sample-data-pro (Optional) Loads the demos that use the sample data On non-Linux Unix platforms, the js-ant commands may not be compatible with all shells.

If you have errors, use the bash shell explicitly. For more information, see. Add the database driver to your classpath. In WebLogic, open an Administrative Console window, and navigate to Services Data Sources or Domain Configurations Services Data Sources. Click New and then Generic Data Source for each of the data source columns in the following table, and enter the following values for a PostgreSQL database. You will need to click Next after entering the database driver and after One-Phase Commit. To use a database other than PostgreSQL, configure the database connections using settings shown in.

If you plan on using the sample databases (Foodmart and Sugar CRM), perform this step and the following step for each database. Parameter Name JasperReports Server Foodmart Example Sugar CRM Example Name JasperServerDataBase FoodmartDataBase SugarcrmDataBase JNDI Name JasperServerDataBase FoodmartDataBase SugarcrmDataBase Database Type PostgreSQL Database Driver PostgreSQL Driver Versions: using org.postgresql.Driver Supports Global Transactions Selected One-Phase Commit Selected 12. Set connection properties.

Sample properties for a PostgreSQL database are: Parameter Name JasperReports Server Foodmart Example Sugar CRM Example Database Name jasperserver foodmart sugar crm Host Name localhost Port 5432 Database User Name postgres Password postgres Confirm Password postgres 13. Test the database connection: a. For SugarCRM and Foodmart, use the default connections: jdbc:postgresql://localhost:5432/sugarcrm jdbc:postgresql://localhost:5432/foodmart b. Change the URL for the jasperserver database to: jdbc:postgresql://localhost:5432/jasperserver 14. Select targets, and ensure that AdminServer is set for all data sources.

Weblogic Jar Install

Using the Java jar tool or an unzip tool, unpack the jasperserver-pro.war file. For example, enter these commands to use the Java jar tool. Cd mkdir jasperserver -pro cd jasperserver -pro '%JAVAHOME%/bin/jar' xvf.

/jasperserver -pro. War The jasperserver-pro.war file is unpacked to a folder. If you are using WebLogic 10.3.5, you need to delete the following JARs to avoid conflict with WebLogic JARs. If you are using WebLogic 10.3.6 or WebLogic 12c, skip this step. To delete the JARs: a.

Go to the WEB-INF/lib directory: cd jasperserver-pro/WEB-INF/lib b. Delete the following conflicting JARs, but save a copy of them to a temporary location: jaxb-api.jar jaxb-impl.jar serializer.jar stax-api.jar xalan.jar xercesImpl.jar xml-apis.jar If you experience a problem with OLAP Views, you need these JARs for the workaround described in.

If you are using WebLogic 10.3.6, you need to replace xml-apis-1.3.04.jar with xml-apis-2.10.0.jar. If you are using WebLogic 10.3.5 or WebLogic 12c, skip this step.

To update the JAR: a. Go to the WEB-INF/lib directory. Copy xml-apis-2.10.0.jar from /buildomatic/installresources/extra-jars c. Remove xml-apis-1.3.04.jar. Update your Hibernate, Quartz, and Mail Server configuration: a. The hibernate.properties and js.quartz.properties files have been already configured for your database type by the buildomatic logic. So, these pre-configured files can be copied to the jasperserver-pro file: Copy from: /buildomatic/buildconf/default/webapp/WEB-INF/hibernate.properties /buildomatic/buildconf/default/webapp/WEB-INF/js.quartz.properties To: jasperserver-pro/WEB-INF b.

Edit the scheduler URI port value for WebLogic in the js.quartz.properties: Edit js.quartz.properties: Set: report.scheduler.web.deployment.uri= To: report.scheduler.web.deployment.uri= c. If you want to configure JasperReports Server to automatically schedule and email reports, enter your mail server information in the js.quartz.properties file.

Modify all report.scheduler.mail.sender. properties as necessary for your mail server. If your mail server requires authentication, edit the applicationContext-report-scheduling.xml file in the same manner: a.

Open the jasperserver-pro/WEB-INF/applicationContext-report-scheduling.xml file for editing and locate the reportSchedulerMailSender bean. Set the javaMailProperties key=' mail.smtp.auth' value to true. Now you can change to the jasperserver-pro folder and rearchive the jasperserver-pro.war file, using commands such as the following: Commands Description cd./. Changes to the jasperserver-pro folder mv./jasperserver-pro.war./BAK-jasperserver-pro.war Renames the original jasperserver-pro.war file.

'%JAVAHOME%/bin/jar' cvf./jasperserver-pro.war. Rearchives the jasperserver-pro.war file. Mv jasperserver-pro BAK-jasperserver-pro Renames the unneeded working folder to a backup location. You now have a jasperserver-pro.war file that can be used for deploying to WebLogic. Edit your WebLogic domain configuration file /config/config.xml: is the path of the domain within WebLogic that contains your JasperReports Server deployment.

For example /samples/domains/wlserver. Locate the server and security-configuration elements, and insert the following parameters.