leponton Posted March 24, 2018 Posted March 24, 2018 "There are many valid ways that you can get your .war file uploaded onto your account, such as, FTP, Web Disk, or the built in cPanel File Manager. Whichever way you choose to access your files make sure you put your file at /home/username/MyHelioServlet.war. This is the location that the deployment script automatically looks for your file, and uploading it to any other location just makes extra work for the Heliohost staff. Once you have your file successfully uploaded you can now request for it to be deployed by creating a new forum post in customer service. In your post make sure you state your username and the .war filename, which is MyHelioServlet in this case." Hello, i uploaded my .war file in /home/leponton/StudentsHouses.war, and i want to request for it to be deployed.
Krydos Posted March 24, 2018 Posted March 24, 2018 That .war file could not be deployed because java is not enabled on your account. To request java and then check the status of your request go to the java button in your cPanel. Please be aware that since you picked the Johnny server the wait to receive java access is quite long due to high demand. The wait to receive java on Tommy is generally just a few hours. If you're in a hurry we recommend moving your account to Tommy. If you want to save yourself some work an admin can move your account for you if you're a donor. Just let us know the transaction ID.
leponton Posted March 26, 2018 Author Posted March 26, 2018 What is required donation amount to be able moving my account to tommy?
leponton Posted March 26, 2018 Author Posted March 26, 2018 (edited) Ok, I donated. So could you move my account to Tommy? Edited March 26, 2018 by leponton
wolstech Posted March 26, 2018 Posted March 26, 2018 (edited) Moving... Once the process is completed, you'll need to request Java on Tommy like you did on Johnny. The wait is only 1-2 days right now (as opposed to almost 6 months on Johnny). Once it activates, you can deploy the WAR yourself from cPanel (no need to ask us like you do for Johnny). Edited March 26, 2018 by wolstech 1
wolstech Posted March 26, 2018 Posted March 26, 2018 You've been moved to Tommy. Thank you for the donation. If you still see a Johnny queued page or a 404 error, please clear your browser cache and flush your DNS cache.
leponton Posted March 26, 2018 Author Posted March 26, 2018 (edited) java.lang.NoClassDefFoundError: Could not initialize class Model.HibernateUtil at DBHelper.UserDB.<init>(UserDB.java:30) at Controller.UserController.<init>(UserController.java:70) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186) at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:100) at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:257) at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:117) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:94) at org.apache.el.parser.AstValue.getValue(AstValue.java:137) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) at javax.faces.component.UIOutput.getValue(UIOutput.java:174) at javax.faces.component.UIInput.getValue(UIInput.java:291) at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863) at javax.faces.render.Renderer.encodeChildren(Renderer.java:176) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) I'm getting this error, could you help me what am I doing wrong? HibernateUtil.java : package Model; import org.hibernate.SessionFactory; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.cfg.Configuration; import org.hibernate.service.ServiceRegistry; public class HibernateUtil { private static SessionFactory sessionFactory; public static SessionFactory getSessionFactory() { if (sessionFactory == null) { // loads configuration and mappings Configuration configuration = new Configuration().configure(); ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder() .applySettings(configuration.getProperties()).build(); // builds a session factory from the service registry sessionFactory = configuration.buildSessionFactory(serviceRegistry); } return sessionFactory; } }hibernate.cfg.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://mysql6001.site4now.net:3306/db_a349f6_gaw1?zeroDateTimeBehavior=convertToNull</property> <property name="hibernate.connection.username">a349f6_gaw1</property> <property name="hibernate.connection.password">Budibajbaj91</property> <!-- C3P0 connection pool --> <property name="hibernate.c3p0.timeout">600</property> <property name="hibernate.c3p0.maxIdleTimeExcessConnections">20</property> <!-- Connection testing settings --> <property name="hibernate.c3p0.validate">false</property> <property name="hibernate.c3p0.idle_test_period">30</property> <property name="hibernate.c3p0.automaticTestTable">conTestTable</property> <property name="current_session_context_class">thread</property> <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> <property name="show_sql">false</property> <property name="hibernate.current_session_context_class">thread</property> <mapping resource="Model/Receptionist.hbm.xml"/> <mapping resource="Model/Dormitory.hbm.xml"/> <mapping resource="Model/Malfunction.hbm.xml"/> <mapping resource="Model/Officialletter.hbm.xml"/> <mapping resource="Model/Smallannouncement.hbm.xml"/> <mapping resource="Model/Administrativeannouncement.hbm.xml"/> <mapping resource="Model/Conservator.hbm.xml"/> <mapping resource="Model/User.hbm.xml"/> <mapping resource="Model/Room.hbm.xml"/> <mapping resource="Model/Tenant.hbm.xml"/> <mapping resource="Model/Announcement.hbm.xml"/> <mapping resource="Model/Payment.hbm.xml"/> </session-factory> </hibernate-configuration> Edited March 27, 2018 by leponton
leponton Posted March 27, 2018 Author Posted March 27, 2018 Anyone could help me what am I doing wrong?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now