-
2020-12-19 06:18:43
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
ssss
pdfcompare
war
0.0.1-SNAPSHOT
pdfcompare Maven Webapp
http://maven.apache.org
junit
junit
4.8.1
test
org.apache.pdfbox
pdfbox
1.8.2
commons-fileupload
commons-fileupload
1.3
org.eclipse.jetty
jetty-server
${jettyVersion}
provided
org.eclipse.jetty
jetty-webapp
${jettyVersion}
provided
org.eclipse.jetty.orbit
org.apache.jasper.glassfish
2.2.2.v201112011158
provided
org.eclipse.jetty.orbit
javax.el
2.2.0.v201108011116
provided
org.apache.maven.plugins
maven-war-plugin
2.3
CompareLuncher
org.apache.maven.plugins
maven-antrun-plugin
1.7
main-class-placement
prepare-package
run
org.apache.maven.plugins
maven-dependency-plugin
2.5.1
jetty-classpath
prepare-package
unpack-dependencies
org.eclipse.jetty, org.eclipse.jetty.orbit
provided
*, about_files/*, META-INF/*
${project.build.directory}/${project.artifactId}
pdfcompare
8.1.7.v20120910
更多相关内容 -
[Java] 指定端口运行 war 包
2021-01-12 00:12:42最近在调研使用 Jenkins 持续集成软件,拿到了一个 war 文件,运行 war 文件有两...不用 tomcat,cmd 进入 war 文件所在目录,直接执行以下命名运行 war 中的程序;java -jar 文件名.war今天主要想说的就是这第二种...最近在调研使用 Jenkins 持续集成软件,拿到了一个 war 文件,运行 war 文件有两种方式:
把 war 文件放到 tomcat 的 webapps 文件夹中,运行 tomcat ,由 tomcat 自动解压运行 war 文件中的程序;
不用 tomcat,cmd 进入 war 文件所在目录,直接执行以下命名运行 war 中的程序;
java -jar 文件名.war
今天主要想说的就是这第二种方式。
我们调用如下命令后,war 程序就开始运行了。
java -jar jenkins.war
然后我们在浏览器输入“localhost:8080”,就可以使用 Jenkins了。
这里就有一个问题,端口号的问题,我们大家都知道,tomcat 默认端口号也是 8080,我们刚刚运行的 Jenkins 也用的是 8080(如果我们不得不用 tomcat,但又不想用 tomcat 运行我们当前的 Jenkins.war 时),这里很明显就冲突了。
如果我们能指定 Jenkins 运行的端口,避免它运行时使用 8080 端口,那么 Jenkins 和 tomcat 就会和平共处了。
事实上 Java 给我们提供运行 war 时指定端口的命令,我们可以借助 help 来查看一些扩展命令。
输入 java -jar jenkins.war --help
我们可以看到下边有一个 --httpPort 选项可以指定端口号。
接下来,我们修改指令,自定义端口号,比如我们想指定端口号为9999。
java -jar jenkins.war --httpPort=9999
修改浏览器访问地址:localhost:9999,达到了我们想要的结果。
-
开始→运行(cmd)命令大全(绝对经典)
2020-12-19 06:18:45T here is not a sl ogan, but aims to better serve the pe ople , targeted efforts to incre ase the capa city 开始→运行( cmd )命令大全(绝对经典) 开始→运行( cmd )命令大全(绝对...leading ca
dres ' aware
ness of right in pl
ace,
study t
he party Constit
ution and party rule
s, serie
s of spe
eches ca
n make proper effect. Party ca
dres to "two" lea
d by example, to le
ad by exampl
e we must change
our mind, re
cogni
zing that "two" is important.
First, learn t
he Communist Party
Constitut
ion Party rule
s, lear
ning lear
ning ser
ies important speech by General Se
cretary can
enhance the
ory.
Wit
h the "third rev
oluti
on" the rise of rapid
cha
nges in
our life are feeling, t
he Communist
s shoul
d adhere to t
he the
ory of confide
nce w
ill continue to lear
n from the voi
ces of the times, the times, in turn, w
ill have new requirements for lea
ding party cadre
s. "Two" is the most basi
c meani
ng of members all masteri
ng the core the
ory and the most a
dvanced wea
pons theor
y, complement t
he spirit of calci
um. Secon
dly, the Communi
st Party Constituti
on Party rules, lear
ning le
arning
series important speech by Ge
neral Se
cretary be abl
e to
firmly buil
d the i
deol
ogical foundation. Under the im
pact of multi
ple
values, the "tw
o" is to hel
p cultivate indepe
nde
nt judgment in
numerous miscella
neous multi
ple concept
s, so t
hat the majority conse
nsus of party member
s, the important magic w
eapon of the
party with t
he resonance frequency. Finall
y, the
Constituti
on of the Communist Part
y, party rule
s, lear
ning lear
ning seri
es impor
tant speech ca
n stand cr
owds, Ge
neral Secretary positi
on.
Now, some grass
-root
s work in t
he "the old way di
dn't w
ork, har
d way cannot, t
he ne
w approa
ch w
oul
d not" phenomenon,
sometimes
due to
a mass of party member
s and cadre
s not understanding
, does not m
eet. In fact, the mass "convincing" and "ide
ntity"Behi
nd are l
ikely to be
party members a
nd lea
ding ca
dres themselves ig
nori
ng beliefs
held, resulti
ng in la
ck of persuasi
on a
nd sense of ide
ntity.
"Two" is in fact guarantee
d party ca
dres w
ork, an important pr
erequisite for convincing t
he masse
s.
Bacon said it we
ll: "practi
cal men
can
handle individual matters, but looking at the
w
hol
e operation gl
obal
ly, but only
man can
do t
o knowledge.
"Giving up" two "effective, must first raise a
warene
ss of lea
ding
cadres
of party members, a
s party members learn re
al responsibility" to know "to" music "," good "change
s, in
parallel wit
h the ground, do not forget to also answer the
antenna,
draw catches
on mete
orolog
y, w
hich sit betw
een
heaven
and Earth w
hich melds t
oget
her t
he dreams
of practi
cing
Communist. M
embers
cadres
shoul
d in "two l
earn a
do" in t
he ba
sed
post
do
contribution in all members in t
he carri
ed out "learn
Constituti
on Party r
ules, a
nd le
arn series spee
ch,
do
qualifie
d members" learning educati
on, t
his is followi
ng party of mass line e
ducation pra
ctice a
ctivities a
nd "three
strict thre
e real" topi
c educati
on zhihou, dee
pe
ning party education of and once importa
nt practi
ce, is
promote
d "three stri
ct three real" topic e
ducation from "key minority" to all members ex
pand, a
nd from concentrated e
ducation to regul
ar education extends of important i
nitiatives.
Vast numbers of party
members and cadre
s in the
course of two, shoul
d be
ased
on t
heir act
ual, striving to
be "learni
ng" and "done" markers. Strengthe
ning the
oretical
study, belief and faith. The
ory is an a
ction gui
de, only the
oretical k
nowle
dge in
place, to unity, a
ction ca
n consciously. Constituti
on i
s the fundamental la
w of the part
y, party rul
es are party must follow t
he Ge
neral rules. Studyi
ng and impleme
nting the
party Constituti
on Party r
ules a
nd a seri
es of importa
nt speech, Ge
neral Secretar
y, is a g
uide to
persisti
ng and devel
opi
ng sociali
sm with Chine
se characteristi
cs, is a
basi
c work
of strengthe
ning the party's constructi
on,
but al
so ea
ch a
nd every Com
munist Party Mem
ber's obligations and solemn responsi
bility. The
se importa
nt content, for ea
ch party, must k
now w
oul
d beli
eve will do both. WeGe
neral Secretary of the party Constit
ution, a series
of remarks with, a
nd hold, grasp the real "learning" that
basis,
base
d on the Constitution speak to issue, i
n accor
dance with t
he serie
s change
d the pr
oblem. Se
cond,
discipli
ned i
n line
, to be
come law
-abi
ding m
odel.
Is not
no rul
es. If there i
s no iron
discipli
ne, party members and ca
dres will
become a mess, it w
ill lose its fighting stre
ngth and vitality,
purity and nat
urally much less a
dvanced.
By "two" education, party member
s and cadre
s to keep t
he "bottom li
ne", not the more "red li
nes", consciously
practice t
he "t
hree Suns" and consci
ously a
ct according to the Constituti
on,
party rules, remains a
politi
cal force, t
o perform party
oath, a tree
of its own image. T
hree is t
he loyal,
dare to
play and play to party members.
Learni
ng is the F
oundation, is t
he key to devel
opme
nt is the g
oal. "Two" mai
n objective is t
o let the majority of the play to t
he exemplary role
of party members a
nd cadres,
party Constituti
on,
party rule
s to examine.
o use ne
w criteria to g
uide
our
behavi
or. T
hrough educati
on, t
he ide
al and convicti
on, kee
p in mi
nd that membershi
p, learn, learn, l
earn go
play a vanguard
and exemplary role, the
courage to play as, and always maintai
n the pioneer,
pioneeri
ng and enterpri
sing
spirit, a
nd
constantly improve
our
own
capa
city and l
evel of servi
ce, accor
ding to
positi
ons and make contributions. Heart
s cha
nge, lea
d more strict "began in t
he know, k
now a
s Luke Skyw
alker", "two" activities, be
qual
ified party members
bot
h a starting point a
nd e
ndi
ng poi
nt.
Party cadres only opi
nions, Foundati
on, Constituti
on Party r
ules, series to
better addre
ss outside in shape
, "two" this is State, lea
ding by exampl
e, to lead
by example to be qualified party member
s in the
process
of doi
ng the deep a
nd solid, higher and more stringe
nt. Jobs with
new skill
s. To be a
qualifie
d party member, most ba
sic el
ement is always a
dvanced re
quireme
nts
themselves, using their power to push forward the
cause of the party, the
pe
ople a
nd the nation. Is to the lea
ding
cadres
of party members, first of all is ba
sed
on the job, do t
he pe
opl
e in the
heart. T
here is not a sl
ogan, but aims to better serve the pe
ople
, targeted efforts to incre
ase the
capa
city
开始→运行(
cmd
)命令大全(绝对经典)
开始→运行(
cmd
)命令大全(绝对经典)
CMD
运行指令
开始→运行→
CMD
→键入以下命令即可
:
-
如何从命令行在WAR中运行类?
2020-12-19 06:17:45我有一个具有主类的Java类,我曾经从命令行作为独立应用程序运行,例如java -jar myjar.jar params我需要重新包装代码以使其在apache下运行,并且我的所有代码(包括旧jar中的入口点类)都保存在WAR文件中,以便轻松...我有一个具有主类的Java类,我曾经从命令行作为独立应用程序运行,例如
java -jar myjar.jar params
我需要重新包装代码以使其在apache下运行,并且我的所有代码(包括旧jar中的入口点类)都保存在WAR文件中,以便轻松部署到Web服务器中。
但是,我仍然希望能够从命令行运行它,并且代码没有更改,并且全部存在,只是无法弄清楚如何运行它。
这是我尝试过的...
我以为战争就像罐子一样,所以
java -jar mywar.war params
未能说清单中没有定义主类。
我手动将清单添加到战争中,然后重试,效果相同。
我注意到在战争中我有一个名为META-INF的文件夹,其中包含manifest.mf,因此在该行中添加了一行,就像对普通清单一样声明我的主类。
Manifest-Version: 1.0
Main-Class: mypackage.MyEntryPointClass
这给出了noClassDefFoundError mypackage.MyEntryPointClass,这是一种进展。那使我相信这只是一个路径问题,所以我尝试了
Manifest-Version: 1.0
Main-Class: WEB-INF.classes.mypackage.MyEntryPointClass
我现在遇到相同的错误,但是有堆栈跟踪...
Exception in thread "main" java.lang.NoClassDefFoundError: WEB-INF/classes/mypackage/MyEntryPointClass (wrong name: mypackage/MyEntryPointClass)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
我已经在Google上搜索了一下,但找不到能回答我问题的任何东西,并且我在这里阅读了其他几个稍有不同的问题,因此我想发表。
Java 1.5,不是我认为应该有所作为。
-
Tomcat部署运行war包
2021-08-28 12:03:06Tomcat部署运行war包 -
IDEA打包jar包和cmd运行
2021-08-27 16:09:28cmd运行 运行时不需要指定主类 打包 cmd运行 分为两种打包方式 有多个主类,运行时需要指定主类 直接运行,不需要指定主类 运行时需要指定主类 打包 选择“File”,再选择“Project Structure”... -
spring boot 部署启动: xx.war包没有主清单属性
2020-06-03 21:42:52在pom.xml最后面加入以下代码: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin<...... -
centOS7环境使用宝塔运行war包
2020-04-21 13:41:01如图: 个人安装的是tomcat9,安装成功后,在该界面中设置tomcat 在配置中找到host标签,添加如下内容: 你的war包名称" debug="0" reloadable="true"/> 注意使用自己即将运行的war包名称,点击保存后,进入到tomcat... -
Tomcat本地运行war包的配置及可能出现的问题
2021-05-27 21:46:59Tomcat本地运行war包的配置及可能出现的问题 听语音 原创 | 浏览:1790 | 更新:2020-01-13 16:23 | 标签:JAVATOMCAT 1 2 3 4 5 6 7 分步阅读 在开发java web项目时,... -
eclipse中使用spring boot 入门开发(包含:与jsp页面和数据库交互,cmd打包运行war包)
2017-05-19 15:45:35pom.xml文件中可以指定jdk版本,制定打包的方式(jar或者war),我是用的war包,因为cmd中命令:java -jar xxx.war也可以运行,而且运行jar包访问jsp会404(和目录结构有关) 二:打包部署(war包) 1.因为... -
windows系统后台运行jar或war包
2020-06-07 14:34:09win+r,然后输入cmd,进入终端, 输入: javaw -jar xxx.jar 或 javaw -jar xxx.war 然后关闭终端,打开进程管理器,看!是不是后台运行了 更多疑问,欢迎加群:565191947 -
java项目打jar包,并且在cmd命令行运行
2021-04-22 18:30:42也就是说你在命令行运行jar的时候若不指定运行类,就会报错 如果指定类,就不报错 Jar Files from lib 选项决定了你最终生成的jar包的结构,第一项是把项目的代码+额外的jar包依赖(例如ojdbc.jar)全部整合到... -
使用jar命令打jar/war包、创建可执行jar包、运行jar包、及批处理脚本编写
2021-03-04 08:39:06否则我们输入的这一行不能打包进去 4、在cmd窗口切换到项目目录,执行命令: jar cvfm ../Hello.jar META-INF/MANIFEST.MF * f 对应 Hello.jar,Hello.jar 可以自定义名称 m 对应 META-INF/MANIFEST.MF * 表示打包... -
jar打包之后在cmd无法运行的原因
2020-08-21 23:18:02项目打包成jar后在cmd运行时出现以下问题 原因是因为点(.)和反斜杠(\)之间要有一个空格 -
使用Docker运行war包Java应用
2018-09-17 09:02:44在之前的文章Docker部署Spring Boot中,应用编译的结果是jar包,而在很多情况下J2EE应用的编译结果是war包。本节将使用Docker部署war包Java应用。 一、构建tomcat的基础镜像 下载并上传tomcat到linux服务器 在... -
war包部署到Tomcat下运行步骤
2022-04-11 11:31:051、配置JDK安装路径到环境变量 2、配置Tomcat安装路径到环境变量 3、从Eclipse导出war包 在控制台console中查看war...(此处若cmd窗口闪退,需将jdk路径和Tomcat路径配置到环境变量中并重启计算机) 6、Tomcat启动成 -
在cmd或者powerShell窗口运行java的jar文件
2022-02-20 16:51:05在cmd或者powerShell窗口运行java的jar文件 在桌面进入 在桌面进入cmd或者powerShell窗口运行本文采用cmd的窗口进行演示,powerShell窗口和cmd窗口输入命令一样 jar文件需要编写的是jar文件的绝对路径 方式一、... -
tomcat运行war包,生成的文件中文乱码
2020-02-24 16:54:18tomcat运行war包,生成的文件中文乱码 原创凨居住的街道 最后发布于2018-09-13 09:39:56 阅读数 2846 收藏 展开 项目在eclipse里面配置的tomcat跑,都没出现中文乱码的问题;但是打成war包运行后,就出现了中文字符... -
无cmd窗口运行jar包的方法
2020-06-12 15:58:36(1)正常情况下 在jar对应的文件目录下打开cmd输入以下代码,可以运行jar包 start java -jar erobot.war --httpPort=8020 或者将改代码复制到后缀为bat的文件中,双击bat文件也可以运行jar包 (2)若是怕cmd窗口被... -
jar/war 包运行 指定端口号:
2021-03-16 14:59:52jar 包运行 指定端口号: 方法一: 更改application.properties/.yml/文件配置,更改端口号; 重新打包、部署; 运行cmd 执行命令 ...war 包运行 通 jar 包运行一样 我在 python技术交流QQ群:833020301 ... -
可运行war包,命令行启动war包
2013-08-20 11:25:56如果你用过hudson,肯定对它的启动方式印象深刻,它既可以用 java -jar *.war来启动,也可以放到web容器中启动。 这次在项目中也用到了这种方式,在这里总结一下, 内置了jetty作为启动容器, 启动类: import ... -
cmd java不是内部或外部命令 也不是可运行的程序
2021-10-28 17:00:211.下载安装jdk 2....不要漏掉,表示当前路径) 在CMD里面运行java报不是内部命令解决方法(设置PATH路径 一定 要把.;%JAVA_HOME%\bin;放在最前面);(注意有个小数点,以及之前配置,末尾分号 是英文的) -
【idea web项目打war包推荐,(图文详细)正确配置运行war包,已验证】
2022-03-03 10:19:17【图文详细操作】Web项目需打包放到服务器更新,打包教程推荐及本地运行验证过程,已验证 -
jenkins.war包在win10安装、配置、调试并运行报错解决
2021-10-20 08:53:17java -jar jenkins.war Java 不是内部或外部命令,也不是可运行的程序 或批处理文件。 3、解决报错 这个问题是没有Java环境变量,所以需要安装Java点击就可以下载 4、安装完java重新打开cmd窗口执行:java -jar ... -
Tomcat基本环境变量配置以及war包运行
2019-03-15 14:37:53war包打好就可以在tomcat运行 有两种方式运行 第一种 直接将包放入Tomcat —> webapps 然后启动Tomcat 会自动解压war包 启动成功后 浏览器localhost:8080/spring-0.0.1-SNAPSHOT/index访问 (这里的访问路径 ... -
如何运行jar/war来启动项目
2020-07-22 14:21:50不用tomcat,cmd进入 jar/war 文件所在目录,直接执行以下命名运行 jar/war 中的程序; java -jar 文件名.jar/war 然后我们在浏览器中就可以直接访问:localhost:8080, 此种方式也解决了idea中启动多个子项目的...