Getting error in Openshift while pushing my app

巧了我就是萌 提交于 2019-12-11 15:45:45

问题


I'm getting some error while pushing my app (already built a Java EE application using Tomcat 6.) in OpenShift.

server: JBoss Application Server 7.1 database: MySQL Database 5.1

Here is src folder structure of Openshift

com
--simsystech
--Add.java (using apache log4j api || import org.apache.log4j.Logger)
--Edit.java (using csv reader api || import org.apache.log4j.Logger & import org.apache.log4j.Logger)
--Import.java (using csv reader api || import org.apache.log4j.Logger & import org.apache.log4j.Logger)
--Create.java
--Delete.java

webapp folder structure is :

webapp
--css
--image
--images1
--jscript
--jsp(all my jsp pages are here)
--META-INF
--WEB-INF
--classes
--lib(JAR files are here:opencsv-2.3,log4j-1.2.9,javacsv)

My application name:simsystech,and whenever I'm writing cmd prompt-> git push , I'm getting error like :

a>remote: /var/lib/stickshift/38fe42fe1d8f469c90f496990182c478/app-root/runtime/re
po/src/main/java/com/simsystech/Delete.java:[3,23] error: package org.apache.lo
g4j does not exist


b>remote: /var/lib/stickshift/38fe42fe1d8f469c90f496990182c478/app-root/runtime/re
po/src/main/java/com/simsystech/Import.java:[92,2] error: cannot find symbol
remote: [ERROR] class Import

c>remote: [ERROR] class Export
remote: /var/lib/stickshift/38fe42fe1d8f469c90f496990182c478/app-root/runtime/re
po/src/main/java/com/simsystech/Edit.java:[20,20] error: cannot find symbol

Error like: "package org.apache.lo g4j does not exist" is very strange !! :(

Where I'm going wrong while deploying it in openshift..? Any inputs on this regards will be appriciated.


回答1:


Since we use Maven to build your project you need to make sure those dependencies are referenced properly in your Maven pom.xml. What does pom.xml look like?



来源:https://stackoverflow.com/questions/12562520/getting-error-in-openshift-while-pushing-my-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!