ERR0R :projet_jsf.war JSC to tomcat 6.0
Hi
i build an jsf application on jsc it work fine on the inner tomcat of jsc, but when iam deploying on tomcat 5.5 or 6.0 it does not work
can some body help my resolve that problem
thks
No, this is a bug in the beta version of Tomcat. If their JspFactory was initialized property the first time, this wouldn't happen.
There have been serveral posts on this. Please search the forums for bug details.
Similar Messages
-
Help, I'm using JSC 2.1 with Tomcat 6 on Windows. I build a simple web app in JSC (hello world, without any jdbc) then exported to J2ee 1.4 war file. Next I place the war file in tomcat webapps directory. I also put the the jsf-api, standars.jar, jsf-impl.jar files in the WEB-INF/lib directory. I get the this error when access the application.
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find FacesContext
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)I have seen this problem in the forum before. It is related to your web.xml . See this thread:
http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5110161 -
An issue of deploying war file on tomcat 5.5
Hi,
I know the regular process to deply a war file is like this - stop tomcat server, remove your previous war file and directory, say abc.war and dir abc, copy your new version abc.war into webapps and restart tomcat server.
However, I found an interesting issue today - I was deploying a new release war file as described. While I stopped tomcat, removed all previous version direcotry, and restarted tomcat server, I got an http 404 error saying that the resource /abc/ is not available. I noticed that the org folder was not generated at work/Catalina/locahost/abc.
I stuck there for a long time to try to fix but did not find a solution. I am pretty sure the war file should be ok since it works fine on my local machine. This only happened in the unix box. Later, occasionally, I removed the director abc without stopping the tomcat server. In another word, I removed the war file while tomcat is still running. A new abc directory was created soon and now it works.
Anyone has any idea about that? Thanks!
MichaelAny thoughts? Thanks
-
Problem regarding running war file in Tomcat 4.1
i uploaded a war file in Tomcat application manager..
Running status of application is false ...
By pressing START in COMMANDS still it shows false in RUNNING ..
i got error
FAIL - Application at context path /kannan could not be started...........hi
restart your system and again you deploy in tomcat manager,
or
better you place your .war file under webapps and restart ur tomcat server once again ..
after u c one folder create with ur war file name,
after u go and access
thats it..
i hope it will helps u -
Deploying .war file on Tomcat 4.1?
Hi,
I would like to know whether anyone know how to deploy a .war file onto Tomcat 4.1? Or can this be done?
And what about web.xml? Is it different from a web.xml written for BEA's Weblogic Server?
Thankshmm.. ic
The .war file when drop in the webapps dir and u restart tomcat, it auto create a dir with your .war filename and the content of .war file is copied to there.
Am i rite to say so?
And wat about the web.xml?
If i need to add users and password how can I accomplished it in tomcat web.xml?
Last but not least, thanks for taking the time to reply. :D -
Help - JSC to Tomcat with MySql
I built a simple test app in JSC with MySql.
Product: MySql Ver. 5.0.27-community-nt
Database name: Test
Table name: testtable
Datasource name: MySql1
Dataprovider's SQL: SELECT ALL testtable.code, testtable.name FROM testtable WHERE testtable.name LIKE ?
The page had a textfield, button, statictext and a table mapped to the dataprovider
The following code was included:
public void prerender() {
try {
String s = "";
String t = (String) textField1.getText();
if (t == null || t.equals(""))
s = "";
else
s = t;
s += "%";
staticText3.setText(s);
getSessionBean1().getTesttableRowSet().setObject(1,s);
getSessionBean1().getTesttableDataProvider().refresh();
} catch (Exception e) {error(e.toString());}
public String button1_action() {
return null;
When tested in JSC, it worked fine.
But when I exported it as a war file and deployed it in Tomcat 5.5.17 with the following settings, the statictext
displayed the selected value, but the table showed "No items found". Please help.
User: root
password: adminadmin
Connector downloaded: mysql-connector-java-5.0.4.zip
The appropriate jstl.jar and standard.jar where used by copying them from jakarta
The tomcat's server.xml used is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<Server>
<Listener className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<GlobalNamingResources>
<Environment
name="simpleValue"
type="java.lang.Integer"
value="30"/>
<Resource
auth="Container"
description="User database that can be updated and saved"
name="UserDatabase"
type="org.apache.catalina.UserDatabase"
pathname="conf/tomcat-users.xml"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
<Resource
name="jdbc/Travel"
type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.ClientDriver"
password="travel"
maxIdle="2"
maxWait="5000"
validationQuery="select * from TRAVEL.PRODUCT"
username="travel"
url="jdbc:derby://localhost:21527/samp"
maxActive="4"/>
</GlobalNamingResources>
<Service
name="Catalina">
<Connector
port="8080"
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="20000"
maxThreads="150"
maxSpareThreads="75">
</Connector>
<Connector
port="8009"
redirectPort="8443"
protocol="AJP/1.3">
</Connector>
<Engine
defaultHost="localhost"
name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
<Host
appBase="webapps"
name="localhost">
<Context
path="/TomTest">
</Context>
<Context
path="/TradeMeTender">
<Resource
auth="Container"
description="Creator generated DataSource Reference"
name="jdbc/Travel"
type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.ClientDriver"
password="travel"
maxIdle="2"
maxWait="5000"
validationQuery="SELECT * from TRAVEL.PRODUCT"
username="travel"
url="jdbc:derby://localhost:21527/sample"
maxActive="4"/>
</Context>
<Context
path="/FileUploadExample">
<EJB
home="greeting.GreeterHome"
name="GreeterEJB"
remote="greeting.Greeter"
type="Session"/>
</Context>
<Context path="/MySqlTest" docBase="MySqlTest"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/MySql1" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="adminadmin" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/Test?autoReconnect=true"/>
</Context>
</Host>
</Engine>
</Service>
</Server>You could track JDBC calls and the SQL's executed by the driver at the database,
Update you datasource, DBURL with some parameters/properties to generate some info for debugging like this:
jdbc:mysql://$hostname:$port/$databasename?autoGenerateTestcaseScript=true&dumpQueriesOnException=true
Check out your deployment containers log to find out which particular SQL statement is being executed. This could help in identifying performance issues with application. That could possibly give a clue, if something is not working in your application.
For designtime JDBC calls made, this info is sent to IDE log.
Reference: http://dev.mysql.com/doc/refman/5.0/en/cj-configuration-properties.html
HTH,
Sakthi -
Error while deploying WAR file in TOMCAT
hi.
I have put my SEA.WAR (test WAR file) into /webapps of TOMCAT.
I checked the server.xml and put:
<Context path="/SEA" docBase="SEA" debug="0"/>
I restarted TOMCAT and tried to execute the file:
http://localhost:8080/SEA/index.jsp
But I got error message:
Apache Tomcat/4.0.3 - HTTP Status 404 - /SEA/index.jsp
What was happenning?
Anyone can help me?
Thank you.what happens when you just hit http://localhost:8080/SEA/ ?
-
Error Starting Coherence 3.6.1 packed in War File From Tomcat 6.0.26
Hi All,
I have been receiving the following error when trying to startup coherence from within a War file:
INFO: Deploying configuration descriptor services#test#processor#v1.xml
java.net.MalformedURLException: no !/ in spec
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.tangosol.coherence.component.application.console.Coherence._initStatic(Coherence.CDB:25)
at com.tangosol.coherence.component.application.console.Coherence.<clinit>(Coherence.CDB:27)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.tangosol.net.CacheFactory.<clinit>(CacheFactory.java:1496)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke(MethodInvokingFactoryBean.java:160)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:150)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Oracle Coherence: The Manifest is corrupted or inaccessible; some functionality may be disabledI can startup coherence manually via the console tools but can't get by this error when starting from within tomcat 6.0.26. However, the functionality of Coherence seems normal except the logging is missing the information contained within the Manifest. I have edited the Manifest manually, replaced it with one from 3.5.3, but nothing seems to work.
Any help is much appreciated.
Thanks.
JoeHello,
I took the following steps to attempt to reproduce this:
I created a JSP as such:
<html>
<%@ page import="com.tangosol.net.*"%>
<body >
<%!
NamedCache cache = CacheFactory.getCache("test");
%>
<tt>
Got NamedCache: <%=cache.toString()%>
</tt>
</body>
</html>I called it index.jsp and placed it in the root directory of a WAR file. In the WAR file I created WEB-INF/lib/coherence.jar. When I deploy this, everything works fine. Can you try this in your Tomcat setup and see if it works for you?
Thanks,
Patrick
Edited by: pperalta on Mar 14, 2011 1:52 PM -
Cannot make .war file using tomcat with eclipse and ant
i have made all necesary configuration for deploying application using eclipse and ant for the tomcat server.
when i start the server by clicking the tomcat icon on eclipse toolbar, the message is prompted that "missing application web.xml and using defaults". i have placed the web.xml file in the web/WEB-INF directory of the source project directory.
also when i use ant by right-clicking on the build.xml file and choose Run as ant.. the process creates a desired .war file in webapps folder of the tomcat server but that war file does not works.
where is the error i cannot figure out.
am attaching the code of build.xml for reference.
please help.
build.xml:-
<project name="BecilCTI" default="compile" basedir=".">
<property file="build.properties"/>
<property file="${user.home}/build.properties"/>
<property name="app.name" value="BecilCTI"/>
<property name="app.path" value="/${app.name}"/>
<property name="app.version" value="0.1-dev"/>
<property name="build.home" value="${basedir}/build"/>
<property name="catalina.home" value="c:/Tomcat_5.5"/> <!-- UPDATE THIS! -->
<property name="dist.home" value="${basedir}/dist"/>
<property name="docs.home" value="${basedir}/docs"/>
<property name="manager.url" value="http://localhost:8080/manager"/>
<property name="src.home" value="${basedir}/src"/>
<property name="web.home" value="${basedir}/web"/>
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<!--<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>-->
<path id="compile.classpath">
<!-- Include all elements that Tomcat exposes to applications -->
<pathelement location="${catalina.home}/common/classes"/>
<fileset dir="${catalina.home}/common/endorsed">
<include name="*.jar"/>
</fileset>
<fileset dir="${catalina.home}/common/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${catalina.home}/shared/classes"/>
<fileset dir="${catalina.home}/shared/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="all" depends="clean,compile"
description="Clean build and dist directories, then compile"/>
<target name="clean"
description="Delete old build and dist directories">
<echo message="Cleaning all dirs."/>
<delete dir="${build.home}"/>
<delete dir="${dist.home}"/>
</target>
<target name="compile" depends="prepare"
description="Compile Java sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}/WEB-INF/classes"/>
<javac srcdir="${src.home}"
destdir="${build.home}/WEB-INF/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Copy application resources -->
<copy todir="${build.home}/WEB-INF/classes">
<fileset dir="${src.home}" excludes="**/*.java"/>
</copy>
</target>
<target name="dist" depends="compile"
description="Create binary distribution">
<!-- Copy documentation subdirectories
<mkdir dir="${dist.home}/docs"/>
<copy todir="${dist.home}/docs">
<fileset dir="${docs.home}"/>
</copy> -->
<!-- Create application JAR file -->
<jar jarfile="${catalina.home}/webapps/${app.name}.war"
basedir="${build.home}"/>
<!-- Copy additional files to ${dist.home} as necessary -->
</target>
<target name="install" depends="compile"
description="Install application to servlet container">
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file://${build.home}"/>
</target>
<target name="list"
description="List installed applications on servlet container">
<list url="${manager.url}"
username="${manager.username}"
password="${manager.password}"/>
</target>
<target name="prepare">
<!-- Create build directories as needed -->
<mkdir dir="${build.home}"/>
<mkdir dir="${build.home}/WEB-INF"/>
<mkdir dir="${build.home}/WEB-INF/classes"/>
<!-- Copy static content of this web application -->
<copy todir="${build.home}">
<fileset dir="${web.home}"/>
</copy>
<mkdir dir="${build.home}/WEB-INF/lib"/>
</target>
<target name="reload" depends="compile"
description="Reload application on servlet container">
<reload url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/>
</target>
<target name="remove"
description="Remove application on servlet container">
<undeploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/>
</target>
</project>So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
]this tutorial. It explains the basics of website layout, configuration and deployment.
On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this page in particular, it includes a link to a basic ant file that you can use as a starting point.
Cheers,
evnafets -
Plz... How to Create .war file in tomcat 5.0
plz...
i want clear steps to create .war file
for jsp or servlet in tomcat 5.0.
yours
vijayHere is the sample script, U can use this script to build war file:
Change the following before running the script:
WebAppDir path to the Tomcat webapps directory
AppsName value to ur Project Name ie Ajax to diff name.
basedir - Give webapps dir of ur src files.
<project default="build" basedir=".">
<target name="build">
<tstamp/>
<property name="WebAppsDir" value="c:\Tomcat\webapps"/>
<property name="AppsName" value="Ajax"/>
<delete dir="${WebAppsDir}\${AppsName}"/>
<delete file="${WebAppsDir}\${AppsName}.war"/>
<jar jarfile="${WebAppsDir}/${AppsName}.war"
basedir="D:\eclipse\AjaxEx\webapps"
includes="**" />
</target>
</project>
Once you run this file. It will create war file in the webapps dir of ur tomcat.
Bye,
Vinay -
How to deploy WAR file in tomcat.?
Can anybody please provide step by step information of deploying war file to Jakarta tomcat without IDE.
I am working on Windows XP with jakarta tomcat 4.1.30.
Thanks in advance.
Regards,
Aman AggarwalSee if tomcat runs as a service in your operating system. If you can locate it, you can set the start type to automatic. A very crud way is to run the tomcat startup file from autoexe.bat.
I don't know how to do this in Linux. Here is a link for tomcat 6. Maybe it is the same in tomcat 4
[http://tomcat.apache.org/tomcat-6.0-doc/setup.html]
Edited by: nirvan on Dec 29, 2008 9:15 AM -
Deploying war file on Tomcat: file path problem
Hello all,
i am using my eclipse ide for automatically deploy my webapplication to Tomcat. For Database connectivity i configured hibernate. To configure hibernate i am using the following code:
package de.wfm.hibernate.hibernateUtil;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class ESDBFactory {
private static SessionFactory sf;
private static Session session = null;
private static String pathToCfgFile = "de\\"
+ "wfm\\hibernate\\hibernateUtil\\esdb.cfg.xml";
public static synchronized Session getSession() throws HibernateException {
if (session==null) {
if (sf==null) {
sf = new Configuration()
.configure(pathToCfgFile).
buildSessionFactory();
session = sf.openSession();
return session;
}When i use this in the ide all is fine. But when i export my application to a war file and deploy it on Tomcat i got the exception:
2006-07-28 10:06:10 StandardWrapperValve[Urlaubsplanung Servlet]: Servlet.service() for servlet Urlaubsplanung Servlet threw exception
javax.faces.FacesException: #{User.doLogin}: javax.faces.el.EvaluationException: org.hibernate.HibernateException: de\wfm\hibernate\hibernateUtil\esdb.cfg.xml not foundHow to avoid this? What do i have to do to set the file path correctly?
Regards,
akhmm.. ic
The .war file when drop in the webapps dir and u restart tomcat, it auto create a dir with your .war filename and the content of .war file is copied to there.
Am i rite to say so?
And wat about the web.xml?
If i need to add users and password how can I accomplished it in tomcat web.xml?
Last but not least, thanks for taking the time to reply. :D -
Redeploying a war file in tomcat 6.0.16 Options
Hi All,
Tomcat is undeployed the application and trying to deploy the new war file.
But tomcat did not able to redeploy the war file and no errors in to log file also.
I am using tomcat 6.0.16. Msg in the log file is as follows
INFO: Undeploying context [evpn]
Nov 17, 2008 3:21:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive evpn.war
Nov 17, 2008 3:22:59 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 17, 2008 3:23:00 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[examples] has not been started
Nov 17, 2008 3:23:00 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
your help values more to me.
Thanq very much..............Hi all,
I don't want to restart the tomcat to redeploy this war file.
Plz help me out ...... -
Error deploying my first .war file to Tomcat
My Tomcat version is Apache Tomcat/6.0.18
Using Mojarra: mojarra-2.0.0-PR2
SEVERE: Unable to instantiate ExpressionFactory 'com.sun.el.ExpressionFactoryImpl'
Apr 2, 2009 4:35:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 2, 2009 4:35:33 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [TimeKeeper] startup failed due to previous errors
Apr 2, 2009 4:35:46 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/aden/apache-tomcat-6.0.18/webapps/TimeKeeper/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Apr 2, 2009 4:35:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.0 (PR2 b09) for context '/TimeKeeper'
Apr 2, 2009 4:35:47 PM com.sun.faces.config.processor.NavigationConfigProcessor addNavigationRules
WARNING: JSF1057: The resource referred to by from-view-id, 'index.jsp', does not start with '/'. This will be added for you, but it should be corrected.
Apr 2, 2009 4:35:47 PM com.sun.faces.config.processor.NavigationConfigProcessor addNavigationCasesForRule
WARNING: JSF1058: The resource referred to by to-view-id, 'welcome.jsp', for navigation from '/index.jsp', does not start with '/'. This will be added for you, but it should be corrected.
Apr 2, 2009 4:35:47 PM com.sun.faces.config.ConfigureListener installExpressionFactory
SEVERE: Unable to instantiate ExpressionFactory 'com.sun.el.ExpressionFactoryImpl'
Apr 2, 2009 4:35:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 2, 2009 4:35:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [TimeKeeper] startup failed due to previous errorsFixed some minor errors but the error message is pretty much the same.
catalina.out
Apr 2, 2009 6:16:43 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[TimeKeeper] has not been started
Apr 2, 2009 6:16:43 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [TimeKeeper]
Apr 2, 2009 6:16:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TimeKeeper.war
Apr 2, 2009 6:16:54 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/aden/apache-tomcat-6.0.18/webapps/TimeKeeper/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Apr 2, 2009 6:16:54 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.0 (PR2 b09) for context '/TimeKeeper'
Apr 2, 2009 6:16:55 PM com.sun.faces.config.ConfigureListener installExpressionFactory
SEVERE: Unable to instantiate ExpressionFactory 'com.sun.el.ExpressionFactoryImpl'
Apr 2, 2009 6:16:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 2, 2009 6:16:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [TimeKeeper] startup failed due to previous errors -
Where to find .war in NetBeans/Tomcat
I have Netbeans with tomcat bundled. i wish to move the project to a web server from my local server.
Could someone tell me where to find the .WAR file on my system? Or how to make one myself please.
Many thankshi!
Move into the folder in which you'r project is placed. Then issue the following command:
jar -cvf filename.war . dont forget . at the end which means current directory
Maybe you are looking for
-
After crash/reboot, how do get apple mail to stop pulling in old/deleted mail?
This has happend so many times, it's getting frustrating. Finder or another program freezes, I force quit and the mac freezes. I restart, open apple mail and it startes pulling in every piece of mails sitting on the mail server. It's happened too man
-
Could not find FileDownloadActionListener in Jdev 10.1.3.2
Hi all, we are working on Jdev 10.1.3.2 (ADF), where we need to trigger a file download on clicking a command link. But we cannot find FileDownloadActionListener, can you please provide any information on how we can workout such an action for the com
-
Hi! I added a podcast feed (and got it approved) to iTunes a week ago, and I can now find the first (and so far only) podcast episode in iTunes: https://itunes.apple.com/se/podcast/allt-vi-sager-ar-sant/id601876036?mt=2 But as you can see, iTunes is
-
Current Document Only -- AA wants to open up multiple windows
This is fricken driving me crazy -- i want AA to open multiple docs in the SAME WINDOW I have unchecked "Current Document Only" and it still persists in opeing up multiple docs in multiple windows. this is what that command is supposed to control: "C
-
I am not able to unlock my phone.
I am not able to unlock my phone from screen? Can someone tell me what could be problem with my phone plz..