david meier [
https://community.jboss.org/people/membersound] created the discussion
"OpenShift push does not work in 4.1"
To view the discussion, visit:
https://community.jboss.org/message/831098#831098
--------------------------------------------------------------
Hi,
I tried pushing a war file using latest Jboss Tools 4.1 and Kepler. But the publishing
does not work.
I discussed this already on the OpenShift forums
https://www.openshift.com/forums/openshift/cannot-publish-a-tomcat-app-to...
https://www.openshift.com/forums/openshift/cannot-publish-a-tomcat-app-to...,
to ensure my ROOT.WAR does acutally work on their servers.
As it is really simple to use Jboss Tools to deploy in openshift, I think there must be
something in the plugin background that causes the failure.
Pushing to a Tomcat OpenShift gives an error that pom.xml cannot be found, even though it
IS located in the root of my project. And, as I wrote, the project war works.
Publishing to a Tomcat 7 openshift deployment fails with:
Skipping Maven build due to absence of pom.xml +
tmp=/var/lib/openshift/51f9754550044663ea0000d7/jbossews//tmp + '[' -d
/var/lib/openshift/51f9754550044663ea0000d7/jbossews//tmp ']' + for d in
'$tmp/' + '[' -d
'/var/lib/openshift/51f9754550044663ea0000d7/jbossews//tmp/' ']' +
'[' -d /var/lib/openshift/51f9754550044663ea0000d7/app-root/runtime/repo//webapps
']' + rm -rf
/var/lib/openshift/51f9754550044663ea0000d7/jbossews//webapps/ROOT.war Timed out waiting
for http listening port An error occurred executing 'gear postreceive' (exit code:
1) Error message: Failed to execute: 'control start' for
/var/lib/openshift/51f9754550044663ea0000d7/jbossews
For more details about the problem, try running the command again with the
'--trace' option.
Your server logs show the following:
SEVERE: Parse Fatal Error at line 1 column 1: Premature end of file.
org.xml.sax.SAXParseException; systemId:
file:/var/lib/openshift/51f9754550044663ea0000d7/jbossews/conf/server.xml; lineNumber: 1;
columnNumber: 1; Premature end of file. at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:391)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1404)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1034)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537) at
org.apache.catalina.startup.Catalina.load(Catalina.java:610) at
org.apache.catalina.startup.Catalina.start(Catalina.java:672) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at
java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456) Jul 31, 2013 4:37:55 PM
org.apache.catalina.startup.Catalina load WARNING: Catalina.start using conf/server.xml:
Premature end of file. Jul 31, 2013 4:37:55 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.
==> jbossews/logs/jbossews.log <== sed: can't read
/var/lib/openshift/51f9754550044663ea0000d7/app-root/runtime/repo//.openshift/config/server.xml:
No such file or directory sed: can't read
/var/lib/openshift/51f9754550044663ea0000d7/app-root/runtime/repo//.openshift/config/context.xml:
No such file or directory
==> jbossews/logs/host-manager.2013-07-31.log <==
==> jbossews/logs/catalina.2013-07-31.log <== Jul 31, 2013 4:36:46 PM
org.apache.catalina.startup.Catalina addClusterRuleSet INFO: Cluster RuleSet not found due
to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster
configuration disabled. Jul 31, 2013 4:36:46 PM org.apache.catalina.startup.Catalina
addClusterRuleSet INFO: Cluster RuleSet not found due to
[java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster
configuration disabled. Jul 31, 2013 4:36:46 PM
org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat
Native library which allows optimal performance in production environments was not found
on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib Jul 31, 2013 4:36:47
PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler
["http-bio-127.6.132.1-8080"] Jul 31, 2013 4:36:47 PM
org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1878 ms Jul
31, 2013 4:36:48 PM org.apache.catalina.core.StandardService startInternal INFO: Starting
service Catalina Jul 31, 2013 4:36:48 PM org.apache.catalina.core.StandardEngine
startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.40 Jul 31, 2013 4:36:48 PM
org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive
/var/lib/openshift/51f9754550044663ea0000d7/jbossews/webapps/ROOT.war Jul 31, 2013 4:36:56
PM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of
SecureRandom instance for session ID generation using [SHA1PRNG] took [734] milliseconds.
Jul 31, 2013 4:36:57 PM org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["http-bio-127.6.132.1-8080"] Jul 31, 2013 4:36:57 PM
org.apache.catalina.startup.Catalina start INFO: Server startup in 9276 ms
Could you try my WAR file (
https://docs.google.com/file/d/0B0qVi9D7R5MZQ25leEpEd1BVck0/edit?usp=sharing
https://docs.google.com/file/d/0B0qVi9D7R5MZQ25leEpEd1BVck0/edit?usp=sharing) (16mb vaadin
test project) and confirm that Jboss Tools does not work here? Or if you couldn't,
please provide your steps that worked for you.
Thanks
AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese
(Simplified)Chinese (Traditional)CroatianCzechDanishDetect
languageDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekHaitian
CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelshYiddish⇄AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBulgarianCatalanChinese
(Simplified)Chinese
(Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekHaitian
CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatinLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishThaiTurkishUkrainianUrduVietnameseWelshYiddishSprache
erkennen » Hungarian
HI,
AsA
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/831098#831098]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]