Jump to content
Changes to the Jaspersoft community edition download ×

Can I deploy manually jrxml to Jasper Server


eric.halim

Recommended Posts

Hi, I'm new to Jasper so I'm facing difficulties deploying my jrxml to Jasper Server.

First issue is probably connectivity issue not a Jasper issue. I've setup Jasper Server on Windows Server. I can access it using http://localhost:8081/jasperserver but I'm not able to access it from Jasper Studio (my laptop) I always get timeout when I try to create server from Jasper Studio. Even I cannot access http://server_ip_address:8081/jasperserver from browser. In fact, I already open inbound firewall from Windows configuration. Anything else is needed?

Since I'm facing the first issue then I'm trying to copy the jrxml file to the server and upload it from the http://localhost:8081/jasperserver. However I got more confused. For example in Jasper Studio I'm using Data Adapter but in Jasper Server I can only find Data Sources instead. Then if my report is using local Data Adapter (in xml) should I also bring it to the server? Then if my report taking in parameters should I create input controls? I get confused with different terminology here.

I tried to run without anything give me blank result. But if I put Data Sources on then I got errors.

Can someone help and give me some directions?

 

Thanks in advance

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

It would be better to solve the problem in the local environment first.
This is the case when both Server and Studio are built in the local environment.

1.'I'm trying to copy the jrxml file' how did you operate?
  Generally, you use Studio's upload function to place reports to the Server.

  1-1.Connecting to JasperReports Server
      https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/connecting-jasperreports-server

  1-2.Publishing a Report to JasperReports Server
      https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/publishing-report-jasperreports-server


  YouTube :

2.'in Jasper Studio I'm using Data Adapter but in Jasper Server I can only find Data Sources instead.' is correct.
   Studio --> Data Adapter https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/data-adapters
   Server --> Data Sources https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v790/data-sources

3.'Then if my report is using a local Data Adapter (in xml) should I also bring it to the server?' is unnecessary.
   Just having 'Data Sources' is sufficient. (but may be necessary for advanced usage).

4.'Then if my report taking in parameters should I create input controls?'is depends on the situation.
   Basically, they are created together when a Report is uploaded from Studio to the Server.
   After that, if you need to edit the input controls to incorporate SQL, etc., you will need to edit the input controls after uploading.

 

The next step is to solve the remote environment problem.
As you have already recognized, it is most likely affected by the network configuration.
If it were me, I would investigate where the cause is as follows
1. Issue a ping from the local PC to the server IP to see if a connection can be made (but it will fail if the Windows Server does not allow pings)

2. Check if you can connect to the server IP from the local PC by specifying the port.
  If the local PC is Windows, run 'Test-NetConnection server_ip_address -Port 8081' in PowerShell.

3. Check if you can connect to the server's tomcat from your local PC (for example in your environment, http://server_ip_address:8081/)

 

Link to comment
Share on other sites

Hi yama818

Thanks so much for your thorough answer. Really appreciate it.

I need permission before installing Studio on server. What I did was copy the jrxml to server, open localhost:8081/jasperserver then upload it from inside. Inside the portal there I got so confused because I need to upload not only the jrxml but also the Data Adapter xml.(because I'm using multi db connection). Like, where to place this xml. Then should Data Source in the server name equal to Data Source name I configured in the local jrxml and so on.

But your answer gave me insight. I did install Jasper server on my laptop then try to publish it from Studio. Yes it is 1 click job and so easy. At least now I have clearer picture.

1. Data Adapter <> Data Source.

2. Data Adapter xml is in 1 location with Jasper report jrxml.

3. Report Parameter = Input Controls.

It's ok for now at least until Studio can be installed on server. I guess still... I need to resolve the network issue, otherwise the application would not be able to consume it.

1. Ping from my laptop to server is ok

2 & 3 failed

Probably something to do with port. Previously default port was 8080 I even changed to 8081 to prevent any port conflict. I also added the inbound and outbound firewall rules accordingly. Not so sure anything else required to setup.

 

Thanks again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...