Eclipse with AribaWeb Getting Started

277 views
Skip to first unread message

Tom Tobey

unread,
Oct 5, 2012, 7:53:55 AM10/5/12
to arib...@googlegroups.com

Hello AribaWeb Community!
I feel very dumb by having to ask this question… but I am actually new to Eclipse with AribaWeb.
It is weird that I feel very comfortable with the advanced topics – and yet I’m having trouble with the most basic of things!

I have Eclipse Juno which I have just installed on Windows 7. In my new workspace I create a new AribaWeb project:

And I am just doing the basic widgets app:

And I create the Project:

 

I have setup Tomcat as shown in this video:

http://www.youtube.com/watch?v=LdThrERsSsI

 

…and then I hit Run:

 

I know that my Tomcat is running:

 

How do I browse to my application for the first time?

 

 

 

 

 

 

image001.png
oledata.mso
image002.jpg
image003.jpg
image004.png
image005.jpg
image006.jpg
image007.jpg
image008.emz
image009.png
netstat-a.txt
Question.docx

Tom Tobey

unread,
Oct 5, 2012, 8:12:56 AM10/5/12
to arib...@googlegroups.com

Do I also need a webserver installed on top of Tomcat? i.e. Apache webserver?

image001.png
image002.jpg
image003.jpg
image004.png
image005.jpg
image006.jpg
image007.jpg
image010.png

František Kolář

unread,
Oct 5, 2012, 8:40:00 AM10/5/12
to arib...@googlegroups.com
Hi Tom, 

Quick questin since I do not see this on the picture. 

When entering your Url into browser are you also adding the /AribaWeb at the end ?




Regards
František Kolář 
 

Fadamo s.r.o. 
Zelená 480  
250 66 Zdiby 
Phone: +420 604 55 55 77  
IC: 24135691 | DIC: CZ24135691 

On Oct 5, 2012, at 1:53 PM, Tom Tobey wrote:

<netstat-a.txt>

Tom Tobey

unread,
Oct 5, 2012, 8:43:55 AM10/5/12
to arib...@googlegroups.com

Thanks man, yes I did try that.

I feel like I should know how to do this – as I have configured so many different things with web servers in corporate environments….

I think I am just having a “stupid” moment… although yes I am new to trying to run an AribaWeb app from Eclipse.

 

 

 

--
You received this message because you are subscribed to the Google Groups "AribaWeb (aribaweb.org)" group.
To post to this group, send email to arib...@googlegroups.com.
To unsubscribe from this group, send email to aribaweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aribaweb?hl=en.

image001.png

Tom Tobey

unread,
Oct 5, 2012, 8:46:04 AM10/5/12
to arib...@googlegroups.com

 

Screenshot:

 

image002.png
image003.png

František Kolář

unread,
Oct 5, 2012, 8:48:14 AM10/5/12
to arib...@googlegroups.com
I am not the best to ask about eclipse since almost whole life I am using Intellij IDEA, but 

When you execute your application do you see some out you can shere ?




Regards

František Kolář 
Phone: +420 604 55 55 77  

On Oct 5, 2012, at 2:46 PM, Tom Tobey wrote:

 
Screenshot:
 
<image002.png>
 
From: Tom Tobey [mailto:tnt...@gmail.com] 
Sent: Friday, October 05, 2012 8:44 AM
To: arib...@googlegroups.com
Subject: RE: Eclipse with AribaWeb Getting Started
 
Thanks man, yes I did try that.
I feel like I should know how to do this – as I have configured so many different things with web servers in corporate environments….
I think I am just having a “stupid” moment… although yes I am new to trying to run an AribaWeb app from Eclipse.
 
 
 
<image003.png>

František Kolář

unread,
Oct 5, 2012, 8:53:01 AM10/5/12
to arib...@googlegroups.com
Also when you configure your tomcat and not using the ant script, then I am sure you must somehow configure and tell the tomcat that you want to deploy this webapp under this tomcat context. 

Plus need to set 

 -Dariba.aribaweb.Debug=true
ARIBA_AW_SEARCH_PATH =  ///your project root. 

But this does not affect the error you have. 




Regards

František Kolář 


On Oct 5, 2012, at 2:46 PM, Tom Tobey wrote:

 
Screenshot:
 
<image002.png>
 
From: Tom Tobey [mailto:tnt...@gmail.com] 
Sent: Friday, October 05, 2012 8:44 AM
To: arib...@googlegroups.com
Subject: RE: Eclipse with AribaWeb Getting Started
 
Thanks man, yes I did try that.
I feel like I should know how to do this – as I have configured so many different things with web servers in corporate environments….
I think I am just having a “stupid” moment… although yes I am new to trying to run an AribaWeb app from Eclipse.
 
 
 
<image003.png>

Tom Tobey

unread,
Oct 5, 2012, 8:55:00 AM10/5/12
to arib...@googlegroups.com

Yes – the console out (full text below). I didn’t know that IntelliJ was better than Eclipse. Is it?

 

 

 

 

Oct 5, 2012 8:07:09 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Diskeeper Corporation\ExpressCache\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.6.0_32\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;.

Oct 5, 2012 8:07:09 AM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8085

Oct 5, 2012 8:07:09 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 388 ms

Oct 5, 2012 8:07:09 AM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Oct 5, 2012 8:07:09 AM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.35

Oct 5, 2012 8:07:09 AM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8085

Oct 5, 2012 8:07:09 AM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Oct 5, 2012 8:07:09 AM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/14  config=null

Oct 5, 2012 8:07:09 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 175 ms

image001.png
image002.png

František Kolář

unread,
Oct 5, 2012, 9:01:47 AM10/5/12
to arib...@googlegroups.com
Ok. this looks ok to me. 

How about the web.xml ?

mine looks like this:


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

<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN'
<web-app>
    <display-name>superUcet</display-name>  --> your name
    <description>Web application UIProto</description>
    <servlet>
        <servlet-name>example</servlet-name>
        <servlet-class>aw.example.web.MainDispatcherServlet</servlet-class>  -> here you will have standard AW class
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>example</servlet-name>  -  your TNTFirstProject
        <url-pattern>/Main/*</url-pattern>  -> here you will have your AribaWeb. 
    </servlet-mapping>

</web-app>


Regards

František Kolář 

On Oct 5, 2012, at 2:55 PM, Tom Tobey wrote:

Yes – the console out (full text below). I didn’t know that IntelliJ was better than Eclipse. Is it?
 
<image001.png>

<image002.png>

Tom Tobey

unread,
Oct 5, 2012, 9:05:42 AM10/5/12
to arib...@googlegroups.com

 

This one as a new environment variable?

ARIBA_AW_SEARCH_PATH

 

 

…and where do I put this one?

-Dariba.aribaweb.Debug=true

I looks like a java startup parameter….

image001.png

František Kolář

unread,
Oct 5, 2012, 9:09:29 AM10/5/12
to arib...@googlegroups.com
-Dariba.aribaweb.Debug=true

This is your JVM parameters. when you start the tomcat then you pass in your -D JVM option. 

Regards

František Kolář 
 


Regards

František Kolář 


On Oct 5, 2012, at 3:05 PM, Tom Tobey wrote:

 
This one as a new environment variable?
ARIBA_AW_SEARCH_PATH
<image001.png>

Tom Tobey

unread,
Oct 5, 2012, 9:11:13 AM10/5/12
to arib...@googlegroups.com

You may have just nailed it. I’ll take a look. Here is a zip of what the wizard inside of Eclipse generated:

TNTFirstProject.zip

TNTFirstProject.zip

Tom Tobey

unread,
Oct 5, 2012, 9:17:53 AM10/5/12
to arib...@googlegroups.com

I think I was relying upon this Eclipse plugin: ariba.ideplugin.eclipse.5.0.1.jar

…which may not be delivering all of the files necessary to run the app.

ariba.ideplugin.eclipse.5.0.1.jar

František Kolář

unread,
Oct 5, 2012, 9:20:43 AM10/5/12
to arib...@googlegroups.com
The project is ok. 

Also how did you derived the port number . is it from the tomcat you are running from your IDE ?

Have you tried to run this using ant script?


Regards

František Kolář 

<TNTFirstProject.zip>

František Kolář

unread,
Oct 5, 2012, 9:22:18 AM10/5/12
to arib...@googlegroups.com
This is what I am thinking you run the tomcat but this tomcat does not have your app deployed. 


Regards

František Kolář 
Phone: +420 604 55 55 77  




<ariba.ideplugin.eclipse.5.0.1.jar>

František Kolář

unread,
Oct 5, 2012, 9:26:18 AM10/5/12
to arib...@googlegroups.com
try to check out this if its help : http://aribaweb.blogspot.cz/2012/03/aribaweb-101-setup-part-1.html
But I think would be better to find somebody who is using eclipse ! Anybody?







Regards

František Kolář 

On Oct 5, 2012, at 3:17 PM, Tom Tobey wrote:

<ariba.ideplugin.eclipse.5.0.1.jar>

Tom Tobey

unread,
Oct 5, 2012, 9:32:34 AM10/5/12
to arib...@googlegroups.com

Thank you SO much for your quick responses! I will check everything that you mentioned. I have to get prepped for a 10:00 meeting – but really – thank you again so much for your quick responses!

I will be back in 1.5 hours and see if this works.

Tom Tobey

unread,
Oct 6, 2012, 12:33:38 AM10/6/12
to arib...@googlegroups.com

Answer to first question: the port number is “arbitrarily” defined. In the Tomcat installer you have to make sure that the port is not taken. That is why I included my netstat –a in my initial message.

If you happen to do multiple Tomcat installs (ex: 6 and 7) you have to make sure that you pick different ports for each.

I think that this is a very good video for this:

http://www.youtube.com/watch?v=LdThrERsSsI

František Kolář

unread,
Oct 6, 2012, 3:30:02 AM10/6/12
to arib...@googlegroups.com
Hi Tom, 

Then the case is clear. Your tomcat is up but your application is not deployed. This video just shows how to startup the tomcat but in order to also start the aribaweb you need to deploy this under your tomcat. I think if you want to run your simple example is to really use the ANT build script , setup paths and run it. 
It will be started also in debug mode. In case of tomcat  you will have to configure many things and you will have to also adjust your resources layout so your tomcat is able to pick it up and I think for the begging its too much work.  And instead of enjoying AW and its features  will get just mad with the tomcat setup ;-). 

So my recomendation is the ant script ;-). Unless you want to move and use IntellijIDEA and there I can help you;-) How to setup tomcat, how to tell what context directory, how to deploy your app, etc.. ;-)



Regards

František Kolář 

James Sebastian

unread,
Oct 12, 2012, 1:26:02 AM10/12/12
to arib...@googlegroups.com
Hi Tom,

Not sure if this helps you since I am not an expert in Eclipse or AW.
Here is what I do on eclipse.

in Eclipse perspective, add build files to ant perspective.

For this I go to Eclipse -> Window -> Show View -> select 'ant'
Then add build file using the '+' symbol and then selecting the project.
From the ant perspective,  use 'build and run' to build the files and launch tomcat.
I use default bundled tomcat in AW_HOME/tools/tomcat
So if tomcat was already running, stop the current tomcat instance before this using

$AW_HOME/tools/tomcat/bin/shutdown.sh

From my Linux, if tomcat was started by eclipse, I can also stop current instance from Eclipse Console using the 'Stop' button on top.

Regards,
James

Tom Tobey

unread,
Oct 13, 2012, 9:59:34 AM10/13/12
to arib...@googlegroups.com

Thank you James and Frantisek!

Apparently I did not have Ant installed correctly.

 

http://ant.apache.org/manual/install.html

 

Frantisek was hinting at this in his previous posts. If I stretch my legs a little bit more and get comfortable – and if I feel that I have anything to add on setting up AW with Eclipse – I’ll share the info.

I keep track of everything, so if I get to the point where I have a good install guide/pdf, I’ll share.

 

Thanks!

-TNT

Tom Tobey

unread,
Oct 13, 2012, 10:23:48 AM10/13/12
to arib...@googlegroups.com

Oh! Thank you again James! J

 

I’m there.

-TNT

 

 

image001.png
Reply all
Reply to author
Forward
0 new messages