我想做mvn clean package tomcat7:deploy
但总是得到这个错误:tomcatManager status code:403, ReasonPhrase:Forbbiden
我的配置是下一个:
〜/ .m2目录/ settings.xml中
<servers>
<server>
<id>localhost</id>
<username>tomcat</username>
<password>s3cret</password>
</server>
</servers>
Run Code Online (Sandbox Code Playgroud)
的pom.xml
<profiles>
<profile>
<id>tomcat-localhost</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<tomcat-server>localhost</tomcat-server>
<tomcat-url>http://localhost:8080/manager/html</tomcat-url>
</properties>
</profile>
</profiles>
<build>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<server>${tomcat-server}</server>
<url>${tomcat-url}</url>
</configuration>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud)
的tomcat-users.xml中
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
Run Code Online (Sandbox Code Playgroud)
我的错是什么?因为我没有看到它.
完成邮件错误:
[INFO] --- tomcat7-maven-plugin:2.0:deploy (default-cli) @ WebApp ---
[INFO] Deploying war to http://localhost:8080/Baskeitor
Uploading: http://localhost:8080/manager/html/deploy?path=%2FWebApp
Uploaded: http://localhost:8080/manager/html/deploy?path=%2FWebApp (7985 KB at 50215.2 KB/sec)
[INFO] tomcatManager status code:403, …
Run Code Online (Sandbox Code Playgroud) 我正在修改Jenkins作业的xml.有一个字段是密码.当我得到xml时,它是原始密码,现在有一个哈希.
我需要知道如何从原始密码值创建此哈希.
<scm class="com.deluan.jenkins.plugins.rtc.JazzSCM">
<username>user</username>
<password>zlvnUMF1/hXwe3PLoitMpQ6BuQHBJ1FnpH7vmMmQ2qk=</password>
</scm>
Run Code Online (Sandbox Code Playgroud)
我一直在阅读Jenkins 源代码,我认为HudsonPrivateSecurityRealm.java类涉及但我不确定salt参数.
PS:这不适用于Jenkins密码是针对一个插件,在作业配置中它有一个密码字段.
我有一个组件,如:
@Component({
selector: 'app-item',
template: '<p>{{title}}</p>'
})
export class TitleComponent {
@Input() title:string;
}
@Component({
selector: 'app-foo',
template: '<ng-container *ngComponentOutlet="outlet"></ng-container>'
})
export class FooComponent {
outlet = TitleComponent;
}
Run Code Online (Sandbox Code Playgroud)
如何在titleComponent的ng-container上传递输入标题值,或者如何设置此值?
我一直在阅读关于此事的Android文档(AsyncTask,Thread)和vogella教程,但我还有疑问.
例如,我想从Android应用程序向服务器发送消息.我希望这个过程能够做出回应.我该怎么用?
我已经看到了他们Thread
为非阻止UI 创建新的示例,但是这样我们没有进程的进度,你也必须处理响应,Thread
因为该run()
方法没有返回任何东西.
AsyncTask
似乎比较好的选择Thread
,但我不知道使用a AsyncTask
而不是a 的后果是什么Thread
.
multithreading android android-asynctask asynctaskloader difference
我正在尝试在Eclipse上使用JUnit 4和Robolectric进行测试,但是每次我收到此错误:
Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (javaClasses.cpp:129), pid=3546, tid=140317899335424
# fatal error: Invalid layout of preloaded class
#
# JRE version: 7.0_07-b10
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
Run Code Online (Sandbox Code Playgroud)
我的测试非常简单.它只用于检查所有工作: …
我有不同的班级(模特),他们是父母的孩子.每个孩子都有自己的形式,但我希望具有父参考的组件根据孩子呈现特定的形式.一个例子:
楷模
export interface Item {
title: string;
}
export class Exercise implements Item {
constructor(public title:string, public description:string);
}
export class Break implements Item {
constructor(public title:string, public time:number);
}
Run Code Online (Sandbox Code Playgroud)
形式
@Component({
selector: 'item-form',
template: `<item></item>
`,
inputs: ['model:item']
})
export abstract class ItemFormComponent {
model: Item;
}
@Component({
selector: 'item-form',
template: `
<form #exerciseForm="ngForm">
<input type="text" class="form-control" required
[(ngModel)]="model.title"
ngControl="title" #name="ngForm" >
<input type="text" class="form-control" required
[(ngModel)]="model.description"
ngControl="desription" #name="ngForm" >
</form>
`,
providers: [ExerciseService],
inputs: ['model:exercise']
})
export …
Run Code Online (Sandbox Code Playgroud) ¿在什么情况下我必须使用它们中的哪一个?
在谷歌文档中说:
textMultiLine 可以与文本及其变体结合使用,以允许字段中包含多行文本.如果未设置此标志,则文本字段将被约束为单行.
textLongMessage文本,它是长消息的内容.
但我希望使用一个EditText,它将是多行的,并且包含长消息的内容.
我在设计模式上使用Netbeans来制作一个gui.我正在寻找一个对应setVisible
java方法的属性,我找不到它.
我查看过Properties和Binding,但什么也没找到.
最后,我this.component.setVisible(false);
在托盘代码部分写了Post-Init Code.
还有另一种方法吗?
PS:我使用的是Netbeans 7.1
我想从Github的PhotoView项目中获取"dev"分支而不是"master"分支:https: //github.com/chrisbanes/PhotoView/tree/dev
但默认情况下,依赖项会获得"master"分支.
dependencies {
compile 'com.github.chrisbanes.photoview:library:1.2.3'
}
Run Code Online (Sandbox Code Playgroud)
我应该如何更改此依赖项以获取"dev"分支而不是"master"?
我尝试获取网页的HTML代码,但网络包含一些javascript代码,这些代码可以生成一些我需要的数据。
http = Net::HTTP.new('localhost')
path = '/files.php'
# POST request -> logging in
data = ''
headers = {
'Referer' => 'http://localhost:8080/files.php',
'User-Agent' => 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language' => 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3',
'Content-Encoding' => 'gzip, deflate',
'Connection' => 'keep-alive',
'Cookie' => ''
}
resp, data = http.post(path, data, headers)
puts resp.body
Run Code Online (Sandbox Code Playgroud)
但这只会返回html而不会评估javascript。我想在评估页面的javascript之后得到最终的html。
java ×3
android ×2
angular ×2
build.gradle ×1
difference ×1
eclipse ×1
git ×1
github ×1
gradle ×1
hudson ×1
jenkins ×1
junit ×1
maven ×1
maven-plugin ×1
netbeans ×1
netbeans-7 ×1
ruby ×1
rubygems ×1
testing ×1
tomcat7 ×1
typescript ×1