Win a copy of Terraform in Action this week in the Cloud forum!

Murali Sridhar

Ranch Hand
+ Follow
since Feb 16, 2009
Murali likes ...
Linux
Bhagyanagar,AP
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
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 Murali Sridhar

The above WARNINGgs were fixed in CXF2.6.3 Release. I have used cxf-2.6.3.jar (instead cxf-api-2.6.3.jar).
The recommendation: Download the cxf-2.6.3.jar file from Apache-CXF home ONLY.
9 years ago
Hello,

I'm trying to understand and provide a fix for WARNINGs generated by wsdl2java cmd using CXF 2.6.2 with JDK1.7.
The wsdl2java cmd is working fine WITH OUT any WARNINGs if I build with JDK1.6.

Could you please help me to find work around for the WARNINGs. FYI, using jaxb-impl-2.2.5.jar file for bindings.

Below are the build/ant log trace.

Buildfile: C:\msripad\app_4.12\bin\build\build.xml
[echo] building with jdk1.7
init:
[echo] Building for...'development' environment.
clean-all:
[echo] Cleaning output and staging directories...
[delete] Deleting: C:\msripad\app_4.12\target\jdk7\app-dev.war
cxf-generate-for-msr-wsdls:
[echo] building with jdk1.7
cxf-WSDLToJava-server:
[echo] Generating cxf server for wsdl : ../../src/main/resources/schemas/com/myorg/service/provider/someServiceservice/someServiceService.wsdl
[java] Loading FrontEnd jaxws ...
[java] Loading DataBinding jaxb ...
[java] wsdl2java -verbose -validate -server -impl -d ../../src/main/java/schema -b ../../src/main/resources/schemas/_bindings.xml -b ../../src/main/resources/schemas/mrp_bindings.xml ../../src/main/resources/schemas/com/myorg/service/provider/someServiceservice/someServiceService.wsdl
[java] wsdl2java - Apache CXF 2.6.2
[java] Nov 14, 2012 5:45:14 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\entity\message\message2003.xsd [534,99]: src-resolve: Cannot resolve the name 'legalEntity:InternalLegalEntityId_Type' to a(n) 'type definition' component.
[echo] building with jdk1.7
cxf-WSDLToJava-server:
[echo] Generating cxf server for wsdl : ../../src/main/resources/schemas/com/myorg/service/provider/pfm/msr/msService/msService.wsdl
[java] Loading FrontEnd jaxws ...
[java] Loading DataBinding jaxb ...
[java] wsdl2java -verbose -validate -server -impl -d ../../src/main/java/schema -b ../../src/main/resources/schemas/_bindings.xml -b ../../src/main/resources/schemas/mrp_bindings.xml ../../src/main/resources/schemas/com/myorg/service/provider/msService/msService.wsdl
[java] wsdl2java - Apache CXF 2.6.2
[java] Nov 14, 2012 5:45:43 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\provider\msService\addEditRules2011-12.xsd [49,61]: src-resolve: Cannot resolve the name 'msg2007:behaviorVersion' to a(n) 'element declaration' component.
[java] Nov 14, 2012 5:45:43 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
[java] WARNING: C:\msripad\app_4.12\src\main\resources\schemas\com\myorg\service\provider\msService\addEditRules2011-12.xsd [50,38]: src-resolve: Cannot resolve the name 'party:CustId' to a(n) 'element declaration' component.
9 years ago
Hi Sharma,

You can try with the 'javap' or' javap -c' utility to read the byte code.
Sun says: The Java SDK from Sun includes the javap disassembler, that will convert the byte codes into human-readable mnemonics.

I have given a try for sample Test.java class which you provided.

H:\msripad>javac Test.java

H:\msripad>javap Test
Compiled from "Test.java"
public class Test extends java.lang.Object{
public Test();
}


H:\msripad>javac Test.java

H:\msripad>javap Test
Compiled from "Test.java"
class Test extends java.lang.Object{
Test();
}

H:\msripad>javap -c Test
Compiled from "Test.java"
class Test extends java.lang.Object{
Test();
Code:
0: aload_0
1: invokespecial #1; //Method java/lang/Object."<init>")V
4: return

}

Thanks, its worked for me.
10 years ago
Hi Ferreira,

Can you check the Ant Runtime classpath entries in your NetBeans IDE.
We do the ANT Runtme classpath setup in Eclipse ISE at : Windows->Preferences->Ant->Runtime->Classpath
Here you can make sure 'Ant home entries ' are all installed jars from ant home and Global entries point to tools.jar from your Jdk install.

Please check for the similar properties setup in NetBeans( I have provided the Eclipse IDE)

Good luck !!
10 years ago
Hi Prasanth,

Your check list helped me with some work around.
For 1. There's no more antlr jar file exists, except the WL10.3 provided.
2. I have loaded the file from 'startWebLogic.cmd' (updates for: set CLASSPATH=%WL_HOME%\common\lib\antlr-2.7.6.jar;%SAVE_CLASSPATH%)
and observed that its also working fine from 'setDomainEnv.cmd' (updates for: PRE_CLASSPATH="%{DOMAIN_HOME}%/../lib/pre_classpath_jar/antlr-2.7.6.jar

Make sure to load the file only once( not sure about the behavior, if we load it more than one).
**Only the antlr version:2.7.6 worked for me.
10 years ago
Thanks for the reply. But, no luck for me. Did you check the environment I sent to you.
I have both the files weblogic-application.xml in META-INF and weblogic.xml in WEb-INF.
Updates of these files is overriding my local configurations. Lookeing for the fix, where it has no dependencies in my app.

Even I tried with the PRE_CLASSPATH update in setDomainEnv.cmd for antlr-2.7.5.jar file.
Working on this to fix. Let you know the updates, if any.
10 years ago
Hi Prashant,

I'd be thankful, if you share the changes you made to weblogic.xml and/or weblogic-application.xml file.
I couldn't able to fix it.
Here is my environment details:
App server: Weblogic 10.3.3
Java: JDK1.6
JPA: hibernate-3.1.jar
10 years ago
Hello,

We tried to simulate the hibernate error in DEV and QA environments, but no luck. If I didn't re-produce the problem in DEV and QA, there is no point of 'fix' in production.

Here is the error message: ERROR webServiceMessageCall - "nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:"

I found some fixes by googling, but these are not helpful in re-producing the Hibernate error in DEV/QA environment.

Here is the simple hbm file:

** The AccKey is a simple bean.
Java code causing error:

Much appreciate your help in re-generating this problem in DEV.
Thanks Mehmood, the experience shared by you helped me for the exam( certified with 92%).

Big thanks to Mikalai, for the web based SCDJWS 5.0 Study Guide.
I echo the same with Mehmood for exam experience.
11 years ago
Hi Friends,

The SCDJWS Exam for CX 310-220(JAX-RPC Web Services) was retired from Prometric Exam server and its no more available.
I enquired this from Prometric Exam center in Hyderabad, India.

Those who are preparing for the same, will opt for CX310-230/231 from ORACLE (formerly SUN).

This is just for your information and you can enquire with other Prometric centers across.

Regards....
Thanks Srini, for routing me to the rite direction.
11 years ago
Hello,

Please let me know how does the marshalling and unmarshalling happens in Axis1.4.
I'm using Axis1.4 engine to develop web services using wsdl2java approach.

How can I know, this is using JAX-RPC webservice implementation.

Regards,
MS.
11 years ago
Hi,

I'm trying to run DbUnit (a JUnit extension) test class targeted at database 'data test'.

Below is the error message/log I'm getting while running the test class (StateInfoTest.java).
Request you to please provide hope of ray to resolve it.
----------------------------------------------------------------------------------------------------------------
[ERROR] org.codehaus.groovy.maven.gossip.config.Configurator - Failed to configure; using fall-back provider
org.codehaus.groovy.maven.gossip.config.ConfigurationException: Missing property: url
at org.codehaus.groovy.maven.gossip.model.source.URLSource.load(URLSource.java:59)
at org.codehaus.groovy.maven.gossip.config.Configurator.loadBootstrap(Configurator.java:103)
at org.codehaus.groovy.maven.gossip.config.Configurator.configure(Configurator.java:50)
at org.codehaus.groovy.maven.gossip.Gossip.<init>(Gossip.java:49)
at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:37)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:32)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
at org.dbunit.DatabaseTestCase.<clinit>(DatabaseTestCase.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at junit.framework.TestSuite.createTest(TestSuite.java:61)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
at junit.framework.TestSuite.<init>(TestSuite.java:146)
at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:26)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:34)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:24)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-------------------------------------------------------------------------------------------------------
I wonder that the above error trace was not contain the test class(StateInfoTest.java) which I ran.

The .jars' I have used:

1.dbunit-2.3.0.jar
2.commons-io-1.0


Appreciate your help.
11 years ago
Hi All,

I'm experiencing with the below error while running the DBUnit (to test @ the database) test case.
--------------------------------------------------------------------------------------------------------------
[ERROR] org.codehaus.groovy.maven.gossip.config.Configurator - Failed to configure; using fall-back provider
org.codehaus.groovy.maven.gossip.config.ConfigurationException: Missing property: url
at org.codehaus.groovy.maven.gossip.model.source.URLSource.load(URLSource.java:59)
at org.codehaus.groovy.maven.gossip.config.Configurator.loadBootstrap(Configurator.java:103)
at org.codehaus.groovy.maven.gossip.config.Configurator.configure(Configurator.java:50)
at org.codehaus.groovy.maven.gossip.Gossip.<init>(Gossip.java:49)
at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:37)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:32)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
at org.dbunit.DatabaseTestCase.<clinit>(DatabaseTestCase.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at junit.framework.TestSuite.createTest(TestSuite.java:61)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
at junit.framework.TestSuite.<init>(TestSuite.java:146)
at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:26)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:34)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:24)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
---------------------------------------------------------------------------------------------------------------------
The environment I'm working on:
JDK1.5, Eclipse3.2,dbunit-2.3.0.jar and slf4j-api-1.5.2.jar

Appreciate your help.
12 years ago