tag:blogger.com,1999:blog-32752116381498902462024-03-20T13:44:47.913+05:30Rajendra M. TambatHi World, My lot of experiance goes in devloping Enterprise web based applications, from inception to implementation and post prduction support for fine tunning and problem solving, I keep interest in different technologies.Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-3275211638149890246.post-54420751057825460052017-05-19T19:27:00.000+05:302017-05-19T19:27:38.866+05:30Cannot nest 'projectname/src/main/java' inside 'projectname/src'. To enable the nesting exclude 'main/' from 'projectname/src' in eclipse maven project
I noticed following error in my project in eclipse.
Cannot nest 'projectname/src/main/java' inside 'projectname/src'. To enable the nesting exclude 'main/' from 'projectname/src'
due to this error also my test of junit was not working. and problem was due to reason that i changed eclipse java project into maven project and in the pom file eclipse added
<sourceDirectory>Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-67560873242949828822017-05-17T22:07:00.000+05:302017-05-19T19:16:24.774+05:30junit unable to find junit test annotation class gives compilation error
In Eclipse I noticed sometimes for maven projects (mostly i assume if eclipse project converted in maven project nature) if you notice compilation error "package org.junit does not exist" that means he is unable to find annotation class while doing compilation.
following could be the probable errors.
1. in your pom file you did not add the dependency of junit add it as
Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-47220230427568501942016-06-15T18:02:00.003+05:302016-06-15T18:02:38.051+05:30support for special charecter while compile in eclipse unmappable character for encoding UTF-8
I faced problem while compiling xsd to java using
apache xmlbeans maven plugin that
generated code was not matched same as in xsd, given
xsd file has special German character in element as
<xs:enumeration value="in Ablöse"/>
and when it gets converted to java expected as
static final Enum IN_ABLÖSE = Enum.forString("inAblöse");
my maven plugin was failed to write proper Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-66243676847687504712015-11-06T11:48:00.000+05:302015-11-06T11:48:32.122+05:30jdbc connection from java callout in osb without provider url
Recently I was developing a javacallout from osb where i was needed to call a jdbc that is configured on weblogic of osb. and did not want to configure provider url for creating database connection lookup that goes as follows.
Properties p=new Properties()
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-60921364364870683202014-09-30T13:54:00.000+05:302017-06-14T16:34:54.875+05:30Problems using JAX-WS 2.1 and JAXB 2.1 with JDK1.6 ?
Recently while working on web services I faced following problem where I was bound to use jdk1.6 to create web service because current version of weblogic11g and 12c works on jdk1.6.
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Data/work/OSB/OSB_Workspace/SOASampleWS_HV3/src/generated/jaxws/at/spardat/soa/osb/soap/Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-92216341709362216712014-07-25T16:41:00.002+05:302019-09-06T13:19:14.340+05:30JMeter 2.10 send SOAP requst gives unmarshalling error on server unable to support special unicode german carecter
To test web service I am using JMeter 2.10 with OSB (Oracle Service Bus), testing worked fine, but when we tried to send some special characters like 'ÖÜÄ' etc in XML data of SOAP request I found that OSB was not able to parse it. after several checks I also checked that when sending soap request XML has UTF-8 encoding
xml request look like
&lts:envelope xmlns:s="Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-89867023196971408882013-05-29T12:27:00.001+05:302017-05-16T18:44:54.687+05:30"Test Console" service is not running. Contact administrator to start this service. OSB 11g
On Fresh local setup of Oracle Service bus I faced following error.
Error Accessing Test Configuration
"Test Console" service is not running. Contact administrator to start this service.
Later I found that by defualt Test console is set to false so need to be enable. To do so you need to follow following path and enable and then restart your server.
\\MW_HOME\user_projects\domains\\Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com8tag:blogger.com,1999:blog-3275211638149890246.post-22209511884410529562013-04-22T22:29:00.001+05:302013-04-22T22:29:57.372+05:30Creating simple JMS application, understand JMS with basic example, JMS queue example
I hope you already have a basics of the JMS concpet, a bit more about it in different way.
1. when to use JMS or when a test case or secanrio to eligible for use JMS?
1. When you want to decouple an application and keep it loosly coupled with
other systems/modules.
2. When your application is growing and has growing responsibility Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-77994042197536197842013-04-17T17:49:00.002+05:302013-04-17T17:49:52.414+05:30how to kill process that is runnung on perticular port in windows?
This has very handy information. sometime windows fails to kill process properly and it lefts the port running/open with that process.
To List the processes running on ports
netstat -a -o -n
Find the specific ip/prot you are looking for and get the PID of it.
taskkill /F /PID
Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-66836008583860377622013-04-16T18:55:00.000+05:302013-04-18T13:38:03.608+05:30change local/language of admin console of weblogic
Hi We are doing migration of weblogic 10 to 12 and I suddenly noticed that weblogic default language was changed from english to Deutsch.
well I tried to search how is this behavior got changed and there is no way i found that how could i change it
mine is windows machine with default language setup set to Deutsch (german) after digging for long time I could not reach to any conclusion howRajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com3tag:blogger.com,1999:blog-3275211638149890246.post-67959932150846730982013-04-08T14:47:00.000+05:302013-04-08T14:47:36.244+05:30javax.servlet.ServletException: java.lang.NoClassDefFoundError: javelin/jsp/JspFunctionMapper
Recently I come across above error on weblogic 12c migration project, since for my test I used fexisting old ear that was built for weblogic 10.0.2 version. Later I found that this error has caused a problem because application is using pre-compiled jsps inside, I also noticed that weblogic 10.3.0 this jsp compilation has been depricated. so the solution was to remove the Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com1tag:blogger.com,1999:blog-3275211638149890246.post-85612050419182194752013-03-07T20:08:00.002+05:302013-04-08T14:47:44.756+05:30weblogic error: package net.sf.jasperreports.engine does not exist
I just recently come across while deploying sample report application on weblogic. and it was giving me error for all of jasper report classes not found in stack trace.
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:\MW_WL12C_Domains\test\report32name_1362666859233_104255.java:4: error: package net.sf.jasperreports.engine does Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com3tag:blogger.com,1999:blog-3275211638149890246.post-41656394375693958062012-07-02T20:54:00.001+05:302012-07-02T20:54:52.218+05:30Axis2 too many open file handle or low disc space
one of our project team using webservices using Axis2 in their project discovered that, Axis is creating lot of temp files in temp folder and that was casuing to too many file handles open and out of disc space problems.
This has caused because of Axis2 was creating modules jars files on every request initiated by the client code. this is an unavoidable situation because Axis2 classloader Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com7tag:blogger.com,1999:blog-3275211638149890246.post-42289317103904906312011-12-06T15:38:00.000+05:302012-05-15T23:42:36.133+05:30working with jasperreports.properties
jasperreports gives us numerous properties settings that we can customize at design or compile time and
modify/control the execution of reports.
Jasperreports has his own default settings and it reads it from its jar file jasperreports-x.x.x.jar with the file name default.jasperreports.properties, unless you specify differently. Property file gives us flexibility of changing its execution Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com4tag:blogger.com,1999:blog-3275211638149890246.post-84125383853771317762011-10-05T16:44:00.000+05:302012-05-15T23:40:40.357+05:30Calling Oracle Stored Procedure in JasperReports
In my previous article I have very briefly explained how PLSQL has been supported in jasperreports. But it is not that easy when it comes to different databases. Here I will present how we can call stored procedure from jasperreports. For this sample I have used iReport 4.1.2 designer and Oracle database, it is supported in previous versions as well, may be with minor changes.
Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com118tag:blogger.com,1999:blog-3275211638149890246.post-47200130128994634202011-09-20T16:53:00.021+05:302012-05-15T23:43:09.722+05:30Understand Hashmap Better
table.sample {
border-width: 1px;
border-spacing: 0px;
border-style: solid;
border-color: black;
border-collapse: collapse;
background-color: rgb(255, 255, 240);
}
table.sample th {
border-width: 1px;
padding: 1px;
border-style: inset;
border-color: black;
background-color: rgb(250, 240, 230);
-moz-border-radius: 12px 12px 12px 12px;
}
table.sample td {
border-width: 1px;
padding:Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com6tag:blogger.com,1999:blog-3275211638149890246.post-62973590006272175672011-07-20T13:58:00.001+05:302011-07-20T15:41:04.287+05:30Accessing parent window function from modal windowif you create a modal dialog window and try to access any function from parent window, well its not possible, any browser will not allow you to access parent window functions unless it is a normal window. so the alternate possible solution is as below
modal window can return a value to parent window's calling function, so based on its value you can either change parent window variables or call Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com2tag:blogger.com,1999:blog-3275211638149890246.post-90866464670275922202011-02-16T20:52:00.001+05:302011-02-16T20:56:00.066+05:30ClassNotFoundException or NoClassDefFoundError.. what the hell is going on...many a times we face "ClassNotFoundException" or "NoClassDefFoundError" and then we wonder what the hell is going on... not able to figure out what went wrong... some times we even see that even though class file or jar was exist in classpath, classloader unable to find it...
first try to understand that "ClassNotFoundException" is thrown when specified class was not found in Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-66518706619303989612010-11-17T11:11:00.001+05:302010-11-17T11:11:48.882+05:30Google CEO interview in web2.0 summit in San Fransisco on the coming mobile revolutionOn Monday at the Web 2.0 Summit in San Francisco, Google CEO Eric Schmidt did a wide-ranging interview in which he shared new details about where Google sees the mobile revolution heading in the years ahead
In his interview Eric give presentation of his next version of Andriod which called as Gingerbread, He has also covered many other features that are coming in and how Googlesees the Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-55272532784279951742010-11-17T11:03:00.000+05:302010-11-17T11:03:17.588+05:30Google TVQuick Tour - Google TV www.google.comGoogle TV is a new experience that combines TV, the entire web, and apps -- as well as a way to search across them all. Take a tour, learn how it works, and find out how to get it.Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0tag:blogger.com,1999:blog-3275211638149890246.post-15412680803393861702010-11-01T10:50:00.015+05:302011-02-16T20:59:13.330+05:30Procedure / plsql support in jasper reportI am not very sure from which version Jasper started supporting this feature, but recently when I was evaluating 3.7.5 version I suddenly explored this... and it is so easy...!
Well here it is how... when you write a query in the querystring tag, Jasper has added a property called "language" and here it supports for different languages querystring. so for calling a procedure from jasper Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com4tag:blogger.com,1999:blog-3275211638149890246.post-11166643324725289552010-10-13T14:45:00.054+05:302011-02-16T20:59:51.879+05:30creating a crosstab report with jasper reportcreating a crosstab report with jasper is became very easy task now... as I explore it I found it very easy and simple to do... the most tedious task was earlier to manage with the query to get the data in cross format. since there was no alternate or easy feature available from database either. but for now with japserreport it become so easy that you don't have to modify your query at all just Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com25tag:blogger.com,1999:blog-3275211638149890246.post-64002670128809455262010-10-12T14:32:00.030+05:302012-05-15T23:44:50.112+05:30creating jasper sub-report using iReport
creating a sub-report example with Jasper
Pre-requisite: I assume that you know how to create normal reports using iReport GUI tool also basic knowledge of database, sql with MySql.
before we start with actual creating of report lets understand the database that we require.
following is the table structure that we require.
I have taken the sample database that comes with iReport hsqldb, you Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com90tag:blogger.com,1999:blog-3275211638149890246.post-7117051258279034142010-08-31T16:59:00.001+05:302010-08-31T17:28:42.581+05:30creating JAX-RPC web service using weblogic workshopHi, Please find this attached word document explaining steps for creating JAX-RPC webserviceusing weblogic workshop.weblogic is extending the eclipse module so it will be more similar if screen shot if you have only eclipse.I have added steps of creating weblogic domain and deploying of webservice on weblogic server as well.if you are using apache Axis then it will be bit different. I may add Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com1tag:blogger.com,1999:blog-3275211638149890246.post-82223329552741813292010-08-25T11:52:00.000+05:302010-08-25T12:04:21.651+05:30JNDI BasicsJava Naming and Directory Interface (JNDI)Naming and Directory Concepts:Naming Concepts :In computer system every program that we write, create files we gave them a name to identify. so giving name to a object helps to lookup into system.so nameing service typically map object with user friendly name to its address into the system. These objects are used by a program in system.for e.g. the Rajendra Tambathttp://www.blogger.com/profile/12940814641424539332noreply@blogger.com0