Eclipse 3.1 & web tools project & NITROX
Hi,
I'm using the eclipse wtp; the included jsp editor is very bad. I would prefer using Nitrox. but whenever I open a jsp file I get the error msg below. The opened jsp file is in the webroot directory (WebContent).
Anyway why isn't it possible to edit jsps outside the Webroot dir? I have linked jsps from an external drive to eclipse; I cannot map this to the webroot, only to the project root. This is nececssary to edit open market CMS files.
Please help!
Unable to create editor. This message may be due to a bug in the editor, not a problem with the file you are trying to edit. First close this error message and then use "Open With..." to open the file in a different editor. Reason for the failure:
The NitroX editor can only be used with the pages located in the Web Application Root directory.
The Web Application Root directory is the directory containing the WEB-INF folder.
The text editor is being used instead.
org.eclipse.ui.PartInitException:
The NitroX editor can only be used with the pages located in the Web Application Root directory.
The Web Application Root directory is the directory containing the WEB-INF folder.
The text editor is being used instead.
at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.A(Unknown Source)
at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.init(Unknown Source)
Hi,
NitroX currently supports a war directory structure. In a project the Web Application Root is the directory containing the WEB-INF folder (which should contain the web.xml file).
All web app resources (JSP files, image, css files, etc) are expected to be under the Web Application Root directory (at any nested directory level). And you can open the JSP/XML files in NitroX Editor present within webroot.
We will enhance this behavior in the future to support arbitrary directory structures.
Note: As long as you map network drive to the shared folder containing the project directory it should not be a problem to import the application in NitroX.
Thanks,
M7 Support
Similar Messages
-
Any problems with Web Tool Project (WTP)?
Hi
The Web Tool Project has just been released.
http://www.eclipse.org/webtools/
Has anyone tried installing webtool and Nitrox together and if there are
any conflict between the two?
I have not installed it myself but would like to get feedback from this
group if any one has made the attempt.
Thanks!Hi all
The first usual suspect to check is to ensure your style sheet is properly attached and being used. Following that, double check to ensure there aren't any inline styles that may be overriding what the external or linked CSS specifies. I'd be doubtful that's the case, however, as it would seem that you are only noticing a difference in output. If you had inline styling you would see it on the source side as well.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Eclipse environment does not appear the options "Web Dynpro Project"
Hi all,
I installed the SAP NetWeaver 7.1 Composition Environment SP03
But in my eclipse environment does not appear the options "Web Dynpro Project" and not "Development Component Project".
That is, I can not do a Web Dynpro project
I have to do some more configuration in eclipse, for example, carry some plugin?
How to do this, please help me
Thanks,
VivianHi,
I think you are suffering from the problem below.
Problem Statement:
No Webdynpro Perspective is Visible
only perspectives available are
Debug
Resource(default)
Team Synchronizing
How to Solve:
There are many ways that this kind of error can occur.
1. It may occur due to "improper installation of NWDS"
How to Check and Resolve : Is NWDS is displayed in intalled list in Control panel? If 'yes' then it is properly installed. If 'No' then reinstallation is needed.
2. It may occur due to "installation of Skeleton alone"
How to Check:
you can check if your installation includes Web Dynpro by selecting
Help->Software Updates->Manage Configurations.
When installing Developer studio 7.1 you only get the bare eclipse installation (Skeleton). You have to add web dynpro and all, after the initial install is complete.
The installer installs the kernel of the Developer Studio. The kernel contains Eclipse and a few SAP additions, but is not equipped with the SAP features necessary for the Composition Environment. In order to install the required SAP features you have to install the SAP features.
How to Resolve:
Updating the NWDS software will resolve the problem.
Go to Help->Software Updates->Find and Install. This will install the default SAP plugins that came with your NWDS CE 7.1 setup source and also the additional updates that are needed. -
BPM/Eclipse web tools installation
Hello,
I try to install plug-ins for Eclipse but keep getting the following errors. I get the same error about Mylyn 3.0.0 org.eclipse.mylyn.tasks.core when I try to install Mylyn (tried different versions)...
What am I missing and what should I do?
Thanks
Current configuration contains errors that are not corrected by the requested operation and more errors would be introduced. See details for more information.
----- Current configuration problems -----
Subclipse Integration for Mylyn 3.x (Optional) (3.0.0) requires plug-in "org.eclipse.mylyn.tasks.core (3.0.0)", or compatible.
----- Configuration problems after the operation -----
Subclipse Integration for Mylyn 3.x (Optional) (3.0.0) requires plug-in "org.eclipse.mylyn.tasks.core (3.0.0)", or compatible.
JavaScript Developer Tools (1.0.5.v200904281522-6-E79BcMAAz0BbEfEkMZ) requires feature "org.eclipse.platform (3.4.0)", or compatible.
Eclipse XML Editors and Tools (3.0.5.v200903310029-7F3ENzCwum8Y6U_uQnFsWiUaNXFk) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Common UI (3.0.5.v200903300951-7C78ELqE8VrRVrtKp9gT6KxR8WBR) requires feature "org.eclipse.gef (3.4.0)", or compatible.
WST Common Core (3.0.5.v200903300951-7C7_EVVE_EkMNwQ7VAQ9ik) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST XML Core (3.0.5.v200903310029-7A7NEH6E7QYGHRHvLuKlbZ) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Web UI (3.0.5.v200904070030-7R0EPLE8Ks_vFN8ntF_nOY1stwIC) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Web Core (3.0.5.v200904070030-7G2EBCAM217nJZPEYxjAcnk40uRS) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Server Core (3.0.5.v20090430-20Ao8s733K3_6A1226) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Web Services Core (3.0.5.v200904081850-7H7QECkED69XqMgup-fu537C5J) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Server UI (3.0.5.v20090318-791DE9vETFnvXEPbCQPH769D) requires feature "org.eclipse.platform (3.4.0)", or compatible.
WST Web Services UI (3.0.5.v200904081850-7E2EH_C-2gA4bQftGXjj2I-V2Jne) requires feature "org.eclipse.platform (3.4.0.v20080528-9I96EhtEm-T_5C48s6QSenwkJ3cHInkRH3nTT)", or compatible.
WST Server Adapters (3.0.1.v20080730-4-CF_kE77c7SCI58GJ) requires feature "org.eclipse.platform (3.4.0)", or compatible.I have the same problem.
I even tried installing Subclipse.
I have Studio 10.3.2
Eclipse version for it is Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
Build id: M20071023-1652
I always get this error:-
The current configuration contains errors and this operation can have unpredictable results.
Subclipse Integration for Mylyn 3.x (Optional) (3.0.0) requires plug-in "org.eclipse.mylyn.tasks.core (3.0.0)", or compatible.
I tried installing Mylyn 3.0.0 but it still gave me the same error.
I then tried installing Subclipse and gave me the same error.
Any idea? -
hi!
I want to add textbox, textfield, button etc.. to my html file that ı will use at servlet aplication.
can ı do this with use eclips web tools?how?I have the same problem.
I even tried installing Subclipse.
I have Studio 10.3.2
Eclipse version for it is Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
Build id: M20071023-1652
I always get this error:-
The current configuration contains errors and this operation can have unpredictable results.
Subclipse Integration for Mylyn 3.x (Optional) (3.0.0) requires plug-in "org.eclipse.mylyn.tasks.core (3.0.0)", or compatible.
I tried installing Mylyn 3.0.0 but it still gave me the same error.
I then tried installing Subclipse and gave me the same error.
Any idea? -
HTML & SWF placement in Web Dyanmic Project in eclipse
Hi,
I have developed a web project using web dynamic project in
eclipse3.3. In that i have one welcome page called Login.jsp which
is placed in the web.xml< welcome-list
>/Jsp/Login.jsp</Welcome-list> , this is
because Login.jsp is going to be the default page for my project. I
want to introduce the flex to my project i have written one
application ( Combo.mxml) with simple two text box and a
button.After compiling this application i got bunch of files in bin
directory , i tried to place all files in a folder called Jsp in my
project and i replaced the Login.jsp with Combo.html in my web.xml
(The folder structure i have given below) , after running my java
project its not displaying any thing . can anybody help me
MyProject
: project name
bin
build
src
WebContent
jsp
:jsp is sub folder of WebContent
-Combo.html
-Combo.swf
-Combo-debug.html
-Combo-debug.swf
META-INF
WEB-INF
-web.xml> If I create a web page in layout and design in FW and
export it to DW is
> the
> html code that is created from that layout the same as
if someone started
> DW
> in code mode and wrote the site from scratch
No. FW's HTML is good for prototyping but unless it is being
set up by
someone amply familiar with HTML already, it would not be
suitable for
production work. However, if you are asking if FW 'wizard'
code is
comparable to DW 'wizard' code (i.e., the mess produced by
LAYOUT MODE use
in DW) then that answer would be that neither are suitable
for production
work.
> This project does not seam hard but I do not write html
code
Personally, I think you need to stay away from the job. The
job itself is
ill-conceived in my opinion (java for flash rollovers), and
could be more
than a non-coder could manage effectively.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"gleeren65" <[email protected]> wrote in
message
news:g8el7o$e2i$[email protected]..
> Question I was at a freelance web design site and came
across a job for
> someone
> who wanted their site re-written in html with some java
for flash
> rollovers. My
> question is this,
>
> If I create a web page in layout and design in FW and
export it to DW is
> the
> html code that is created from that layout the same as
if someone started
> DW
> in code mode and wrote the site from scratch. I guess
what I am saying is
> when
> images are exported to DW is it a different type code
than hand written
> code.
>
> This project does not seam hard but I do not write html
code, I design,
> create
> and let DW create the code for me.
> Thanks for any replies.
> -
Error in web dynpro project build
Hi All,
My web dynpro project which was running absolutely fine earlier is now facing certain build and deployment problem.
<b>The build log is as follows:</b>
Jun 25, 2007 2:16:28 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: sox_p3v1: Build failed for sap.com/sox_p3v1(MyComponents) in variant "default":
The Build terminated with errors
Build log -
Build Plugin Version: 1.6.3 (630_REL) from 03 November 2004 12:47:57
Start: 25.06.2007 02:16:23
Temp dir: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F
prepare:
[mkdir] Created dir: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\DCs\sap.com\sox_p3v1\_comp\gen\default\deploy
[mkdir] Created dir: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\gwd\packages
gen:
[ddgen]
[ddgen] [Info] Property deployment is true: Deployment information is provided!
[ddgen] [Info] Property sourcepath: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\DCs\sap.com\sox_p3v1\_comp\src/packages
[ddgen] [Info] Property targetpath: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F/gdd
[ddgen] [Info] Property archivename: sap.com~sox_p3v1
[ddgen] [Info] Property vendor: sap.com
[ddgen] [Info] Property dcname: sox_p3v1
[ddgen] [Info] Property language: Available languages are automatically determined!
[ddgen] [Info] Property addpaths ...
[ddgen] [Info] SapMetamodelDictionaryContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model
[ddgen] [Info] SapMetamodelWebdynproContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model
[ddgen] [Info] SapMetamodelWebdynproContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
[ddgen] [Info] SapMetamodelDictionaryContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
[ddgen] [Info] Destination directory C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\gdd does not exist
[ddgen] [Info] Destination directory C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\gdd is created
[ddgen] [Info] Initialize generation templates from configuration jar:file:/E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/dict/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/severity.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/PackagePointer.java
[ddgen] [Info] Generating datatypes/com/sap/hcl/tree/parant.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/tree/PackagePointer.java
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/noanswer.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/PackagePointer.java
[ddgen] [Warning] Simple type com.sap.hcl.assessmemt.noanswer is generated with warnings
[ddgen] [Warning] mdoTexts: The text consists only of special characters and/or numbers. ;
[ddgen] [Info] Generating datatypes/com/sap/hcl/tree/iconproc.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/risk/impact.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/risk/PackagePointer.java
[ddgen] [Warning] Simple type com.sap.hcl.risk.impact is generated with warnings
[ddgen] [Warning] mdoTexts: The text consists only of special characters and/or numbers. ;
[ddgen] [Info] Generating datatypes/com/sap/hcl/control/effectiveness.gsimpletype
[ddgen] [Info] Generating datatypes/com/sap/hcl/control/PackagePointer.java
[ddgen] [Warning] Simple type com.sap.hcl.control.effectiveness is generated with warnings
[ddgen] [Warning] mdoTexts: The text consists only of special characters and/or numbers. ;
[ddgen] [Info] Generating datatypes/com/sap/hcl/risk/likelihood.gsimpletype
[ddgen] [Warning] Simple type com.sap.hcl.risk.likelihood is generated with warnings
[ddgen] [Warning] mdoTexts: The text consists only of special characters and/or numbers. ;
[ddgen] [Info] Generating datatypes/com/sap/hcl/risk/structRisk.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/control/structControl.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/issue/structIssue.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/issue/PackagePointer.java
[ddgen] [Info] Generating datatypes/com/sap/hcl/tree/structTree.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/structAnswer.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/structAuditInfo.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/structAudit.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/structAuditee.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/QuestionnaireInfo.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/task/structTask.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/task/PackagePointer.java
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/structQuestionnaire.gstructure
[ddgen] [Info] Generating datatypes/com/sap/hcl/tree/simpleTypesResource.properties
[ddgen] [Info] Generating datatypes/com/sap/hcl/control/simpleTypesResource.properties
[ddgen] [Info] Generating datatypes/com/sap/hcl/assessmemt/simpleTypesResource.properties
[ddgen] [Info] Generating datatypes/com/sap/hcl/audit/simpleTypesResource.properties
[ddgen] [Info] Generating datatypes/com/sap/hcl/risk/simpleTypesResource.properties
[ddgen] [Info] Generating dbtables/sdmDeployDd.xml
[ddgen] [Info] Generation finished (3 seconds)
[ddgen]
[wdgen]
[wdgen] [Info] Property deployment is true: Deployment information is provided!
[wdgen] [Info] Property sourcepath: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\DCs\sap.com\sox_p3v1\_comp\src/packages
[wdgen] [Info] Property targetpath: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\gwd
[wdgen] [Info] Property archivename: sap.com~sox_p3v1
[wdgen] [Info] Property vendor: sap.com
[wdgen] [Info] Property dcname: sox_p3v1
[wdgen] [Info] Property language: Available languages are automatically determined!
[wdgen] [Info] Property addpaths ...
[wdgen] [Info] SapMetamodelDictionaryContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model
[wdgen] [Info] SapMetamodelWebdynproContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/mm/_comp/gen/default/public/def/lib/model
[wdgen] [Info] SapMetamodelWebdynproContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
[wdgen] [Info] SapMetamodelDictionaryContent.zip - E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
[wdgen] [Info] Initialize generation templates from configuration jar:file:/E:/Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/wd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
[wdgen] [Info] Generating portalapp.xml
[wdgen] [Info] Generating wd.xml
[wdgen] [Info] Generating application.xml
[wdgen] [Info] Generating application-j2ee-engine.xml
[wdgen] [Info] Generating PublicPartFileList.properties
[wdgen] [Info] Generating PublicPartFileList.xml
[wdgen] [Info] Generation finished (0 seconds)
[wdgen]
[mkdir] Created dir: C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\classes
[javac] Compiling 7 source files to C:\Documents and Settings\anubha.pandey\.dtc\LocalDevelopment\t\FD7EA53918BB25A337D8FEA68F2A940F\classes
Build with ERRORS
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at com.sapmarkets.technology.classloader.ExtendedClassLoader.access$001(ExtendedClassLoader.java:21)
at com.sapmarkets.technology.classloader.ExtendedClassLoader$1.run(ExtendedClassLoader.java:702)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapmarkets.technology.classloader.ExtendedClassLoader.findClass(ExtendedClassLoader.java:688)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:173)
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:131)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:835)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:130)
at com.sap.tc.buildplugin.techdev.webdynpro.BuildAction.execute(BuildAction.java:79)
at com.sap.tc.buildtool.PluginHandler.handlePluginCommunication(PluginHandler.java:616)
at com.sap.tc.buildtool.PluginHandler.execute(PluginHandler.java:220)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1131)
at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:4713)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:301)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:206)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
End: 25.06.2007 02:16:28 (Duration: 4 seconds)hi Anubha:
This isnt a web dynpro error. This is an error regarding the java installtion of your machine. I guess there is a mis match between the JDK and the JRE verions installed. Kindly uninstall the jre and jdk and freshly install jdk 1.4.2_10 and let me know what happens.
P.S: Kindly assign points if your query is resolved, also close the question to assist other users narrow the search and find solutions -
How to create a new web service project of Weblogic 9.2 on Eclise ?
Dear experts,
I have to use weblogic server 9.2.2 and eclipse as my developing environment.
But when I execute eclipse->File->New->Project->WebLogic Web Services->Web Service Project.
I can't see the choice for weblogic server 9.x in the Target runtime field.
Even I download the additional server adapters, the oldest version is Oracle WebLogic Server 10gR3 (newer than 9.x).
So, how can I create a weblogic server9.x web server project on eclipse ?
Thanks,
James TungJames,
Which version of Eclipse are you using? Do you have Oracle Enterprise Pack for Eclipse installed? Which version?
According to the docs, OEPE 11.1.1.6 (the latest of this post) supports WLS back to version 9.2.
http://download.oracle.com/docs/cd/E15315_05/help/oracle.eclipse.tools.common.doc/html/index.html
Make sure that you have a WLS 9.2 Server Runtime defined.
Window->Prefereces->Server->Runtime Environments
Add a BEA System, Inc WLS 9.2 server runtime and make sure it is pointing to the right place on your file system and try creating your Web Service project again.
If you still have issues, try the OEPE forum.
Enterprise Pack for Eclipse -
Weblogic 8.1 and Eclipse using Weblogic Server Tools
I am working on a project that has been developed with Weblogic 8.1 without integration into an IDE (Eclipse, etc.) We are trying to convert the source tree to a form usable within Eclipse using Weblogic Server Tools. We want to make deployment on developer workstations quicker and easier and provide for server side debugging. There is not much documentation on how to do this that I have been able to find. I have just finished reading the details of the split directory strucuture in the Weblogic documentation and understand that Server Tools uses the split directory concept. My question is basically how we create the project in Eclipse (with Server Tools plug-ins) initially. Is anyone out there still using Weblogic 8.1 and Eclipse 3.3 (Europa) using Weblogic Server Tools that can help?
There isn't much in a way of documentation that's explicit to WebLogic Server Tools, but a lot of Workshop 10.2 documentation applies. Basically, you will want to create Dynamic Web Projects to house your code. On the first page of Dynamic Web Project wizard, you will get a chance to define and target a server (WLS 8.1 in your case). That will configure your project classpath for WLS 8.1 and get everything else squared away.
Note that there is only very basic support for 8.1. In particular, the split-directory concept is not supported, but deployment is taken care of for you behind the scenes, so the details shouldn't matter that much. -
Problems by sharing Web Dynpro Project in SVN or CVS Repository
Hi,
I am trying to share a Web Dynpro Project with an 3rd-Party Repository like SVN or CVS instad of DTR.
As help to share this project I used the guideline from Wolf Hengevoss
("The Fast Way to Component-Based Development with the SAP NetWeaver CE 7.1 u2013 Part III",
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/703268e0-06c9-2b10-c69c-8cc830175ab3).
But as soon as I am sharing the project in an repository (equal if I am using SVN or CVS),
I am getting the following error during deploy process:
1st popup:
Internal Error
Unable to write to read-only file: /DSBBI5vhsgui(2fvhs_callcenterform_wdpdsb.net/WEB-INF/web.xml
Details
Message:
Internal Error
Plugin name: Web Dynpro Archive Builder
Internal error: com.sap.ide.webdynpro.archivebuilder
Plugin ID: com.sap.ide.webdynpro.archivebuilder
Error Code: 0
Exception StackTrace:
java.lang.Exception: Call Stack of internalError call
at com.sap.ide.tools.services.ui.dialog.DialogService.internalError(DialogService.java:79)
at com.sap.ide.mmservices.core.eclipse.ui.ServicesUI.internalError(ServicesUI.java:68)
at com.sap.ide.webdynpro.archivebuilder.ArchiveBuilderPlugin.internalError(ArchiveBuilderPlugin.java:23)
at com.sap.ide.webdynpro.archivebuilder.ArchiveService.createWebInfContent(ArchiveService.java:536)
at com.sap.ide.webdynpro.archivebuilder.ArchiveService.createFolderStructure(ArchiveService.java:308)
at com.sap.ide.webdynpro.archivebuilder.ArchiveService.createFolderStructure(ArchiveService.java:229)
at com.sap.ide.webdynpro.archivebuilder.ActionGenerateArchive$CreateArchiveJob.doGeneration(ActionGenerateArchive.java:283)
at com.sap.ide.webdynpro.archivebuilder.ActionGenerateArchive$CreateArchiveJob.runInWorkspace(ActionGenerateArchive.java:212)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
2nd popup:
Problem Occured
Getting repository state for resource:
L/DSB~BI~5~vhsgui(2fvhs_callcenterform_wdp~dsb.net/WEB-INF/web.xml
(Time of error: 27. April 2009 09:16:54 MESZ)
Reason:
java.lang.UnsupportedOperationException
Runtime exception occured while executing job 'Getting repository state for resource:
L/DSB~BI~5~vhsgui(2fvhs_callcenterform_wdp~dsb.net/WEB-INF/web.xml':
java.lang.UnsupportedOperationException
Although it doesn't matter if I check-in the whole Web Dynpro project or just the src-folder and .dcdef-file.
By the way, the deployment happend successfully...
Has anybody an idea what could be the reason of this problem?
Regards,
Jens
Edited by: Jens Geissler on Apr 27, 2009 9:34 AM
Edited by: Jens Geissler on Apr 27, 2009 9:35 AMHi Jens,
I think the other repositories (apart from SAP's own DTR, part of NWDI) are not supported as in base CE 7.1 release & support may be in higher CE release versions.
I feel if they are supported, then it is a bug and you can get things clarified by raising an OSS message.
Hope this info helps you.
Kind Regards,
Nitin -
Create adaptive web service model for a web dynpro project
I have been trying to create a new new adaptive web service model for a web dynpro project.I am using the URL of the wsdl file to create the model. I have copied the url link of the wsdl from the overview tab of the web services navigator. The web service works fine when tested through the Netweaver Navigator. This web service has also been used successfully through the Visual Composer. But when I try to create a model for this web service URL, when I click the Next button after entering the URL in the model creation wizard step 4 , I get "Error loading wsdl file. Check error log for details" Given below is the exception recorded in the error log: (Infact, I get this for all wsdl URLs)
!MESSAGE Jun 6, 2007 9:44:59 AM com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] Error: Internal error
Plugin name: Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameWS
Method : loadNameSpacesAndModelClasses
Message : Cannot load NameSpaces and ModelClasses
Class Path: C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.cmi_1.0.0/_cmi_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.exception_2.0.0/lib/exception.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/boot.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/iq-lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/util.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/tc_sec_wssec_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.runtime_2.0.0/lib/SapDictionaryTypesRuntime.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.services_2.0.0/lib/SapDictionaryTypeServices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/logging.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/loggingStandard.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/jARM.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.xmltoolkit_2.0.0/lib/sapxmltoolkit.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/activation.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxm-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/saaj-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxrpc-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jnet.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jsse.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/mail.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.webdynpro.model.webservice_2.0.0/lib/_webdynpro_model_webservice.jar;
java.home: C:\java\j2sdk1.4.2_09
proxyHost:
proxyPort:
nonProxyHosts:
Temporary Directory: C:\DOCUME1\E51914\LOCALS1\Temp\
WSDL URL: http://etcvpcod108:50100/UserService/Config5?wsdl
Exception : com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL http://etcvpcod108:50100/UserService/Config5?wsdl and service factory configuration {DynamicProxy.ClassPath=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.cmi_1.0.0/_cmi_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.exception_2.0.0/lib/exception.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/boot.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/iq-lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/util.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/tc_sec_wssec_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.runtime_2.0.0/lib/SapDictionaryTypesRuntime.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.services_2.0.0/lib/SapDictionaryTypeServices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/logging.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/loggingStandard.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/jARM.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.xmltoolkit_2.0.0/lib/sapxmltoolkit.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/activation.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxm-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/saaj-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxrpc-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jnet.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jsse.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/mail.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.webdynpro.model.webservice_2.0.0/lib/_webdynpro_model_webservice.jar;, DynamicProxy.INetProxy.Bypass=, DynamicProxy.INetProxy.Port=, DynamicProxy.Javac.path=C:\java\j2sdk1.4.2_09, DynamicProxy.TempDir=C:\DOCUME1\E51914\LOCALS1\Temp\, DynamicProxy.INetProxy.Host=}
!STACK 0
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://etcvpcod108:50100/UserService/Config5?wsdl' and service factory configuration '{DynamicProxy.ClassPath=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.cmi_1.0.0/_cmi_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.exception_2.0.0/lib/exception.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/boot.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/iq-lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/util.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/webservices_api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/lib/tc_sec_wssec_lib.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.runtime_2.0.0/lib/SapDictionaryTypesRuntime.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.dictionary.services_2.0.0/lib/SapDictionaryTypeServices.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/logging.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/loggingStandard.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/lib/jARM.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.xmltoolkit_2.0.0/lib/sapxmltoolkit.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/activation.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxm-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/saaj-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jaxrpc-api.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jnet.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/jsse.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ext.libs.webservices_2.0.0/lib/mail.jar;C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.webdynpro.model.webservice_2.0.0/lib/_webdynpro_model_webservice.jar;, DynamicProxy.INetProxy.Bypass=, DynamicProxy.INetProxy.Port=, DynamicProxy.Javac.path=C:\java\j2sdk1.4.2_09, DynamicProxy.TempDir=C:\DOCUME1\E51914\LOCALS1\Temp\, DynamicProxy.INetProxy.Host=}'
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:413)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:371)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:341)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:305)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:315)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameWS.loadNameSpacesAndModelClasses(PageRenameWS.java:435)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:105)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)
at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:411)
... 53 moreHi Srikanth,
My version was
Version: 7.0.09
Build id: 200608262203
I was able to successfully import the model after I did the following
1. Re intsall Studion (same version , same build)
2. Reset the proxy settings to not use Proxy server
Thanks for looking into it though...
-Lakshmi -
BW SEM-BPS API functions from a Web Dynpro project in Netweaver
Hi,
Rather than using the standard Web Interface Builder in BW SEM-BPS (3.1B), we have to use SAP Netweaver to create a Web Dynpro project which accesses all the API_SEMBPS functions, such as GETDATA, SETDATA, FUNCTION_EXECUTE etc. Has anyone done this before? If so, do you have any examples, hints?
Regards,
Linda LeeHello Linda,
let me add some more remarks on this topic from the BW-BPS development perspective:
I completely agree with Marc's statement.
Thechnically it is possible to build a planning application UI on top of the BW-BPS API functions and we have some customers that are live with such a solution. However, I would recommend this only in 2 cases
1. You need to create a tightly integrated application with BPS being only one part of several other components (including transactional UI, e.g. running against a CRM system).
2. You prefer a UI technology that is not provided by SAP (e.g. Java Swing based).
In all other cases, I would say that one should stick to the Web Interface created with Web interface Builder, mainly for cost reasons. If this tool does not fulfill all your needs there are several possibilities to enhance and extend the generated web interfaces by custom specific coding (see also several How-To guides in this area; e.g. "How to integrate a BEx Web Template into a BPS Web interface").
Another possibility is to loosly couple several web UIs with the help of the portal.
To my knowledge, it is not true that BSP web technology will be obsolete shortly.
In general, I would always prefer a tool supported, model driven approach compared to a heavy custom coding. This is also in sync with SAPs general strategy to a more pattern based approach to create UIs.
Regards,
Tobias Hagen
Dev. Manager BW-BPS
SAP NetWeaver BI -
Error while creating web dynpro project from DTR
Hello,
I am getting following error while creating Web Dynpro project from DTR,
org.eclipse.jdt.core.JavaModelException: File /<track name><DC><package>/.classpath is read-only.
Still project gets created but evenif I check out view , it does not allow me to edit it.
Also I have checked in and activated some changes but active copy in DTR is not reflecting those changes.
I tried Add subtree option in DTR perspective for folders in this project. Is it result of that?
Please help me in this regard.
Thank You
BeenaHi Beena,
.classpath file should not checked in to DTR(uncheck the Read only properties). It is local file it contains class path for local system.
Generally in webdynpro project only src folder should be checked in DTR.
Regards
Suresh -
Query related to Migrating non Dc Web dynpro project to DC.
Hi All,
I have the requirement to migrate a non DC Web dynpro project to DC.
I have a project which involves few models.The models are nothing but BAPIs released as web services. So, when I am trying to do what i intend to do, I am getting compile time errors and I am not able to deploy.
WHAT I AM DOING?
I am cerating an empty DC project. I am giving the Name and keeping the domain as basis which comes as the default one.
Later I am moving to the Navigator tab and trying to copy and paste the packages under src and the model folder.
Coming back to the web dynpro tab, i am trying to rebuild the newly created DC project. here i am getting thousands of compile time error.I have even tried changing the domain as enterprise portal while creating the DC project. But the result is same.
Kindly through some lime light on this.Its very urgent and I am still not very clear with componentization in web dynpros.
Looking forward to you.
Regards
DKHi DK,
Follow this procedure to Migrate Local Web Dynpro to DC Component.
<b>Creating a New Development Component</b>
1. Create a new Web Dynpro DC Project [Page 5].
You create an empty container for a Web Dynpro DC that does not have
functions. The new DC should include all relevant development objects
project.
<b>Do not check the newly created DC into the DTR yet.</b>
1.Copying Packages from the Local Project
2. In the Web Dynpro perspective, switch to the Navigator view.
3. Select the local Web Dynpro project to be migrated and expand the project
down to the source folder: <My_Local_Project> src packages.
4. Select all packages and choose Copy using the right mouse-click.
<b>Inserting Packages into the New DC Project</b>
5. Now choose the DC project that was just created and expand the project structure in
the Navigator view, again down to the source folder.
6. Select the Packages node and choose Paste.
The Add Files to DTR dialog box appears.
7. Choose OK to confirm your selection.
8. Assign a DTR activity either by creating a new activity or choosing an existing one.
Execute Reload
9. Switch to the Web Dynpro Explorer.
10. Choose the project node of the DC project and select the Reload function.
11. In the displayed dialog box, again choose Reload.
Reload now also reloads Web Dynpro metadata into the new project.
Building the Project
12. Execute a local rebuild for the entire DC project. Choose the function Rebuild
project.
13. If there are no errors in the task view, execute a DC-based build by choosing the
function Development Component Build.
This build is identical to the central build tool and is required to take dependencies of
DCs among each other into consideration.
<b>Result</b>
You have migrated your local Web Dynpro project into a DC project. You can now deploy the
new DC into your local environment and test it before you commence checking the assigned
activity into the DTR.
After all these steps, when you reload your project, if you happend to see errors in your project. Check few things.
- All the model classes has been genreated or not.
- Close the project and open it again, sometimes it works fine.
- Findout what is the reason for errors, any thing is missing.
Regards,
Sridhar
Message was edited by:
Sridhar kanchanapalli -
Simulation using Eclipse plugin for JCOP tools
Dear All,
In search for a simulation environment for java card applet development I tried to use Eclipse plugin for JCOP tools.
The samples which comes with the JCOP tools works fine but when try to debug my applet I receive the error: Wrong Data 6A 80.
Generic JCOP v2.4.1 is selected for Java Card Simulation.
Following is the JCOP Shell screen:
cm- /term "Remote|localhost:8050"
--Opening terminal
/card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B F8 13 00 00 81 31 FE 45 4A 43 4F 50 76 32 34 ;.....1.EJCOPv24
31 B7 1.
IOCTL().
ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOPv241"
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(908058 nsec)
<= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
01 FF 9F 6E 06 47 91 92 18 00 00 73 4A 06 07 2A ...n.G.....sJ..*
86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
04 01 2A 02 6E 01 02 90 00 ..*.n....
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 B1 04 15 2B 41 3F 62 AB 00 .P......+A?b..
(2668 usec)
<= 00 00 F9 02 71 E3 BB AD BD CD FF 02 00 00 3D 02 ....q.........=.
9C 31 C7 89 AD 44 8E 13 17 15 2E 5A 90 00 .1...D.....Z..
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 CE 6C DC D2 8C BE 5E 33 EC 58 D0 ......l....^3.X.
57 3A 52 D2 24 W:R.$
(2288 usec)
<= 90 00 ..
Status: No Error
cm> delete -r a00000006203010c04
=> 80 E4 00 80 0B 4F 09 A0 00 00 00 62 03 01 0C 04 .....O.....b....
00 .
(1084 usec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> upload -d -b 250 "D:\JCOP\eclipse\projects\DigitalTachograph\bin\digitaltachograph\javacard\digitaltachograph.cap"
=> 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 04 08 ..........b.....
A0 00 00 00 03 00 00 00 00 00 00 00 ............
(2100 usec)
<= 00 90 00 ...
Status: No Error
=> 80 E8 00 00 FA C4 82 84 42 01 00 25 DE CA FF ED ........B..%....
02 02 04 00 01 09 A0 00 00 00 62 03 01 0C 04 11 ..........b.....
64 69 67 69 74 61 6C 74 61 63 68 6F 67 72 61 70 digitaltachograp
68 02 00 21 00 25 00 21 00 0E 00 29 03 3E 00 CD h..!.%.!...).>..
23 D2 01 BB 04 44 00 00 09 E3 4B E5 00 11 00 05 #....D....K.....
01 A2 04 01 00 04 00 29 04 00 01 07 A0 00 00 00 .......)........
62 00 01 02 01 07 A0 00 00 00 62 01 01 02 01 07 b.........b.....
A0 00 00 00 62 01 02 02 01 07 A0 00 00 00 62 02 ....b.........b.
01 03 00 0E 01 0A A0 00 00 00 62 03 01 0C 04 01 ..........b.....
01 DF 06 00 CD 00 00 00 80 00 00 FF 00 01 00 00 ................
00 01 81 03 13 00 12 07 03 00 00 02 01 03 06 0B ................
8C 81 00 00 00 80 00 0B 00 0B 01 01 00 00 0B F9 ................
00 80 00 11 00 0F 01 01 00 10 0E A9 0D D4 0D F7 ................
0E 07 0E 18 0E 26 0E 35 0E 44 0E 50 0E 72 0E 81 .....&.5.D.P.r..
0E 90 0E 9B 0E F5 11 05 11 1A 11 50 00 80 00 05 ...........P....
00 04 01 04 00 01 13 AF 13 B5 13 BA 14 0C 13 00 ................
(6775 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
I will be very happy if you can help me. I am desperately in need of a working debugging environment.
Thanks in advance!
Kind regards,
Mehmet* Processes incoming READ_BINARY APDUs. Returns data of the currently
* selected file.
* @param apdu where the offset is carried in header bytes p1 and p2.
* @param le expected length by terminal
* @return length of the response APDU
private short processReadBinary(APDU apdu, boolean protectedApdu, short leUnprotected) {
if (!hasFileSelected()) {
ISOException.throwIt(SW_CONDITIONS_NOT_SATISFIED);
byte[] buffer = apdu.getBuffer();
// retrieve p1p2 from apdu buffer
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short offset = Util.makeShort(p1, p2); // offset encoded in P1/P2, 15 lowest bit
// offset encoded in P1/P2, 15 lowest bit
// check if le != 0 <-- no response expected
if (leUnprotected == 0) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
if (selectedFile == null) {
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
if ((selectedFile.getAccessConditions() & READ_REQUIRES_SM) == READ_REQUIRES_SM) {
if(!protectedApdu)
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
short fileSize = (short) selectedFile.getFileLength();
// check offset
if (offset >= fileSize) {
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);
// check expected length
if ((short) (offset + leUnprotected) > fileSize) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
//ISOException.throwIt(SW_TAMAM);
short bufferOffset = 0;
crypto.setEncryptionStatus(isSelectedFileEncrypted());
if (protectedApdu) {
bufferOffset = crypto.getApduBufferOffsetDT(leUnprotected);
if(isSelectedFileEncrypted())
bufferOffset = crypto.getApduBufferOffset(leUnprotected);
apdu.setOutgoing();
Util.arrayCopyNonAtomic(selectedFile.getData(), offset, buffer, bufferOffset, leUnprotected);
return leUnprotected;
* Processes and UPDATE_BINARY apdu. Writes data in the currently selected
* file.
* @param apdu
* carries the offset where to write date in header bytes p1 and
* p2.
private void processUpdateBinary(APDU apdu, boolean protectedApdu) {
if (!hasFileSelected() || isLocked()) {
ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
if ((selectedFile.getAccessConditions() & DigitalTachograph.UPDATE_ALW) != DigitalTachograph.UPDATE_ALW) {
if ((selectedFile.getAccessConditions() & DigitalTachograph.UPDATE_REQUIRES_SM) != DigitalTachograph.UPDATE_REQUIRES_SM) {
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
return;
}else if(!protectedApdu){
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
byte[] buffer = apdu.getBuffer();
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short offset = Util.makeShort(p1, p2);
short readCount = (short) (buffer[ISO7816.OFFSET_LC] & 0xff);
//if (!protectedApdu){
readCount = apdu.setIncomingAndReceive();
while (readCount > 0) {
selectedFile.writeData(offset, buffer, OFFSET_CDATA, readCount);
offset += readCount;
readCount = apdu.receiveBytes(ISO7816.OFFSET_CDATA);
private short processInternalAuthenticate(APDU apdu , boolean protectedApdu) throws CryptoException {
byte[] buffer = apdu.getBuffer();
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (KID_LENGTH * 2)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
// Check if VU.CHR maches the one of the selected certificate on the card
if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + KID_LENGTH), keyStore.selected_KID, (short) 0, KID_LENGTH) != 0) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, Rnd1, (short) 0, (short) 8) != (short) 8) { // Receive Rnd1
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
// Hash(PRnd2||K1||Rnd1||VU.CHR)
random.generateData(PRnd2, (short) 0, (short) 90);
random.generateData(K1, (short) 0, (short) 16);
crypto.shaDigest.update(PRnd2, (short) 0, (short) 90); // PRnd2
crypto.shaDigest.update(K1, (short) 0, (short) 16); // PRnd2||K1
crypto.shaDigest.doFinal(buffer, OFFSET_CDATA, lc, digest, (short) 0); //Rnd1||VU.CHR
BigNumber mod = new BigNumber((short) 128);
mod.init(keyStore.Card_PubMod, (short) 0, (short) keyStore.Card_PubMod.length, BigNumber.FORMAT_HEX);
mod.subtract(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX);
if (mod.compareTo(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX) == -1) {
mod.toBytes(signed, (short) 0, (short) 128, BigNumber.FORMAT_HEX);
// To be added: if the selected private key is considered corrupted, the processing state returned is '6400' or '6581'.
signed[0] = (byte) 0x6A;
Util.arrayCopyNonAtomic(PRnd2, (short) 0, signed, (short) 1, (short) 90);
Util.arrayCopyNonAtomic(K1, (short) 0, signed, (short) 91, (short) 16);
Util.arrayCopyNonAtomic(digest, (short) 0, signed, (short) 107, (short) 20);
signed[127] = (byte) 0xBC;
if (!keyStore.cardPrivateKey.isInitialized()) {
CryptoException.throwIt(CryptoException.ILLEGAL_VALUE);
try {
crypto.rsaSigner.init(keyStore.cardPrivateKey, Signature.MODE_SIGN);
crypto.rsaSigner.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (!keyStore.selectedPublicKey.isInitialized()) {
CryptoException.throwIt(CryptoException.ILLEGAL_VALUE);
try {
crypto.rsaCipher.init(keyStore.selectedPublicKey, Cipher.MODE_ENCRYPT);
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
apdu.setOutgoing();
Util.arrayCopyNonAtomic(signed, (short) 0, buffer, (short) 0, (short) 128);
return (short) signed.length;
private void processExternalAuthenticate(APDU apdu) {
short equipmentType = 0;
if (keyStore.Selected_Cert != null) {
equipmentType = (short) keyStore.Selected_Cert.CHA[6]; // check equipment type
if (equipmentType != (short) 1 && equipmentType != (short) 2 && equipmentType != (short) 3 && equipmentType != (short) 4 && equipmentType != (short) 6) {
ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED); // Instead of 6F00 throw a more meaningfull SW in case CHA is not valid.
if (Util.arrayCompare(keyStore.Selected_Cert.CHA, (short) 0, TACHOGRAPH_AID, (short) 0, (short) 6) != 0) {
ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED);
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
if (p1 != 0 || p2 != 0) {
ISOException.throwIt(SW_WRONG_P1P2);
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (128)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, signed, (short) 0, (short) 128); // receive the cryptogram from the VU
// decrypt the encrypted message with the card private key
try {
crypto.rsaCipher.init(keyStore.cardPrivateKey, Cipher.MODE_DECRYPT);
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
// verify the signature with the VU public key
try {
crypto.rsaCipher.init(keyStore.selectedPublicKey, Signature.MODE_VERIFY); // Cipher.MODE_ENCRYPT
crypto.rsaCipher.doFinal(signed, (short) 0, (short) 128, signed, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
if (signed[0] != (byte) 0x6A || signed[127] != (byte) 0xBC) {
ISOException.throwIt(Util.makeShort(signed[0], signed[127]));
try {
verifyCardCertificates();
Util.arrayCopyNonAtomic(signed, (short) 1, preDigest, (short) 0, (short) 106); // accumulate preDigest
Util.arrayCopyNonAtomic(Rnd3, (short) 0, preDigest, (short) 106, (short) 8); // accumulate preDigest
Util.arrayCopyNonAtomic(keyStore.Card_Cert.CHR, (short) 0, preDigest, (short) 114, (short) 8); // accumulate preDigest
Util.arrayCopyNonAtomic(signed, (short) 91, K2, (short) 0, (short) 16); // receive K2 value
crypto.shaDigest.update(signed, (short) 1, (short) 106); // PRnd4||K2
crypto.shaDigest.update(Rnd3, (short) 0, (short) 8); // Rnd3
crypto.shaDigest.doFinal(keyStore.Card_Cert.CHR, (short) 0, (short) 8, digest, (short) 0); //||Card.CHR
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
if (Util.arrayCompare(signed, (short) 107, digest, (short) 0, (short) 20) != 0) {
ISOException.throwIt(SW_TAMAM);
volatileState[0] |= MUTUAL_AUTHENTICATED;
try {
DTUtil.xor(K1, (short) 0, K2, (short) 0, KaKb, (short) 0, (short) 16);
Util.arrayCopyNonAtomic(Rnd3, (short) 4, SSC, (short) 0, (short) 4); // tail of Rnd3
Util.arrayCopyNonAtomic(Rnd1, (short) 4, SSC, (short) 4, (short) 4); // tail of Rnd1
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
try {
keyStore.setKey_Ka(KaKb, (short) 0);
keyStore.setKey_Kb(KaKb, (short) 8);
keyStore.setSecureMessagingKeys(KaKb, (short) 0, KaKb, (short) 0);
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM_DEGIL);
return;
private short returnPreDigest(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(preDigest, (short) 0, buffer, (short) 0, (short) 122);
return (short)preDigest.length;
private short returnDigest(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(digest, (short) 0, buffer, (short) 0, (short) 20);
return (short)digest.length;
private short returnOriginalText(APDU apdu) {
byte[] buffer = apdu.getBuffer();
apdu.setOutgoing();
Util.arrayCopyNonAtomic(signed, (short) 0, buffer, (short) 0, (short) 128);
return (short)signed.length;
private void processVerify(APDU apdu) { // Verify_CHV(Pin_Ws)
byte[] buffer = apdu.getBuffer();
// retrieve the PIN data for validation.
byte byteRead = (byte) (apdu.setIncomingAndReceive());
// the PIN data is read into the APDU buffer
// at the offset ISO7816.OFFSET_CDATA the PIN data length = byteRead
if (pin.check(buffer, ISO7816.OFFSET_CDATA, byteRead) == false) {
ISOException.throwIt(SW_VERIFICATION_FAILED);
return;
private void processPSO(APDU apdu) { // verify certificate
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
short lc = (short) (buffer[ISO7816.OFFSET_LC] & 0xFF);
if (p1 == (byte) 0x00 && p2 == P2_VERIFYCERT) {
if (lc != TACHO_CERT_LENGTH) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
try { // copy the certificate to be verified from APDU buffer to cert object
Util.arrayCopyNonAtomic(buffer, OFFSET_CDATA, cert, (short) 0, lc);
} catch (Exception e) {
ISOException.throwIt(SW_TAMAM);
if (Util.arrayCompare(keyStore.selected_KID, (short) 0, keyStore.ERCA_KID, (short) 0, KID_LENGTH) == 0) {
keyStore.VUCA_Cert.verifyCert(cert, keyStore.selectedPublicKey, keyStore.selected_KID);
} else if (Util.arrayCompare(keyStore.selected_KID, (short) 0, keyStore.VUCA_Cert.CHR, (short) 0, KID_LENGTH) == 0) {
keyStore.VU_Cert.verifyCert(cert, keyStore.selectedPublicKey, keyStore.selected_KID);
} else {
ISOException.throwIt(SW_CERT_VERIFICATION_FAILED); // Selected keyId, with MSE, is neither ERCA_KID nor VUCA_KID
} else {
ISOException.throwIt(SW_CERT_VERIFICATION_FAILED);
return;
private short processGetChallenge(APDU apdu, boolean protectedApdu) {
byte[] buffer = apdu.getBuffer();
byte p1 = (byte) (buffer[OFFSET_P1] & 0xff);
byte p2 = (byte) (buffer[OFFSET_P2] & 0xff);
if (p1 != 0 || p2 != 0) {
ISOException.throwIt(SW_WRONG_P1P2);
random.generateData(Rnd3, (short) 0, (short) 8);
short Le = apdu.setOutgoing();
if (Le != (short) 8) {
ISOException.throwIt(SW_WRONG_LENGTH);
Util.arrayCopyNonAtomic(Rnd3, (short) 0, buffer, (short) 0, (short) 8);
return Le;
private void processMSE(APDU apdu) {
byte[] buffer = apdu.getBuffer();
if (buffer[OFFSET_P1] == (byte) 0xC1 && buffer[OFFSET_P2] == P2_DST) {
short lc = (short) (buffer[OFFSET_LC] & 0xFF);
if (lc != (short) (KID_LENGTH + 2)) {
ISOException.throwIt(SW_WRONG_LENGTH);
if (apdu.setIncomingAndReceive() != lc) {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
if (buffer[OFFSET_CDATA] != (byte) 0x83) {//check the tag of the data
ISOException.throwIt(SW_SECURE_MESSAGING_DATA_OBJECTS_MISSING);
} else if (buffer[OFFSET_CDATA + 1] != (byte) 0x08) {
ISOException.throwIt(SW_INCORRECT_DATA_OBJECT); // check if the key is already selected one
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.selected_KID, (short) 0, KID_LENGTH) != 0) {
if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.ERCA_KID, (short) 0, KID_LENGTH) == 0) {// KID is EUR_KID
keyStore.selected_KID = keyStore.ERCA_KID;
keyStore.selectedPublicKey = keyStore.eurPublicKey;
keyStore.Selected_Cert = null; // ERCA public key is selected
return;
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.VUCA_Cert.CHR, (short) 0, KID_LENGTH) == 0) {// KID is MSCA_KID
keyStore.Selected_Cert = keyStore.VUCA_Cert;
} else if (Util.arrayCompare(buffer, (short) (OFFSET_CDATA + 2), keyStore.VU_Cert.CHR, (short) 0, KID_LENGTH) == 0) { // KID is VU_KID
keyStore.Selected_Cert = keyStore.VU_Cert;
} else {
ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);
}// KID not found
keyStore.selectedPublicKey = keyStore.Selected_Cert.publicKey;
keyStore.selected_KID = keyStore.Selected_Cert.CHR;
} else { // if the KID is already set, just return
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_P1P2);
private void processSelectFile(APDU apdu) {
byte[] buffer = apdu.getBuffer();
short lc = (short) (buffer[OFFSET_LC] & 0x00FF);
// retrieve p1p2 from apdu buffer
byte p1 = buffer[OFFSET_P1];
byte p2 = buffer[OFFSET_P2];
short p1p2 = Util.makeShort(p1, p2);
apdu.setIncomingAndReceive();
if (p1 == 4) {
if (lc == (short) TACHO_AID_LENGTH) {
if (Util.arrayCompare(buffer, (short) OFFSET_CDATA, TACHOGRAPH_AID, (short) 0, (short) TACHO_AID_LENGTH) == 0) {
selectedFile = fileSystem.getDT();
fileSystem.selectDT();
volatileState[0] |= FILE_SELECTED;
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_DATA);
} else if (lc != 2) {
ISOException.throwIt(SW_WRONG_LENGTH);
short fid = Util.getShort(buffer, OFFSET_CDATA);
if (fileSystem.getFile(fid) != null) {
selectedFile = fileSystem.getDT();
fileSystem.selectDT();
volatileState[0] |= FILE_SELECTED;
return;
} else if (p1 == 2) {
if (lc != 2) {
ISOException.throwIt(SW_WRONG_LENGTH);
short fid = Util.getShort(buffer, OFFSET_CDATA);
if (fileSystem.getFile(fid) != null) {
selectedFile = fileSystem.getFile(fid);
volatileState[0] |= FILE_SELECTED;
return;
} else {
ISOException.throwIt(ISO7816.SW_WRONG_P1P2);
setNoFileSelected();
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
public static void setNoFileSelected() {
if (hasFileSelected()) {
volatileState[0] ^= FILE_SELECTED;
public static boolean hasFileSelected() {
return (volatileState[0] & FILE_SELECTED) == FILE_SELECTED;
public static boolean hasMutuallyAuthenticated() {
return (volatileState[0] & MUTUAL_AUTHENTICATED) == MUTUAL_AUTHENTICATED;
static boolean isLocked() {
return (persistentState & LOCKED) == LOCKED;
public boolean isSelectedFileEncrypted() {
return ((selectedFile.getAccessConditions() & DigitalTachograph.ENCRYPTED) == DigitalTachograph.ENCRYPTED);
}
Maybe you are looking for
-
Mac Mini is very slow and rebooting takes 20-30 minutes
Hi My Mac Mini has just been updated to 10.10.3 and it seems to work very good. Then same days ago the new smaller update arrived and I installed it. It is extremely slow and a reboot can take about 20-30 minutes. The Task monitor does not show any e
-
Document number and reference doc number
Hi All, When i post a invoice through F-22 i get a document number. 1: Is this doc. number also called invoice number 2: What is reference document number (XBLNR field). From where does it get its value What's the use of this reference doc. number an
-
Removing vendor from HMRC approved list (UK Specific)
Hi , Is it any recent notes avialble for removing vendor from HMRC approved list to control outbout delivery . This is UK specific or EU specific . or any standard control are their for this . Thanks RB
-
A telephone mini usb cable fed into the rear paper tray and appears to be lodged at the point where rear and front loaded paper enters the print chamber. Is there a proceedure to get access to that point? I can see it but it is not reachable by rem
-
I am trying to remove supersavers virus. please advise
I keep getting redirects and popups from supersavers.minerals.com. how do I get rid of this?