首页 \ 问答 \ Jasperreport没有数据源(Jasperreport without data source)

Jasperreport没有数据源(Jasperreport without data source)

如何显示没有数据源的jasperreport。 该报告假设从Java应用程序接收参数并显示它们。


How do I display a jasperreport without a datasource. The report is suppose to receive parameters from the java application and display them.


原文:https://stackoverflow.com/questions/24996914
更新时间:2022-02-25 10:02

最满意答案

首先,用名称启动容器(使用--name标志)。 这将允许您稍后在需要重新部署时容易地找到此容器:

docker run -d -it -p 8383:8080 --name your-application docker-tomcat

使用这个名字,你可以检查容器是否已经存在,然后停止并删除它(shell脚本不在我头顶,可能有更好的方法来构建它):

[ $(docker ps -aq -f name=your-application | wc -l) -gt 0 ] && \
    docker stop your-application && docker rm your-application

之后,像以前一样用新图像重新创建容器。


First, start your container with a name (using the --name flag). This will allow you to easily find this container later, when you want to redeploy it:

docker run -d -it -p 8383:8080 --name your-application docker-tomcat

Using the name, you can check if the container already exists, and then stop and delete it if it does (the shell script is off the top of my head, there are probably better ways to build this):

[ $(docker ps -aq -f name=your-application | wc -l) -gt 0 ] && \
    docker stop your-application && docker rm your-application

After that, re-create your container with the new image as before.

相关问答

更多
  • 如果你看一下docker / java Dockerfile ,它基于: FROM buildpack-deps:jessie-scm buildpack-deps:jessie-scm 取决于 : FROM buildpack-deps:jessie-curl 和buildpack-deps:jessie-curl 取决于 : FROM debian:jessie 这意味着您的tomcat映像基于操作系统( Debian 8 )。 每个Dockerfile都在其基本映像中定义的层上构建。 If yo ...
  • 我不知道它是否比你现在的“更好”,但我总是通过认为我有两个部署来完成我的应用程序。 我有: 数据库部署(包括使用Liquibase等更新架构到最新版本) 应用程序部署(包括部署我的WAR存档的最新版本,或者它已打包) 当然,第二次部署取决于第一次部署是否完成且成功。 那么我如何使用docker-compose进行建模呢? 我是为了清楚,所以我创建了两个文件: 泊坞窗,compose.database 泊坞窗,compose.application 然后我有一个两步部署过程: 步骤1: docker-comp ...
  • 你真的看过那个页面上的Usage部分吗? 在1)点描述: 因此,可以将.WAR文件安装在此服务器的dropins目录中并运行。 以下示例在后台启动一个容器,该容器从主机文件系统运行.WAR文件 $ docker run -d -p 80:9080 -p 443:9443 \ -v /tmp/DefaultServletEngine/dropins/Sample1.war:/config/dropins/Sample1.war \ websphere-liberty:webProfile7 这应该允 ...
  • 首先,用名称启动容器(使用--name标志)。 这将允许您稍后在需要重新部署时容易地找到此容器: docker run -d -it -p 8383:8080 --name your-application docker-tomcat 使用这个名字,你可以检查容器是否已经存在,然后停止并删除它(shell脚本不在我头顶,可能有更好的方法来构建它): [ $(docker ps -aq -f name=your-application | wc -l) -gt 0 ] && \ docker sto ...
  • 只要您记住,当容器退出时,对文件系统的任何更改都将“丢失”,这是可以的。 如果您想使用更新的应用程序启动容器,最好是: docker commit应用程序更新所在的运行容器 或者(最佳实践),使用更新步骤更新Dockerfile(为了能够重现), docker build新映像,并使用正确版本的正确应用程序启动新容器。 It is ok as long as you remember that any change to the filesystem will be "lost" when the cont ...
  • 我相信它可以使用JMX完成。 The Tomcat Manager is a web application that can be used interactively (via HTML GUI) or programmatically (via URL-based API) to deploy and manage web applications. 有链接 - http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html I believe ...
  • 您需要了解如何为tomcat服务器设置用户名和密码。 如果有配置文件,则需要使用-v选项将其挂载到docker容器中,或者可以通过在Dockerfile中指定相关的COPY命令将其复制到容器中。 在docker hub上的tomcat服务器的官方页面上阅读相关内容。 我相信他们一定提到了与设置默认用户名和密码相关的内容。 我有类似MySQL的问题。 有人清楚地提到我们可以为MySQL的用户“root”提供默认密码,作为在docker docker-run命令或Dockerfile本身期间传递的环境变量。 Y ...
  • 了解为什么要将所有在单个tomcat实例中运行的应用程序停靠? 让我们假设如果你的tomcat出现问题,那么你的所有应用程序都会崩溃。 因此,具有微服务的Docker是一种趋势,它告诉Docker容器不应该运行多个应用程序,即单个resposibilty模型。避免一个容器负责整个应用程序的多个方面。 如果将所有应用程序放在单个docker中会发生什么? 可用性 :如果容器发生故障,所有应用程序都将关闭。 示例:如果您有电子商务应用程序,如果优惠服务中断,那么您应该能够执行其他检查优惠的其他内容。 部署 :如 ...
  • Play 2.0本身不支持Tomcat部署,但有一个插件可以创建一个WAR包以在Tomcat上部署: https : //github.com/dlecan/play2-war-plugin/ Play 2.0 doesn't natively support Tomcat deployments, but there is a plugin that will create a WAR package to deploy on Tomcat: https://github.com/dlecan/play2 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)