NWDS 7.3 yeni proje oluşturma işlemi (NWDS create,generate new project operation)

NWDS 7.3 ortamında JSF veya SAP-specific Web Module projesi oluşturmak için aşağıdaki işlem adımlarını izleyebilirsiniz.

JSF projesi oluşturduğunuzda içerisine aşağıdaki adımlarda olduğu gibi ilgili JSF kütüphanelerini ekleyebilir ve JSF özellikleriyle kodunuzu geliştirebilirsiniz.
SAP-specific Web Module projesi oluşturduğunuzda ise Java uygulamanızı JSF gibi teknolojiler kullanmadan direk olarak Java uygulaması geliştirebilir, ilgili kütüphaneler ile SAP bağlantısı sağlayabilir ve deploy işlemini gerçekleştirebilirsiniz.

NWDS7.3-> File-> New-> Other-> Web-> Dynamic Web Project-> Next->
ProjectName :MyApplicationName
Project contents :Use default :checked
Target runtime :SAP Libraries
Dynamic web module version :2.5

(for SAP-Specific Web Module)
Configuration :
Default Configuration for SAP Libraries
EAR membership :Add project to an EAR (checked)
Next-> Next->
Web Module :Generate web.xml deployment descriptor (checked)
Finish->

(for JSF)
Configuration :
Modify…-> JavaServer Faces v1.2 Project (checked)-> OK->
EAR membership :Add project to an EAR (checked)
Next-> Next->
Web Module :Generate web.xml deployment descriptor (checked)->
Next->

(for JSF)
if exist
JSF Implementation Library :Mojarra228 :checked
if not exist
Manage libraries…-> New…->
User library name :Mojarra228-> OK->
Select Mojarra228-> Add JARs…-> Select javax.faces-2.2.8.jar-> Open-> OK->
Mojarra228 checked-> Finish

(for JSF)
MyApplicationName-> Web Content (right click)-> New->
Other-> Web-> HTML Page-> Next->
File Name :index.xhtml-> Next->
Templates :New XHTML File (1.0 transitional)-> Finish

(for SAP-Specific Web Module)
MyApplicationName-> Web Content (right click)-> New->
Other-> Web-> HTML Page-> Next->
File Name :index.html-> Next->
Templates :New HTML File (4.01 transitional)-> Finish

(for SAP-Specific Web Module)
MyApplicationName-> WebContent-> WEB-INF-> lib :
com.sap.security_2.0.0.110406113455.jar
tc~km~frwk.jar

(for JSF)
MyApplicationName-> WebContent-> WEB-INF-> lib :
primefaces-*.*.jar

(for JSF)
MyApplicationName-> Web Content-> WEB-INF-> web.xml->

<web-app>
...
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.xhtml</url-pattern>
	</servlet-mapping>

	<mime-mapping>
		<extension>xhtml</extension>
		<mime-type>application/xhtml+xml</mime-type>
	</mime-mapping>

</web-app>

(for JSF)
Bu işlem için ilgili sunucuda
Name :javax~faces~2.2.8
Vendor :local.j2ee
Version :1
Software Type :library
özelliklerine sahip bir kaynak bulunması gerekiyor.
MyApplicationNameEAR-> EarContent-> META-INF-> application-j2ee-engine.xml->

<application-j2ee-engine ...>
...
	<!-- for JSF operations -->
	<reference reference-type="hard" prepend="true">
		<reference-target provider-name="local.j2ee"
			target-type="library">javax~faces~2.2.8</reference-target>
	</reference>

</application-j2ee-engine>

(for JSF)
MyApplicationName-> Web Content-> WEB-INF-> faces-config.xml->

<?xml version="1.0" encoding="UTF-8"?>

<faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">

</faces-config>

(for SAP-Specific Web Module)
MyApplicationNameEAR-> EarContent-> META-INF-> application-j2ee-engine.xml->

<application-j2ee-engine ...>
...

	<!-- for KM operations -->
	<reference reference-type="weak">
		<reference-target target-type="application" provider-name="sap.com">com.sap.km.application </reference-target>
	</reference>

</application-j2ee-engine>

NWDS 7.3 SAP sistem sunucusu eklemek için buraya bakabilirsiniz.

NWDS 7.3 proje deploy için buraya bakabilirsiniz.

Share on Facebook0Tweet about this on TwitterShare on Google+0Share on StumbleUpon0Share on Reddit0

Leave a Reply


*