Deepa Priyesh

Greenhorn
+ Follow
since Sep 07, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepa Priyesh

Recently i installed Weblogic Server 10,(RED HAT Linux version on UBUNTU, I am not sure if they are compatible) but i am not able to find startWLBuilder.sh file to start the builder to create the deployment descriptors. Can anybody help me, how to create the deployment descriptor other than write it manually.

I tried using weblogic.marathon.ddinit.EarInit but it gave me the following error


Loading content
Exception in thread "main" java.lang.RuntimeException: com.bea.xml.XmlRuntimeException: java.io.NotSerializableException: class javax.xml.namespace.QName is not Serializable, and thus cannot be deserialized.
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(RuntimeTylar.java:101)
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:66)
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:52)
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:131)
at weblogic.descriptor.BasicDescriptorManager.writeDescriptorBeanAsXML(BasicDescriptorManager.java:478)
at weblogic.descriptor.BasicDescriptorManager.writeDescriptorAsXML(BasicDescriptorManager.java:383)
at weblogic.descriptor.BasicDescriptorManager.writeDescriptorAsXML(BasicDescriptorManager.java:394)
at weblogic.descriptor.internal.DescriptorImpl.toXML(DescriptorImpl.java:365)
at weblogic.marathon.ddinit.EarInit.doCmdLineEarInit(EarInit.java:473)
at weblogic.marathon.ddinit.EarInit.main(EarInit.java:384)
Caused by: com.bea.xml.XmlRuntimeException: java.io.NotSerializableException: class javax.xml.namespace.QName is not Serializable, and thus cannot be deserialized.
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(RuntimeTylar.java:182)
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(RuntimeTylar.java:94)
...10 more
Caused by: java.io.NotSerializableException: class javax.xml.namespace.QName is not Serializable, and thus cannot be deserialized.
at java.io.ObjectInputStream.readObject(libgcj.so.70)
at java.util.HashMap.readObject(libgcj.so.70)
at java.lang.reflect.Method.invoke(libgcj.so.70)
at java.io.ObjectInputStream.callReadMethod(libgcj.so.70)
at java.io.ObjectInputStream.readObject(libgcj.so.70)
at java.io.ObjectInputStream.readFields(libgcj.so.70)
at java.io.ObjectInputStream.readObject(libgcj.so.70)
at java.util.HashMap.readObject(libgcj.so.70)
at java.lang.reflect.Method.invoke(libgcj.so.70)
at java.io.ObjectInputStream.callReadMethod(libgcj.so.70)
at java.io.ObjectInputStream.readObject(libgcj.so.70)
at java.io.ObjectInputStream.readFields(libgcj.so.70)
at java.io.ObjectInputStream.readObject(libgcj.so.70)
at com.bea.staxb.buildtime.internal.bts.BindingFile.forSer(BindingFile.java:77)
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(RuntimeTylar.java:163)
...11 more
13 years ago
Does Sun Java System Application Server Platform Edition 9.0 provide any deployment descriptor builder which can build Deployment descriptor for my ejb beam rather than write it manually.
13 years ago
Thanks Rob and Marc. I understood the fact that char type does not take negative values. May be i am thinking of it at the bit level and confusing my self. I am not still very clear about it. My doubt is

short 90 is 0000 0000 0101 1010
short -90 is 1111 1111 1010 0110

Now if we put 1111 1111 1010 0110 in a (unsigned type) char, shouldn't it be taken as decimal 65446 which would fall well within the range of char type(0 - 65536).

So char ch should accept a value -90 ??.

I am not very sure about my knowledge in bit calculations.
13 years ago
public class IntToChar
{
public static void main(String[] args)
{
char ch = -90;
System.out.println(ch);
}
}
when i run the above code its gives a compilation error - possible loss of precision. My doubt is when i give char ch = 90; i get an out put z, despite of the fact that 90 is taken 32 bit integer which is put into a 16 bit char. How is ch =-90 a different from that.
13 years ago