geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zakharov, Vasily M" <vasily.m.zakha...@intel.com>
Subject RE: Running SPECjAppServer2004
Date Wed, 14 Dec 2005 14:30:52 GMT
Matt,

Unfortunately, there're only high-level diagnostics in geronimo.log.
Below is the log part corresponding to a login attempt.

May the problem lay in beans or database connections naming? Is there a
way we can check it using Geronimo debug console? Do you know what the
names should be for SjAS application to find them?

With best regards,
   Vasily Zakharov, Intel Managed Runtime Division


17:19:40,339 DEBUG [HttpConnection] new HttpConnection:
Socket[addr=/127.0.0.1,port=2601,localport=8080]
17:19:40,339 DEBUG [HttpConnection] readRequest() ...
17:19:40,339 DEBUG [HttpConnection] REQUEST from
SocketListener1@0.0.0.0:8080:
POST /SPECjAppServer/app HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.7,ru;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
keep-alive: 300
Connection: keep-alive
Referer: http://localhost:8080/SPECjAppServer/app
Cookie: JSESSIONID=3a97u2cokemrv
Content-Type: application/x-www-form-urlencoded
Content-Length: 18


17:19:40,339 DEBUG [HttpServer] Try
WebApplicationContext[/SPECjAppServer,web],0
17:19:40,339 DEBUG [HttpContext] Handler
org.mortbay.jetty.servlet.WebApplicationHandler@1d529be
17:19:40,339 DEBUG [ServletHandler] servlet=/app=SpecAppServlet
17:19:40,339 DEBUG [ServletHttpRequest] Got Session 3a97u2cokemrv from
cookie
17:19:40,339 DEBUG [ServletHandler] session=null
17:19:40,339 DEBUG [WebApplicationHandler] chain=jsr154->SpecAppServlet
17:19:40,630 DEBUG [Dispatcher] Dispatcher for
org.mortbay.jetty.servlet.WebApplicationHandler@1d529be,/welcome.jsp,nul
l
17:19:40,630 DEBUG [WebApplicationHandler] chain=jsr154->jsp
17:19:40,630 DEBUG [JspServlet] JspEngine --/welcome.jsp
17:19:40,630 DEBUG [JspServlet] 	     ServletPath: /welcome.jsp
17:19:40,630 DEBUG [JspServlet] 	        PathInfo: null
17:19:40,630 DEBUG [ServletHandler] getRealPath of /welcome.jsp in
org.mortbay.jetty.servlet.WebApplicationHandler@1d529be
17:19:40,630 DEBUG [JspServlet] 	        RealPath:
C:\geronimo-1.0-M5\config-store\35\web.war\welcome.jsp
17:19:40,630 DEBUG [JspServlet] 	      RequestURI:
/SPECjAppServer/welcome.jsp
17:19:40,630 DEBUG [JspServlet] 	     QueryString: null
17:19:40,630 DEBUG [JspServlet] 	  Request Params: 
17:19:40,630 DEBUG [JspServlet] 		 action = login
17:19:40,630 DEBUG [JspServlet] 		 uid = 1
17:19:40,630 DEBUG [HttpContext] Handled by
org.mortbay.jetty.servlet.WebApplicationHandler@1d529be
17:19:40,630 DEBUG [HttpConnection] RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 14 Dec 2005 14:19:40 GMT
Server: Jetty/5.1.5rc0 (Windows XP/5.1 x86 java/1.4.2
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 2071


17:19:40,630 DEBUG [HttpConnection] readRequest() ...



-----Original Message-----
From: Matt Hogstrom [mailto:matt@hogstrom.org] 
Sent: Wednesday, December 14, 2005 5:21 AM
To: user@geronimo.apache.org
Subject: Re: Running SPECjAppServer2004

Vasily,

There should be an exception (hopefully) in the log file.  This is
located in 
$GERONIMO_HOME/var/log/geronimo.log.  Can you post the error to the list
?


Zakharov, Vasily M wrote:
> Matt,
> 
> I surely can access the /SPECjAppServer page but when I try to login
> with Dealership ID or Manufacturer ID, I receive "Could not find
account
> for 1." diagnostic. Looks like the application really has no access to
> the database table or something.
> 
> Is there a way I can diagnose and investigate this problem, taking
into
> account that deployment went well using the DD's you provided, and the
> databases are loaded and visible in Geronimo console?
> 
> Thank you.
> 
> With best regards,
>    Vasily Zakharov, Intel Managed Runtime Division
> 
> 
> -----Original Message-----
> From: Matt Hogstrom [mailto:matt@hogstrom.org] 
> Sent: Friday, December 09, 2005 10:20 PM
> To: user@geronimo.apache.org
> Subject: Re: Running SPECjAppServer2004
> 
> You can access the transactions through a web interface to ensure they
> are 
> operating correctly.  The URL should be
> http://hostname:8080/SPECjAppServer
> This should take you to the home page where you can interact with the
> application.
> 
> Zakharov, Vasily M wrote:
> 
>>Matt,
>>
>>Thank you for your help, surely your DDs were extremely helpful and
>>saved me a lot of time and effort.
>>
>>Well, I'm not sure what are the transactions you're talking about and
>>how to execute them - I found nothing about that in the documentation.
>>
>>On deployed SPECjAppServer's webpage there's the Atomicity Tests page,
>>and on that page all three tests are marked as FAILED. I'm not sure if
>>this is a problem.
>>
>>I was able to run a loaddb script from SjAS distribution, and it
>>completed successfuly and I can see the loaded data in the tables in
>>Geronimo console. Does it count as a confirmation that DB interactions
>>are working? :)
>>
>>Maybe you can point me to some other places I can check to verify my
>>configuration?
>>
>>Thank you.
>>
>>With best regards,
>>   Vasily Zakharov, Intel Managed Runtime Division
>>
>>
>>-----Original Message-----
>>From: Matt Hogstrom [mailto:matt@hogstrom.org] 
>>Sent: Friday, December 09, 2005 8:40 PM
>>To: user@geronimo.apache.org
>>Subject: Re: Running SPECjAppServer2004
>>
>>Vasily,
>>
>>I will endeavor to get a remote setup to emulate what you are doing
> 
> with
> 
>>SPECj 
>>but that won't be to next week.  It sounds like you've made some good
>>progress 
>>and I hope the provided DDs were helpful.  I'd like to incorporate
> 
> your
> 
>>changes 
>>and get them put into the sandbox/specj2004 to keep current.
>>
>>Have you been able to execute all transactions successfully in both
> 
> the
> 
>>Dealer 
>>Domain as well as the Mfg domain from a browser?  I would start there
> 
> to
> 
>>ensure 
>>the entire benchmark is functional before running the driver.
>>
>>Can you confirm that all DB interactions are working?
>>
>>Matt
>>
>>Zakharov, Vasily M wrote:
>>
>>
>>>Hello, all.
>>>
>>>I see the following OEJP error when trying to start the
>>>SPECjAppServer2004 on Geronimo 1.0 M5:
>>>
>>>javax.naming.AuthenticationException: Cannot read the response from
>>
>>the
>>
>>
>>>server (OEJP/2.0) : null; nested exception is: 
>>>	java.io.EOFException
>>>	at
>>>org.openejb.client.JNDIContext.authenticate(JNDIContext.java:196)
>>>	at
>>>org.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:181
)
>>>	at javax.naming.spi.NamingManager.getInitialContext(Unknown
>>>Source)
>>>	at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
>>>	at javax.naming.InitialContext.init(Unknown Source)
>>>	at javax.naming.InitialContext.<init>(Unknown Source)
>>>	at
>>>org.spec.jappserver.driver.Auditor.getAuditBeans(Auditor.java:115)
>>>	at
>>>
>>
>>
>
org.spec.jappserver.driver.Auditor.validateInitialValues(Auditor.java:18
> 
>>>1)
>>>	at org.spec.jappserver.driver.Driver.configure(Driver.java:330)
>>>	at org.spec.jappserver.driver.Driver.<init>(Driver.java:160)
>>>	at org.spec.jappserver.driver.Driver.main(Driver.java:1137)
>>>
>>>Has anybody tried to run SPECjAppServer2004 on Geronimo and/or seen
an
>>>issue similar to this? If yes, have you encountered this problem, and
>>>have you got past it?  Any advise as to what I should try next would
>>
>>be
>>
>>
>>>appreciated.
>>>
>>>Additional detail follows.
>>>
>>>I'm trying to deploy and run SPECjAppServer2004 benchmark
>>>(http://www.spec.org/jAppServer2004/) on Geronimo 1.0 M5 using
>>
>>built-in
>>
>>
>>>Derby database.
>>>
>>>I've generally followed the SPECjAppServer2004 deployment guide and
>>>started with downloading Matt Hogstrom's deployment descriptors from
>>>
>>
>>
>
/geronimo/trunk/sandbox/specjappserver2004/specj2004-deployment-plan.xml
> 
>>>I had to make some changes to the descriptors though to make them
>>
>>deploy
>>
>>
>>>successfuly:
>>>
>>>1. Application parentId="org/apache/geronimo/Server" instead of
>>>"SPECjAppServerJMS"
>>>
>>>2. All database references rewritten:
>>>
>>>    <!--<res-ref-name>CorpDataSource</res-ref-name>
>>>    <jndi-name>jdbc/SPEC</jndi-name>-->
>>>    <ref-name>jdbc/SPEC</ref-name>
>>>    <resource-link>CorpDataSource</resource-link>
>>>
>>>  replaced with:
>>>
>>>    <ref-name>CorpDataSource</ref-name>
>>>    <resource-link>SPEC</resource-link>
>>>
>>>  here SPEC is the name of a Derby database I created.
>>>
>>>	3. OrdersDataSource renamed to OrdsDataSource.
>>>
>>>After these changes I was able to deploy the SPECjAppServer2004 main
>>>application EAR.
>>>
>>>Then I installed Tomcat on another (client) machine and deployed
>>>SPECjAppServer2004 Emulator.war file there.
>>>
>>>Then I tried to run the SPECjAppServer2004 Driver on the same client
>>>machine - as per SPECjAppServer2004 documentation the Emulator and
the
>>>Driver must run on a machine other than the one Geronimo is running
>>
>>on.
>>
>>
>>>The Driver connected to Emulator/Tomcat successfuly, and also located
>>>Geronimo, but couldn't connect to deployed SPECjAppServer2004 beans,
>>
>>due
>>
>>
>>>to a problem with OpenEJB shown above.
>>>
>>>I also already described that problem in this list in detail in my
>>>postings under "JNDI remote authentication problem" subject. I
>>
>>overcome
>>
>>
>>>first of the problems successfuly (with a help from John Sisson), but
>>>the second problem (shown above) stopped me completely.
>>>
>>>Thank you.
>>>
>>>With best regards,
>>>  Vasily Zakharov, Intel Managed Runtime Division
>>>
>>
>>
>>
>>
>>
> 
> 
> 
> 


Mime
View raw message