Where is org.apache.log.format.Formatter
I am writing some code that somewhere is referencing the following:
org/apache/log/format/Formatter
I can't change it since I do not have access to the class that is referencing this, yet I can't find where the Formatter class is. Does anybody know where I can downloaded it? I tried apache.org and I can only find Log4J stuff? HELP!
I found these links from Google:
http://www.google.com/search?hl=en&q=org%2Fapache%2Flog%2Fformat%2FFormatter&btnG=Google+Search
From the looks of things, this is an interface that is implemented by a bunch of Apache classes.
Similar Messages
-
Hi,
I need to set my Apache logs to combined for AWStats to work. In 10.6 server admin there seems to be no place to change the log format. Can any one tell me how I do this? I have multiple sites hosted so will I need to do it for each site?
Thanks
PaulYou'll need to change it directly in the config file for each site. They're in /etc/apache2/sites, with names starting with a site ID number and ending in .conf. You need to change the CustomLog directive to something like
CustomLog "/var/apache2/access_log" combined
...and then restart Apache ("sudo apachectl graceful" will do the trick). -
Where are the apache logs?
I need to view the apache logs. How and where do I access them in XE?
Whoever designed Apache to be hidden inside the database and accessable only through db packages needs to be spanked. If there is a good argument for hiding it all away in the db I'd love to hear it! Why make life harder? It's so easy in Standard and Enterpise DB to configure apache and modplsql.
PaulOK David here goes,
I'm using ApEx 2.1 on Oracle Express DB.
I export an application, that works fine. I now want to import it again into the same instance as a copy with a new Application Id. I start the import wizard, click on load and then I get
"Page can not be found" error.
I've followed the threads
import application - wwv_flow_accept page not found and ora-904
Page not found after import of application
but I have no idea of how to access the Web server Logs in Oracle Express which is mentioned in the above threads.
I've just had a look at the import repository and each time I tried to import the file it loaded with 2,065,528 bytes.(i.e. 3 times)
The actual file size is 4,334 Kb so it seems the import falls over half way each time.
Any ideas on where to start trouble shooting?
thanks for your response
Paul P -
We are currently having an issue where our iPrint Apache logs
/var/log/apache2/access_log
and
/var/log/apache2/ssl_request_log
both grow at an enormous rate (by the end of a 24 hour period they are about 3.5GB each).
I have attached excerpts from those logs to give you an idea of what they look like.
in addition to this, our printing is VERY hit or miss. We are having issues installing printers from the iprint web interface (see attached jpgs), when people try to print, sometimes it prints, sometimes it fails.
It appears that spoolsv.exe on our computers is constantly talking back to our iprint server, which doesn't seem right. I have attached a packet capture from wireshark to show what sort of traffic is going between the iprint server and a workstation.
Here is the weird thing, this all started last week wednesday (2013-09-18). We found it was happening because our log files grew so large that we ran out of disk space on the server. iPrint was running fine up until then (since it was installed late last school year).
One of our engineers thinks that something changed on all the workstations. We can rule out windows updates because they aren't currently being pushed out.
I'm wondering if it is possible that something changed or was dorked up server side.
I'm a little out of my depth here, and would appreciate greatly any help you can provide :)
Thanks in advance,
Taylor Hammerling
MASDIn article <[email protected]>, Taylormasd
wrote:
> /var/log/apache2/access_log
> and
> /var/log/apache2/ssl_request_log
>
> both grow at an enormous rate (by the end of a 24 hour period they are
> about 3.5GB each).
> I have attached excerpts from those logs to give you an idea of what
> they look like.
>
Well the contents of those files looks normal. From just the 10 second
clip I can tell you have lots of workstations, likely past 1000. So
what we might be dealing with is just note enough space for normal log
growth, and as soon as that started gumming things up, the workstations
try to get to the printers more often making the logs grow faster.
- How far back do your logs go, and have they been about the same size
all the way back or are there any jumps in size along the way?
- Are all those logs getting compressed (*.bz2) after midnight?
- How much space does the whole /var/log/apache2 dir take "du -h" (for
reference, an under 100 user client of mine is running at about 47MB)
- What OS version are you running iPrint on?
- Is is all one volume? What are your volume sizes?
- How long has this server been running?
I've had iPrint do strange things and be just plain troublesome when it
gets low on space, so lets make sure we get that issue out of the way
before digging further.
Andy Konecny
Knowledge Partner (voluntary SysOp)
KonecnyConsulting.ca in Toronto
http://forums.novell.com/member.php?userid=75037
If you find a post helpful, please show your appreciation by clicking on
the star below. -
Hello,
I have leopard server, and want to know where is the apache log rotation is configured. I did not configure anything in the per-site log rotation in server admin, but the server is rotating the log anyway.
ThanksWell, I just saw that there is an /etc/newsyslog.conf setting, but have not worked with it myself. man newsyslog.conf provides more info.
-
Dear Friends,
I try one program, it import org.apache.xml.serialize.OutputFormat;
but I cannot fine it after I google a while.
where can I find and download jar file that contain this:
org.apache.xml.serialize.OutputFormat
I use JDK1.6
Thanks
sunnySo, to clear things up, there is no org.apache.xml.serialize.OutputFormat.JAR
OutputFormat is a class.
As I said in my previous post if you go at the xerces project home page (here) you will find a compiled version of xerces [here - direct link -> (fool proof)|http://archive.apache.org/dist/xml/xerces-j/Xerces-J-bin.1.4.4.zip]. If you extract the archive you will find a compiled jar called xerces.jar. Open that one with winrar/winzip or whatever, browse to org\apache\xml\serialize\OutputFormat.class and there you go, you have it, just link this xerces library to your project...
PS. Try searching on Google for "Google tutorial" -
Hello,
My server keeps doing errors like,
HTTP Status 404 - Servlet default is not available
type Status report
message Servlet default is not available
description The requested resource (Servlet default is not available) is not available.
Apache Tomcat/5.5.9
Would you let me know what wrong with Defaultservlet. I set it up with
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
But it doesnt work. Pls help me. Where is the jar with Defaultservlet.
Thanks,
TonyThanks!
Would you let me know how to set it up. I know it should be working by default. However, I tried times with reinstallation. Still nothing comes out. This is my servlet mapping within web.xml
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Tony -
Where to find org.apache package?
I build ibatis source code in eclipse, but it reported many problems:
import org.apache can not be resolved.
import net. can not be resolved.
could anyone tell me where to find these package?
thanks very much!There are tons of packages that begin with org.apache. You will have to be more specific. Why are you building from source? Why not simply use the binaries?
-
From where can I download org.apache.tools.tar ?
hello frnz..
am in a issue here..from where can i download org.apache.tools.tar?..i tried looking at maven site for downloadables, but wasnt able to find it..went thru previous threads, but cudnt find a URL for downloading this 3rd party jar...Also, i dont have TOMCAT installed in my system, so cant go via Tomcat path...any suggestions welcome...thnx in advancehi frnz...
jst as a reminder to earlier post,...i was able to download from apache ant site....but, now the issue is , when the files are tared, it does not give .tar extension...wat can be the issus? -
Hi all,
in ALSB 2.6 the org.apache.xmlbeans.XmlObject class was located in the weblogic\common\lib\apache_xbean.jar jar file.
Where is now in ALSB 3.0 ?
I'm using jarbrowser tool for looking for it but I'm not able to find it!
That class is used in a javacallout of mine and I'm migrating to ALSB 3.0 ...
Regards
ferpI did a search and that is my result:
/software/bea100 > find . -name "*xbean*.jar"
./modules/com.bea.cie.gpr-xbean_2.6.0.0.jar
./modules/com.bea.cie.gpr-xbean_2.3.0.0.jar
./modules/com.bea.cie.gpr-xbean_2.4.0.0.jar
./modules/com.bea.cie.gpr-xbean_2.1.0.0.jar
./tools/eclipse_pkgs/1.1/pkgs/eclipse/plugins/com.bea.al.sam.dsp25adapter_1.0.20.200801301412/jars/xbean.jar
./tools/eclipse_pkgs/1.1/pkgs/eclipse/plugins/com.bea.workshop.thirdparty.xmlbeans.v21_1.0.20.200802230114/lib/xbean.jar
./tools/eclipse_pkgs/1.1/pkgs/eclipse/plugins/com.bea.workshop.thirdparty.xmlbeans.v22_1.0.20.200802230114/lib/xbean.jar
./tools/eclipse_pkgs/1.1/pkgs/eclipse/plugins/com.bea.workshop.common.usagetrack.protocol_1.0.20.200802230115/lib/xbean.jar
./weblogic/server/lib/wlxbean.jar
Only tools\eclipse_pkgs\1.1\pkgs\eclipse\plugins\com.bea.workshop.thirdparty.xmlbeans.v22_1.0.20.200802230114\lib\xbean.jar contains the org.apache.xmlbeans.XmlObject !
So I don't have any bea10\wlserver_10.0\server\lib\xbean.jar ...
But is it correct to use that jar that is located under pkgs\eclipse\plugins ?
Regards
ferp -
Hi,
I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
log4j: Level token is [debug].
log4j: Category root set to DEBUG
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
log4j: End of parsing for "stdout".
log4j: Parsed "stdout" options.
log4j: Parsing appender named "Roll".
log4j: Parsing layout options for "Roll".
log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
log4j: End of parsing for "Roll".
log4j: Setting property [file] to [HelloWorld.log].
log4j: Setting property [maxBackupIndex] to [10].
log4j: Setting property [maxFileSize] to [20KB].
log4j: setFile called: HelloWorld.log, true
log4j: setFile ended
log4j: Parsed "Roll" options.
log4j: Parsing appender named "CRSDBAPPENDER".
{color:#ff0000}
Can't find class HelloWorld{color}
import org.apache.log4j.*;
public class HelloWorld {
static Logger log = Logger.getLogger(HelloWorld.class.getName());
public static void main(String[] args) {
try{
// Now, try a few logging methods
MDC.put("myComputerName", "Ravinder");
MDC.put("crsServerName", "ARNDEV01");
log.debug("Start of main()");
log.info("Just testing a log message with priority set to INFO");
log.warn("Just testing a log message with priority set to WARN");
log.error("Just testing a log message with priority set to ERROR");
log.fatal("Just testing a log message with priority set to FATAL");
catch(Exception e){
e.printStackTrace();
------------------------- log4j.properties file ------------------------------
#### Use three appenders - log to console, file and database
log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
log4j.debug=true
# Print only messages of priority WARN or higher for your category
# log4j.category.your.category.name=WARN
# Specifically inherit the priority level
# log4j.category.your.category.name=INHERITED
#### stdout - First appender writes to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
#### Roll - Second appender writes to a file
log4j.appender.Roll=org.apache.log4j.RollingFileAppender
##log4j.appender.Roll.File=${InstanceName}.log
log4j.appender.Roll.File=HelloWorld.log
log4j.appender.Roll.MaxFileSize=20KB
log4j.appender.Roll.MaxBackupIndex=10
log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
#### CRSDBAPPENDER - third appender writes to the database
log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
log4j.appender.CRSDBAPPENDER.USER=sa
log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
#log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
#log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
------------------------------- end of log4j.properties file ------------------------------
Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
HelloWorld\bin
HelloWorld\lib
HelloWorld\src
Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
Thanks
Ravindertry this :
log4j.appender.PROJECT.Append=false -
I don´t know if this is the right place to ask, but maybe someone will know:
I need the class org.apache.xerces.parsers.SAXParser that should be included in the Apache Xerces project.
Here is the API: [http://xerces.apache.org/xerces2-j/javadocs/xerces2/|http://xerces.apache.org/xerces2-j/javadocs/xerces2/]
and here is the download section: [http://xerces.apache.org/xerces2-j/download.cgi|http://xerces.apache.org/xerces2-j/download.cgi] . I have downloaded Xerces-J-bin.2.9.1.zip but the class isn´t included.
My book I am reading is using that class and says it is a part of the Xerces project.Hi,
Well, I do not know what you are looking at but it definitely is in the src : Xerces-J-src.2.9.1.tar.gz
So if worst comes to worst build it from the source. However, from the bin you downloaded there are several jars and the class you need to import is in xercesImpl.jar.
Regards. -
Org.apache.xalan.transformer.TransformerImpl
I have an ecr.index servlet which is run on Tomcat, here is the part of it's code:
javax.xml.transform.sax.SAXTransformerFactory factory = ( javax.xml.transform.sax.SAXTransformerFactory ) javax.xml.transform.TransformerFactory.newInstance();
Source ss = new StreamSource( new FileInputStream( context.getRealPath( xsl_file ) ) );
ss.setSystemId( context.getRealPath( xsl_file ) );
javax.xml.transform.sax.TransformerHandler handler = factory.newTransformerHandler( ss );
131:handler.setResult( new StreamResult( response.getOutputStream() ) );When I access the page the exception is thrown:
org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property!
at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
at org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1048)
at org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:975)
at org.apache.xalan.transformer.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:209)
at ecr.index.service(index.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:339)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:534)But I don't use org.apache.xalan.transformer.TransformerImpl, even the package org.apache.xalan.transformer isn't imported, but this package is present in classpath, where is the error?Here is the reason for this problem....
JDK 1.4 comes with a version of Xalan...
Somewhere around 1.4.2_03 the Xalan version that shipped with the JDK was upgraded because the XSLT spec was completed/revised or something like that.. When this happend the namespace identifier for xalan custom 'tags' changed. The content-handler tag used to be in the xslt name space.. now it is in the xalan namespace.
Problem is many stylesheets don't specifically set the output format so the defaults are used and the values are initialized from a properties file. However.... and this is where the problems comes in...
The Namespaces are used as prefixes to the keys in the file... AND... Tomcat''s WebappClassLoader is not safe about ensuring that a resource is loaded from the same Jar file as the classes that use it....
So what is happening is... the Xalan from your JVM is being used... but it is loading the formatting properties from a Xalan that is included in your Webapp.... which of course don't match....
All you need to do is remove the xalanXXX.jar from WEB-INF/lib and this problem will go away...
Matt Brozowski
The OpenNMS Group, Inc... -
Excel Parsing -org.apache.poi.hssf.record.RecordFormatException
Hi ,
I am running into org.apache.poi.hssf.record.RecordFormatException,
while creating excel work book.
Few of the worksheets in the workbook are password protected.
If i remove the password proted worksheets then i am able to load the
workbook and can parse it.
I am using apache poi 2.5.1.
Is it possible to load workbook having few password proted sheets using apache POI?
I appreaciate any help in this.
Thanks in advance
Mark
code.
POIFSFileSystem fs =new POIFSFileSystem(input);
HSSFWorkbook wb = new HSSFWorkbook(fs);
Exception log:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code))
at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java(Compiled Code))
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java(Compiled Code))
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:130)
at com.cargill.aim.examples.ExcelParseTest.main(ExcelParseTest.java:43)
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
at org.apache.poi.hssf.record.Record.fillFields(Record.java(Compiled Code))
at org.apache.poi.hssf.record.Record.<init>(Record.java(Compiled Code))
at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
... 9 more
Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance, the following exception occured: null
at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java(Compiled Code))
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java(Compiled Code))
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:130)
at com.cargill.aim.examples.ExcelParseTest.main(ExcelParseTest.java:43)Hi,
I am dealing with the similer problem but the same error. I am using the latest version of POI 3.0.1 and trying to read the cells which have auto formating enabled for date. I am getting the same error. Please let me know if you come across any solution to read the formatted cells using POI.
Thanks in advance!
- Alok -
I am trying to load a jsp page in my application(struts application). The jsp uses jsf and is loaded from the application mentioned. My web.xml has the following entries:
<web-app>
<listener>
<listener-class>MyListener</listener-class>
</listener>
<servlet>
<servlet-name>Cocoon</servlet-name>
<display-name>Cocoon</display-name>
<description>The main Cocoon servlet</description>
<servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
<init-param>
<param-name>allow-reload</param-name>
<param-value>yes</param-value>
</init-param>
<init-param>
<param-name>autosave-uploads</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>cocoon-logger</param-name>
<param-value>core</param-value>
</init-param>
<init-param>
<param-name>configurations</param-name>
<param-value>/WEB-INF/cocoon.xconf</param-value>
</init-param>
<init-param>
<param-name>init-classloader</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>log-level</param-name>
<param-value>ERROR</param-value>
</init-param>
<init-param>
<param-name>logkit-config</param-name>
<param-value>/WEB-INF/logkit.xconf</param-value>
</init-param>
<init-param>
<param-name>manage-exceptions</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>overwrite-uploads</param-name>
<param-value>rename</param-value>
</init-param>
<init-param>
<param-name>request-factory</param-name>
<param-value>org.apache.cocoon.components.request.MultipartRequestFactoryImpl</param-value>
</init-param>
<init-param>
<param-name>servlet-logger</param-name>
<param-value>access</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>portal</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!--JSPCONF-->
<servlet-mapping>
<servlet-name>portal</servlet-name>
<url-pattern>*.exec</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Cocoon</servlet-name>
<url-pattern>/cocoon</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Cocoon</servlet-name>
<url-pattern>/cocoon/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>90</session-timeout>
</session-config>
<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/jsp/runtimeerror.jsp</location>
</error-page>
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/jsp/runtimeerror.jsp</location>
</error-page>
</web-app>When I try to load the jsp whose contents are as follows :
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>enter your name page</title>
</head>
<body>
<f:view>
<h1>
<h:outputText value="my text"/>
</h1>
<h:form id="helloForm">
<h:outputText value="Enter your name :"/>
<h:inputText value="#{personBean.personName}" />
<h:commandButton action="greeting" value="Hello " />
</h:form>
</f:view>
</body>
</html>I get the following error -
<html><head><title>Apache Tomcat/4.1.31 - Error report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.faces.FacesException: Context must be instance of org.apache.cocoon.environment.Context
at org.apache.cocoon.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:55)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
</pre></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/4.1.31</h3></body></html>I have no clue as to where I should start troubleshooting for this error. Any advice on this error would help a lot. Please let me know what other details I should provide.I was using cocoon jars which already had a factory context class. This was overriding the class provided by jsf jar. To rectify it, I added the factory tag with the appropriate class:
<factory>
<faces-context-factory>
com.sun.faces.context.FacesContextFactoryImpl
</faces-context-factory>
</factory>
Maybe you are looking for
-
Which API can use to save PDF document with Adobe Reader 9?
Hello, which API can use to save PDF document with Adobe Reader 9? It is said that "CosDocSaveWithParams" can't be used. thanks! jimmy
-
Has anyone had sucess with 10.5.2??
Judging from all the negative threads in this forum about 10.5.2, I am afraid to try it. Has anyone had a good experience updating to this?
-
Firefox won't always load pages
For the last week or so, I will be browsing just fine like I always have. But then, when I try to go to a different page, sometimes the page won't load in and Firefox says something like it can't find the page. I'll click both Reload and Try Again se
-
YouTube web page displays left justified in a fixed font and will not play videos.
Firefox 3.6.13/Vista. It worked yesterday. System restore did not help. The page displays properly in I/E and also in Firefox on my XP based computer. I checked for plug-in updates and also tried to disable them to no avail.
-
IPhoto '11 crashes when opening in Mac OS X Lion
iPhoto is crashing every time I open it, I already try to repair the iPhoto library database and examine and repair iPhoto library permissions, I am able to open a new and empty library, but I can not open my real library Macbook 13-inch, Early 2008