Tuesday, July 28, 2009

Getting rid from error "setProperty must be overridden by all subclasses of SOAPMessage" in JBoss 4.2.3

I am using JBoss 4.2.3 with JDK 1.6.0_11 and had the following error while running client to call webservice as following:

ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:83)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:217)



Solution: https://jira.jboss.org/jira/browse/JBWS-1439

Thursday, July 09, 2009

Simple eclipse problem screwed me up..

I imported an ear file and since this file did not have java source file so i copied all source file in src folder generated by eclipse.

what is next...I needed to modify in source code and deploye on JBoss server.
So, i tried to deploy it on JBoss server but message was showing..."Publish failed using Ant publisher".

I tried to fix this issue by changing so many configuration but i couldn't :(
even i tried to googling this problem but i did not find any luck.
so i tried to copy the message from details and when i copied and paste in text editor there was more messge as following.

Publish failed using Ant publisher
unable to assemble module
duplicate entry: org/jboss/seam/example/registration/test/RegisterTest.class

ohhh...this was silly problem... later I realised that there was and imported classes that should be deleted so I deleted all modified class from ImportedClasses and this got fixed :-)

Monday, April 06, 2009

link databse 2009

Index: http://20bits.com/articles/interview-questions-database-indexes/

Sunday, April 05, 2009

Choosing among JCA, JMS, and Web services for EAI

http://www.ibm.com/developerworks/webservices/library/ws-jcajms.html

Thursday, March 12, 2009

XML DTDs vs schemas

XML DTDs vs schemas
Takeaway: Developers familiar with XML know that DTDs and schemas serve a similar purpose, but the debate over which one to use shows no signs of settling down. Find out what XML newsletter columnist Brian Schaffner thinks.

Every technology has its share of controversial topics, and XML is not immune to debate—especially when it comes to document type definitions (DTDs) and schemas. Both of these XML technologies perform similar functions, but the argument over which you should use rages on. Let’s look at some of the pros and cons of each.

The role of DTDs and schemas
Essentially, DTDs and schemas fulfill the same purpose: helping XML developers describe the structure and data within their XML documents. Without DTDs and schemas, it would be difficult to determine whether an XML document is valid in terms of it meeting certain structural and data type criteria.

The DTD or schema provides the XML parser with a description of what a particular type of XML document should look like. For example, it will say whether a <City> element can be contained within an <Address> element. It will also say how many <City> elements the parser should expect to find in the <Address> element, and it can describe the type of data within the element.

The DTD argument
DTDs, which have been around longer than XML, describe the type of document you're dealing with. When XML arrived as a specification, certain concepts were considered to help protect against mistakes within the document. One concept, validation, is the process of comparing an XML document to its DTD.

Wednesday, March 04, 2009

Soundex

from http://en.wikipedia.org/wiki/Soundex

Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for names with the same pronunciation to be encoded to the same representation so that they can be matched despite minor differences in spelling[1]. Soundex is the most widely known of all phonetic algorithms and is often used (incorrectly) as a synonym for "phonetic algorithm". Improvements to Soundex are the basis for many modern phonetic algorithms

Implementation

src/org/apache/commons/codec/language/Soundex.java&q=soundex%20lang:java
from http://www.google.com/codesearch/p?hl=en#CskViEIa27Y/src/org/apache/commons/codec/language/Soundex.java&q=soundex%20lang:java

Saturday, February 28, 2009

Thursday, February 19, 2009

JSF Include And Templating

Inside Facelets - Part 3: Templating and Re-Use


This is the third part in a series of articles about Facelets, an alternative view technology for building JSF applications. Facelets is a powerful templating system that enables you to define JSF views using HTML-style templates, reduces the amount of code necessary to integrate components into the view, and doesn't require a web container. This article explains how you can use Facelets for templating inside of your JavaServer Faces projects.


--------------------------------------------------------------------------------

For any view technology to succeed, it must have some aspect of templating and re-use that's both easy to use and understand. Facelets technology solves this issue in a way that is ideal for JavaServer Faces while keeping that sense of familiarity to traditional, tag-based user interfaces. This article covers the possible ways to increase re-use and simplify maintenance on your JavaServer Faces project.

When people first start creating web pages, they often find themselves repeating content across multiple files. As a developer, this can be frustrating when your object-oriented tendencies kick in. Wouldn't it be nice to simply maintain that content in one spot?

Wednesday, February 04, 2009

jboss seam learning

http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/

Sunday, January 25, 2009

layered masking of screen using css and iframe

this works for mozilla---
<div id="searchPanelCursorDiv" style="background-color: #D0D0D0; border: 0 none; height: 100%; left: 0; margin: 0; opacity: 0.5; padding: 0; position: fixed; top: 0; width: 100%; z-index: -200;"></div>