JDeveloper 11.1.2.0.0 Webservice projects using maven, broken dep
Hi I am having a build dependency problem when writing webservices with JDeveloper
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: com.sun.codemodel:codemodel:jar:null
Reason: Cannot find parent: com.sun:codemodel for project: com.sun.codemodel:codemodel:jar:null for project com.sun.codemodel:codemodel:jar:null
It's true, I cannot find this dependency anywhere, the dependency that causes this problem is:
<dependency>
<groupId>oracle.jdeveloper.library</groupId>
<artifactId>JAX-WS-Web-Services</artifactId>
<version>11.1.2.0.0</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
which JDeveloper puts into my pom file.
I guess you can't do this. Looks like the messages are not customizable.
Timo
Similar Messages
-
Issue in deploying Service Bus projects using maven
Hi,
I am following the following documentation for deploying service bus projects to my OSB server.
http://docs.oracle.com/middleware/1213/core/MAVEN/osb_maven_project.htm#MAVEN8973
I was able to issue mvn package as described in documentation and also able to see sbar files in .data/Maven directory of each project.
But i am seeing following error when i issue mvn pre-integration-test. Am i missing any steps.
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ System ---
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-System-1424718369010.
java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'w
eblogic.management.mbeanservers'
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.ja
va:237)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.j
ava:120)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:369)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.getJMXConnector(MBeanHel
per.java:228)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.invoke(MBeanHelper.java:
131)
at com.sun.proxy.$Proxy16.createSession(Unknown Source)
at oracle.sb.maven.plugin.DeployMojo.createSession(DeployMojo.java:141)
at oracle.sb.maven.plugin.DeployMojo.execute(DeployMojo.java:89)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j
ava:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter
.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.d
omainruntime'. Resolved 'weblogic.management.mbeanservers' [Root exception is javax.naming.NameNotFo
undException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic
.management.mbeanservers']; remaining name 'domainruntime'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1180
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:270)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:187)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:701)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:231)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:527)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:523)Hi Siva,
I am facing same issue I am bale to create package but while deployment goal I am facing problem.I am following same document as you do.
I can see my mvn-pre-integration ..show me sucees in result
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0.3
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracl
-servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package' with basic configurator -->
[DEBUG] (f) oracleHome = C:\Oracle\Middleware\Oracle_Home
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] (f) system = false
[DEBUG] -- end configuration --
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888616161.
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888623126.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building LinuxMachine 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-so
rces, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, i
tegration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: LinuxMachine:LinuxMachine:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] =======================================================================
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TestOSBLinux ....................................... SUCCESS [ 20.752 s]
[INFO] LinuxMachine ....................................... SUCCESS [ 0.009 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
But not get deployed .....
When i run mvn com.oracle.servicebus.plugin:oracle-servicebus-plugin:deploy** to invoke deployment goal it fails which below logs
org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'deploy*.*' in plugin com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0 amon
goals deploy, package
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:275)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:239)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:233)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR]
Thanks&Regards
Prabhat -
Sharing ruleset between several projects (FlexPMD + Maven)
Hi,
We are building a bunch of flex projects using Maven, with a customized ruleset.xml. The method mentionned in the doc.
<configuration>
<ruleSet>${basedir}/your-flex-pmd-ruleset.xml</ruleSet>
</configuration>
works just fine for one project, but does not allow to share the configuration between several projects. Would there be anyway to get the ruleset as an artifact or in a jar, or to share it between several projects in any other way ?Hi,
We are building a bunch of flex projects using Maven, with a customized ruleset.xml. The method mentionned in the doc.
<configuration>
<ruleSet>${basedir}/your-flex-pmd-ruleset.xml</ruleSet>
</configuration>
works just fine for one project, but does not allow to share the configuration between several projects. Would there be anyway to get the ruleset as an artifact or in a jar, or to share it between several projects in any other way ? -
Getting error while publishing WebService project on Oracle Weblogic 10.3.1
I am trying to publish my WebService project on weblogic 10.3.1 through Oracle Workshop. I am getting following exception will deploying my application
<Jun 26, 2009 4:59:02 PM GMT+05:30> <Alert> <HTTP> <BEA-101027> <[weblogic.servlet.internal.WebAppServletContext@34c0bd - appName: '_auto_generated_ear_', name: 'COBWSProject', context-path: '/COBWSProject', spec-version: '2.5'] Document root: "C:\bea\user_projects\workspaces\default1\COBWSProject\build\jws\weboutput" does not exist.>
<Jun 26, 2009 4:59:02 PM GMT+05:30> <Error> <HTTP> <BEA-101220> <Error occurred while setting document root for "weblogic.servlet.internal.WebAppServletContext@34c0bd - appName: '_auto_generated_ear_', name: 'COBWSProject', context-path: '/COBWSProject', spec-version: '2.5'" to "C:\bea\user_projects\workspaces\default1\COBWSProject\build\jws\weboutput".>
<Jun 26, 2009 4:59:02 PM GMT+05:30> <Error> <Deployer> <BEA-149205> <Failed to initialize the application '_auto_generated_ear_' due to error weblogic.application.ModuleException: Failed to load webapp: 'COBWSProject'.
weblogic.application.ModuleException: Failed to load webapp: 'COBWSProject'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
Truncated. see log file for complete stacktrace
java.io.IOException: document root (C:\bea\user_projects\workspaces\default1\COBWSProject\build\jws\weboutput) does not exist.
at weblogic.servlet.internal.WebAppConfigManager.getDocrootFile(WebAppConfigManager.java:644)
at weblogic.servlet.internal.WebAppServletContext.processDocroot(WebAppServletContext.java:2651)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:2552)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:388)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456)
Truncated. see log file for complete stacktrace
>
Please let us know the solution for the same. Thanks in Advance !As a workaround, after doing a "Clean All" and just before doing a "Build All", I created a "weboutput" folder manually under the 'build' folder in the web project in Workshop. That worked for me.
[For some reason, everytime we do a "Clean", it deletes the 'weboutput' folder that it depends on ,even though it always remains empty].
Hope this helps ! -
Getting error while deploying New WebService project on standalone server
Hi,
I have created a new Model project for WebService and I am able to test this new webservice project by launching "TalentTasksServiceImpl.java" file locally but getting some error while deploying it on standalone server. See below log for more details,
08:03:16 PM INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
08:03:16 PM INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
08:03:16 PM INFO: GenericWSWarAnnotationListener.parseAnnotatedClass Adding Servlet Mapping with URL pattern /TalentTasksService for annotated WebService class oracle.apps.hcm.talent.common.tasksService.applicationModule.server.TalentTasksServiceImpl
*08:03:16 PM Error: Could not load endpointInterface oracle.apps.hcm.talent.common.tasksService.TalentTasksService*
08:03:17 PM #### Deployment incomplete. ####
08:03:17 PM WSA process exited with code 1.
I have verified the jar selection mention on this forum link: help..
Any help on this will be greatly appreciate.Yes Frank. Ours is an SDO service created as per [Service enabled Application Modules|http://docs.oracle.com/cd/E23943_01/web.1111/b31974/bcextservices.htm#CJAJGIEB] . We have created the deployment profile as a 'Business Component Service Interface' profile.
Our attempt to deploy onto standalone from Jdev also fails with the same error. Unsure why the interface is unable to load - Error: Could not load endpointInterface oracle.apps.xyz.common.tasksService.TasksService.
Does this mean, the deployment process is unable to locate this interface? We have cross checked our deployment profiles quite a few times and could not find anything amiss. -
Deploy project using Jdeveloper with native library (dll)
hi
i need to deploy project using Jdeveloper but the generated jar dose not include native library dll file .it is ok now
using deployment in properties of project and add new file group of type dependency analysis -
Error deploying JDeveloper project using ant-sca-compile.xml
Hi all, I'm having problems on deploying a JDeveloper project using ant-sca-compile.xml. The output in C:\XXXX\YYYYY\SCA-INF\classes\scac.log is:
java.lang.NoClassDefFoundError: 4\jdeveloper\////oracle_common
Caused by: java.lang.ClassNotFoundException: 4\jdeveloper\....oracle_common
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
Could not find the main class: 4\jdeveloper\/../oracle_common. Program will exit.
Exception in thread "main"
What's missing in wich classpath?
Regards
Efren.Same composite we were able to deploy successfully without any error, from Monday onward we are experiencing this issue.
We checked in Installation Guide provided by oracle. Oracle has suggested few memory related changes in ant-sca-compile.xml file.
Increasing Memory to avoid Compilation Errors
To avoid out-of-memory errors during compilation of a SOA composite application, you need to
increase the following memory settings.
To increase memory settings:
1. Open the ant-sca-compile.xml file in the SOA_HOME/bin directory.
2. Under the scac element, increase the following memory settings.
<jvmarg value="-Xms2048m"/>
<jvmarg value="-Xmx2048m"/>
<jvmarg value="-XX:PermSize=32m"/>
<jvmarg value="-XX:MaxPermSize=256m"/>
3. For Windows change the following memory settings to.
<jvmarg value="-Xms1536m"/>
<jvmarg value="-Xmx1536m"/>
<jvmarg value="-XX:PermSize=32m"/>
<jvmarg value="-XX:MaxPermSize=256m"/>
We did those changes but still experiencing same error. I checked H:\AIASOAProject\AIAReceiptInterface\ReceiptListEbizProvider\SCA-INF\classes\scac.log ; file its showing Could not create the Java virtual machine.
Regards
Manish -
When we use XML,XSD,WSDL files to create SOA webservices in jdeveloper ,what will happen means internally,how will useful xml ,xsd,wsdl for composite ?
How xml will send message to XSD then how wsdl interaction then to composite ?XSD (XML Schema Definition), is an abstract representation of a XML characteristics.
The WSDL (Web Services Description Language), describes the functionality offered by your web service.
You can say what operations your services offers, and describe the messages used for this operations in your XSD. -
My project using Oracle9i Jdeveloper
http://www.weizhiyun.com/prj/lss/lss.htm
I use Jdeveloper and Oracle database to finish the project.
It is easy and happy. Welcome to share my happiness.Seems to be 10 times larger than mine. here are my information:
Midi Regions:195 - ram 401040
environment objects: 240 - ram 221180
Undo steps: 31 - ram 701712
Regards, K -
Problem in project using Eclipse+Tomcat+Apache Beehive
Hi,
Software used
Operating System : Red Hat Linux
IDE : eclipse 3.1 M7
Server : Tomcat 5.5.10
Webservice Package : Apache Beehive Build 20050505
Plugin for integrating Apache Beehive with eclipse is POLLINATE
My Problem: when I created my first webservice project . In all the log4j.xml files in the project. It gave an error saying that log4j.dtd file not found inside /root/workspace/SampleProject1/webcontent/WEB-INF/src/log4j.dtd
Please provide me some suggestions to clean this error
Thank you
Mikedidi you set the right path to the jre?
there's a goog mailing llist for tomcat issues. go to the jakarta/tomcat website to subscribe. they might help you. -
Web Service Project using WSDL file
Hi All,
I want to create web service project using WSDL file(I already have a wsdl file), which needs axis2 run time to generate correct project structure, I did this in eclipse but now I want to do it through JDeveloper(11.1.2.0.0), so please suggest me any ways on how can I configure axis2 runtime in Jdeveloper, and is it possible do it in Jdevloper?
Thank You,
Sunny
Edited by: Sunny on May 8, 2012 1:51 AMHave you installed the 64-bit Access driver on your machine? See
Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder. -
Who can introduce the development contents of the project using java ?
Hi , Web Dynpro experts:
Could u introduce the working contents of the project using java ?
1. Do you develop function that would run in a sap standard system(such as CRM ,internet sales)? OR develop a completely independent web application base on client's demand(EJB,JSP,HTML)?
2.Do all the user interfaces run in web browser ?
In a word ,I just want to know what picture is it as you are using java to work on SAP ,Because I must study AP&JAVA duo to the coming project. Could you explain it for me about SAP&JAVA in any perspective according to your project experience .
BTW: I have 2 years experience on J2EE and 1 year on ABAP. So how i should get started ?Hi Guixin,
The most common structure for building a WebDynPro application is to expose functionality from underlying systems and present it using the WebDynPro UI. Often the underlying system is a SAP ERP/CRM type system, but can also be any WebService compliant system, or a combination of both.
Using the Netweaver System Landscape Directory (SLD), WebDynPro can send and receive data independantly of the source. SAP ERP/CRM systems will expose their functionality using RFC-enabled BAPIs. These functions can be standard SAP delivered modules or custom developed using ABAP.
The choice of where to develop your business logic really depends on the history/strengths of your organisation. If you have a strong history of ABAP development in SAP, then it would be recommended to use ABAP for your business logic and WebDynPro for UI. If J2EE is the strong suit, use that instead.
The WebDynPro interface runs in a browser (either IE or Firefox) however there is a beta version of a WebDynPro GUI for Windows which may offer some performance improvements.
HTH,
Jonathan -
How to create project using JAX-ws 2.0 in My-eclipse
Hi Friend,
I want to create one application in which i want to use JAX-WS 2.0 by using IDE Myeclipse.
I want to know wether myeclipse will support JAX-WS 2.0 Or not.
If Yes then please guide me How can i go ahead .
I tried to create WEB services project using Myeclipse but it is using XFire .
Which i want to avoid . I want it without using XFire.I found out that deployment is specified in different JSR (109). I quickly browsed through that specification and found out that basically everything except @WebService annotation is optional. So should a Java EE 5 compliant server publish the service automatically, just by adding that @WebService annotation? That didn't seem to be the case at least in Geronimo 2.0.2.
-
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
Eclipse web project using Glassfish 4.1 can not load some libraries in modules directory
We installed latest "Glassfish Tools for Luna" (updated on 2 October 2013) and created a new Eclipse dynamic web project using Glassfish 4.1. When try to annotate a class with "javax.enterprise.context.ApplicationScoped", it complains as "ApplicationScoped cannot be resolved to a type" although imported as "import javax.enterprise.context.ApplicationScoped".
Checking "glassfish-4.1/glassfish/modules/" directory and there is cdi-api.jar that contains ApplicationScoped class. But when checking from the project libraries in the eclipse, couldnt see such a jar.
My configuration:
Eclipse 4.4
Glassfish runtime java development kit : java 1.8.0_20
Project java development kit : java 1.8.0_20
Project compiler level : 1.8
Project facets : Dynamic web module 3.1, Java 1.8, Glassfish Web Extensions 4.0, Javascript 1.0
How to solve this issue?
Thanks.There are 274 jars in the Glassfish 4.0 modules directory, whereas there are 282 jars in the Glassfish 4.1 modules directory. So it is not only cdi-api.jar. Moreover there are some libraries, the names of which have been changed.
Why not simply importing all libraries in the modules directory to Eclipse, like Tomcat plugin does for tomcat/lib directory? So when manually deploying a library(jar) to modules directory Eclipse will discover it automatically.
Thanks.
Maybe you are looking for
-
My netflix won't play on my computer. At first it wouldn't work in Safari and it gave me a redirect failure (too many redirects). Then I tried it in Chrome and it won't work in there. It work for a few days in Firefox and now that doesn't work either
-
How to import User-Defined Libraries to ODI?
Hi All, I am trying to execute Java programs using ODI. There are many User-Defined classes imported in the programs. I have these User-Defined classes in JAR form. My ODI is setup on a linux system. So, where should these JAR files be uploaded in th
-
Oracle EBS R12 performance is very slow...
Our EBS R12 instance performance has become very slow.Users frequently complain of oracle forms taking a long time to open,concurrent taking more than normal time to complete etc.All standard requests like Gather Schema Statistics, Purge Concurrent/M
-
Crystal Web Viewer 2010 - Strange Toolbar Behavior
Ww are using the CR13 Web Viewer Control inside a Dot Net Nuke Control Module. Everything is going smashingly....we just have a single issue left with how the toolbar is being diaplayed. Please click on the Link to see an image of how the toolbar loo
-
I'm in adjustments doing a raw image and I can not find where my presets are? Used to be in a drop down in inspector? Where are the presets now?