Srinivas Genji

Ranch Hand
+ Follow
since May 04, 2004
Merit badge: grant badges
For More
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 Srinivas Genji

Hi Everyone,
I`m getting an error when my client tries to access the service end point class (which is also an Stateless Session Bean - EJB3). My Server codes returns a DTO object, I guess this exception is due to DTO object marshalling to XML. I am using Jboss 4.2.2 AS. Here is the error given below :


Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.]
at org.jboss.ws.core.jaxws.JAXBSerializer.handleMarshallException(JAXBSerializer.java:122)
at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:86)
at org.jboss.ws.core.binding.SerializerSupport.serialize(SerializerSupport.java:57)
at org.jboss.ws.core.soap.ObjectContent.marshallObjectContents(ObjectContent.java:159)
at org.jboss.ws.core.soap.ObjectContent.transitionTo(ObjectContent.java:72)
at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
at org.jboss.ws.core.soap.SOAPContentElement.writeElement(SOAPContentElement.java:531)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825)
at org.jboss.ws.core.soap.SOAPElementWriter.writeElementInternal(SOAPElementWriter.java:149)
at org.jboss.ws.core.soap.SOAPElementWriter.writeElement(SOAPElementWriter.java:130)
at org.jboss.ws.core.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:291)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:343)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:306)
... 22 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:320)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:246)
at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:80)
... 36 more
Caused by: javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:240)
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:255)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:647)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:151)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:185)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:305)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:312)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:71)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:488)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:317)
... 38 more
Caused by: javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:556)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:642)
... 58 more



MainDTO which is getting returned back to client has a Collection of FormatDTO. If I try to remove the FormatDTO in MainDTO to test. Then the same error points to MainDTO. Please provide some suggestions to fix this issue.

cheers
Srinivasulu Genji
16 years ago
Hi Everyone,
I`m getting an error when my client tries to access the service end point class (which is also an Stateless Session Bean - EJB3). My Server codes returns a DTO object, I guess this exception is due to DTO object marshalling to XML. Here is the error given below :


Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.]
at org.jboss.ws.core.jaxws.JAXBSerializer.handleMarshallException(JAXBSerializer.java:122)
at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:86)
at org.jboss.ws.core.binding.SerializerSupport.serialize(SerializerSupport.java:57)
at org.jboss.ws.core.soap.ObjectContent.marshallObjectContents(ObjectContent.java:159)
at org.jboss.ws.core.soap.ObjectContent.transitionTo(ObjectContent.java:72)
at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
at org.jboss.ws.core.soap.SOAPContentElement.writeElement(SOAPContentElement.java:531)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840)
at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825)
at org.jboss.ws.core.soap.SOAPElementWriter.writeElementInternal(SOAPElementWriter.java:149)
at org.jboss.ws.core.soap.SOAPElementWriter.writeElement(SOAPElementWriter.java:130)
at org.jboss.ws.core.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:291)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:343)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:306)
... 22 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:320)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:246)
at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:80)
... 36 more
Caused by: javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:240)
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:255)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:647)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:151)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:185)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:305)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:312)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:71)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:488)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:317)
... 38 more
Caused by: javax.xml.bind.JAXBException: class com.sys.nhm.dto.FormatDTO nor any of its super class is known to this context.
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:556)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:642)
... 58 more



MainDTO which is getting returned back to client has a Collection of FormatDTO. If I try to remove the FormatDTO in MainDTO to test. Then the same error points to MainDTO. Please provide some suggestions to fix this issue.

cheers
Srinivasulu Genji
16 years ago
Hi Eveyryone,

I started using Hibernate and can any one explain how to handle Container Managed transaction. Here is my sample design

I have stateless session Bean and DAO (Hibernate) layer, session bean class has multiple DAO calls in a single session bean method. Reason behind Stateless session bean is to handle Container Managed Transaction. So Can any one help me how to handle CMT. How to create Hibernate Session, Can I use Session.openSession() or currentSession() ........... Provide some details on this.
Hi Everyone,
I have few basic questions and have answers for them too but not really convincing ,
1) There are two ways to declare String
String s = "Hello World";
String s1 = new String("Hello World"); ( I think there is some difference in memory management)
Why do we need two ways to declare the String. How different are they ?

2) Similarly for Declaring ArrayList
ArrayList a = new ArrayList(); --> This will create an ArrayList of size 10
ArrayList a1 = new ArrayList(10); --> this will also create ArrayList of 10
then why do we have two ways to do it any difference.

Can any one explain this in Kathy`s way, I was really impressed with the way Kathy explained things in her Head First Series.

cheers
Genji
16 years ago
Thanks Guys,
Firstly, I would like to apologise for posting the same question twice. Reason I felt is that the first post was not clearly communicating. I thought I would make it much more clearer to get the appropriate answer.

I am looking for an opensource License management Tool or Copy Protection tool for packaging my software.

Few other questions follows

How licensing is done normally ?
I have couple of answers which may be wrong too

1) Requesting for a licensed file during registration which has the Usage period, number of license allowed for the customer and so on. License file may obtain from Registering through internet.
2) Providing a Key with the software Packaged CD

I want to restrict the usage based on the number of licenses provided and protecting from illegal copies. Any Ideas please !
16 years ago
Is that possible to protect JAR files from copying. Any Reply or suggestions on this is really appreciated.
16 years ago
Hi Everyone,
How do I copy protect Jar files. I need this for licensing the software that we created. Is there any mechanism for this or any open source tools to do that
Thanks in Advance
16 years ago
Thanks for the Reply,
I`ve seen these opensource Installers, Will any one of those can do licensing (restricted installations based on MAC Address or using some technique)

Cheers
Srinivas Genji
Hi,
I`m looking for a Java Installer, which has to restrict multiple installation. More features on licensed installations.
Hi,
I`m looking for a Java Installer, which has to restrict multiple installation. More features on licensed installations.
Hey,
I`m working on a project which needs Inventory Management, Order Management and Billing/Invoice System. Can anyone help me in finding out the Open source Projects available for Inventory Management, Order Management and Billing System. It can be One Opensource project which comprises all or separate Projects for each above mentioned modules.

I really appreciate the help in pointing out the right tool.

cheers
Hey,
I`m working on a project which needs Inventory Management, Order Management and Billing/Invoice System. Can anyone help me in finding out the Open source Projects available for Inventory Management, Order Management and Billing System. It can be One Opensource project which comprises all or separate Projects for each above mentioned modules.

I really appreciate the help in pointing out the right tool.

cheers
17 years ago
i have a war file that works great in Tomcat 5.5 and when i tried to put this war in Tomcat 5.0.27 or 4.1.27 getting this exception.

Can anyone explain wat might be the problem
javax.servlet.ServletException: Can't get definitions factory from context.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.index1_jsp._jspService(index1_jsp.java:76)

cheers
Srinivas
18 years ago
JSP
Hi,
how should i communicate to the Radius(AAA) server from Tomcat Server. I`ll write an application on top of Tomcat and i`ll authenticate the user using Radius server and perform some action for authenticated users.
Cheers
Srinivas Genji
18 years ago