David Wall | 1 Sep 04:41 2011
Picon

Tomcat 7.0.19 character encoding issue with JSP

I'm trying to track down a character encoding issue that I've been 
having, but don't really understand. Hopefully one of you will know what 
the answer is.

I am using CKEditor to generate some user-specified HTML. CKEditor 
offers an "insert special character" function that often creates named 
HTML entities like "¥" but they also have a few like the solid black 
right arrow that is a UTF8 character rather than an entity spec. I then 
generate a JSP file that includes that HTML produced by CKEditor.

Initially, because I was using the Java 6 FileWriter without specifying 
a character encoding and I'd end up with a generated JSP where the HTML 
entities were fine, but the other special characters appeared as just 
'?' in the file. I changed to use FileOutputStream/OutputStreamWriter 
and specified "UTF-8" and the JSP looked good:

<% <at>  page contentType="text/html; charset=utf-8" session="true" 
isELIgnored="true" %>
...
<p>These have issues: ► Ŵ but these don&#39;t: &trade; &hArr; &diams; 
&aacute; &para; &yen;</p>

With the UTF8 encoding on writing the JSP, the right arrow and latin-W 
appeared in the JSP file instead of two question marks. I thought maybe 
I had won, but when I look at the .java class file that is generated by 
Tomcat, I see this instead:

out.write("<p>These have issues: â–º Å´ but these don&#39;t: &trade; 
&hArr; &diams; &aacute; &para; &yen;</p>\n");

(Continue reading)

Eric Kolotyluk | 1 Sep 05:54 2011
Picon

resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

Is it just me, or does anyone else ever get tired of the message

resolution will not be reattempted until the update interval of nexus 
has elapsed or updates are forced

Everything was working fine yesterday. For some reason, that I cannot 
explain, now my builds keep failing with this symptom. I have not 
actually changed any pom files or really anything - other than to stop 
and restart Eclipse. The same problem happens whether I build from 
Eclipse or the command line. I cannot seem to find any combination of 
'-U' or 'clean' or 'deploy' or anything to correct things. I feel like a 
chicken who pecks randomly at things until one of them is food.

It is really unnerving that maven is so fragile and unpredictable, and 
things so randomly go from working to broken. While Maven is way better 
than Ant in most respects, Ant is still head and shoulders above Maven 
in stability.

[ERROR] Failed to execute goal on project intersystem-jni4net: Could not 
resolve dependencies for project 
com.kodak.intersystem:intersystem-jni4net:jar:0.0.2-SNAPSHOT: The 
following artifacts could not be resolved: 
com.kodak.intersystem:intersystem-common:jar:0.0.2-SNAPSHOT, 
com.kodak.intersystem:intersystem-client:jar:0.0.2-SNAPSHOT, 
com.kodak.intersystem:intersystem-service:jar:0.0.2-SNAPSHOT, 
com.kodak.intersystem:color-repository:jar:0.0.2-SNAPSHOT: Failure to 
find com.kodak.intersystem:intersystem-common:jar:0.0.2-SNAPSHOT in 
http://nexus:8081/nexus/content/groups/public was cached in the local 
repository, resolution will not be reattempted until the update interval 
of nexus has elapsed or updates are forced -> [Help 1]
(Continue reading)

Eric Kolotyluk | 1 Sep 06:57 2011
Picon

Re: resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

OK, seems the problem was some data inconsistency with some things 
pointing to 0.0.2-SNAPSHOT and other things still pointing to 0.0.1-SNAPSHOT

What is the best practice for when you want to change the version of the 
parent POM, and have all the children follow?

I'm trying to use managed dependencies as much as possible, but somehow 
that is not enough.

Also, is there some simple way to remove all 0.0.1-SNAPSHOT artifacts 
from Nexus?

Cheers, Eric

On 2011-08-31 8:54 PM, Eric Kolotyluk wrote:
> Is it just me, or does anyone else ever get tired of the message
>
> resolution will not be reattempted until the update interval of nexus 
> has elapsed or updates are forced
>
> Everything was working fine yesterday. For some reason, that I cannot 
> explain, now my builds keep failing with this symptom. I have not 
> actually changed any pom files or really anything - other than to stop 
> and restart Eclipse. The same problem happens whether I build from 
> Eclipse or the command line. I cannot seem to find any combination of 
> '-U' or 'clean' or 'deploy' or anything to correct things. I feel like 
> a chicken who pecks randomly at things until one of them is food.
>
> It is really unnerving that maven is so fragile and unpredictable, and 
> things so randomly go from working to broken. While Maven is way 
(Continue reading)

kkazmierczyk | 1 Sep 09:51 2011
Picon

Tomcat does not generate catalina.out file when starting as service.

Hello,
I am having following issue:
When I am starting Tomcat (5.5.30) as Windows service all the log files (admin.log, jakarta_service.log,
localhost.log, stdout.log and stderr.log) are generated except catalina.out file.
This issue does not happen when I use the script which starts "%CATALINA_HOME%"\bin\startup.bat.
Moreover this happens only on one machine (production env).

Here are Java options set in tomcatw.exe:
-Dcatalina.base=E:\Rational\Jazz\JazzTeamServer3\server\tomcat
-Dcatalina.home=E:\Rational\Jazz\JazzTeamServer3\server\tomcat
-Djava.endorsed.dirs=E:\Rational\Jazz\JazzTeamServer3\server\tomcat\common\endorsed
-Djava.io.tmpdir=E:\Rational\Jazz\JazzTeamServer3\server\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=E:\Rational\Jazz\JazzTeamServer3\tomcat\conf\logging.properties
-Duser.language=en
-Duser.country=US
-Djava.awt.headless=true
-DJAZZ_HOME=file:///e:/Rational/Jazz/JazzTeamServer3/server/conf
-DORACLE_JDBC=E:\Rational\Jazz\JazzTeamServer3\server\oracle
-Dlog4j.configuration=file:///e:/Rational/Jazz/JazzTeamServer3/server/conf/jazz/log4j.properties
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=E:\temp
-Xdump:heap:events=systhrow+user+gpf,filter=java/lang/OutOfMemoryError,file=E:\my.phd
-Xdump:system:events=systhrow+user+gpf,filter=java/lang/OutOfMemoryError,file=E:\my.dmp
-Xverbosegclog:E:/verbosegc.log
-Djazz.connector.sslProtocol=SSL_TLS
-Djazz.connector.algorithm=IbmX509
-Xverbosegclog:verbosegc.log

The system is Windows 2003 Server 32 bit. There is no chance to migrate to newer Tomcat version in the near future.
(Continue reading)

Konstantin Kolinko | 1 Sep 12:00 2011
Picon

Re: Tomcat does not generate catalina.out file when starting as service.

2011/9/1  <kkazmierczyk <at> poczta.wp.pl>:
> What could be a root cause of this issue?
>  How we could configure Tomcat to produce catalina.out file?

See logging documentation in 7.0.x for an explanation.

I wouldn't update 5.5 docs, because 5.5 is near its end-of-life.

Best regards,
Konstantin Kolinko
kkazmierczyk | 1 Sep 12:37 2011
Picon

Re: Tomcat does not generate catalina.out file when starting as service.

Hello,
I reviewed following documents:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html and
http://tomcat.apache.org/tomcat-7.0-doc/logging.html but did not find anything. Did you mean any
other documetns? To clarify I have not changed anytching in logging.properties file.

Dnia 1-09-2011 o godz. 12:00 Konstantin Kolinko napisał(a):
> 2011/9/1  <kkazmierczyk <at> poczta.wp.pl>:
> > What could be a root cause of this issue?
> >  How we could configure Tomcat to produce catalina.out file?
> 
> See logging documentation in 7.0.x for an explanation.
> 
> I wouldn't update 5.5 docs, because 5.5 is near its end-of-life.
> 
> Best regards,
> Konstantin Kolinko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe <at> tomcat.apache.org
> For additional commands, e-mail: users-help <at> tomcat.apache.org
Konstantin Kolinko | 1 Sep 13:14 2011
Picon

Re: Tomcat does not generate catalina.out file when starting as service.

2011/9/1  <kkazmierczyk <at> poczta.wp.pl>:
> Hello,
> I reviewed following documents:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html and
http://tomcat.apache.org/tomcat-7.0-doc/logging.html but did not find anything. Did you mean any
other documetns? To clarify I have not changed anytching in logging.properties file.
>
> Dnia 1-09-2011 o godz. 12:00 Konstantin Kolinko napisał(a):
>> 2011/9/1  <kkazmierczyk <at> poczta.wp.pl>:
>> > What could be a root cause of this issue?
>> >  How we could configure Tomcat to produce catalina.out file?
>>
>> See logging documentation in 7.0.x for an explanation.
>>
>> I wouldn't update 5.5 docs, because 5.5 is near its end-of-life.
>>

http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Console
David kerber | 1 Sep 15:10 2011
Picon
Picon

Turning off local access log

Will removing this valve from my server.xml stop access logging?  Right 
now it's trying to log every one of the 4M hits I get per day.

         <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
                prefix="localhost_access_log." suffix=".txt"
                pattern="%h %l %u %t &quot;%r&quot; %s %b" />

Can I just comment it out?

D
Mark Thomas | 1 Sep 15:32 2011
Picon

Re: Turning off local access log

On 01/09/2011 14:10, David kerber wrote:
> Will removing this valve from my server.xml stop access logging?  Right
> now it's trying to log every one of the 4M hits I get per day.
> 
>         <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
>                prefix="localhost_access_log." suffix=".txt"
>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> 
> 
> Can I just comment it out?

Yes, but it is a bad idea unless you have access logging elsewhere.

Mark
David kerber | 1 Sep 15:52 2011
Picon
Picon

Re: Turning off local access log

On 9/1/2011 9:32 AM, Mark Thomas wrote:
> On 01/09/2011 14:10, David kerber wrote:
>> Will removing this valve from my server.xml stop access logging?  Right
>> now it's trying to log every one of the 4M hits I get per day.
>>
>>          <Valve className="org.apache.catalina.valves.AccessLogValve"
>> directory="logs"
>>                 prefix="localhost_access_log." suffix=".txt"
>>                 pattern="%h %l %u %t&quot;%r&quot; %s %b" />
>>
>>
>> Can I just comment it out?
>
> Yes, but it is a bad idea unless you have access logging elsewhere.
>
> Mark

Logging is handled by the app; I don't need this from Tomcat.

Gmane