NullPointerException in Schematool ANT-Task and Eclipse-plugin
Hi,
When running the Schematool from the Eclipse-plugin or from the ANT-task,
I get a NullPointerException. The ANT-plugin gives a more-or-less usefull
exception-traceback, the Eclipse-plugin doesn't give any useful hints.
The funny thing however is that from the commandline it all works!
The exception from ANT is:
[schematool] com.solarmetric.kodo.runtime.FatalException: There was an
error mapping field "operator" of type "class
com.unisys.nl.ruleengine.rules.CompoundCondition" to a schema.
[schematool] NestedThrowables:
[schematool] java.lang.NullPointerException
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:244)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:131)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:86)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:831)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1166)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1102)
[schematool] at
com.solarmetric.modules.integration.ant.SchemaToolTask.executeOn(SchemaToolTask.java:54)
[schematool] at
com.solarmetric.modules.integration.ant.TaskBase.execute(TaskBase.java:118)
[schematool] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[schematool] at org.apache.tools.ant.Task.perform(Task.java:341)
[schematool] at org.apache.tools.ant.Target.execute(Target.java:309)
[schematool] at
org.apache.tools.ant.Target.performTasks(Target.java:336)
[schematool] at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[schematool] at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[schematool] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
[schematool] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
[schematool] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[schematool] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[schematool] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[schematool] at java.lang.reflect.Method.invoke(Method.java:324)
[schematool] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
[schematool] at
org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
[schematool] at java.lang.Thread.run(Thread.java:534)
[schematool] NestedThrowablesStackTrace:
[schematool] java.lang.NullPointerException
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.findMethod(StringificationMapping.java:215)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.getExternalizer(StringificationMapping.java:123)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.getExternalizer(StringificationMapping.java:112)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.install(StringificationMapping.java:105)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:234)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:131)
[schematool] at
com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:86)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:831)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1166)
[schematool] at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1102)
[schematool] at
com.solarmetric.modules.integration.ant.SchemaToolTask.executeOn(SchemaToolTask.java:54)
[schematool] at
com.solarmetric.modules.integration.ant.TaskBase.execute(TaskBase.java:118)
[schematool] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[schematool] at org.apache.tools.ant.Task.perform(Task.java:341)
[schematool] at org.apache.tools.ant.Target.execute(Target.java:309)
[schematool] at
org.apache.tools.ant.Target.performTasks(Target.java:336)
[schematool] at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[schematool] at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[schematool] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
[schematool] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
[schematool] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[schematool] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[schematool] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[schematool] at java.lang.reflect.Method.invoke(Method.java:324)
[schematool] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
[schematool] at
org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
[schematool] at java.lang.Thread.run(Thread.java:534)
[schematool] BUILD FAILED:
file:C:/java/eclipse/workspace/EclipseProject/build.xml:84:
com.solarmetric.kodo.runtime.FatalException: There was an error mapping
field "operator" of type "class
com.unisys.nl.ruleengine.rules.CompoundCondition" to a schema.
NestedThrowables:
java.lang.NullPointerException
The .jdo file is:
<?xml version="1.0" encoding="UTF-8"?>
<jdo>
<package name="com.unisys.nl.ruleengine.rules">
<class name="Condition">
<extension vendor-name="kodo" key="table" value="condition"/>
</class>
<class name="ConditionDummyPlaceHolder"
persistence-capable-superclass="Condition">
<field name="m_condition">
<extension vendor-name="kodo" key="data-column"
value="condition"/>
<extension vendor-name="kodo" key="dependent" value="true"/>
</field>
</class>
<class name="AtomicCondition"
persistence-capable-superclass="Condition">
<field name="lefthand">
<extension vendor-name="kodo" key="dependent"
value="true"/>
</field>
<field name="operator">
<extension vendor-name="kodo" key="externalizer"
value="toString"/>
<extension vendor-name="kodo" key="factory"
value="getOperatorWithSymbol"/>
</field>
<field name="righthand">
<extension vendor-name="kodo" key="dependent"
value="true"/>
</field>
</class>
<class name="CompoundCondition"
persistence-capable-superclass="Condition">
<field name="subConditions">
<collection
element-type="com.unisys.nl.ruleengine.rules.Condition"/>
<extension vendor-name="kodo" key="element-dependent"
value="true"/>
<extension vendor-name="kodo" key="ordered" value="true"/>
</field>
<field name="operator">
<extension vendor-name="kodo" key="externalizer"
value="toString"/>
<extension vendor-name="kodo" key="factory"
value="getOperatorWithSymbol"/>
</field>
</class>
<class name="ConditionValue">
<extension vendor-name="kodo" key="table"
value="condition_value"/>
</class>
<class name="DerivedValue"
persistence-capable-superclass="ConditionValue">
<field name="valueProperty">
<extension vendor-name="kodo" key="dependent" value="true"/>
</field>
</class>
<class name="SimpleValue"
persistence-capable-superclass="ConditionValue"/>
<class name="Rule" persistence-capable-superclass="RuleSetElement">
<extension vendor-name="kodo" key="table" value="rule"/>
<field name="context">
<extension vendor-name="kodo" key="dependent" value="false"/>
</field>
<field name="condition">
<extension vendor-name="kodo" key="dependent" value="true"/>
</field>
<field name="comment">
<extension vendor-name="kodo" key="column-length"
value="-1"/>
</field>
</class>
<class name="RuleSet"
persistence-capable-superclass="RuleSetElement">
<extension vendor-name="kodo" key="table" value="ruleset"/>
<field name="rules">
<collection
element-type="com.unisys.nl.ruleengine.rules.RuleSetElement"/>
<extension vendor-name="kodo" key="element-dependent"
value="true"/>
</field>
</class>
<class name="RuleSetElement">
<extension vendor-name="kodo" key="table"
value="ruleset_element"/>
</class>
</package>
</jdo>
Any pointers what I'm doing wrong here?
(Another data-point: when I moved the sources to the laptop of a collegue,
and we try to generate the schema there, the plugin complains about not
having any JDO metadata available for the class RelationOperator - which
is the type of the field 'operator' that gives the NPE.
I'm using KODO-JDO 2.5.0RC2)
--Tim
Tim-
This seems to be a problem with ClassLoader interactions; it will be
fixed for the next 2.5 RC (or final release). Thanks for pointing it
out.
In article <bbngrl$j47$[email protected]>, Tim van der Leeuw wrote:
>
Hi,
When running the Schematool from the Eclipse-plugin or from the ANT-task,
I get a NullPointerException. The ANT-plugin gives a more-or-less usefull
exception-traceback, the Eclipse-plugin doesn't give any useful hints.
The funny thing however is that from the commandline it all works!--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Similar Messages
-
Using wsdlc Ant task and Eclipse
Hi all,
I'm using the WebLogic Ant Task wsdlc to generate a default implementation of a java web service based on an existing WSDL.
Everythign generates just fine. I have one little problem though: the classes that represent some of the complex types defined in the WSDL are generated in the compiled WSDL file (the JAR file that wsdlc creates). If I open the java source file for the web service (also created by the wsdlc task, but NOT in the compiled wsdl jar) with Eclipse, Eclipse cannot find the source code for those complex types, and therefore underlines the data types in red to indicate an error.
My question is this: is there a way to tell Eclipse to look for additional source files inside of the compiled wsdl.jar file?
Many thanks in advance!
JeffI got around this by unjaring the generated source jar into a "generated/src" directory and put that directory on the build path.
Andy O -
im having trouble creating a plugin. i have created my code in JFC but unfortunately it wouldn't work in Eclipse plugin. it must be written in SWT..
after searching tons of website on SWT and Eclipse Plugin, i came across the plugin wizard of Eclipse..
i have created a sample SWT code and i was wondering how can i get it to work with an Eclipse plugin? i was editing the files under the src folder but to no avail, im still stuck..
please help me.. thanx a lot.the wizards for generating eclipse plugins are quite useful if you use the right one. there's sample projects for more UI artifacts (editors, views etc). they'll do a lot of the legwork of setting up and configuring, say, a view, and give you a blank Composite to put your own work on
you can also use the AWT_SWT bridge if you really want to use AWT or Swing components on your plugins, but it's a pain in the @rse to be honest
also, you'd be far better off going to eclipse.org newsgroups for this sort of question. hardly anyone here uses SWT or writes plugins, that I know of -
"Error running javac.exe compiler" when using ant to compile Eclipse plugin
Hi
I encounter an error "Error running C:\jdk1.5.0_06\bin\javac.exe compiler" when building my project using ant1.7.
My project has 10 eclipse plugins, and each plugin is compiled by invoking following ant target
<!-- ===================================================================
Compile specified plugin
target parameters:
param.plugin.dir: the plugin directory
param.plugin.targetJarFile: the name of jar file for the given plugin
param.plugin.src.dir: the folder name of source codes. Note: it is relative path name
param.fork: indicate if another process is forked to run javac
=================================================================== -->
<target name="compilePlugin">
<!-- Prepare compile environment -->
<!-- Delete obsolete build folder -->
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
<!-- Delete obsolete jar file -->
<delete file="${param.plugin.dir}/${param.plugin.targetJarFile}" quiet="true"/>
<mkdir dir="${param.plugin.dir}/${build.dir}"/>
<!-- Compile source codes -->
<javac srcdir="${param.plugin.dir}/${param.plugin.src.dir}"
destdir="${param.plugin.dir}/${build.dir}"
failonerror="${javacFailOnError}"
verbose="${javacVerbose}"
debug="${javacDebugInfo}"
deprecation="${javacDeprecation}"
optimize="${javacOptimize}"
source="${javacSource}"
target="${javacTarget}"
fork="${param.fork}" memoryInitialSize="256m" memoryMaximumSize="512m">
<classpath refid="compile.classpath" />
</javac>
<!-- Create plugin jar file -->
<copy todir="${param.plugin.dir}/${build.dir}" failonerror="true">
<fileset dir="${param.plugin.dir}/${param.plugin.src.dir}" excludes="**/*.java, **/package.htm*" />
</copy>
<jar jarfile="${param.plugin.dir}/${param.plugin.targetJarFile}" basedir="${param.plugin.dir}/${build.dir}"/>
<delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
</target>
Since each of first 9 plugins contains less than 500 java source files, we always set "param.fork" to false when invoking this ant target.
For the 10th plugin, it has about 1000 source files. If we set "param.fork" to false, we will get the error "Error running javac.exe compiler". So we have to set "param.fork" to true when compiling it. This week, this plugin contains about 1250 files and we get the same error again when compiling it. I tried to increase the "memoryMaximumSize" to "768", but still couldn't get through it.
BTW, There are about 150 jar files in our classpath for compiling plugins. Do many jar files cause this problem?
Any help is highly appreciated.
Many thanks
OceanmanI encountered a very similar error and I was able to resolve it by removing the following parameters from the javac task:
fork="${param.fork}"
memoryInitialSize="256m"
memoryMaximumSize="512m"My values were not the same as yours, before I removed them, the values were set to:
fork="true"
memoryInitialSize="256m"
memoryMaximumSize="256m" Not sure why this fixed my problem but it did. I was using Ant 1.7 and Java 1.6_07 hope this helps. -
Java.lang.NullPointerException running flexunit ant task in 4.1 Beta 2
Hello,
After trying to debug this all day, I thought I would ask the community.
I am trying out the new FU4.1 Beta 2 (3.5) from the downloads page. We have a working CI system set up with 4.0, and I thought trying out 4.1 beta 2 would simply be a matter of replacing the binaries in my lib folder and re-running the ant script. Evidently not, or else I am missing something.
After updating to the 4.1 Beta 2 binaries, if I re-run a sample project in Eclipse, the build fails with a java NullPointerException when the <flexunit> ant task is invoked. We have an involved setup that uses the groovy AntBuilder and other esoteric constructs, so I thought I would create a very simple test script similar to the sample CI project to see if that would work. Unfortunately, I am still seeing the NPE. The worst part is that there is absolutely no debug information provided - no message, no traceback. I even attached the Ant source and debugged it. I could see the NPE being caught, but it contained a null message and null traceback.
Here is the simplified ant script:
<project name="tests" basedir=".">
<target name="test-init" depends="">
<mkdir dir="${build.dir}"/>
<mkdir dir="${reports.dir}"/>
<mkdir dir="${reports.xml}"/>
<mkdir dir="${reports.html}"/>
<!-- Setup Flex and FlexUnit ant tasks -->
<!-- You can set this directly so mxmlc will work correctly, or set
<taskdef resource="flexUnitTasks.tasks" classpath="${lib}/flexUnitTasks-4.1.0-beta2.18.jar" />
</target>
<target name="run-flex-tests" depends="test-init">
<sequential>
<!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
<flexunit
swf="${build.dir}/TestRunner.swf"
toDir="${reports.xml}"
haltonfailure="false"
verbose="true"
localTrusted="true"
timeout="60000"/>
<!-- Generate readable JUnit-style reports -->
<junitreport todir="${reports.xml}">
<fileset dir="${reports.xml}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${reports.html}" />
</junitreport>
</sequential>
</target>
</project>
The output is:
Buildfile: C:\EclipseWorkspace\tests\Source\Flex\build_test.xml
test-init:
run-flex-tests:
[flexunit] Validating task attributes ...
BUILD FAILED
C:\EclipseWorkspace\tests\Source\Flex\build_test.xml:23: java.lang.NullPointerException
Total time: 297 milliseconds
Is there something obvious I am missing?
Thanks for any help!
TrevorBrian,
OK, a colleague worked with me (thanks, John!) to debug the problem a little further, and I think we found the fundamental problem. I wanted to post that info to save you some time...
Aside: One thing we did have to do was to rebuild the flexUnitTasks.jar to include debug information, since the binary in the 4.1 beta 2 package did not have debug=true. I'd suggest that we might want to change the build script to build the binaries with debug moving forward.
Back to the problem.
The NullPointerException is thrown in TaskConfiguration::validateSharedProperties(), when equals() is invoked. Here is the code snippet:
//if we can't find the FLEX_HOME and we're using ADL or compilation
if((flexHome == null || !flexHome.exists()) && (testRunConfiguration.getPlayer().equals("air") || shouldCompile()))
throw new BuildException("Please specify, or verify the location for, the FLEX_HOME property. "
+ "It is required when testing with 'air' as the player or when using the 'testSource' element. "
+ "It should point to the installation directory for a Flex SDK.");
In my case, I do not have a FLEX_HOME property set in Ant currently. I'll bet most folks have this set, so the logic would run differently for them. For my case, the (flexHome == null) check is true. That means that the testRunConfiguration.getPlayer().equals("air")check will occur next, and here is the problem. The "player" member is not set in the testRunConfiguration yet at this point, so testRunConfiguration.getPlayer() returns null. testRunConfiguration.setPlayer() is called in generateDefaults(). But generateDefaults() is not called until after validateSharedProperties() is called. So, if properties initialization could be improved here and I think this code will run more robustly.
I can work-around my issue temporarily by just setting a FLEX_HOME property in Ant. But I hope you will agree that the initialization issue with "player" still should be addressed. Would you like me to open a bug report, or is this thread enough?
Thanks,
Trevor -
BPEL Installation Issues and Eclipse Plugin Issue
I'm trying to evaluate BPEL and encountered the following issues:
(1) Installation of patch 4343748:
MISSING_COMPONENT : oracle.j2ee, 10.1.2.0.0
This Oracle Home does not have components/versions required by the patch.
ERROR: OPatch failed during pre-reqs check.
OPatch returns with error code = 150
The other 2 patches installed fine.
Is there a required order for installing the patches. The information that I found is a bit spotty on that.
(2) The Eclipse Plugin also doesn't work properly. The following stack trace is reported back, when trying to open a .bpel file:
java.lang.NullPointerException
at bpelz.browser.OleWebBrowser.registerAsDropTarget(OleWebBrowser.java:345)
at bpelz.browser.OleBrowserView.createBrowserControl(OleBrowserView.java:168)
at bpelz.browser.OleBrowserView.createPartControl(OleBrowserView.java:75)
at bpelz.views.SimpleBrowserView.createPartControl(SimpleBrowserView.java:55)
at bpelz.views.PaletteView.createPartControl(PaletteView.java:64)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:305)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:512)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:528)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:485)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:230)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:813)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2928)
at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:902)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:887)
at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:3051)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3049)
at bpelz.wizards.BPELProjectCreationOperation.switchToBPELPerspective(BPELProjectCreationOperation.java:204)
at bpelz.wizards.BPELProjectCreationOperation.run(BPELProjectCreationOperation.java:144)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
at bpelz.wizards.BPELProcessWizard.performFinish(BPELProcessWizard.java:207)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:114)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Any advice on how to proceed is much appreciated.
AndreasI'm still hoping to find an answer on why the Eclipse BPEL Designer does not work for me. I can generate a BPEL project but the visual BPEL Editor will just not open up. Any clues on what I should be looking at would be very appreciated.
Here is the exact Eclipse version that I'm using:
Version: 3.1.0
Build id: I20050627-1435
And another stack trace that is seen in the Eclipse error log:
org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:579)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:244)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:585)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1216)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:944)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:939)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2535)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Thanks,
Andreas -
I am trying to generate a webservice using ant inside of eclipse. The build.xml uses weblogic.wsee.tools.anttasks.JwscTask. The build file is good because if I go to a dos command box and run the setDomainEnv.cmd and then run ant everything works fine. I have tried including all kinds of jars in eclipse. I currently have the task being executed in a seperate JVM as I saw one post that did that. But no luck.
The error I get is
C:\dev\javadev\R21Frame\R21\build\build.xml:136: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\dev\javadev\R21Frame\R21\src\java\src\com\Test.java
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:189)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\dev\javadev\R21Frame\R21\src\java\src\com\Test.java
at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:470)
at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:438)
at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:289)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:219)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:182)
... 12 more
Caused by: weblogic.wsee.tools.WsBuildException: Failed to write wsdl
at weblogic.wsee.tools.jws.WebServiceWriter.process(WebServiceWriter.java:43)
at weblogic.wsee.tools.jws.process.CompositeProcessor.process(CompositeProcessor.java:36)
at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:466)
... 16 more
Caused by: java.lang.ClassCastException: com.bea.xbean.store.Xobj$ElementXobj
at org.apache.crimson.tree.XmlDocument.importNode(XmlDocument.java:1260)
at weblogic.wsee.wsdl.WsdlSchema.write(WsdlSchema.java:131)
at weblogic.wsee.wsdl.WsdlTypes.write(WsdlTypes.java:232)
at weblogic.wsee.wsdl.WsdlDefinitions.write(WsdlDefinitions.java:634)
at weblogic.wsee.wsdl.WsdlDefinitions.toDocument(WsdlDefinitions.java:597)
at weblogic.wsee.wsdl.WsdlDefinitions.write(WsdlDefinitions.java:573)
at weblogic.wsee.wsdl.WsdlDefinitions.writeToFile(WsdlDefinitions.java:536)
at weblogic.wsee.tools.jws.WebServiceWriter.writeWsdl(WebServiceWriter.java:112)
at weblogic.wsee.tools.jws.WebServiceWriter.process(WebServiceWriter.java:33)
... 18 more
===============================================
Snip from my Ant Script.
<target name="compile" depends="init" description="compile the source " >
<java classname="org.apache.tools.ant.launch.Launcher" fork="true">
<classpath>
<pathelement path="${java.class.path}"/>
<path refid="bea-classpath"/>
</classpath>
<sysproperty key="ant.home" value="${ant.home}"/>
<arg value="-buildfile"/>
<arg value="${ant.file}"/>
<arg value="~jwsc"/>
</java>
</target>
<target name="~jwsc">
<record name="${log.directory}/compile.log" action="start"/>
<delete dir="build2"/>
<mkdir dir="build2"/>
<jwsc
srcdir="src/java/src"
destdir="build2"
classpathref="bea-classpath"
verbose="true"
>
<jws file="com/Test.java"/>
</jwsc>
<record name="${log.directory}/compile.log" action="stop"/>
</target>
Any help would be much appreciated. I also have a case open with bea. But I don't know that they have to make it work any further then DOS.
Thanks
JeffHi Jeff,
We had the same issue of trying to use the jwsc task from within eclipse. To resolve this we added the following jar to our project.
lib/xbean.jar
lib/wsse.jar
lib/weblogic-container-binding.jar
lib/webservices.jar
lib/weblogic.jar
lib/apache_xbean.jar
lib/webserviceclient.jar
In addition to that, we had to implement our build.xml as follows.
Add a classpath ref for the weblogic specific jar files.
<path id="wl.class.path">
<fileset dir="${basedir}" includes="**/*.jar" />
</path>
Define weblogic tasks and give the classpath ref defined earlier.
<taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask" classpathref="wl.class.path"/>
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" classpathref="wl.class.path"/>
Include the classpathref attribute anytime we used a task.
<target name="wsdlcTask">
<wsdlc
verbose="true"
classpathref="wl.class.path"
srcWsdl="${wsdlFile}"
destJwsDir="${libDir}"
/>
</target>
<target name="jwscTask">
<delete dir="${outDir}" />
<jwsc
verbose="true"
classpathref="wl.class.path"
srcdir="${srcDir}"
destdir="${outDir}"
>
<jws file="${ImpleFile}" compiledWsdl="${antGenJarFile}" />
</jwsc>
</target>
Hope this helps.
Adi. -
[solved] Trouble installing android SDK and eclipse plugin
Hi !
Owner of an HTC hero, I would like to develop some apps for it. However, I have problems to install the android eclipse plugin on my archs (a 32 and a 64 bits) while it is working fine on my roommate's ubuntu...
I'm following these instructions : http://developer.android.com/sdk/eclipse-adt.html
At step 3, when I click OK in order to add the site, just nothing happens, the pop up stays displayed and I can still clic on the bottons, (but only "cancel" do something...) . I've tried to start eclipse from the console, but no output here
Why do you think this happens ?
I have also problem with the sdk tools :
when I try to view the available packages il get :
Failed to fetch URL https://dl-ssl.google.com/android/repos … sitory.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
(even if I ask to use HTTP insted of HTTPS)
Have you already got this problem?
Thanks,
Fredszaq (from France, escuse english mistakes...)
Last edited by fredszaq (2009-12-02 21:20:13)found the solution ! it seems to be a GTK problem in fact...
http://groups.google.com/group/android- … 63a8d07cd9
https://bugzilla.gnome.org/show_bug.cgi?id=598734
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290395
the major tip was to resize the windows when notings seems to happen ant to "clik" on the buttons with the enter key ... -
Autotype ant task and java source file having method which returns hashmap
Hi Friends,
I am using autotype ant task to generate types.xml and supporting java classes.
The task is defined as follows .
<target name="std">
<source2wsdd javaSource="HelloWorld.java"
typesInfo="types.xml"
ddFile="ddfiles/web-services.xml"
serviceURI="/HelloWorldService"/>
</target>
In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
C:\test-ws\javaclass>ant auto
Buildfile: build.xml
auto:
[autotype] Autotyping for javaTypes TestBean
[autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
: interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
a/util/Map.class. All classes that will be serialized or deserialized must be n
on-interface, non-abstract classes that provide a public default constructor
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
sureValidClass(JavaInspector.java:1050)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:927)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:905)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
dPropertiesToScalar(JavaInspector.java:834)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:209)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
peMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
Java2SchemaImpl.java:167)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
a2Schema(JavaSchema.java:302)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
te(JavaSchema.java:184)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
xception: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: Invalid class received: interface
java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
class. All classes that will be serialized or deserialized must be non-interfac
e, non-abstract classes that provide a public default constructor]
Can any one provide the solution for this
Thanks
AnanthaHi Friends,
I am using autotype ant task to generate types.xml and supporting java classes.
The task is defined as follows .
<target name="std">
<source2wsdd javaSource="HelloWorld.java"
typesInfo="types.xml"
ddFile="ddfiles/web-services.xml"
serviceURI="/HelloWorldService"/>
</target>
In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
C:\test-ws\javaclass>ant auto
Buildfile: build.xml
auto:
[autotype] Autotyping for javaTypes TestBean
[autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
: interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
a/util/Map.class. All classes that will be serialized or deserialized must be n
on-interface, non-abstract classes that provide a public default constructor
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
sureValidClass(JavaInspector.java:1050)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:927)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:905)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
dPropertiesToScalar(JavaInspector.java:834)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:209)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
peMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
Java2SchemaImpl.java:167)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
a2Schema(JavaSchema.java:302)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
te(JavaSchema.java:184)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
xception: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: Invalid class received: interface
java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
class. All classes that will be serialized or deserialized must be non-interfac
e, non-abstract classes that provide a public default constructor]
Can any one provide the solution for this
Thanks
Anantha -
Compc ant task and external framework
I'm writing an ant task to compile a couple of libraries into
SWCs and then a shell app (that uses the libraries) into a SWF for
deployment. If I compile the libraries by hand then run just the
'mxmlc' part of my ant script it compiles fine. However when I try
and first compile a library into a SWC with 'compc' it compiles but
then the shell app complains that the classes from the library are
missing. One thing that may be causing the problem is my library
path (through flex builder) has it's framework.swc set to 'Link
Type: External' and I'm not sure how to define that with 'compc'.
The weird thing is the flex builder compiled and 'compc' compiled
SWCs are the same size. Here's my target for 'compc':<mxmlc
file="${project.name}/src/Test.mxml"
output="${build.mxmlc.dir}/Test.swf"
static-link-runtime-shared-libraries="true"
>
<load-config filename="${air.config}"/>
<source-path path-element="${project.name}/src" />
<runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
<url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
<url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
</runtime-shared-library-path>
<runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
<url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
</runtime-shared-library-path>
</mxmlc>
This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false" ?? -
Assemble ant task and dependencies
We are in a process of moving from wasp 4.5 to OC4J R3.
We want to be able to assemble (and deploy) a bottom-up java web service using ant.
I look at the assemble ant task but I couldn't find out how to specify using that task the jars that will be copied to WEB-INF/lib or any other option like using a custom oracle-webservices.xml file to specify the dependencies or specifying a shard library to be used..
The documentation is really unclear about the subject.What's your approach to pack the files?
Just use the assemble task to create the war structure and then add all the dependencies?
I'm new to OC4j but it seems a reasonable request to add dependencies with the ant task , just like when you use the input tag to specify which files should be in WEB-INF/classes.
The oracle-webservices.xml is another way to specify the web service (if i remember correctly) and I gave it as another example of where I looked to solve to problem.
It shouldn't be that hard to pack to war file myself... it's just annoying that when you come from WASP 4.5 which is over 3 years old and it's so easy and clear how to pack a bottom-up web service.
Message was edited by:
user564605 -
Hi-
I create my domain using the ant tasks (wlserver and wlconfig) but I can't figure out how to tell the domain to enable SSL and use a specific port. Doing this in the console is simple but I can't find any docs showing how to do this with the ant tasks.
Anyone know how to do this for WL 8.1?
Thanks!
DaveHello,
The OracleAS 10g Web Services Ant tasks are documented in the OracleAS Web Services Developer Guide, these tasks allow you to do the various WS developement operation such as create a service using bottom-up approach, create clients, ...
Also OracleAS 10g 1.0.1.3 provides Ant tasks for deployment of application to the container, this is documente in the OracleAS Deployment Guide
Regards
Tugdual Grall -
Hi,
Can any one help me, how to invok vss ant tasks from servlet ?
i am calling vss ant task 'vsslabel' from struts action class. but i am getting following error .
Failed executing: ss Label $/ADABuildSystem/ADAInternal -C- -I- -LREQ200600096 -Yada,password With a return code of 1
at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.execute(MSVSS.java:191)@Paul - This would be a feature request for the Ant task, so we won't be able to get this in until 4.2 since we just locked down new features for 4.1 beta. Fortunately, there is a stop gap that is much simpler than rebuilding the JAR. At the end of the day, the JAR is just a zip. Create your own version of the template (using the current one as a basis) and just unzip the jar and replace the flexUnitDescriptor.template file. From there the new template should be used w/o an issue. If you could go into JIRA and enter a feature request for user provided descriptor, we'll try to get it into the roadmap for 4.2 (https://bugs.adobe.com/jira/browse/fxu). Hope this helps.
-Brian -
Feature request:
It would be nice if the kodo ant tasks were attached to the
"org.eclipse.ant.core.antTasks" extension point of eclipse so that ant
scripts run from within eclipse would not have to define a "taskdef"
element for those ant tasks.
-Chris WestThanks for the suggestion. Hopefully we can get it in.
http://bugzilla.solarmetric.com/show_bug.cgi?id=719
Chris West wrote:
Feature request:
It would be nice if the kodo ant tasks were attached to the
"org.eclipse.ant.core.antTasks" extension point of eclipse so that ant
scripts run from within eclipse would not have to define a "taskdef"
element for those ant tasks.
-Chris West
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Kodo 3.1.4 and Eclipse plugin
I'm currently migrating from Kodo 2.5.3 to Kodo 3.1.4, and as I'm using
Eclipse have decided to give the Eclipse plugin a go. I've followed the
documentation (@15.6), and am now attempting the Eclipse Sample from the
documentation (@15.6.4). The documentation has seemed slightly incomplete,
but I assume that's just me using Eclipse 3.0 with the doumentation being
written for WSAD 4.
However, when I clean the project or run the enhancer I get the following
error:
<error>-The Enhancer failed. The message included was:
{0}
org.apache.commons.lang.exception.NestableRuntimeException: Animal
<info>-Done.
This message doesn't seem to be giving me any info that would help me
track down the problem, so hopefully somebody has seen it beforehand in
these circumstances and can help me out?
Cheers,
MattStephen, the stack trace is as below. Apparently the Animal class isn't
being found...? - How does the Kodo plugin look for / find it? - Eclipse
itself has no trouble compiling it. Do I need to somehow configure my
classpath separately for the Kodo plugin?
!MESSAGE Errors running builder "Kodo Enhancer Builder" on project Kodo
Pet Shop.
!SUBENTRY 1 kodo 4 0 Aug 10, 2004 16:27:52.687
!MESSAGE The Enhancer failed. The message included was:
org.apache.commons.lang.exception.NestableRuntimeException: Animal
!STACK 0
java.lang.ClassNotFoundException: Animal
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at serp.util.Strings.toClass(Strings.java:160)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
rethrown as org.apache.commons.lang.exception.NestableRuntimeException:
Animal
at serp.util.Strings.toClass(Strings.java:164)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Caused by: java.lang.ClassNotFoundException: Animal
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at serp.util.Strings.toClass(Strings.java:160)
... 18 more
==================
Stephen Kim wrote:
Matt,
you should see a stack trace in workspace/.metadata/.log. Can you send
us the error so that we can fix the reproting?
Maybe you are looking for
-
HT203254 mac book pro 2008 with NVIDIA GeForce 8600M GT graphics processor...
Hi, I just want to know if my mac book pro 2008 15" with NVIDIA GeForce 8600M GT graphics processor can be changed or repaired?My Mac doesnt have display on it...Sometimes it shows up...but after a while its black screen again..tnx
-
BPM and SOA will Support Windows Server 2003 R2 x64
Hello All - Can you please tell me, BPM and SOA Suite (10g and 11g) can support the following Server? Windows Server 2003 R2 Standard x64 Edition Service Pack2. Thanks in advance.
-
Can't we get calls to normal mobile phones from apple iPad 3 wifi+4g
I want to know weather we can get calls to normal mobile phones from apple I pad3 wifi+4g
-
After installing 'crunch sms' then uninstalling it after becoming annoyed with it, the message format has not changed back correctly. So now when i send messages they look like the blackberry messenger way. Is there an easy way to change it back to i
-
Infoobject from multiprovider user exit
hi, how can I retrieve Infoobjects from multiprovider in a user exit..... with regards, JD