comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* J2SE Bluetooth and java comm API - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16e6786cb0f953d8
* JAXB : comparing and updating trees - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea9230ac3af8440e
* Function calls... - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fffeec3e18ff1713
* vertical text - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b086be2d1424b953
* Vertical Text - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5c0c8b567949fa11
* vertical text - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/39482a44227eec6a
* Cool system icons - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/79bb0b3e3c49fabb
* JNI and storing C pointers in the Java Class variables - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3948fccf951482eb
* ip string to long and back again - 4 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e5c9c07b6c5b6449
* Overriding Methods - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96c976ed93574cf5
* Problem starting Tomcat using Idea or Eclipse - NoClassDefFoundError: 
javax/management/MBeanRegistration - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/448e51d934ae4b62
* Multiple char[] causing problems during SAX parsing - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16bb70967c0f8178
* DOMBuilder failure -- Cannot have more than one root on a DOM - 1 messages, 1 
author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9c65b28b541753d7
* wondering why my array of strings (String[]) is not upcastable to Object ? 
_clb_ - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e18b125925e3150f
* [jsp]: getProperty - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6230ddcfe0818100
* About java help under linux - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6578e87a6d01bdc9
* 1+ program writing simulatenously into a file, possible? - 2 messages, 2 
authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3405f5202a0623a4

==============================================================================
TOPIC: J2SE Bluetooth and java comm API
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16e6786cb0f953d8
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 28 2004 5:59 pm
From: Eta  

Hi,

sorry but on my source code I have flush() the OutputStream....you can 
see it at the end of souce code!

Best regards,

Eta


> 
> As is shown here, you have to flush() the OutputStream:
> 
> outputStream.write(messageString.getBytes());
> outputStream.flush();
> 
> If you don't flush the stream the message you sent is kept in the buffer 
> and might never be sent.
> The message would only send without the flush command if the 
> OutputStream buffer is full.
> 



== 2 of 2 ==
Date: Tues, Dec 28 2004 6:32 pm
From: ByteCoder  

Eta wrote:
> Hi,
> 
> sorry but on my source code I have flush() the OutputStream....you can 
> see it at the end of souce code!
> 
> Best regards,

What happens if you use the exact same code in the example and just 
change the message String?

-- 
-------------
- ByteCoder -           ...I see stupid people
-------------
                    Curiosity *Skilled* the cat




==============================================================================
TOPIC: JAXB : comparing and updating trees
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea9230ac3af8440e
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 9:20 am
From: [EMAIL PROTECTED] (Jean-Marie Condom) 

hello

after having loaded two xml files (file1.xml and file2.xml),
using unmarshaling process and based on the same xml schema, 
i get two trees (tree1 and tree2) and i have to do the following operations :
1 - compare both trees
to see whether they are identical or not
2 - update tree1 from tree2 if sub-trees are present in tree2 
and lacking in tree1

does jaxb provides methods to do such operations ?

thanks in advance

Jean-Marie




==============================================================================
TOPIC: Function calls...
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fffeec3e18ff1713
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 5:43 pm
From: Andrew McDonagh  

Raymond Martineau wrote:
> On Sun, 26 Dec 2004 11:10:11 +0000, Andrew McDonagh
> <[EMAIL PROTECTED]> wrote:
> 
> 
>>The usual name for this is 'Command pattern', however, like Tony said, 
>>the AbstractFunction class should always be an interface.
> 
> 
> This was exactly what I was looking for - a standardized design pattern.
> Thanks.
> 

No probs, glad to help.

> I was being a bit cautious - Java is ment to be programmed properly with
> specific design patterns, 

;-)  and of course you mean all OO languages are meant to be designed 
properly, using the appropriate design patterns where applicable

>but it's hard to know about these patterns if you
> haven't been taught about them.
> 

True, the uni's do not always cover design patterns enough, but then 
thats what books/NGs/Google are for ;-)

There's comp.software.patterns NG for general discussion of patterns.

Feel free to talk about Java implementation of those patterns here, 
otherwise the OffTopic police tend to get iffy - though it doesn't 
bother me at all.

Andrew





==============================================================================
TOPIC: vertical text
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b086be2d1424b953
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 9:48 am
From: "SnaiL"  

http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html





==============================================================================
TOPIC: Vertical Text
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5c0c8b567949fa11
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 9:48 am
From: "SnaiL"  

http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html





==============================================================================
TOPIC: vertical text
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/39482a44227eec6a
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 9:48 am
From: "SnaiL"  

http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html





==============================================================================
TOPIC: Cool system icons
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/79bb0b3e3c49fabb
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 6:08 pm
From: Carl  

Tony Morris wrote:
> "Arun" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> 
>>Does anyone know of a site that has free cool high-color icons?
>>
>>I have looked far and wide but to no avail.
>>
>>I'm looking for something like the apple icons. Need the usual open new
>>close etc
>>
> 
> 
> The "Java look and feel Graphics Repository" is conventional, not
> necessarily designed to be "cool", but consistent.
> Personally, I prefer consistency over coolness; you might choose otherwise.
> http://java.sun.com/developer/techDocs/hi/repository/
> 

There is no reason to believe that "cool" and consistent need be 
mutually exclusive. In my experience, the java.sun icons are neither.




==============================================================================
TOPIC: JNI and storing C pointers in the Java Class variables
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3948fccf951482eb
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 28 2004 10:19 am
From: [EMAIL PROTECTED] (Ph. Barthelemy) 

Hi,

I am trying to write a piece a JNI code, and I have questions about
pointers read back and forth from the Java-side to the C-side.

Let say the C-side has two functions to access a device.
'connect' which opens the device and return a handle, eg. a pointer to
struct
'write' which writes bytes to the device, and needs the handle as a
parameters

So the Java-side calls the native 'connect' and retrieving the handle.
and later on, the java-side calls 'write'.

I'd like to stroe the handle as a member variable of the Java class.
So a need the translate a C pointer to a Java type.

Something like does not works : the 'handle' field is rubbish and a
can not reuse it in the 'write' function.

// partial code...
JNIEXPORT jint Java_package_class_connect( ... )
{
   handle *h; // handle a struct...
   h = openDevice();

   jclass cls = (*env)->GetObjectClass(env, obj);
   jfieldID fid = (*env)->GetFieldID(env, cls, "handle",
"Ljava/lang/Object;");
   (*env)->SetObjectField(env, obj, fid, h);            

}
 

My question is :
how am I suppose the cast the handle to pass it to the java-side ?
As an 'jobject' ?
(if so than my code maybe broken somewhere else, which is possible...
)

( I can not use return values, as the actual code uses 2 handles... )


something like 

TIA
--Philippe

PS :
you want more details ?
I am trying the JNIze a bit of libusb-win32 to get access to USB
devices.
so my handles are actually a pointer to a usb_dev_handle and a pointer
to a usb_device.



== 2 of 2 ==
Date: Tues, Dec 28 2004 7:52 pm
From: Gordon Beaton  

On 28 Dec 2004 10:19:49 -0800, Ph. Barthelemy wrote:
> I am trying to write a piece a JNI code, and I have questions about
> pointers read back and forth from the Java-side to the C-side.
> 
> Let say the C-side has two functions to access a device.
> 'connect' which opens the device and return a handle, eg. a pointer to
> struct
> 'write' which writes bytes to the device, and needs the handle as a
> parameters
> 
> So the Java-side calls the native 'connect' and retrieving the handle.
> and later on, the java-side calls 'write'.
> 
> I'd like to stroe the handle as a member variable of the Java class.
> So a need the translate a C pointer to a Java type.

Store the pointers as longs in the Java object. Pass them back as
longs to the native functions that need them, and do the necessary
casts in the native code.

If you can't use return values, then use SetLongField() to update the
fields in the java object.

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e




==============================================================================
TOPIC: ip string to long and back again
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e5c9c07b6c5b6449
==============================================================================

== 1 of 4 ==
Date: Tues, Dec 28 2004 12:17 pm
From: "Ryan Stewart"  

"coltrane" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Does any class provide a method for converting a string ip address to a
> long and long to ip address?
>
The other posts will help you along, but I'm curious how you intend to 
represent an IP as a long. Does 127.0.0.1 become 127001? If so, then what 
about 12.70.0.1? 





== 2 of 4 ==
Date: Tues, Dec 28 2004 7:41 pm
From: ByteCoder  

Ryan Stewart wrote:
> "coltrane" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> 
>>Does any class provide a method for converting a string ip address to a
>>long and long to ip address?
>>
> 
> The other posts will help you along, but I'm curious how you intend to 
> represent an IP as a long. Does 127.0.0.1 become 127001? If so, then what 
> about 12.70.0.1? 

You could use leading zero's. So 127.0.0.1 would become: "127000000001"

-- 
-------------
- ByteCoder -           ...I see stupid people
-------------
                    Curiosity *Skilled* the cat



== 3 of 4 ==
Date: Tues, Dec 28 2004 1:12 pm
From: "Ryan Stewart"  

"ByteCoder" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Ryan Stewart wrote:
>> The other posts will help you along, but I'm curious how you intend to 
>> represent an IP as a long. Does 127.0.0.1 become 127001? If so, then what 
>> about 12.70.0.1?
>
> You could use leading zero's. So 127.0.0.1 would become: "127000000001"
>
Duuuh. That didn't occur to me :) 





== 4 of 4 ==
Date: Tues, Dec 28 2004 8:26 pm
From: "Virgil Green"  

Ryan Stewart wrote:
> "coltrane" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Does any class provide a method for converting a string ip address
>> to a long and long to ip address?
>>
> The other posts will help you along, but I'm curious how you intend to
> represent an IP as a long. Does 127.0.0.1 become 127001? If so, then
> what about 12.70.0.1?

I have to assume that the OP meant something like this:

192.168.0.1 in Hex is
C0 A8 00 01, which in binary is
11000000 10101000 00000000 00000001,
 which, when concatenated and treated as a long would be 3232235521 decimal.

 - Virgil






==============================================================================
TOPIC: Overriding Methods
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96c976ed93574cf5
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 28 2004 12:26 pm
From: "Ryan Stewart"  

<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> The curious thing about Java is when I override a method in a derived
> class, the overridden method is called in the base class. I'm hoping
> this is somehow my mistake, as I'm new to Java and I cannot imagine why
> anyone would do this, but it seems like the behaviour I'm witnessing.
>
See the thread entitled "Can Java Programmer Learn C++ Quickly?" in this 
group for a discussion of this topic. 





== 2 of 2 ==
Date: Tues, Dec 28 2004 1:39 pm
From: "jeffc"  


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Mr Smith: It's noteworthy that C++ doesn't have this problem, you can
> call public methods from the constructor as long as they are not
> declared virtual.

Yes, exactly.  In C++, the methods are *not* virtual by default, and of course
in Java they are.  So what you're doing in Java is the equivalent of calling
virtual methods from the constructor in C++.  Chris mentioned that final methods
would be fine. That means it's not virtual.






==============================================================================
TOPIC: Problem starting Tomcat using Idea or Eclipse - NoClassDefFoundError: 
javax/management/MBeanRegistration
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/448e51d934ae4b62
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 11:46 am
From: "msplush"  

I, too, am facing a similar problem.
I set my Log4j on info, hence the multitude of output statements.
It is as follows:

HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
WebappLoader[/iApp/ssc]: Deploying class repositories to work directory
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\iApp_ssc
WebappLoader[/iApp/ssc]: Deploy class files /WEB-INF/classes to
c:\eclipse\workspace\SMS-SSC\WEB-INF\classes
WebappLoader[/iApp/ssc]: Reloading checks are enabled for this Context
StandardManager[/iApp/ssc]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/iApp/ssc]: Seeding of random number generator has been
completed
StandardWrapper[/iApp/ssc:default]: Loading container servlet default
StandardWrapper[/iApp/ssc:invoker]: Loading container servlet invoker
Log4JInitializer: Using
//C://eclipse//workspace//SMS-SSC//WEB-INF//classes//log4j.properties
with a watch delay of 120000
INFO  (SystemPropertiesOutputter) | System Properties: | [main]
INFO  (SystemPropertiesOutputter) |     java.runtime.name = Java(TM) 2
Runtime Environment, Standard Edition | [main]
INFO  (SystemPropertiesOutputter) |     sun.boot.library.path = C:\Program
Files\Java\j2re1.4.2_06\bin | [main]
INFO  (SystemPropertiesOutputter) |     java.vm.version = 1.4.2_06-b03 |
[main]
INFO  (SystemPropertiesOutputter) |     java.vm.vendor = Sun Microsystems
Inc. | [main]
INFO  (SystemPropertiesOutputter) |     java.vendor.url =
http://java.sun.com/ | [main]
INFO  (SystemPropertiesOutputter) |     path.separator = ; | [main]
INFO  (SystemPropertiesOutputter) |     java.vm.name = Java HotSpot(TM)
Client VM | [main]
INFO  (SystemPropertiesOutputter) |     file.encoding.pkg = sun.io |
[main]
INFO  (SystemPropertiesOutputter) |     user.country = US | [main]
INFO  (SystemPropertiesOutputter) |     sun.os.patch.level =  | [main]
INFO  (SystemPropertiesOutputter) |     java.vm.specification.name = Java
Virtual Machine Specification | [main]
INFO  (SystemPropertiesOutputter) |     user.dir =
C:\eclipse\workspace\SMS-SSC | [main]
INFO  (SystemPropertiesOutputter) |     java.runtime.version =
1.4.2_06-b03 | [main]
INFO  (SystemPropertiesOutputter) |     java.awt.graphicsenv =
sun.awt.Win32GraphicsEnvironment | [main]
INFO  (SystemPropertiesOutputter) |     java.endorsed.dirs = C:\Program
Files\Java\j2re1.4.2_06\lib\endorsed | [main]
INFO  (SystemPropertiesOutputter) |     os.arch = x86 | [main]
INFO  (SystemPropertiesOutputter) |     java.io.tmpdir =
C:\DOCUME~1\rousep2\LOCALS~1\Temp\ | [main]
INFO  (SystemPropertiesOutputter) |     line.separator =
| [main]
INFO  (SystemPropertiesOutputter) |     java.vm.specification.vendor = Sun
Microsystems Inc. | [main]
INFO  (SystemPropertiesOutputter) |     user.variant =  | [main]
INFO  (SystemPropertiesOutputter) |     os.name = Windows XP | [main]
INFO  (SystemPropertiesOutputter) |     sun.java2d.fontpath =  | [main]
INFO  (SystemPropertiesOutputter) |     java.security.manager =  | [main]
INFO  (SystemPropertiesOutputter) |     java.library.path = C:\Program
Files\Java\j2re1.4.2_06\bin;.;C:\WINXP\System32;C:\WINXP;C:\WINXP\system32;C:\WINXP;C:\WINXP\System32\Wbem
| [main]
INFO  (SystemPropertiesOutputter) |     java.specification.name = Java
Platform API Specification | [main]
INFO  (SystemPropertiesOutputter) |     java.class.version = 48.0 | [main]
INFO  (SystemPropertiesOutputter) |     java.util.prefs.PreferencesFactory
= java.util.prefs.WindowsPreferencesFactory | [main]
INFO  (SystemPropertiesOutputter) |     os.version = 5.1 | [main]
INFO  (SystemPropertiesOutputter) |     user.home = C:\Documents and
Settings\rousep2 | [main]
INFO  (SystemPropertiesOutputter) |     user.timezone = America/New_York |
[main]
INFO  (SystemPropertiesOutputter) |     java.security.policy =
C:\jakarta-tomcat-4.1.31\conf\catalina.policy | [main]
INFO  (SystemPropertiesOutputter) |     catalina.useNaming = false |
[main]
INFO  (SystemPropertiesOutputter) |     java.awt.printerjob =
sun.awt.windows.WPrinterJob | [main]
INFO  (SystemPropertiesOutputter) |     file.encoding = Cp1252 | [main]
INFO  (SystemPropertiesOutputter) |     java.specification.version = 1.4 |
[main]
INFO  (SystemPropertiesOutputter) |     catalina.home =
C:\jakarta-tomcat-4.1.31 | [main]
INFO  (SystemPropertiesOutputter) |     user.name = rousep2 | [main]
INFO  (SystemPropertiesOutputter) |     java.class.path =
C:\eclipse\workspace\SMS-SSC\WEB-INF\classes;C:\eclipse\workspace\SMS-SSC\lib\activation.jar;C:\eclipse\workspace\SMS-SSC\lib\avalon-framework.jar;C:\eclipse\workspace\SMS-SSC\lib\batik.jar;C:\eclipse\workspace\SMS-SSC\lib\bread4j.jar;C:\eclipse\workspace\SMS-SSC\lib\certj.jar;C:\eclipse\workspace\SMS-SSC\lib\classes12.jar;C:\eclipse\workspace\SMS-SSC\lib\ct_admin_api.jar;C:\eclipse\workspace\SMS-SSC\lib\ct_runtime_api.jar;C:\eclipse\workspace\SMS-SSC\lib\displaytag-1.0-b2.jar;C:\eclipse\workspace\SMS-SSC\lib\fop.jar;C:\eclipse\workspace\SMS-SSC\lib\imedia.jar;C:\eclipse\workspace\SMS-SSC\lib\iText.jar;C:\eclipse\workspace\SMS-SSC\lib\jakarta-oro.jar;C:\eclipse\workspace\SMS-SSC\lib\jaxb-rt.jar;C:\eclipse\workspace\SMS-SSC\lib\jaxb-xjc.jar;C:\eclipse\workspace\SMS-SSC\lib\jcert.jar;C:\eclipse\workspace\SMS-SSC\lib\jdbc2_0-stdext.jar;C:\eclipse\workspace\SMS-SSC\lib\jnet.jar;C:\eclipse\workspace\SMS-SSC\lib\jsse.jar;C:\eclipse\workspace\SMS-SSC\lib\kivaMigration2.jar;C:\eclipse\workspace\SMS-SSC\lib\legacyAuthZRules.jar;C:\eclipse\workspace\SMS-SSC\lib\log4j-1.2.5.jar;C:\eclipse\workspace\SMS-SSC\lib\mail.jar;C:\eclipse\workspace\SMS-SSC\lib\nfs2.jar;C:\eclipse\workspace\SMS-SSC\lib\nfs2_api.jar;C:\eclipse\workspace\SMS-SSC\lib\nfs2_impl.jar;C:\eclipse\workspace\SMS-SSC\lib\nfs2_spi.jar;C:\eclipse\workspace\SMS-SSC\lib\nfsclientutils.jar;C:\eclipse\workspace\SMS-SSC\lib\nfscommon.jar;C:\eclipse\workspace\SMS-SSC\lib\nfsdom.jar;C:\eclipse\workspace\SMS-SSC\lib\nfsidl45.jar;C:\eclipse\workspace\SMS-SSC\lib\nfsservices.jar;C:\eclipse\workspace\SMS-SSC\lib\nfsutils.jar;C:\eclipse\workspace\SMS-SSC\lib\pensidl45.jar;C:\eclipse\workspace\SMS-SSC\lib\release.jar;C:\eclipse\workspace\SMS-SSC\lib\rsajsse.jar;C:\eclipse\workspace\SMS-SSC\lib\soap.jar;C:\eclipse\workspace\SMS-SSC\lib\sslj.jar;C:\eclipse\workspace\SMS-SSC\lib\struts.jar;C:\eclipse\workspace\SMS-SSC\lib\terajdbc4.jar;C:\eclipse\workspace\SMS-SSC\lib\vbjorb.jar;C:\eclipse\workspace\SMS-SSC\lib\web-common.jar;C:\eclipse\workspace\SMS-SSC\lib\xalan.jar;C:\eclipse\workspace\SMS-SSC\lib\xerces.jar;C:\eclipse\workspace\SMS-SSC\lib\xml-apis.jar;C:\jakarta-tomcat-4.1.31\bin\tomcat-jni.jar;C:\jakarta-tomcat-4.1.31\bin\bootstrap.jar;C:\jakarta-tomcat-4.1.31\bin\commons-daemon.jar;C:\jakarta-tomcat-4.1.31\bin\jaasbootstrap.jar;C:\jakarta-tomcat-4.1.31\common\lib\servlet.jar;C:\jakarta-tomcat-4.1.31\common\lib\activation.jar;C:\jakarta-tomcat-4.1.31\common\lib\ant.jar;C:\jakarta-tomcat-4.1.31\common\lib\ant-launcher.jar;C:\jakarta-tomcat-4.1.31\common\lib\commons-collections.jar;C:\jakarta-tomcat-4.1.31\common\lib\commons-dbcp-1.1.jar;C:\jakarta-tomcat-4.1.31\common\lib\commons-logging-api.jar;C:\jakarta-tomcat-4.1.31\common\lib\commons-pool-1.1.jar;C:\jakarta-tomcat-4.1.31\common\lib\jasper-compiler.jar;C:\jakarta-tomcat-4.1.31\common\lib\jasper-runtime.jar;C:\jakarta-tomcat-4.1.31\common\lib\jdbc2_0-stdext.jar;C:\jakarta-tomcat-4.1.31\common\lib\jndi.jar;C:\jakarta-tomcat-4.1.31\common\lib\jta.jar;C:\jakarta-tomcat-4.1.31\common\lib\mail.jar;C:\jakarta-tomcat-4.1.31\common\lib\naming-common.jar;C:\jakarta-tomcat-4.1.31\common\lib\naming-factory.jar;C:\jakarta-tomcat-4.1.31\common\lib\naming-resources.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-warp.jar;C:\jakarta-tomcat-4.1.31\server\lib\catalina.jar;C:\jakarta-tomcat-4.1.31\server\lib\catalina-ant.jar;C:\jakarta-tomcat-4.1.31\server\lib\commons-beanutils.jar;C:\jakarta-tomcat-4.1.31\server\lib\commons-digester.jar;C:\jakarta-tomcat-4.1.31\server\lib\commons-fileupload-1.0.jar;C:\jakarta-tomcat-4.1.31\server\lib\commons-logging.jar;C:\jakarta-tomcat-4.1.31\server\lib\commons-modeler.jar;C:\jakarta-tomcat-4.1.31\server\lib\jaas.jar;C:\jakarta-tomcat-4.1.31\server\lib\jakarta-regexp-1.3.jar;C:\jakarta-tomcat-4.1.31\server\lib\mx4j-jmx.jar;C:\jakarta-tomcat-4.1.31\server\lib\servlets-common.jar;C:\jakarta-tomcat-4.1.31\server\lib\servlets-default.jar;C:\jakarta-tomcat-4.1.31\server\lib\servlets-invoker.jar;C:\jakarta-tomcat-4.1.31\server\lib\servlets-manager.jar;C:\jakarta-tomcat-4.1.31\server\lib\servlets-webdav.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-coyote.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-http11.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-jk2.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-jk.jar;C:\jakarta-tomcat-4.1.31\server\lib\tomcat-util.jar
| [main]
INFO  (SystemPropertiesOutputter) |     java.vm.specification.version =
1.0 | [main]
INFO  (SystemPropertiesOutputter) |     sun.arch.data.model = 32 | [main]
INFO  (SystemPropertiesOutputter) |     java.home = C:\Program
Files\Java\j2re1.4.2_06 | [main]
INFO  (SystemPropertiesOutputter) |     java.specification.vendor = Sun
Microsystems Inc. | [main]
INFO  (SystemPropertiesOutputter) |     user.language = en | [main]
INFO  (SystemPropertiesOutputter) |     awt.toolkit =
sun.awt.windows.WToolkit | [main]
INFO  (SystemPropertiesOutputter) |     java.vm.info = mixed mode | [main]
INFO  (SystemPropertiesOutputter) |     java.version = 1.4.2_06 | [main]
INFO  (SystemPropertiesOutputter) |     java.ext.dirs = C:\Program
Files\Java\j2re1.4.2_06\lib\ext | [main]
INFO  (SystemPropertiesOutputter) |     sun.boot.class.path = C:\Program
Files\Java\j2re1.4.2_06\lib\rt.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\sunrsasign.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\jsse.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\jce.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\charsets.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\ext\dnsns.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\ext\ldapsec.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\ext\localedata.jar;C:\Program
Files\Java\j2re1.4.2_06\lib\ext\sunjce_provider.jar | [main]
INFO  (SystemPropertiesOutputter) |     java.vendor = Sun Microsystems
Inc. | [main]
INFO  (SystemPropertiesOutputter) |     java.security.auth.login.config =
C:\eclipse\workspace\PROPERTIES\current\j2ee\jaaslogin.config | [main]
INFO  (SystemPropertiesOutputter) |     catalina.base =
C:\jakarta-tomcat-4.1.31 | [main]
INFO  (SystemPropertiesOutputter) |     file.separator = \ | [main]
INFO  (SystemPropertiesOutputter) |     java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi | [main]
INFO  (SystemPropertiesOutputter) |     sun.cpu.endian = little | [main]
INFO  (SystemPropertiesOutputter) |     sun.io.unicode.encoding =
UnicodeLittle | [main]
INFO  (SystemPropertiesOutputter) |     sun.cpu.isalist = pentium i486
i386 | [main]
ERROR (Digester) | End event threw exception | [main]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:338)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:395)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Caused by: java.lang.IllegalStateException: ContainerBase.addChild:
start: LifecycleException:  Context startup failed due to previous
errors
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:777)
at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:115)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:135)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:758)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:653)
... 35 more
mobaraki wrote:
> I am trying to start Tomcat (debugging through an IDE), however I get
> the problem below. My classpath does include a j2ee.jar file (from a
> J2EE 1.4 SDK) that has the MBeanRegistration class. I am using Tomcat
> V4.1. I have tried numerous things but to no avail. Can someone
please
> help?
>
> Thanks and Regards,
> Mobaraki.
>
>
> D:\Sun\AppServer\jdk\bin\javaw.exe  "-Djava.endorsed.dirs=D:\Program
> Files\Apache Group\Tomcat 4.1\bin;D:\Program Files\Apache
Group\Tomcat
> 4.1\common\lib" "-Dcatalina.base=C:\Documents and
>
Settings\Administrator.INFOBASE-HAHHYT\.IntelliJIdea\system\tomcat_Shiraz_20c8437f"
> "-Dcatalina.home=D:\Program Files\Apache Group\Tomcat 4.1"
> "-Djava.io.tmpdir=D:\Program Files\Apache Group\Tomcat 4.1\temp"
> -Xdebug -Xnoagent -Djava.compiler=NONE
>
-Xrunjdwp:transport=dt_socket,address=infobase-hahhyt:1714,suspend=y,server=n
> -classpath "D:\Sun\AppServer\jdk\lib\tools.jar;D:\Program
Files\Apache
> Group\Tomcat 4.1\bin\bootstrap.jar"
> org.apache.catalina.startup.Bootstrap start
> 06-Jul-2004 12:20:26 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Exception during startup processing
> java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:324)
>       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Caused by: java.lang.NoClassDefFoundError:
> javax/management/MBeanRegistration
>       at java.lang.ClassLoader.findBootstrapClass(Native Method)
>       at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:284)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>       at java.lang.ClassLoader.defineClass0(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>       at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>       at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)
>       at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:141)
>       at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1097)
>       at
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
>       at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)
>       at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>       at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>       at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>       ... 5 more





==============================================================================
TOPIC: Multiple char[] causing problems during SAX parsing
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/16bb70967c0f8178
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 11:52 am
From: [EMAIL PROTECTED] 

I am SAX pasring an XML file using a schema (Xerces, XMLReader).  As I
understand SAX, it creates a single char[] that holds every character
in the document.  However, when I debug my code (in debug mode), it
shows different arrays being used as an argument to characters(ch,
start, length).  The result is an eventual NumberFormatException.

Unfortunately, I am not able to show you my code.  However, this
behavior started when I switched from WebSphere 4.0 to Tomcat 5.0 using
the same version of Xerces.

It is as if the parser started to perceive my XML as multiple
documents.  The arrays often contain whitespace, even though I use an
empty ignoreWhitespace() method.

Anybody relate to any part of this?





==============================================================================
TOPIC: DOMBuilder failure -- Cannot have more than one root on a DOM
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9c65b28b541753d7
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 8:03 pm
From: Collin VanDyck  

> I will look into a similar JDOM utility -- though, I am really curious 
> as to why I am getting this error.

Update: using the latest JDOM's SAXHandler was exactly what I needed. I 
like how you can set the DOCTYPE in a org.jdom.Document after the 
org.jdom.Document has been created. Although I don't like the extra step 
of converting the org.jdom.Document to an org.w3c.dom.Document, it's an 
acceptable trade-off for the convenience of the SAXHandler.




==============================================================================
TOPIC: wondering why my array of strings (String[]) is not upcastable to Object 
? _clb_
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e18b125925e3150f
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 12:18 pm
From: [EMAIL PROTECTED] 


Thank you, Ryan.   that makes sense.   My understanding of what you
said is that array initializers of
the form   { item, item, item }  are only meant to be used when
initializing an array.. not in other contexts (like
i was trying to use them).      Works for me  (all the more so since i
have a work-around) 

appreciate your response.
/chris





==============================================================================
TOPIC: [jsp]: getProperty
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6230ddcfe0818100
==============================================================================

== 1 of 1 ==
Date: Tues, Dec 28 2004 9:17 pm
From: "Marcus Reiter"  

Okay, fine.
The reason is - this is part of a task for uni,
and in that exercise we are only allowed to use plain jsp
and only to use skriptlet code if really necessary.

I can't find a way, but the prof. said we should put the values coming from
the
database into a bean and then to retrieve them from there.
But the problem is that the database is full of several entries and
so I had to put each entry into a bean and each bean into a vector.
Now I don't see a way of how to print out each value by using the
getProperty / setProperty Tag.

Even if the Vector would contain plain Strings instead of Beans -
then it would print out the values without html formating -
of course I could even include that into my vector -
but then html code and data is mixed and that's even worse imho!

What do you think?

Marcus






==============================================================================
TOPIC: About java help under linux
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6578e87a6d01bdc9
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 28 2004 12:18 pm
From: [EMAIL PROTECTED] (kevin) 

Hi guys:

I wonder if there is some help documents available under linux for
java, like chm help document for windows, I installed gnome chm
viewer, but it is not so functional compare with that under windows,
so, could you give some suggestions about how I can get the JAVA API
query function with linux.


thnx
br

kev



== 2 of 2 ==
Date: Tues, Dec 28 2004 4:21 pm
From: Sudsy  

kevin wrote:
> Hi guys:
> 
> I wonder if there is some help documents available under linux for
> java, like chm help document for windows, I installed gnome chm
> viewer, but it is not so functional compare with that under windows,
> so, could you give some suggestions about how I can get the JAVA API
> query function with linux.

I'm not familiar with the tools you cite. I just keep a browser window
open to the javadocs. Easy to navigate, hypertext links, etc. What else
do you need?




==============================================================================
TOPIC: 1+ program writing simulatenously into a file, possible?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3405f5202a0623a4
==============================================================================

== 1 of 2 ==
Date: Tues, Dec 28 2004 1:17 pm
From: [EMAIL PROTECTED] (TonY) 

Hi,
i need to solve this problem using Java
Is it possible for two or more applications to write *simulataneously*
into a shared file?
do i have to use RandomAccessFile? is there any system settingst to do


thanks



== 2 of 2 ==
Date: Tues, Dec 28 2004 1:42 pm
From: "Ann"  


"TonY" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> i need to solve this problem using Java
> Is it possible for two or more applications to write *simulataneously*
> into a shared file?
> do i have to use RandomAccessFile? is there any system settingst to do
>
>
> thanks

Since you say *simulataneously* the answer is no.





==============================================================================

You received this message because you are subscribed to the Google
Groups "comp.lang.java.programmer" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to