| Running server-side Java on FreeBSD in production environments |
|
 |
Index ‹ java-programmer
|
- Previous
- 6
- Tomcat on Windows: JAVA_HOME & -Dsun.io.useCanonCaches'Apologies for posting this here, but I couldn't find any Tomcat user
forum.
A colleague is currently trying to run Tomcat 4.1.30 on Windows 2000
Professional. She first installed JRE2 1.4.2_08, and set %JAVA_HOME%
to the directory C:\j2re1.4.2_08 - I've run "java -version" and it
works fine.
(%JAVA_HOME%/home is in the path correctly).
She then installed Tomcat to C:\jakarta-tomcat-4.1.30.
However, when she runs catalina.sh start, she gets the following
error:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: C:\jakarta-tomcat-4.1.30
Using CATALINA_HOME: C:\jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.30\temp
Using JAVA_HOME: C:\j2re1.4.2_08
'-Dsun.io.useCanonCaches' is not recognized as an internal or external
command,
operable program or batch file.
I've even tried adding the following to catalina.bat without success:
if not "%JAVA_HOME%" == "" goto gotJavaHome
set JAVA_HOME=C:\j2re1.4.2_08
:gotJavaHome
Can anyone see where we might be going wrong?
Cheers,
P.
- 6
- The simplest way to show a large output string?Hi,
What I want to do is quite simple: I want to show a large output String.
The user then will press "OK"; then the output window disappears, and
the program continues.
The following code would be ok for me, but the real String I want to
show is very long (let's say 1000 characters and 100 lines), so I need
scrollbars...
Could you please tell me the simplest way to achieve this? Thanks in
advance for your help.
==========================
package gui;
import javax.swing.*;
public class Prova {
public static void main(String[] args) {
String s = "hello";
JOptionPane.showMessageDialog(null, s);
System.exit(0);
}
}
=====================
- 6
- Please help..nu bee correct probable path.. (?)
ahmed khalak wrote:
> Hi
> Thank in advance.... I am getting error when I run from prompt (cmd)..
> I installed Jdk1.5.0_09 path is C:\Program files\Java\Jdk1.......
> I have oracle 9i and oracle 10g installed...
> Path and classpath I have put correctly in windowxp.. as follow
> path=C:\oracle..etc ;C:\Program File\java\Jdk1.5.0_09\bin
> classpath= .;C:\Program File\java\Jdk1.5.0_09\lib\root.jar
> Now when I check version for java and javac.. in other then Jdk1 directory
> I am getting version 1.3.1 where as jdk gives me it version I checked oracle
> directories
> In Oracle directory.. jre show 1.3.1 directory...
> how can I correct this problem.. my simple program compiles but running from
> promp gives error..
>
> would highly appreciate help
> :-) just starting learning Java..
>
> A Khalak
Change the path setting so it reads:
PATH=C:\Program File\java\Jdk1.5.0_09\bin;C:\oracle;...
The OS looks for commands on the PATH from left to right, so starting
with java, then oracle, and so on.
Besides this. The classpath setting isn't really needed. This is a
general note which might bring in problems later. If you don't have a
real need for it, simply remove the classpath setting. You can still
pass it to the java command using the "-classpath" switch.
Regards,
Bart
- 7
- Still looking for a Job?
http://www.xrecruiter.com is a SPAM free Recruiter Community. Post
your resume for free, get noticed directly by recruiters. Register for
free.
- 10
- Problem in configuring SSL in Tomcat5.5Hi,
I have Tomcat5.5 and J2sdk5 installed on my system. I wanted turn on
SSL services in tomcat. I went through the Tomcat Documentation and
did it exactly. I modified server.xml as below,
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
I also created certificate using keytool with default password as
"changeit" and alias as "tomcat".
I restarted the tomcat services too, and then tried to access the page
but i am not able to access it using https connection. Where as i am
able to access same page using Http connection.
Secondly, I am not able to access default tomcat Page too using Https
connection. Everything works fine in case of HTTP connection.
Following is the way iam trying to acces the page,
https://localhost:8443
Can any one help me out to find the problem.
I have IE 6 with SP2 installed on my system.
Thanks
Minesh
- 10
- importing classs without package in JSP ?Hi,
i am working on apache server web based project and i want to import a
class without package in my JSP file.
All my classes are in "WEB-INF/classes"
if i use a package (such as "project") in a class (such as "match" )
then i can import class "match" in jsp using
<%@ page import="
java.util.*,
project.*
"%>
But if i dont have package then i dont know how to import my class in
JSP. Thats what i want to know .
PLease help me. i am really thankful to you guys.
Sincerely,
Jeff
- 12
- JAXB XML Max SizHello All:
I am using JAXB to reading (unmarshall) a XML feed which
is about 4GB of siz. The JAXB seems
can not doing its job. Any one knows how to solve this problem?
ps: does JAXB has a limitation over XML feed size?
Many Thanks!
- 14
- Getting JAVA_HOME at runtimeHello,
The Java ports infrastructure provides JAVA_HOME on build-time to
port's Makefile. But is it possible to get this variable from
/usr/local/bin/java at runtime?
How to change the Java version for a port at runtime in the rc
script? It is possible to set the preferred JDK in
/usr/local/etc/javavms but then JAVA_HOME still needs to be
set manually.
I would like to avoid hard-coding the JAVA_HOME at build time in
the rc scripts.
Any idea?
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
- 15
- AspectJ: solution to Java's repetitiveness?thufir wrote:
> On Sat, 26 Apr 2008 06:51:43 -0400, Lew wrote:
>
>>> attrib_writer :foo, :bar #getter and setter for foo and bar attributes,
>>> #getter setter methods aren't actually written
>> Well, Java cannot do that because it's not in the language definition
>> and because the colon character already serves three other purposes in
>> Java.
>
> That Ruby syntax doesn't work in Java isn't the point at all.
>
>> I would just go with getters/setters. What's the big deal? My IDEs
>> generate them for me, so there's no typing, and it sure helps
>> maintainers to see them.
>>
>> It would be a huge waste of energy to retrofit Java with such a feature.
>
> The point is that getter/setter methods are boilerplate. Adding such a
> feature to Java would be worth it, and Java is constantly in flux.
>
>
> -Thufir
Can't you just add a (custom) annotation, e.g. "@JavaBean", and use
apt to generate the getters/setters? (Or possibly the newer
javax.annotation* stuff?) You could add options to such an
annotation e.g., read-only.
Then add the one extra line in your ant script to build code.
Note JavaEE defines many such annotations, including for an
MX Bean. Adding a standard annotation "@JavaBean" doesn't seem
like it would be that much effort, for a large convenience payoff.
<waffle>
Like Lew I use an IDE that does that for me. Still, I don't like
dependencies on particular tools that provide special features, if
the language could easily support them with little effort.
OTOH as others have pointed out in previous threads, the JavaBean
spec is rarely used, so maybe adding more standard annotations
isn't worth it.
If the OP thinks it should be used, create or modify a JSR for this
feature; if enough others agree it will be added.
</waffle>
-Wayne
- 15
- UK Postcodes anyone know of a service ?Hi
My latest web application provides a search facility.
You sign up as a member and get a free entry in a searchable database.
I would like to offer a postcode search so that if someone is looking for a
particular service they can enter a postcode and return results within a number
of miles of the input postcode(s). I have seen this sort of search on a number
of sites to date and I was wondering if anyone knows of a web service or other
online service that will accept a post code (and some other params of course)
and return a list of postcodes within a parameters distance.
Once I have the list I can search my own database for results.
The service must be available over the network, I'm not intetested in static
databases that I have to install on the server (well I might be if they were
FREE :-).
Has anyone implemented such a thing ?
Does anyone know of such a service ?
Has this got anything to do with the group ? well I suppose not other than I
write in Java.
Cheers
anyway
Duncan
"Process- How will the work and the team be organized?
The team needs to fit the culture in which it will operate,
but you should write software well rather than preserve the
irrationality of an enclosing culture" - Kent Beck
- 15
- Multiple installs of JDKWhen you do a silent install of the JRE you have the option to pass
PRIVATE=1, resulting in an install which doesn't check the registry
for a prior installation, and doesn't update the registry. You can
therefore have more than one install of the same JRE.
I need to find a similar capability for the JDK, but can't seem to. We
get rc=1603 on the second JDK install.
How can this be done...?
JDK >= 1.5.
{{{ Andy
- 15
- Simple GUI Image ProblemComputing student here, haven't used java for a while. Anyways, could someone put some example code as to how to put an image from a file onto a JPanel or JFrame. I just can't remember.
- 15
- An efficient computation idea. Please commentHi,
In my program I evaluate long trigonometric polynomials a lot! For example,
final int N = 1000;
double[] c = new double[N];
// Populate c
double x = .5, sum = 0.0;
for (int i = 0; i < N; i++)
sum += c[i]*cos(i*x);
And this function is evaluated very many times (about 100,000). So why not
create a java snippet, compile it, load it as a class and use the compiled
version. So I would have something like;
String sum = "0"; // A String buffer, of course...
for (int i = 0; i < N; i++)
sum += "+" + c[i] + "*cos(" + i + "*x)";
sum += ";";
I think it's a pretty cool idea. But before I implement it, I would like to
know what you think about it!
Thank you in advance!
Aaron Fude
- 15
- Initialize managed bean with header information?We use Netegrity's SiteMinder for SSO security on all web apps.
Although SiteMinder handles security for accessing the application
itself, restrictions to certain functions and data are handled within
the application based on user type.
The user information (such as name, type, etc.) are passed in from
SiteMinder via header variables. ie:
hddr_user = Joe Blo
hddr_group = Admin
hddr_phone = 555-555-5555
I'm looking at different designs to capture all of this user
information from the headers at one time and store as a bean in the
user's session (so as to not need to continually reference the header
information).
Does anyone know if you can create a managed bean (ie. User) that is
initialized with header information (by using the configuration file
w/ value-binding expressions)?
- 16
- empty interfaces via reflectionOn Oct 14, 12:17 pm, "Aryeh M. Friedman" <email***@***.com>
wrote:
> On Oct 14, 6:01 pm, Steven Simpson <email***@***.com> wrote:
>
>
>
> > Aryeh M. Friedman wrote:
> > > Then how do you handle the return type?!?!?!? Namely I can't do:
>
> > > Class<?> testClass = loadTestClass();
> > > Object testInstance = testClass.newInstance();
> > > Result res=new Result();
>
> > > for (Method method: testClass.getDeclaredMethods())
> > > res.merge((Result) method.invoke(testInstance, new
> > > Object[0])); // cast exception
>
> > > The reason why it is not possible is any Result object created by a
> > > test is <MyClassLoader>.Result and all the results here are
> > > <SystemClassLoader>.Result
>
> > Looking back at an earlier post, your custom MyClassLoader goes like this:
>
> > > public class MyClassLoader extends ClassLoader
> > > {
> > > public Class loadClass(String name)
> > > {
> > > try {
> > > if(name.startsWith("java."))
> > > return super.loadClass(name);
>
> > A custom ClassLoader is expected to override findClass(String) rather
> > than loadClass(String), as the latter (indirectly) accomplishes this
> > behaviour:
>
> > <http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html>
>
> > "When requested to find a class or resource, a ClassLoader instance will
> > delegate the search for the class or resource to its parent class loader
> > before attempting to find the class or resource itself."
>
> > MyClassLoader is loading Result instead of delegating to its parent
> > first, which should always find it first.
>
> I just tested:import java.io.*;
> import java.lang.reflect.*;
>
> public class MyClassLoader extends ClassLoader
> {
> public Class findClass(String name)
> {
> try {
> //if(name.startsWith("java."))
> // return super.loadClass(name);
>
> FileInputStream fis=new FileInputStream(name
> +".class");
> byte[] b=new byte[fis.available()];
>
> fis.read(b);
> fis.close();
>
> return defineClass(name,b,0,b.length);
> } catch(Throwable e) {
> e.printStackTrace();
> }
>
> return null;
>
> }
>
> and now the class loader no longer honors recompiled classes:
>
> Script started on Sun Oct 14 15:09:05 2007
> jtest@monster:/home/jtest% java Main
> 1
> ^Z
> Suspended
> jtest@monster:/home/jtest% cat foo
> import java.lang.reflect.*;
>
> public class MyClass
> {
> public MyClass()
> {
> ack=new Integer(2);
> }
>
> public Integer getAck()
> {
> return ack;
> }
>
> private int foo;
> private Integer ack;}
>
> jtest@monster:/home/jtest% cp foo MyClass.java
> jtest@monster:/home/jtest% javac MyClass.java
> jtest@monster:/home/jtest% fg
> java Main
>
> 1
> ^C
> jtest@monster:/home/jtest% exit
> Script ends on Sun Oct 14 15:09:45 2007
>
> Just for ref here is the new main():
>
> public class Main
> {
> public static void main(String[] args)
> throws Throwable
> {
> while(true) {
> ClassLoader loader=new MyClassLoader();
> Class klass=loader.loadClass("MyClass");
>
> MyClass m=(MyClass) klass.newInstance();
>
> System.out.println(m.getAck());
> System.in.read();
> }
> }
>
> }
You should simply use UrlClassLoader and have the system classpath not
include your code that needs to be reloaded, and the URLClassLoader
have the path that DOES need to be reloaded (creating a new instance
of that class loader every time you need to reload the class)
That way, Result will be properly loaded by the System class loader,
and your reloadable class wont.
Hoep this helps,
Daniel.
|
| Author |
Message |
brian

|
Posted: 2003-12-3 5:14:00 |
Top |
java-programmer, Running server-side Java on FreeBSD in production environments
So, I've seen a few mentions here of folks using Java server apps on
FreeBSD in production. I've been very happy to watch the progress by the
Java team on the native JDKs from the sidelines, as well as the
improvements to libc_r and such that have been MFC'd, but I'm curious as
to whether the consensus on this list is that it's ready to be used for
production. Anyone want to share good success or horror stories? We're
trying to determine whether the apache.org box can start to run our own
software. :) Speed is definitely less important than proper functioning.
Brian
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
freebsd

|
Posted: 2003-12-3 5:47:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
I've actually been running my site with FreeBSD Java since July of 2002,
first with the green-threads JDK 1.3 with OpenJIT, then with the native
threads 1.3 with Hotspot, and now with 1.4.2-p5.
My observation is that for server-side work (which is the only thing I've
tested) I run into more problems because of MY code than because of the
JVM. I haven't experienced any kind of crash of the JVM since 1.4.1-p4.
The fork fixes for p5 have improved stability quite a bit in my
environment, or at least I get the impression they have. I used to
experience Resin occasionally going apeshit; that hasn't happened since I
went to 1.4.2-p5.
I cannot stress enough the need of making sure your code is sound before
you run it in production. You CAN bring down a servlet container with the
code you run in it if you're not careful. The easiest way to do that is
to keep too many things in session or application scope or otherwise
manage to allocate large objects with long lifespans that use up all your
available heap. (voice of experience)
I also suggest running the JVM for a servlet container with these options:
-server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
The -server flag tends to make server startup and class reloading take a
bit longer as I think it makes Hotspot a bit more aggressive about what it
compiles ahead of time. The other flags I got from a Sun paper on garbage
collection: http://java.sun.com/docs/hotspot/gc1.4.2/
Using incremental/low-pause garbage collection is pretty important for a
servlet container, imo; I'd generally rather add a few ms to each request
than have requests take 10-15 seconds occasionally when the JVM needs to
do GC.
One sorta hokey/kludgy thing I do as well is to perform a nightly restart
of all my JVMs. I don't know if I still need to do that with 1.4.2-p5.
The main reason I've been doing it at all is that memory seems to get
fragmented or possibly some objects are just never getting garbage
collected, so the JVM processes were using more CPU and memory as time
went by. I haven't verified whether this is still problematic in p5.
I definitely recommend arranging servlet containers into a primary/backup
JVM situation if your container allows it. I also suggest load balancing
across two containers for performance (it seems like 2 containers handle
load better under high-load condition than one container with twice as
many threads, which makes sense if you think about how threads and
processes differ).
My arrangement has 3 containers; two load-balanced primary JVMs and one
backup JVM.
When restarting your containers and when starting them the first time, I
suggest staggering the loading because of the amount of CPU the -server
switch causes the JVM to use as it starts. I start and restart mine with
a 60-second sleep interval between them. Otherwise, you end up thrashing
during startup, which can actually cause startup to fail because, in the
case of Resin anyway, the minder process can't contact the servlet
container because it's still loading because the CPU is pegged trying to
start up many containers at once.
Another thing I recommend is writing a "ping" process for your containers.
I have one I wrote for Resin that checks each minute to see that Resin's
"srun" service is working and is capable of loading a page (including
configurable timeouts, retries, etc). If there's no answer, it
automatically restarts the container and sends me an email. Though it's
quite rare that this actually does any work, it does happen periodically
and it's nice to have things restarted for me in the middle of the night
;)
That's all I can think of at the moment. Let me know if you'd like more
detail about anything in particular. I'm currently running morons.org,
ln-s.net, and go2rider.org with the FreeBSD JVM.
Nick
On Tue, 2 Dec 2003, Brian Behlendorf wrote:
>
> So, I've seen a few mentions here of folks using Java server apps on
> FreeBSD in production. I've been very happy to watch the progress by the
> Java team on the native JDKs from the sidelines, as well as the
> improvements to libc_r and such that have been MFC'd, but I'm curious as
> to whether the consensus on this list is that it's ready to be used for
> production. Anyone want to share good success or horror stories? We're
> trying to determine whether the apache.org box can start to run our own
> software. :) Speed is definitely less important than proper functioning.
>
> Brian
> _______________________________________________
> email***@***.com mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "email***@***.com"
>
--
"The aptly-named morons.org is an obscenity-laced screed..."
-- Robert P. Lockwood, Catholic League director of research
Nick Johnson, version 2.1 http://web.morons.org/
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
jgrosch

|
Posted: 2003-12-3 6:03:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Dec 02, 2003 at 01:12:37PM -0800, Brian Behlendorf wrote:
>=20
> So, I've seen a few mentions here of folks using Java server apps on
> FreeBSD in production. I've been very happy to watch the progress by the
> Java team on the native JDKs from the sidelines, as well as the
> improvements to libc_r and such that have been MFC'd, but I'm curious as
> to whether the consensus on this list is that it's ready to be used for
> production. Anyone want to share good success or horror stories? We're
> trying to determine whether the apache.org box can start to run our own
> software. :) Speed is definitely less important than proper functioning.
>=20
> Brian
=46rom my limited experience I can say that FreeBSD 5.1 with Java 1.4.1 and
Tomcat 4.1.27 seems to work pretty well. Not real fast though. When threads
are done it should be really good. I've also used ant, eclipse, jboss,
Log4j and the other tools from the Jakarta project and they mostly
work. The only time I have had a problem it was from a mistake on my
part. Oh, jBoss and Eclipse are not from the Jakarta project but they
interface well.
Josef
--=20
Josef Grosch | Another day closer to a | FreeBSD 5.1
email***@***.com | Micro$oft free world | Berkeley, Ca.
--fUYQa+Pmc3FrFX/N
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
iD8DBQE/zQmHy8prLS1GYSERAsceAKCYdckURK8hXkflkGXYifEBtKY8iACgyFoa
r/e1X7giQX1Ea26B4Wh2abc=
=Hm3o
-----END PGP SIGNATURE-----
--fUYQa+Pmc3FrFX/N--
|
| |
|
| |
 |
brent

|
Posted: 2003-12-3 7:06:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
[2003-12-02 13:12] Brian Behlendorf said:
|
| So, I've seen a few mentions here of folks using Java server apps on
| FreeBSD in production. I've been very happy to watch the progress by the
| Java team on the native JDKs from the sidelines, as well as the
| improvements to libc_r and such that have been MFC'd, but I'm curious as
| to whether the consensus on this list is that it's ready to be used for
| production. Anyone want to share good success or horror stories? We're
| trying to determine whether the apache.org box can start to run our own
| software. :) Speed is definitely less important than proper functioning.
Here's my observation of running tomcat and jboss on -STABLE for
over a year now.
1.3.1-p8 (w/ hotspot)
stability : excellent
performance : sluggish (seemed to be about %40 slower than 1.4.1
when I last compared the two on some
ab(8) tests against tomcat)
1.4.2-p5 (w/ hotspot)
stability : very good/excellent (_may_ have seen this version
cause me to have to kill(1)
the jave process when trying
to shutdown tomcat, but cannot
be certain it wasn't something
in my code)
performance : very good (no formal comparison, but seems to
match performance per-MHz as sun's
jdk on debian/linux-2.4)
I would certainly deploy a native java on FreeBSD (4.9-STABLE)
for nearly-critical tomcat applications. That said, there are some
features which are not complete and/or busted. If the application
runs at all, I'd feel pretty confident it will keep on running.
cheers.
Brent
--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing." -- Duane Allman
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
past

|
Posted: 2003-12-3 18:33:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
On Tuesday 02 December 2003 23:12, Brian Behlendorf wrote:
> So, I've seen a few mentions here of folks using Java server apps on
> FreeBSD in production. I've been very happy to watch the progress by the
> Java team on the native JDKs from the sidelines, as well as the
> improvements to libc_r and such that have been MFC'd, but I'm curious as
> to whether the consensus on this list is that it's ready to be used for
> production. Anyone want to share good success or horror stories? We're
> trying to determine whether the apache.org box can start to run our own
> software. :) Speed is definitely less important than proper functioning.
>
> Brian
I have deployed three servlet-based apps using tomcat & velocity in a
farm-like environment and have never experienced any problems. The
applications require jdk 1.4, so I have followed that path all along, mainly
in -stable machines (and -current for compiling/testing before deployment).
Cheers,
--
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
jbq

|
Posted: 2003-12-3 19:10:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
--f61P+fpdnY2FZS1u
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Nick Johnson:
> One sorta hokey/kludgy thing I do as well is to perform a nightly
> restart of all my JVMs. I don't know if I still need to do that with
> 1.4.2-p5. The main reason I've been doing it at all is that memory
> seems to get fragmented or possibly some objects are just never
> getting garbage collected, so the JVM processes were using more CPU
> and memory as time went by. I haven't verified whether this is still
> problematic in p5.
You can prevent the OutOfMemory errors by preventing the class reloading
=66rom happening. On resin: class-update-interval=3D'31536000'.
Cheers,
--=20
Jean-Baptiste Quenot
http://caraldi.com/jbq/
--f61P+fpdnY2FZS1u
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/zcRS9xx3BCMc9gsRArtXAKCjBURI2qp+KDjFKJZ0m8tHpQZaxwCcCdLZ
m+aCaaz29er7la/wJ2efaXU=
=Th8L
-----END PGP SIGNATURE-----
--f61P+fpdnY2FZS1u--
|
| |
|
| |
 |
sheldonh

|
Posted: 2003-12-3 22:43:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
On (2003/12/02 13:12), Brian Behlendorf wrote:
> Anyone want to share good success or horror stories? We're
> trying to determine whether the apache.org box can start to run our own
> software. :) Speed is definitely less important than proper functioning.
For me, the issue isn't so much with speed as it is for support of
heavily-threaded applications:
http://starjuice.net/2003_09_01_starjuice_archive.html#106267661433883916
Ciao,
Sheldon.
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
glewis

|
Posted: 2003-12-4 4:45:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
Hi Brian,
On Tue, Dec 02, 2003 at 01:12:37PM -0800, Brian Behlendorf wrote:
> So, I've seen a few mentions here of folks using Java server apps on
> FreeBSD in production. I've been very happy to watch the progress by the
> Java team on the native JDKs from the sidelines, as well as the
> improvements to libc_r and such that have been MFC'd, but I'm curious as
> to whether the consensus on this list is that it's ready to be used for
> production. Anyone want to share good success or horror stories? We're
> trying to determine whether the apache.org box can start to run our own
> software. :) Speed is definitely less important than proper functioning.
FWIW, in terms of proper functioning, 1.3.1 is compliant with Sun's
test suite and 1.4.2 almost is (unofficially). The one case where 1.4.2
isn't compliant is currently under discussion with Sun and is unlikely
to affect you unless you're using multicast in a mixed IPv4 and IPv6
environment.
Of the two, 1.4.2 is significantly faster thanks to HotSpot.
If you decide to go ahead, I'm willing to support you as much as I
can since I think apache.org running some Java servlet containers on
FreeBSD would be a great advertisement for Java on BSD :).
--
Greg Lewis Email : email***@***.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : email***@***.com
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
brian

|
Posted: 2003-12-4 4:51:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
Thanks for everyone's comments. It's pretty encouraging, though not for
something anticipated to be extremely high volume. Since the apps we're
looking at are probably not going to have 2000 concurrent threads,
sounds like it's worth at least trying.
Brian
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
peter.schuller

|
Posted: 2003-12-4 7:11:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
> FWIW, in terms of proper functioning, 1.3.1 is compliant with Sun's
> test suite and 1.4.2 almost is (unofficially). The one case where 1.4.2
> isn't compliant is currently under discussion with Sun and is unlikely
> to affect you unless you're using multicast in a mixed IPv4 and IPv6
> environment.
Is there somewhere one can read the unofficial details? A malinglist perhaps
that I don't know about? :)
--
/ Peter Schuller, InfiDyne Technologies HB
PGP userID: 0xE9758B7D or 'Peter Schuller <email***@***.com>'
Key retrieval: Send an E-Mail to email***@***.com
E-Mail: email***@***.com Web: http://www.scode.org
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
ari

|
Posted: 2003-12-6 17:44:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
I'm coming in a little late on this, but I can report great success
with the FreeBSD JDK 1.3.1 running with WebObjects on 4.7 FreeBSD. I am
right this minutes in the middle of configuring a second deployment
server with 1.4.1 and am trying to decide between the IBM JDK and the
native FreeBSD one.
Since the IBM JDK gets such good reviews for speed I thought I'd try
it. I'll try and report on it when I get some time to test.
Anyhow, 1.3.1 FreeBSD JDK has been running in production for over a
year under WebObjects. It averages 150,000 page views per month all
served from Java based pages. Not a single hiccup.
Ari Maniatis
On 03/12/2003, at 8:12 AM, Brian Behlendorf wrote:
> So, I've seen a few mentions here of folks using Java server apps on
> FreeBSD in production.
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400 fax +61 2 9660 7400
http www.ish.com.au | email email***@***.com
PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
brent

|
Posted: 2003-12-7 21:22:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
[2003-12-03 16:41] Sheldon Hearn said:
| On (2003/12/02 13:12), Brian Behlendorf wrote:
|
| > Anyone want to share good success or horror stories? We're
| > trying to determine whether the apache.org box can start to run our own
| > software. :) Speed is definitely less important than proper functioning.
|
| For me, the issue isn't so much with speed as it is for support of
| heavily-threaded applications:
|
| http://starjuice.net/2003_09_01_starjuice_archive.html#106267661433883916
Out of curiousity, I just ran the volano benchmark against the native
jdk1.4.2. More info on the benchmark as well as results from other
systems is available at http://www.volano.com/benchmarks.html.
server: 10.0.0.1
client: 10.0.0.1 (unfortunately, my linux box couldn't build up
more than about 600 client connections before
complaining of the stack being too small.)
OS: 4.9-STABLE (vintage 2 Dec 2003)
jvm args: -server -Xmx512M -Xss96k
hardware: 500Mhz pIII 768MB (10.0.0.1 is on a 3COM 3C905C-TX card)
sysctl settings:
jail.sysvipc_allowed=1
jail.socket_unixiproute_only=1
jail.set_hostname_allowed=1
kern.ipc.shm_use_phys=1
kern.ipc.somaxconn=1024
kern.ipc.nmbclusters=32768
vfs.vmiodirenable=1
net.inet.tcp.msl=10000 # cuts TIME_WAIT down to about 5s
kern.maxfiles=16384
results - not too bad :-)
1000 concurrent connections/threads.
test-1.log: [Sun Dec 7 07:36:51 EST 2003] Test started.
test-1.log: Average throughput = 1255 messages per second
2000 concurrent connections/threads.
test-2.log: [Sun Dec 7 07:46:11 EST 2003] Test started.
test-2.log: Average throughput = 960 messages per second
[At about 2500 connections, the server side died from "Out of memory"]
snippet from vmstat while benchmark running:
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad0 ad4 in sy cs us sy id
2 0 0 2268924 213740 3 0 0 0 613 0 0 0 307 3657 76 33 67 0
1 0 0 2268924 213676 17 0 0 0 520 0 4 0 378 4452 46 37 63 0
2 0 0 2268924 213184 130 0 0 0 752 0 0 0 311 1072 106 59 41 0
I suspect having the client on another system would yield _much_ better
results. If I figure out how to get my linux box to handle the client
task, I'll report the difference in performance.
cheers.
Brent
--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing." -- Duane Allman
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
brent

|
Posted: 2003-12-7 22:27:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
[2003-12-07 08:20] Brent Verner said:
| [2003-12-03 16:41] Sheldon Hearn said:
| | On (2003/12/02 13:12), Brian Behlendorf wrote:
| |
| | > Anyone want to share good success or horror stories? We're
| | > trying to determine whether the apache.org box can start to run our own
| | > software. :) Speed is definitely less important than proper functioning.
| |
| | For me, the issue isn't so much with speed as it is for support of
| | heavily-threaded applications:
| |
| | http://starjuice.net/2003_09_01_starjuice_archive.html#106267661433883916
|
| Out of curiousity, I just ran the volano benchmark against the native
| jdk1.4.2. More info on the benchmark as well as results from other
| systems is available at http://www.volano.com/benchmarks.html.
...
| I suspect having the client on another system would yield _much_ better
| results. If I figure out how to get my linux box to handle the client
| task, I'll report the difference in performance.
No luck with the linux client, so here are some runs at 500
concurrent connections for comparison's sake. Results from linux
box listed first. Looks like running on the same box cuts the
results just about in half, as expected.
sleepy:~/volano
brent$ /usr/local/jdk1.4.2/bin/java -Xmx512M -Xss256k -Dinstall.root=. -Dcatalina.home=. -cp .:lib/bootstrap.jar:lib/catalina.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/servlets-common.jar:lib/servlets-default.jar:lib/volanochat-server.jar:lib/xerces.jar COM.volano.Mark -count 10 -host 10.0.0.1 -rooms 25
...
Creating room number 25 ...
500 connections so far.
Java heap: 2170 KB in use, 7588 KB available (29% in use).
Running the test ...
Test complete.
VolanoMark version = 2.5.0.9
Messages sent = 5000
Messages received = 95000
Total messages = 100000
Elapsed time = 31.628 seconds
Average throughput = 3162 messages per second
mutt:~/volano
brent$ /usr/local/jdk1.4.2/bin/java -server -Xmx64M -Dinstall.root=. -Dcatalina.home=. -cp .:lib/bootstrap.jar:lib/catalina.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/servlets-common.jar:lib/servlets-default.jar:lib/volanochat-server.jar:lib/xerces.jar COM.volano.Mark -count 10 -host 10.0.0.1 -rooms 25
...
Creating room number 25 ...
500 connections so far.
Java heap: 2148 KB in use, 7612 KB available (28% in use).
Running the test ...
Test complete.
VolanoMark version = 2.5.0.9
Messages sent = 5000
Messages received = 95000
Total messages = 100000
Elapsed time = 66.585 seconds
Average throughput = 1502 messages per second
cheers.
Brent
--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing." -- Duane Allman
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
sheldonh

|
Posted: 2003-12-8 20:39:00 |
Top |
java-programmer >> Running server-side Java on FreeBSD in production environments
On (2003/12/06 20:42), Aristedes Maniatis wrote:
> Anyhow, 1.3.1 FreeBSD JDK has been running in production for over a
> year under WebObjects. It averages 150,000 page views per month all
> served from Java based pages. Not a single hiccup.
Stable, sure. But not necessarily fast. Even if you assume only 20
business days in the month, that's still only an average of 5 views per
minute. :-)
Ciao,
Sheldon.
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- getting Error: could not find libjava.so Re: building a jdk1.5
On Mar 3, 2007, at 5:18 PM, Bill Moran wrote:
>
>> On Mar 3, 2007, at 4:01 PM, Chad Leigh -- Shire.Net LLC wrote:
>>
>>> Hi
>>>
>>> I am trying to build jdk15 inside my jail with PREFIX set to /usr/
>>> public (At one time I successfully got jdk 1.4 to build after much
>>> hacking)
>>>
>>> I have the option for builing inside a jail set. We get to the
>>> point where the linux java is installed and it is actually building
>>> the jdk
>>>
>>> # Start of jdk build
>>> /libexec/ld-elf.so.1: /usr/local/lib/libiconv.so.3: Undefined
>>> symbol "__mb_cur_max"
>>> *** Error code 1
>>>
>>> Stop in /usr/ports/java/jdk15.
>>> #
>>>
>>> I am not exactly sure what it is doing at this point in order to
>>> hack round it. libiconv a fresh install from ports
>>>
>>
>> Turns out that the issue is that gmake cannot run. I have not
>> figured out why yet, having removed and reinstalled libiconv and
>> gmake and getting the same error. But it is not java related.
>>
>> I'll redirect this to -questions
>>
>> If anyone has an idea on why gmake would fail as above on a fresh
>> install, 6.2-RELEASE from a day or two ago, I would appreciate it.
>> Please CC me as I am not currently subscribed to -questions, though I
>> am on -java
>
> Not a direct answer to your question, but when I needed to do this
> a few months ago, I just did a "make package" on my workstation, then
> shipped the package up to the jail system and installed it with
> pkg_add.
>
> Doesn't solve the problem, but if you're in a pinch, it's a handy
> workaround.
>
OK, I had never done this before -- built a package from a port. So
I did this on the base machine and then copied it into the jail and
did a pkg_add like so
# pkg_add -P /usr/public -v jdk-1.5.0p4_1.tbz
as I wanted it installed in my local policy dir /usr/public (which
gets mounted RO in every jail). My 1.4.2 java on my other jail
server is installed like this (but was built inside the jail many
moons ago).
Now, when I try to run java I get
# java -version
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
#
Java is in /usr/public/jdk1.5.0/ (the same as my 1.4.2 on the other
server which is in /usr/public/jdk1.4.2/). libjava.so is inside the
lib dir and I thought that java was referential to itself so it could
find its libraries.
I also tried setting JAVA_HOME and JRE_HOME though I have not had to
do that in a long time.
The new 1.5 jdk is registered in the javavms file .
When I run the javavm script with /bin/sh -x it does run the correct
java and running it with an explicit path does not help.
# /bin/sh -x /usr/public/bin/javavm -version
+ _JAVAVM_SAVE_PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/pub/
sbin:/usr/pub/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/
bin
+ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ _JAVAVM_PREFIX=/usr/public
+ _JAVAVM_CONF=/usr/public/etc/javavms
+ _JAVAVM_OPTS_CONF=/usr/public/etc/javavm_opts.conf
+ basename /usr/public/bin/javavm
+ _JAVAVM_PROG=javavm
+ _JAVAVM_MAKE=/usr/bin/make
+ [ javavm = javavm ]
+ echo javavm: warning: The use of 'javavm' as a synonym for 'java'
is deprecated
javavm: warning: The use of 'javavm' as a synonym for 'java' is
deprecated
+ _JAVAVM_PROG=java
+ [ -r /usr/public/etc/javavm_opts.conf ]
+ . /usr/public/etc/javavm_opts.conf
+ _JAVAVM_OPTS=
+ setJavaHome
+ realpath
+ realpath /usr/public
+ [ -n -a /stubs/usr_local/etc/ssmtp != /usr/public ]
+ unset JAVA_HOME
+ _JAVAVM_PORTSDIR=
+ [ -r /usr/share/mk/bsd.port.mk ]
+ /usr/bin/make -f /usr/share/mk/bsd.port.mk -V PORTSDIR
+ _JAVAVM_PORTSDIR=
+ _JAVAVM_BSD_PORT_MK=
+ [ -n -a -r /Mk/bsd.port.mk ]
+ [ -n ]
+ [ ! -e /usr/public/etc/javavms ]
+ sed -E s|[[:space:]]*#.*||
+ uniq
+ _JAVAVM_VMS=/usr/public/jdk1.5.0/bin/java
/usr/public/linux-sun-jdk1.4.2/bin/java
+ [ -n ]
+ dirname /usr/public/jdk1.5.0/bin/java
+ JAVA_HOME=/usr/public/jdk1.5.0/bin
+ dirname /usr/public/jdk1.5.0/bin
+ JAVA_HOME=/usr/public/jdk1.5.0
+ basename /usr/public/jdk1.5.0
+ _JAVAVM_VM=jdk1.5.0
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ -n /usr/public/jdk1.5.0 -a -f /usr/public/jdk1.5.0/bin/java ]
+ _JAVAVM_PROG_PATH=/usr/public/jdk1.5.0/bin
+ return 0
+ [ 0 != 0 ]
+ [ -x /usr/public/jdk1.5.0/bin/java ]
+ basename /usr/public/jdk1.5.0
+ setJavaOptions java jdk1.5.0
+ echo java
+ sed -e s/\./_/g -e s/-/_/g
+ local OPTS_PROG=java
+ echo jdk1.5.0
+ sed -e s/\./_/g -e s/-/_/g
+ local OPTS_JAVA_HOME=jdk1_5_0
+ eval echo ${JAVAVM_OPTS_jdk1_5_0_java}
+ local JAVA_HOME_PROG_OPTS=
+ eval echo ${JAVAVM_OPTS_jdk1_5_0}
+ local JAVA_HOME_OPTS=
+ eval echo ${JAVAVM_OPTS_java}
+ local PROG_OPTS=
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ export JAVA_HOME
+ tryJavaCommand /usr/public/jdk1.5.0/bin/java -version
+ [ -n ]
+ [ -x /usr/public/jdk1.5.0/bin/java ]
+ [ -n /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/pub/sbin:/usr/
pub/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin ]
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/pub/sbin:/
usr/pub/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
+ exec /usr/public/jdk1.5.0/bin/java -version
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
#
What did I do wrong?
Thanks
Chad
---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 2
- J2ME internationalizationI want to provide the binary with *only one* language, because I want to
be as small as I can.
But I want to provide many binaries (one per language).
So, I write the code with hardcoded strings like "$_nearest_dist_$".
I write a file like:
-----english.ini----
$_nearest_dist_$=Nearest distance is 90m
--------------------
and I write a php script which in *.java files, replaces all strings in
form "$_*_$" with language correct string.
php phpWriteStringsToSource.php <project_folder> <language.ini>
THE BIG PROBLEM: I realize that *.java files must have ansi* encoding!
Any of utf-8, uc16le or be is not compiled correct!
So, what I can do?
- 3
- Great SWT ProgramIn article <email***@***.com>,
Twisted <email***@***.com> wrote:
> On Aug 21, 1:30 pm, Joe Attacki <email***@***.com> wrote:
> [Attacki misattributed the quoted text once again]
> [insulting nonsense deleted]
> > Honestly, I don't care if he advertises his open-source project in here,
> > but the fact that he was underhanded about it is what I took issue with.
>
> I've provided a reasonably plausible and much more charitable
> interpretation of his actions. You are quick to see malice where there
> may well be none;
Oh, the irony.
> probably because your own normal behavior is
> malicious, so you expect it of everyone else as your default model for
> a random person's mind is (as is normal) your self-model.
--
B. L. Massingill
ObDisclaimer: I don't speak for my employers; they return the favor.
- 4
- How do i implement this interfacepublic interface AQuestion
{
public abstract void someMethod() throws Exception;
}
http://www.angelfire.com/or/abhilash/Main.html
see Question no 5.
How do i implement this interface ?
(1) problem is, it has an abstract method and hecne its complicated
to implement this class.
(2) another problem is, it is the public interface and hence we can not
make one more public class in the same file....because 1 file can have
only 1 public access specifier.
is it really possible to implement this interface ?
- 5
- where to find graphics for buttonsI'm searching for free graphics to grade up my app by using icons on the
buttons for edit, new, delete, save, cancel and so on.
Java class ImageIcons supports gif, jpeg and png format.
Anybody knows a free available source for this basic app icons?
- 6
- generate certificate from PEMHi,
I am developing a middleware solution for our companyy. I have got 2
certifcates clkey.pem and clcert.pem for the final application. How I
can combine these 2 keys in 1 certificate? Do I need to first create
self signed certificate?
Thx in advance.
- 7
- JTable and Custom Default Cell Editors
From: "Erica Wheatcroft" <email***@***.com>
Subject: JTable
Date: Thursday, January 20, 2005 4:17 PM
HI -
I have a jtable that uses two custom default cell editors to create combo
boxes for two of the the 4 columns. If the user selects another value from
either of the combo boxes i want to know that so i can indicate a save must
occur. I'm not sure what event i should listen to? Does any one have any
suggestions?
Thanks in advance.
Erica
- 8
- TableCellRender puzzleBelow is a fairly simple TableCellRenderer for displaying an enum as
an Icon. That works fine. But I added a wrinkle, changing the
background colour depending on whether the row is selected.
No background colour changes happen, even though isSelected is true
when it should be. I wonder if I am missing something obvious.
package com.mindprod.vercheck;
import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
/**
* render a the AppSate enum cell, use icon without text.
*/
final class AppStateRenderer implements TableCellRenderer
{
// ------------------------------ FIELDS
------------------------------
private static final JLabel template = new JLabel( "",
JLabel.CENTER );
private Color background;
private Color selectedBackground;
// -------------------------- PUBLIC INSTANCE METHODS
--------------------------
/**
* constructor
*
* @param background background colour
* @param selectedBackground background colour when seleced
*/
public AppStateRenderer( Color background, Color
selectedBackground )
{
this.background = background;
this.selectedBackground = selectedBackground;
}
public Component getTableCellRendererComponent( JTable table,
Object value,
boolean
isSelected,
boolean hasFocus,
int row,
int column )
{
System.err.println( "selected:" + isSelected + " " + row + " "
+ table.getSelectedRow() );
template.setIcon( ( (AppState) value ).getIcon() );
template.setBackground( isSelected? selectedBackground :
background );
return template;
}
}
--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com
- 9
- LookAndFeelHi,
I have a couple of issues I'm trying to resolve. Hopefully someone will have
some ideas.
First, I've been unsucessful trying to get the MotifLookAndFeel working.
I've following every example I have (on paper) and nothing seems to work.
I've run the app on both the PC and Linux box; the window looks and feel
shows up on the PC and metal on the linux machine. Anyone know what's going
on or what could be missing?
Second, the app I've been working has a bunch of ToggleButtons and the color
of the button changes based on selection. All I do is set the background
color in the button press callback. Okay, fine. But when I run the code in
linux, I'm unable to change the color of the "select" mode of the Toggle
button. It always gray. Again. Does anyone know what's going on? From all my
years, this should be extremely simple. Why would it work correctly on the
PC and not in unix?
Thanks in advance.
Bryan
- 10
- M.I'5.Persecut ion ` h ow a nd wh y d id it st art?-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= how. and why did it start? -=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The harassment didn't start by itself, so someone. must have been there at
the outset to give it a firm push and set the "animals" after me. It. looks
as if I was. set up in June 1990, and the timing indicates someone from
university. was responsible.
>One thing which has. been missing from this discussion is this simple
>prognosis: that maybe he is. right and that, despite his admitted
>mental condition, there really is a campaign against. him organised by
>now-influential ex-students of. his university.
In May or June 1990, Alan Freeman on Radio 1 read out a letter from. someone
who had known me for a few years, who. wrote of the one who "wore out his
welcome with random precision" (from the Pink Floyd. song). Freeman went on
to say to the writer "that's a hell of a letter. you wrote there". The
indication is strongly that. people I had parted from soon before nursed a
grudge against me and were trying to. cause trouble for me.
The suggestion is that Freeman might have shown the letter. to other people,
and things could. have snowballed from there. Right from the start the real
source (security services presumed). didn't announce themselves as the
origin,. but let the "talkers", the radio DJs, believe that they were the
originators. Think about it; if you. announce, "we're MI5 and we have a
campaign against this bloke" then people might not go along. with it; but if
you say, "everyone else. is getting at this bloke because he 'deserves' it"
then people. will join in with fewer qualms.
>Why. would "they" wish to assassinate your character?
It's the classic case of hitting a cripple to prove you're. stronger. Why
would the security services expend hundreds of. thousands of pounds and more
than six years of manpower to try to kill a British citizen? Because. they
are motivated by people who knew me at. university and feel personal
animosity; because they knew me to be emotionally weak, and it is. in the
nature of bullies to prey on those known. to be weak; and because they can
rely on the complicity of the establishment, which the. security services
manipulate and derive funding from. This is. England's biggest humiliation
today,. and the British security services are intent on preventing their
humiliation becoming reality by. continuing their campaign of attempted
murder to suppress the. truth from becoming public.
10751
- 11
- javax and macim running mac os 9.2 with MRJ SDK 2.2. im tring to compile a class
importing javax.swing.*; it says it cant find it. i unziped all the
jars and i cant find javax anywhere. is this not supported on this os.
- 12
- Roedy 's convertor, Where is Short ? Where is Byte?Hi Roedy,
This is what you advertise for in
http://www.mindprod.com/zips/java/converter.txt:
signed byte Byte
unsigned byte Byte
short Short
char Character
int Integer
long Long
float Float
double Double
char[] String
This is what you have in your code:
public static final String [] flavours = {
"boolean",
"/*signed*/ byte",
"/*unsigned*/ byte",
"short",
"char",
"int",
"long",
"float",
"double",
"String",
"Boolean",
"Character",
"Integer",
"Long",
"Float",
"Double"};
Noticed anything? Is it voluntary or did you forget java.lang.Byte
and java.lang.Short?
Either the advertisement or the code need to be updated.
My apologies if you have already explained why.
BTW, neat little tool I always come back from time to time.
Cheers, Mike
- 13
- To really foul things up requires a computerPartner just got back from a new government job with an amusing tale.
BC is a large province (about 1000 miles top to bottom) so the BC
government decided to set up a computer system so that any printout
could be directed to any printer in the province, thus saving on
courier costs.
However, the default is the system selects a non-busy printer, not
worrying particularly if it is 1000 miles from the intended recipient.
The printouts don't have proper headers to direct them to the person
eagerly awaiting them so most of the printouts ended up in the
shredder.
- 14
- Help to understand 'array of classes' exampleHi,
I'm trying to create/use an array of classes, and I found the following
code snippet using Google Groups:
...
rectangle[ ] array_name = new rectangle[ 100 ]; // or whatever
size
for ( int n = 0; n < 100; ++n )
{
array_name[ n ] = new rectangle( );
}
...
int i = 99;
int wide = array_name[i].getwidth( );
...
The above snippet was from:
http://groups.google.com/group/comp.lang.java.programmer/msg/1ea4bbde51104914
What I'm trying to understand in the above snippet is the line where the
array is initialized:
rectangle[ ] array_name = new rectangle[ 100 ]; // or whatever size
Before I found that post, I was trying something like:
rectangle [] arrayName; // declear an array of 'rectangle classes'
.
.
rectangle[0] = new rectangle(); // instantiate rectangle/populate array
rectangle[1] = new rectangle(); // instantiate rectangle/populate array
I did it that way because I don't know the number of classes that I'll
want to have in the array of classes ahead of time.
The code per the snippet from the cited posts works, but my original
code would get a NullPointerException, and I don't understand why.
Can someone explain this?
Also, is it possible to do this in a way that I don't have to allocate a
fixed size array?
Thanks,
Jim
- 15
- passing RequestPath to error page from web.xmlHi,
I have pointed any errors to Error.jsp in my web.xml file (as shown).
<error-page>
<error-code>500</error-code>
<location>/Error.jsp?id=500</location>
</error-page>
As you can see I also pass the type of error, is there any way I can
pass the RequestPath that resulted in the error in the first place?
Cheers,
Paul
|
|
|