I am trying to install the jasper WAR file manually for the community edition on a Tomcat server on Unix OS. I am following the steps from the documentation skipping the sample databases.
js-ant create-js-db
js-ant init-js-db-ce
js-ant import-minimal-ce
js-ant deploy-webapp-ce
I am able to successfully build the first two steps however step 3 fails. Here is the complete log https://gist.github.com/shruti-palshikar/d3f75f1157028e963a3c
Are there any configurations that are needed prior to this build that I am missing? Any help is appreciated!
I have done WAR installation on windows machine , see if this could help you:-
Download the following files:-
The WAR file distribution comes in file named jasperreports-server-cp-4.5.0-bin.zip
in the compressed ZIP format. Download the WAR distribution file from
http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperServer%204.5.0/ .
Download the JDBC driver, mysql-connector-java-5.1.18-bin.jar
http://dev.mysql.com/downloads/connector/j/
After downloading WAR file download Apache Tomcat exe file and install on your system.
There are two way to install JasperReport server by manually or auto, but we are installing it manually.
Before start installing you need to set JAVA_HOME environment variable on your system.
JAVA_HOME="path of jdk folder"
e.g: JAVA_HOME=C:\Program Files\jdk1.7.0_01
To install the WAR file distribution using the manual buildomatic steps:-
1- If you’re using MySQL, place a MySQL JDBC driver in
<js-install>/buildomatic/conf_source/db/mysql/jdbc.
2- Start database (MySQL) server.
3- Stop your Application server(Apache tomcat).
4- Copy mysql_master.properties file from
<js-install>/buildomatic/sample_conf
and paste it to
<js-install>/buildomatic and rename it to default_master.properties.
5- Edit default_master.properties file and change the setting of database server and application server according to your system.
6- Open a Command Prompt as Administrator on Windows and go to buildomatic directory of JasperReport server and run these commands:-
a:- js-ant create-js-db (Creates the JasperReports Server repository database)
b:- js-ant create-sugarcrm-db (Optional) Creates the sample databases
js-ant create-foodmart-db
c:- js-ant load-sugarcrm-db (Optional) Loads sample data into the sample databases
js-ant load-foodmart-db
js-ant update-foodmart-db
d:- js-ant init-js-db-ce
js-ant import-minimal-ce
(Initializes the jasperserver database, loads core application data. Running js-ant import-minimal-ce is mandatory. The server cannot function without this data)
e:- js-ant import-sample-data-ce (Optional) Loads the demos that use the sample data
f:- js-ant deploy-webapp-ce Configures and deploys the WAR file to Tomcat
Start the application serve.
You can see the post Here
Related
I have a docker image as located here
https://github.com/Landoop/fast-data-dev which has all the good stuff that I am using for development. I've tried to add a JDBC connector to push into a Kafka topic however am getting this error. I've made a consumer in Java which is working fine however I would like to use KafkaConnect
Invalid value java.sql.SQLException: No suitable driver found for jdbc:sqlserver://servername for configuration Couldn't open connection to jdbc:sqlserver://servername
name=JdbcSourceConnector
connector.class=io.confluent.connect.jdbc.JdbcSourceConnector
connection.user=user
connection.password=password
tasks.max=1
connection.url=jdbc:sqlserver://servername
topic.prefix=test
table.whitelist=dbo.IB_WEBLOG_DUMMY_small
query=SELECT * FROM IB_WEBLOG_DUMMY_small
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter=org.apache.kafka.connect.json.JsonConverter
poll.interval.ms=5000
table.poll.interval.ms=120000
mode=bulk
What should I be looking into to fix this problem?
Your JDBC driver’s JAR file is not in Kafka Connect’s classpath. Put it there and you will be good to go:
One option is to install the JDBC driver jar alongside the connector. The packaged connector is installed in the share/java/kafka-connect-jdbc directory, relative to the installation directory. If you have installed from Debian or RPM packages, the connector will be installed in /usr/share/java/kafka-connect-jdbc. If you installed from zip or tar files, the connector will be installed in the path given above under the directory where you unzipped the Confluent Platform archive.
Alternatively, you can set the CLASSPATH variable before running connect-standalone or connect-distributed. For example:
$ CLASSPATH=/usr/local/firebird/* ./bin/connect-distributed ./config/connect-distributed.properties
Alternatively, put all the SQL Server JDBC JAR files in the libs dir under the root folder of Apache Kafka. But that would pollute the classpath and is better to be avoided in production.
I followed the guide at http://blogs.adatis.co.uk/jonathon%20eveoconnor/post/Using-TeamCity-to-Automate-Building-and-Deployment-of-Database-Projects to set up SQL build and publish from TeamCity.
The build step works great, but I'm stuck when it comes to publishing. I've set the step up as below, which matches what is in the guide, but I'm getting an error.
Step 2/2: Publish (MSBuild) (2s)
[Step 2/2] KAInternal\KAInternal.sqlproj.teamcity: Build target: Publish
[KAInternal\KAInternal.sqlproj.teamcity] SqlPublish
[SqlPublish] SqlPublishTask
[SqlPublishTask] C:\TeamCity\buildAgent\work\1472f1322571ddd\KAInternal\bin\Debug\KAInternal.sqlproj.publish.sql error Deploy72002: Unable to connect to master or target server 'KAInternal'. You must have a user with the same password in master or target server 'KAInternal'.
[Step 2/2] Step Publish (MSBuild) failed
I've searched a fair bit, but everyone seems to believe this is a permission issue on the source machine, well my publish profile is using the built in "sa" SQL Server account to publish (for now, mainly to disprove this theory).
Here is the publish profile XML:
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseName>KAInternal</TargetDatabaseName>
<DeployScriptFileName>Staging_KAInternal.sql</DeployScriptFileName>
<TargetConnectionString>Data Source=192.168.194.6;Persist Security Info=False;User ID=sa;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=True</TargetConnectionString>
<BlockOnPossibleDataLoss>True</BlockOnPossibleDataLoss>
<ExcludeLogins>True</ExcludeLogins>
<IgnoreRoleMembership>True</IgnoreRoleMembership>
<ExcludeUsers>True</ExcludeUsers>
<ProfileVersionNumber>1</ProfileVersionNumber>
</PropertyGroup>
And the publish step in TeamCity
Hopefully someone can point me in the right direction, thanks in advance.
The guide you're following describes creating a separate proj file for the deployment, but here you're using the sqlproj file instead. There actually is an msbuild publish target for sqlproj files, so I'm not sure whether this was an intentional deviation on your part.
It may be the case that the sqlproj build task doesn't accept the password as an msbuild property. You could test whether this is the problem by specifying the password in the connection string in the publish profile file.
Also, I would suggest ensuring that you're using the latest versions of SSDT and DACFx. See the SSDT team blog for information about the latest versions and download links: https://blogs.msdn.microsoft.com/ssdt/
I have tried to connect to Firebird database file using IBExpert and Flamerobin always got this error "Unable to complete network request to localhost"
Is there any changes in Firebird 3.0 with embedded version, because I can connect to version 2.5.5 without any problem?
I solved the problem and now it works great.
The problem happens if Firebird plugins folder is missing and need to put it in the root with exe file like this:
exe file
db file
fbclient.dll
plugins folder
engine12.dll ( only this file needed from plugins folder )
To let Flamerobin work you need to put fbclient.dll and plugins folder in Flamerobin folder!
I want to connect to Microsoft SQL server 2012 by using SOAP-UI. I have downloaded JTDS-JDBC jar (jtds-1.3.1 Executable Jar File) and store this SoapUI-PRo-5.0.0\bin\ext folder.
Now while writing groovy code by Data Source Step, which Driver should i select.
How can I confirm that this jar file is loaded successfully when soapui is start up.
Try net.sourceforge.jtds.jdbc.Driver() Did you see the documentation?
You should see a message in the soapui log, like:
INFO:Adding [C:\Program Files\SmartBear\soapUI-...\bin\ext\....jar] to extensions classpath
Mmm. I put the postgre jar on the lib folder of hsql database manager but then I tried to use the database manager an error occurs "java.lang.ClassNotFoundException:org.postgresql.Driver".
It is not enough to put the jar in the lib folder. You need to include the jar in the command line that you use to execute DatabaseManager. An example for Windows below:
java -cp /path/to/hsqldb.jar;/path/to/postgres/pg.jdbc3.jar org.hsqldb.util.DatabaseManagerSwing