Re: Ant

2003-01-17 Thread Arnaud Vandyck
Ahmed <[EMAIL PROTECTED]> wrote:

> Ant package (http://packages.debian.org/unstable/devel/ant.html) do
> not depend on any Java Compiler.
> 
> This way,  ant task is unusable without some help (JAVA_HOME
> environment variable, build.compiler property). It is a core Ant
> task (http://jakarta.apache.org/ant/manual/index.html).

So isn't it a bug?

> On the opposite, Ant package depends on junit. So  task is 
> usable. But it is an optionnal Ant task.

I do not think it's a problem.

> What is the logic behind?

I think it's a bug, maybe Stephan will agree.

-- Arnaud Vandyck





msg02295/pgp0.pgp
Description: PGP signature


Bug#177138: docbook-website: java librairies not compliant with the java policy

2003-01-17 Thread Arnaud Vandyck
Package: docbook-website
Version: 2.2-0.2
Severity: wishlist

Arnaud Vandyck <[EMAIL PROTECTED]> writes:

> Looking at /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/extensions/,
> there are saxon643.jar, saxon644.jar, saxon651.jar, saxon65.jar,
> xalan2.jar. But I think jar does not have to be there. 
> 
> You can have a look at the section 2.4 Java Librairies[1] of the Java
> Policy.
> 
> I do not know if you already discuss this on the list and forget me if
> it's the case. I did not want to fill a bug if it is not necessary!
> 
> A proposal can be to put the librairies in /usr/share/java with the
> name:
> 
> docbook-[parser]-[version]-extension.jar
> 
> (maybe it's too long?)

It is a bit.  There are reasons to keep the upstream JAR name, e.g.,
for XML building scripts that use this.

OTOH, I agree jarfiles in
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/extensions/ should be
symlinks, and tha the Java shipped with the docbook-xsl package should
comply with the Debian Java policy.  Can you file a bug against
docbook-xsl outlining the current non-compliance?

One might go even further and break out the Java into separate
packages depending on the processor in question, e.g., a certain
version of saxon, a certain version of xalan2

-- 
Adam Di Carlo..<[EMAIL PROTECTED]>...http://www.onshored.com/>


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux vbstefi30.fapse.ulg.ac.be 2.4.20-686 #1 Mon Jan 13 22:22:30 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set)

Versions of packages docbook-website depends on:
ii  docbook-xml   4.2-5  Standard XML documentation system,
ii  docbook-xsl   1.56.1-2   Stylesheets for processing DocBook

-- no debconf information



-- Arnaud Vandyck





msg02296/pgp0.pgp
Description: PGP signature


XDoclet debs

2003-01-17 Thread Joe Phillips
All,

I'd like to note that besides JBOSS packages, we also have XDoclet
packages in our archive[1].  I welcome feedback on any packages we have
in our archive.

enjoy!

-joe
[1] http://debian.innovationsw.com/
-- 
 Innovation Software Group, LLC - http://www.innovationsw.com/
Business Automation Specialists
 UNIX, Linux and Java Training


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Bug#176629: gij-3.2: package incorrctly provides java1-runtime

2003-01-17 Thread Stephen Zander
> "Matthias" == Matthias Klose <[EMAIL PROTECTED]> writes:
Matthias> so which runtimes do have complete awt support at all? 
Matthias> The provides was added to build all packages which do
Matthias> not relay on all awt functionality. I would have to
Matthias> search the bug report ... what does the java policy say
Matthias> for these cases?

I used some of the example code that comes with Sun's jdk1.1
documentation as test cases.  Specifically, I tried kaffe, sablevm &
gij with SymbolTest, GraphicsTest, DrawTest.  Kaffe successfully
executed all of these demos; sablevm & gij failed all of them.  I've
included the SymbolTest code as it's the smallest code base.

-- 
Stephen

"A duck!"


/*
 * @(#)SymbolTest.java	1.1 98/07/18
 * 
 * Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 * 
 */
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;

public class SymbolTest extends Applet implements ActionListener, ItemListener {

SymbolCanvas symbols; 
TextField baseText;

static final int SYMBOL_BASE = 0x2200;
static final int DINGBAT_BASE = 0x2700;
static final int GREEK_BASE = 0x3300;

public void init() {
	setLayout(new BorderLayout());

Panel panel = new Panel();

panel.add(new Label("Font:"));
Choice fontList = new Choice();
String[] fontNames = getToolkit().getFontList();
for (int i = 0; i < fontNames.length; i++) {
fontList.addItem(fontNames[i]);
}
fontList.addItemListener(this);
panel.add(fontList);
Font defaultFont = new Font(fontNames[0], Font.PLAIN, 16);

panel.add(new Label("Unicode base:"));
baseText = new TextField(Integer.toHexString(DINGBAT_BASE), 4);
baseText.setFont(new Font("Monospaced", Font.PLAIN, 12));
baseText.addActionListener(this);
panel.add(baseText);
add("North", panel);

ScrollPane sp = new ScrollPane();
symbols = new SymbolCanvas(defaultFont, DINGBAT_BASE);
sp.add(symbols);
add("Center", sp);

add("South", new Label("Symbols=0x2200, Dingbats=0x2700, Greek=0x3300"));
}

public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED) {
String fontName = (String)e.getItem();
symbols.setFont(new Font(fontName, Font.PLAIN, 16));
}
}

public void actionPerformed(ActionEvent e) {
try {
int newBase = Integer.valueOf(e.getActionCommand(), 16).intValue();
symbols.setBase(newBase);
} catch (NumberFormatException nfe) {
Toolkit.getDefaultToolkit().beep();
baseText.select(0, Integer.MAX_VALUE);
}
}

/*
 * This class demonstrates how adapter classes can be used to avoid
 * creating empty methods to satisfy an event listener interface.
 * Being a nested class, a separate class file won't be created 
 * (which would be overkill for implementing this functionality).
 */
static class MyAdapter extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}

public static void main(String args[]) {
	Frame f = new Frame("SymbolTest");
	SymbolTest symbolTest = new SymbolTest();

	symbolTest.init();
	symbolTest.start();

	f.add("Center", symbolTest);
	f.pack();
	f.setSize(400, 500);
	f.show();

f.addWindowListener(new MyAdapter());
}
}

class SymbolCanvas extends Canvas {
Font font;
int charHeight;
int charWidth;
int charBase;

public SymbolCanvas(Font font, int base) {
FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(font);
charHeight = fm.getHeight() + 3;
charWidth = fm.getMaxAdvance() + 4;
charBase = base;
setSize(charWidth * 16 + 60, charHeight * 16 + 10);
}

public void setBase(int base) {
charBase = base;
repaint();
}

public void setFont(Font font) {
this.font = font;
repaint();
}

public void paint(Graphics g) {
g.setFont(font);
g.setColor(Color.black);
char[] carray = new char[1];
int c = charBase;
int y = 20;
for (int v = 0; v < 16; v++) {

Re: JBOSS debs updated

2003-01-17 Thread Andrew Savory

Hi,

On Tue, 14 Jan 2003, Joe Phillips wrote:

> I spent yesterday rebuilding and testing my debs.  The versions
> currently on my company site[1] have been tested to properly start/stop
> the server without exceptions.

Just been trying the debs out (apt-get install jboss jboss-doc), and came
across the following problems:

log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /usr/share/jboss/server/default/log/boot.log 
(Permission denied)

(Fixed by chown -R jboss /usr/share/jboss)

org.jboss.deployment.DeploymentException: url
file:/usr/share/jboss/server/default/conf/jboss-service.xml could not be opened, does 
it exist?

(Fixed by apt-get install jboss-server-all, then editing
/etc/default/jboss and setting which server to start to "all")

After all that, there's still no sign of life from JBoss on 8080 or
8082... :-(


Andrew.

-- 
All views are my own  who else would want them?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




SableVM & Jikes: java.lang.UnsupportedClassVersionError

2003-01-17 Thread Ahmed
Hi,

$ cat Hello.java
class Hello {
   public static void main(String[] args) {
   System.out.println("Hello.");
   }
}
$ jikes-sable Hello.java
$ sablevm --no-copyright Hello
java.lang.UnsupportedClassVersionError
   at java.lang.VMClassLoader.nativeDefineClass(VMClassLoader.java)
   at java.lang.VMClassLoader.defineClass(VMClassLoader.java:78)
   at java.lang.VMClassLoader.defineClass(VMClassLoader.java:121)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:587)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:555)
   at 
gnu.java.lang.SystemClassLoader.findClass(SystemClassLoader.java:108)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:259)
   at java.lang.VirtualMachine.main(VirtualMachine.java:79)
$

My versions:
sablevm 1.0.5-1
jikes-sable 1:1.18-1
jikes 1:1.18-1

The only thing I found on the net is at:
http://sourceforge.net/mailarchive/forum.php?thread_id=1437356&forum_id=4151.

Does Jikes 1.18 bytecode work with SableVM 1.0.5?



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Ant

2003-01-17 Thread Arnaud Vandyck
Ahmed <[EMAIL PROTECTED]> wrote:

> Ant package (http://packages.debian.org/unstable/devel/ant.html) do
> not depend on any Java Compiler.
> 
> This way,  ant task is unusable without some help (JAVA_HOME
> environment variable, build.compiler property). It is a core Ant
> task (http://jakarta.apache.org/ant/manual/index.html).

So isn't it a bug?

> On the opposite, Ant package depends on junit. So  task is 
> usable. But it is an optionnal Ant task.

I do not think it's a problem.

> What is the logic behind?

I think it's a bug, maybe Stephan will agree.

-- Arnaud Vandyck




pgpKwEXKnS8A1.pgp
Description: PGP signature


Bug#177138: docbook-website: java librairies not compliant with the java policy

2003-01-17 Thread Arnaud Vandyck
Package: docbook-website
Version: 2.2-0.2
Severity: wishlist

Arnaud Vandyck <[EMAIL PROTECTED]> writes:

> Looking at /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/extensions/,
> there are saxon643.jar, saxon644.jar, saxon651.jar, saxon65.jar,
> xalan2.jar. But I think jar does not have to be there. 
> 
> You can have a look at the section 2.4 Java Librairies[1] of the Java
> Policy.
> 
> I do not know if you already discuss this on the list and forget me if
> it's the case. I did not want to fill a bug if it is not necessary!
> 
> A proposal can be to put the librairies in /usr/share/java with the
> name:
> 
> docbook-[parser]-[version]-extension.jar
> 
> (maybe it's too long?)

It is a bit.  There are reasons to keep the upstream JAR name, e.g.,
for XML building scripts that use this.

OTOH, I agree jarfiles in
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/extensions/ should be
symlinks, and tha the Java shipped with the docbook-xsl package should
comply with the Debian Java policy.  Can you file a bug against
docbook-xsl outlining the current non-compliance?

One might go even further and break out the Java into separate
packages depending on the processor in question, e.g., a certain
version of saxon, a certain version of xalan2

-- 
Adam Di Carlo..<[EMAIL PROTECTED]>...http://www.onshored.com/>


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux vbstefi30.fapse.ulg.ac.be 2.4.20-686 #1 Mon Jan 13 22:22:30 EST 
2003 i686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set)

Versions of packages docbook-website depends on:
ii  docbook-xml   4.2-5  Standard XML documentation system,
ii  docbook-xsl   1.56.1-2   Stylesheets for processing DocBook

-- no debconf information



-- Arnaud Vandyck




pgpKogBRJ144A.pgp
Description: PGP signature


XDoclet debs

2003-01-17 Thread Joe Phillips
All,

I'd like to note that besides JBOSS packages, we also have XDoclet
packages in our archive[1].  I welcome feedback on any packages we have
in our archive.

enjoy!

-joe
[1] http://debian.innovationsw.com/
-- 
 Innovation Software Group, LLC - http://www.innovationsw.com/
Business Automation Specialists
 UNIX, Linux and Java Training




Re: Bug#176629: gij-3.2: package incorrctly provides java1-runtime

2003-01-17 Thread Stephen Zander
> "Matthias" == Matthias Klose <[EMAIL PROTECTED]> writes:
Matthias> so which runtimes do have complete awt support at all? 
Matthias> The provides was added to build all packages which do
Matthias> not relay on all awt functionality. I would have to
Matthias> search the bug report ... what does the java policy say
Matthias> for these cases?

I used some of the example code that comes with Sun's jdk1.1
documentation as test cases.  Specifically, I tried kaffe, sablevm &
gij with SymbolTest, GraphicsTest, DrawTest.  Kaffe successfully
executed all of these demos; sablevm & gij failed all of them.  I've
included the SymbolTest code as it's the smallest code base.

-- 
Stephen

"A duck!"

/*
 * @(#)SymbolTest.java	1.1 98/07/18
 * 
 * Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 * 
 */
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;

public class SymbolTest extends Applet implements ActionListener, ItemListener {

SymbolCanvas symbols; 
TextField baseText;

static final int SYMBOL_BASE = 0x2200;
static final int DINGBAT_BASE = 0x2700;
static final int GREEK_BASE = 0x3300;

public void init() {
	setLayout(new BorderLayout());

Panel panel = new Panel();

panel.add(new Label("Font:"));
Choice fontList = new Choice();
String[] fontNames = getToolkit().getFontList();
for (int i = 0; i < fontNames.length; i++) {
fontList.addItem(fontNames[i]);
}
fontList.addItemListener(this);
panel.add(fontList);
Font defaultFont = new Font(fontNames[0], Font.PLAIN, 16);

panel.add(new Label("Unicode base:"));
baseText = new TextField(Integer.toHexString(DINGBAT_BASE), 4);
baseText.setFont(new Font("Monospaced", Font.PLAIN, 12));
baseText.addActionListener(this);
panel.add(baseText);
add("North", panel);

ScrollPane sp = new ScrollPane();
symbols = new SymbolCanvas(defaultFont, DINGBAT_BASE);
sp.add(symbols);
add("Center", sp);

add("South", new Label("Symbols=0x2200, Dingbats=0x2700, Greek=0x3300"));
}

public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED) {
String fontName = (String)e.getItem();
symbols.setFont(new Font(fontName, Font.PLAIN, 16));
}
}

public void actionPerformed(ActionEvent e) {
try {
int newBase = Integer.valueOf(e.getActionCommand(), 16).intValue();
symbols.setBase(newBase);
} catch (NumberFormatException nfe) {
Toolkit.getDefaultToolkit().beep();
baseText.select(0, Integer.MAX_VALUE);
}
}

/*
 * This class demonstrates how adapter classes can be used to avoid
 * creating empty methods to satisfy an event listener interface.
 * Being a nested class, a separate class file won't be created 
 * (which would be overkill for implementing this functionality).
 */
static class MyAdapter extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}

public static void main(String args[]) {
	Frame f = new Frame("SymbolTest");
	SymbolTest symbolTest = new SymbolTest();

	symbolTest.init();
	symbolTest.start();

	f.add("Center", symbolTest);
	f.pack();
	f.setSize(400, 500);
	f.show();

f.addWindowListener(new MyAdapter());
}
}

class SymbolCanvas extends Canvas {
Font font;
int charHeight;
int charWidth;
int charBase;

public SymbolCanvas(Font font, int base) {
FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(font);
charHeight = fm.getHeight() + 3;
charWidth = fm.getMaxAdvance() + 4;
charBase = base;
setSize(charWidth * 16 + 60, charHeight * 16 + 10);
}

public void setBase(int base) {
charBase = base;
repaint();
}

public void setFont(Font font) {
this.font = font;
repaint();
}

public void paint(Graphics g) {
g.setFont(font);
g.setColor(Color.black);
char[] carray = new char[1];
int c = charBase;
int y = 20;
for (int v = 0; v < 16; v++) {

Re: JBOSS debs updated

2003-01-17 Thread Andrew Savory

Hi,

On Tue, 14 Jan 2003, Joe Phillips wrote:

> I spent yesterday rebuilding and testing my debs.  The versions
> currently on my company site[1] have been tested to properly start/stop
> the server without exceptions.

Just been trying the debs out (apt-get install jboss jboss-doc), and came
across the following problems:

log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /usr/share/jboss/server/default/log/boot.log 
(Permission denied)

(Fixed by chown -R jboss /usr/share/jboss)

org.jboss.deployment.DeploymentException: url
file:/usr/share/jboss/server/default/conf/jboss-service.xml could not be 
opened, does it exist?

(Fixed by apt-get install jboss-server-all, then editing
/etc/default/jboss and setting which server to start to "all")

After all that, there's still no sign of life from JBoss on 8080 or
8082... :-(


Andrew.

-- 
All views are my own  who else would want them?