Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Panel
titleOn This Page
Wiki Markup
{panel:title=On This Page}

{toc:type=list|style=none|indent=2em|separator=pipe|maxLevel=1}
{panel} h1. How Do I Check Out an Eclipse Project from SVN? h3. To Check Out an Eclipse Project: In Eclipse, go to the SVN Repositories window and: # Go to idd-svn > projectyouwant > trunk # Right-click trunk and select *Check out* h1. How Do I Configure a Struts

How Do I Check Out an Eclipse Project from SVN?

To Check Out an Eclipse Project:

In Eclipse, go to the SVN Repositories window and:

  1. Go to idd-svn > projectyouwant > trunk
  2. Right-click trunk and select Check out

How Do I Configure a Struts 1.2/Spring

...

Project?

...

The

...

following

...

configuration

...

files

...

must

...

be

...

modified.

...

Click

...

on

...

the

...

file

...

name

...

and

...

you

...

will

...

be

...

taken

...

to

...

documentation

...

on

...

how

...

to

...

configure

...

the

...

file.

...

To

...

find

...

the

...

configuration

...

file

...

within

...

your

...

Eclipse

...

project,

...

view

...

the

...

structure

...

for

...

Eclipse

...

projects

...

via

...

Development

...

Framework:

...

Eclipse

...

Project

...

Structure

...

.

  1. settings (org.eclipse.wst.common.component

...

  1. )
  2. src -> conf (application.xml

...

  1. )
  2. WEB-INF

...

  1. ->

...

  1. action-servlet.xml

...

  1. WEB-INF

...

  1. ->

...

  1. applicationContext.xml

...

  1. WEB-INF

...

  1. ->

...

  1. classes

...

  1. ->

...

  1. ApplicationResources.properties

...

  1. WEB-INF

...

  1. ->

...

  1. struts-config.xml

...

  1. WEB-INF

...

  1. ->

...

  1. tiles-def.xml

...

How Do I Deploy Locally?

To Run an Eclipse Project Locally:
Anchor
site
site

Before you run any project locally there are a few on one time only steps you must follow.

Once you have completed the one time only steps and checked out the project you will then need to configure the project's local site settings:

  1. Within Eclipse, create a new folder called "site" under the project's top level. Make sure you are in Navigator view or the new "site" folder won't appear. It will be there but it only appears if you are in the Navigator view.
  2. Copy the files in site-template into the new folder, "site".
  3. Edit site/ApplicationLocal.properties
    1. Change the authentication.user to your kerbname
    2. Set sf2_passwd value to your cert public key string:
      1. In your browser, go to https://mv-ezproxy-com.ezproxyberklee.flo.org/getcert.html

...

      1. Copy

...

      1. the

...

      1. client

...

      1. certificate

...

      1. which

...

      1. is

...

      1. the

...

      1. text

...

      1. between

...

      1. "BEGIN

...

      1. CERTIFICATE"

...

      1. and

...

      1. "END

...

      1. CERTIFICATE"

...

      1. following

...

      1. "SSL_CLIENT_CERT=".

...

      1. Paste

...

      1. this

...

      1. as

...

      1. the

...

      1. value

...

      1. for

...

      1. sf2_passwd=

...

      1. (this

...

      1. is

...

      1. your

...

      1. cert

...

      1. public

...

      1. key)

...

      1. Remove

...

      1. the

...

      1. line

...

      1. feeds

...

      1. from

...

      1. your

...

      1. certificate

...

    1. Change

...

    1. c:/dev/mortar

...

    1. in

...

    1. r3props

...

    1. to

...

    1. your

...

    1. workspace

...

    1. directory,

...

    1. e.g.

...

    1. c:/dev/workspace/mortar/tools/GlobalResources.properties

...

    1. (but

...

    1. this

...

    1. might

...

    1. vary

...

    1. -

...

    1. check

...

    1. via

...

    1. File->Switch

...

    1. Workspace...

...

    1. will

...

    1. show

...

    1. you

...

    1. current

...

    1. workspace

...

    1. directory)
      Image Added
      Image Added
  1. Edit site/log4j.properties;

...

    1. Change

...

    1. the

...

    1. F1.File

...

    1. property

...

    1. to

...

    1. point

...

    1. to

...

    1. where

...

    1. you

...

    1. want

...

    1. your

...

    1. log

...

    1. file

...

    1. to

...

    1. go

...

    1. (the

...

    1. C1

...

    1. is

...

    1. the

...

    1. console

...

    1. -

...

    1. so

...

    1. the

...

    1. example

...

    1. below

...

    1. shows

...

    1. how

...

    1. to

...

    1. send

...

    1. the

...

    1. log

...

    1. to

...

    1. both

...

    1. the

...

    1. console

...

    1. &

...

    1. the

...

    1. log

...

    1. file)

...


    1. (see

...

    1. log4j

...

    1. section

...

    1. of

...

    1. the

...

    1. Eclipse

...

    1. project

...

    1. structure

...

    1. for

...

    1. more

...

    1. information

...

    1. on

...

    1. this

...

    1. file.

...


    1. Image Added
  1. Edit site/build.properties

...

  1. by

...

  1. opening

...

  1. with

...

  1. "Properties

...

  1. File

...

  1. Editor."

...

  1.   Change the directory in oracle.home,

...

  1. oc4j.home

...

  1. and

...

  1. j2ee.

...

  1. home to point to your local "oc4j" directory if it's different.
    Image Added
  2. Since this is configuration for the local site, it should NOT be checked into SVN. Therefore, either mark it "Derived" via Properties or add it to SVN:ignore via Team->Add to SVN:ignore.

                     Image Added      or        Image Added

How Do I deploy to the Development Server?

Before you can deploy to the Development server for the first time,  your project must be setup on the server.  Send email to web-tech requesting the  setup of your project on Development. 

  1. Make sure you have kerberos tickets.
  2. ssh inside@earth-app-21.mit.edu

...

    • No

...

    • password

...

    • will

...

    • be

...

    • required

...

    • as

...

    • long

...

    • as

...

    • you

...

    • have

...

    • your

...

    • kerberos

...

    • tickets.

...

    • earth-app-21

...

    • is

...

    • the

...

    • development

...

    • server

...

  1. cd

...

  1. webapps/application

...

  1. (e.g.

...

  1. cd

...

  1. webapps/safo)

...

  1. msr

...

  1. svn

...

  1. status

...

  1. -u

...

    • Will

...

    • ask

...

    • for

...

    • the

...

    • password

...

    • for

...

    • the

...

    • last

...

    • user

...

    • who

...

    • updated

...

    • -

...

    • [return

...

    • ]

...

    •   and

...

    • it

...

    • will

...

    • ask

...

    • for

...


    • user

...

    • &

...

    • password

...

    • and

...

    • you

...

    • can

...

    • give

...

    • it

...

    • your

...

    • user

...

    • id  & password
    • This command (svn status -u)

...

    • will

...

    • tell

...

    • you

...

    • everything

...

    • that

...

    • is

...

    • out of  sync with the svn repository.
  1. msr svn up
    • This command (svn up) will update the earth-app-21

...

    • copy

...

    • of

...

    • the

...

    • project's

...

    • files.

...

  1. ant

...

  1. deploy

...

How

...

Do

...

I

...

deploy

...

to the Test Server?

  1. Make sure you have kerberos tickets.
  2. ssh inside@earth-app-21.mit.edu

...

  1. cd

...

  1. webapps/

...

  1. application  (e.g.

...

  1. cd  webapps/safo)

...

  1. release
    • Will prompt you for your svn password twice.
    • The first prompt may ask you for the password of the last user who updated,  just hit [return] and then supply your userid & password.
    • Note: if this is the first time you issue 'release' for a project, ignore the message: svn: URL 'release' does not exist.
  2.  Send email to web-tech requesting your application be deployed test.
    • Example:   "Please deploy safo to insidemit-test"  

How Do I Use sap2java to Generate Proxies for an SAP RFC?
Anchor
sap2java
sap2java

  1. If you do not have the latest version of sap2java, check it out of SVN, following the instructions in "How Do I Check Out an Eclipse Project from SVN?". You will also need to create a site folder & copy the site-template files into it & modify the ApplicationLocal.properties file. See "How Do I Deploy Locally?" ignoring the section on modifying the log4j file.
  2. In the sap2java project, open package src/com/sap/bapi/mapper

...

  1. .

...

  1. Right-click

...

  1. on

...

  1. class,

...

  1. testSAP2Java

...

  1. ,

...

  1. and

...

  1. select

...

  1. Run

...

  1. As...

...

  1. Run...

...

  1. from

...

  1. the

...

  1. context

...

  1. menu.

...

  1. Create

...

  1. a

...

  1. new

...

  1. Java

...

  1. Application

...

  1. run

...

  1. profile

...

  1. for

...

  1. testSAP2Java

...

  1. or

...

  1. open

...

  1. its

...

  1. previously

...

  1. created

...

  1. profile,

...

  1. then

...

  1. select

...

  1. the

...

  1. Arguments

...

  1. tab.

...

  1. In

...

  1. the

...

  1. Program

...

  1. arguments

...

  1. text

...

  1. area,

...

  1. enter

...

  1. the

...

  1. following

...

  1. lines

...

  1. of

...

  1. information:

...

  1. Panel
    bgColor#ffffff
    borderStylenone
    • target source code directory (wrapped in double-quotes),

...

    • e.g.,

...

    • "$

...

    • {workspace_loc

...

    • }/myproject/src"

...

    • package

...

    • into

...

    • which

...

    • the

...

    • generated

...

    • classes

...

    • will

...

    • be

...

    • written,

...

    • e.g.,

...

    • edu.mit.myproject.proxy

...

    • name

...

    • of

...

    • the

...

    • RFC

...

    • for

...

    • which

...

    • Java

...

    • data

...

    • object

...

    • classes

...

    • will

...

    • be

...

    • generated,

...

    • e.g.,

...

    • Z_UT_MY_RFC

...

    Example
    "$

...

  1. {workspace_loc

...

  1. }/settings001s/src"

...


  1. edu.mit.settings001s.proxy

...


  1. Z_CO_001_UPDATE_SETTINGS

...


  1. Center
    screen shot (click

...

  1. to

...

  1. enlarge)
    Image Added









  2. Click the "Run" button.  The Java data object classes are generated.  You may need to refresh your project to see the change.

How Do I Find the Oracle application log?

  1. Find your Oracle directory (e.g.,

...

  1. C:\dev\oc4j_extended_101320)

...

  1. Drill

...

  1. down

...

  1. into

...

  1. j2ee

...

  1. ->

...

  1. home

...

  1. ->

...

  1. application-deployments

...

  1. ->

...

  1. application

...

  1. of

...

  1. interest

...

  1. ->

...

  1. application.log