deploy express failured

51 views
Skip to first unread message

赵鹏

unread,
Apr 18, 2013, 1:55:04 AM4/18/13
to git...@googlegroups.com
jdk
java version "1.7.0_17"

gitblit
gitblit-1.3.0-SNAPSHOT

modify web.xml
<context-param>
<param-name>web.enableRpcManagement</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>web.enableRpcAdministration</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>web.forwardSlashCharacter</param-name>
<param-value>!</param-value>
</context-param>

start openshift app,
There is an error log
 timezone is America/New_York (EDT -0400)
2013/04/18 01:09:10,567 INFO  [com.gitblit.GitBlit] (MSC service thread 1-3) Gitblit timezone is America/New_York (EDT -0400)
2013/04/18 01:09:10,660 INFO  [com.gitblit.GitBlit] (MSC service thread 1-3) Setting up user service GitblitUserService
2013/04/18 01:09:10,753 INFO  [com.gitblit.GitblitUserService] (MSC service thread 1-3) GUS delegating to ConfigUserService(/var/lib/openshift/516f73595973ca3aff000136/app-root/data/users.conf)
2013/04/18 01:09:10,958 WARN  [com.gitblit.GitBlit] (MSC service thread 1-3) Mail server is not properly configured.  Mail services disabled.
2013/04/18 01:09:10,964 INFO  [com.gitblit.GitBlit] (MSC service thread 1-3) Lucene executor is scheduled to process indexed branches every 2 minutes.
2013/04/18 01:09:10,966 WARN  [com.gitblit.GitBlit] (MSC service thread 1-3) Federation passphrase is blank! This server can not be PULLED from.
2013/04/18 01:09:11,253 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class com.gitblit.GitBlit: java.lang.IllegalArgumentException: unknown format type: number.0
        at java.text.MessageFormat.makeFormat(MessageFormat.java:1517) [rt.jar:1.7.0_09-icedtea]
        at java.text.MessageFormat.applyPattern(MessageFormat.java:479) [rt.jar:1.7.0_09-icedtea]
        at java.text.MessageFormat.<init>(MessageFormat.java:363) [rt.jar:1.7.0_09-icedtea]
        at java.text.MessageFormat.format(MessageFormat.java:835) [rt.jar:1.7.0_09-icedtea]
        at com.gitblit.GitBlit.configureGitDaemon(GitBlit.java:3237) [gitblit.jar:1.3.0-SNAPSHOT]
        at com.gitblit.GitBlit.configureContext(GitBlit.java:3131) [gitblit.jar:1.3.0-SNAPSHOT]
        at com.gitblit.GitBlit.contextInitialized(GitBlit.java:3303) [gitblit.jar:1.3.0-SNAPSHOT]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.10.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.10.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)


How to solve?
tks! 




James Moger

unread,
Apr 18, 2013, 7:43:23 AM4/18/13
to git...@googlegroups.com
Two ways to solve:

1. Pull my latest code and rebuild this will still print a stacktrace to the console BUT Gitblit will continue to operate.
2. Set git.daemonPort = 0, which it should be for Express

-J

赵鹏

unread,
Apr 18, 2013, 8:06:13 AM4/18/13
to git...@googlegroups.com
tks,use 1, has been resolved.








在 2013年4月18日星期四UTC+8下午7时43分23秒,James Moger写道:

James Moger

unread,
Apr 18, 2013, 8:13:29 AM4/18/13
to git...@googlegroups.com
In the last few months RedHat changed their https proxying and certificate structure which breaks native Git clones from Gitblit Express over https.

I do not know of a workaround for native Git.  I believe native Git will have to be patched to ignore SNI alerts as long as http.sslVerify = false.

JGit-based clients (Eclipse, etc) have a workaround because you can make Java ignore the SNI alerts.
-J

赵鹏

unread,
Apr 18, 2013, 8:56:03 AM4/18/13
to git...@googlegroups.com
tks!
eclipse.ini, 
add -Djsse.enableSNIExtension=false 
ok!

在 2013年4月18日星期四UTC+8下午8时13分29秒,James Moger写道:
Reply all
Reply to author
Forward
0 new messages