Re: Basic Auth passwords in webservices

2007-11-01 Thread Neerup


djencks wrote:
 
 
I'm curious as to why.  This is AFAIK rather unusual.  If you need to  
propagate the credentials from the caller on to some other service  
you call that may well be possible without involving your business  
logic.
 
 I know. But the busines logic is not a service, It's actually a call to
 another server using some proprietary tcp-ip protocol that needs the user
 and password on each call.
 
 Is there any way I can deploy the Custom LoginModule jar within the  
 war/ear?
 
that should work without problems, what is happening that you ask?
 
 I made a login.jar file and put it in the WEB-INF/Lib folder but i still
 got a class not found exception on my custom Principal class when i
 install my ear file. I got around this by installing the jar file as a
 Common lib in the repository and declaring a dependency in the
 geronimo-application.xml, but I would like to avoid this, so i could
 install all my app using only the Ear file.
 
 
 thanks
 Thomas Neerup
 
 

-- 
View this message in context: 
http://www.nabble.com/Basic-Auth-passwords-in-webservices-tf4726213s134.html#a13525158
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Newbee -- unable to build the sample application

2007-11-01 Thread Matthew Simmons
Viet,

Thanks for the response.

Yes, I've tried to run 'mvn install' with the other samples and I get the
same outcome.  I am posting the stack trace below.

Matt

C:\Geronimo\Samples\calculator\jaxws-calculator-warmvn install
[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: null:jaxws-calculator:pom:null

Reason: Cannot find parent: org.apache.geronimo.samples:samples for project:
nul
l:jaxws-calculator:pom:null for project null:jaxws-calculator:pom:null


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache
.geronimo.samples:samples for project: null:jaxws-calculator:pom:null for
projec
t null:jaxws-calculator:pom:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent
: org.apache.geronimo.samples:samples for project:
null:jaxws-calculator:pom:nul
l for project null:jaxws-calculator:pom:null
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1261)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1278)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal
(Def
aultMavenProjectBuilder.java:747)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:479)
at org.apache.maven.project.DefaultMavenProjectBuilder.build
(DefaultMave
nProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
:467)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM '
org.apache.ge
ronimo.samples:samples' not found in repository: Unable to download the
artifact
 from any repository

  org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project org.apache.geronimo.samples:samples
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:573)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1257)
... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable
to download the artifact from any repository

  org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:197)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:526)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
downl
oad the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact
(Def
aultWagonManager.java:324)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:185)
... 21 more
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Thu Nov 01 07:02:01 EDT 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Geronimo\Samples\calculator\jaxws-calculator-war

On 10/31/07, Viet Nguyen [EMAIL PROTECTED] wrote:

 Have you tried to run 'mvn install' with other samples? Also, if you
 could post the full stack 

RE: Migrating tomcat to geronimo

2007-11-01 Thread Anil Arora


 -Original Message-
 From: David Jencks [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 31, 2007 4:54 PM
 To: user@geronimo.apache.org
 Subject: Re: Migrating tomcat to geronimo
 
 
 On Oct 31, 2007, at 3:33 PM, Anil Arora wrote:
 
  -Original Message-
  From: David Jencks [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 31, 2007 3:41 PM
  To: user@geronimo.apache.org
  Subject: Re: Migrating tomcat to geronimo
 
 
  On Oct 31, 2007, at 9:57 AM, Paul McMahan wrote:
 
  On Oct 31, 2007, at 12:16 PM, Anil Arora wrote:
  I'm doing an experiment porting our application to Geronimo from
  Tomcat.  I am having a few difficulties with some of the
  customization features which I need to also port.
 
 
 
  For Tomcat, I have a custom server.xml file, in which I turn off
  hot deployment and hardcode the location of my webapplication.  I
  also have a custom catalina.properties where I can stick my own
  jars in the classpath.  I do all of this to avoid the extra step
  of deploying that application.
 
 
 
  So, question is whether or not I can do similar things with
  Geronimo.  Given the location of the Geronimo installation, I
just
  want to write a script that starts the server and have it already
  know my extra jar files and the location of my webapp without
  having to execute the deploy tool.
 
  Can this be done?
  I don't know of any way to bypass the deployment process for an
  application in Geronimo.  You can use Geronimo's hot deployment
  feature to avoid some of the manual steps involved in deployment,
  but you said that you actually turned that feature off in Tomcat
so
  I assume it's not an acceptable solution.  There has been some
  discussion about adding this type of feature so that applications
  can be run from within an Eclipse workspace directory, but I don't
  think that anything usable has taken shape yet.   Feel free to
open
  a feature request for this at
http://issues.apache.org/jira/browse/
  GERONIMO
 
  Maybe I'm misinterpreting what Anil is requesting, but it looked to
  me as if he might be interested in deploying his application as a
  plugin, or just deploying it once and having it in the server, and
  that he is looking for some of the features we actually support.
 
  You can include any jars you want scoped to your application
  classloader by putting them in appropriate locations in the
geronimo
  repo and including dependencies on them in the geronimo plan for
your
  app.
 
  Are you trying to construct a server with your app already deployed
  that you can distribute so that users can unpack and start and your
  app will be running but they can't deploy more apps?  That is
really
  easy to do in trunk and only slightly harder in released geronimo
  versions.  Basically you would turn your app into a plugin and use
it
  to construct a custom server than has only the geronimo components
  needed to support the app.  If this is what you are aiming for let
us
  know and tell us which geronimo version(s) you can use and we can
  give you more instructions.
 
  thanks
  david jencks
 
 
  Best wishes,
  Paul
 
 
  Yes, this is probably a better way of saying what I want to do.  In
  the
  end, I do want to have something prebuilt that the users can just
run.
  There's no need to deploy anything else on the server.  I was
  hoping to
  avoid extra coding, but I'm willing to look into this.
 
 So far I don't see why you would have to write any extra code.
  Is there a way to have a custom classloader that doesn't use this
plan
  mechanism?  If I'm going to build custom code, I'd might as well
write
  this.  This would help me avoid moving lib files around.  One
  problem is
  that these libraries are used for other command line scripts.
 
 If I understand correctly you want the additional libraries to be in
 a particular location rather than putting them in the geronimo
 repository?  We supply a shared-lib configuration that lets you add
 all the jars in a directory into that configurations classloader, so
 you might just include that as a parent of your app in the geronimo
 plan.  Otherwise you can include a SharedLib gbean in  your
 applications plan directly and the jars will be in the same
 classloader as the rest of your app.
 
  I would like to stick with a released version for stability
  reasons.  I
  currently have 2.0.
 
 I recommend you do the following; it may result in a slightly larger
 server than you need but is quite a bit simpler on pre-2.1 than the
 alternatives to get the smallest possible server.
 
 1. start with one of the minimal geronimo servers (unless you want
 e.g. the admin console, in which case you need one of the full
 servers or 2.1 :-)
 2. deploy your app on the server.
 3. edit var/config/config.xml and remove any modules whose name ends
 in -deployer (such as tomcat-deployer) (or add an attribute
 load=false)
 4. remove any extraneaous logs from var/log
 5 zip up what's left and distribute it
 
 If all goes well your 

Re: Newbee -- unable to build the sample application

2007-11-01 Thread Jarek Gawor
Do svn up and try again.

Jarek

On 11/1/07, Matthew Simmons [EMAIL PROTECTED] wrote:
 Viet,

 Thanks for the response.

 Yes, I've tried to run 'mvn install' with the other samples and I get the
 same outcome.  I am posting the stack trace below.

 Matt

 C:\Geronimo\Samples\calculator\jaxws-calculator-warmvn
 install
 [INFO] Scanning for projects...
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jaxws-calculator:pom:null

 Reason: Cannot find parent:
 org.apache.geronimo.samples:samples for project: nul
 l:jaxws-calculator:pom:null for project null:jaxws-calculator:pom:null


 [INFO]
 
 [INFO] Trace
 org.apache.maven.reactor.MavenExecutionException: Cannot
 find parent: org.apache
 .geronimo.samples:samples for project: null:jaxws-calculator:pom:null for
 projec
 t null:jaxws-calculator:pom:null
 at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
 at org.apache.maven.DefaultMaven.execute
 (DefaultMaven.java:125)
 at
 org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke
 (Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
 :315)
 at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 at org.codehaus.classworlds.Launcher.main(
 Launcher.java:375)
 Caused by:
 org.apache.maven.project.ProjectBuildingException: Cannot
 find parent
 : org.apache.geronimo.samples:samples for project:
 null:jaxws-calculator:pom:nul
 l for project null:jaxws-calculator:pom:null
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
 efaultMavenProjectBuilder.java:1261)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
 efaultMavenProjectBuilder.java :1278)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
 aultMavenProjectBuilder.java:747)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
 leInternal( DefaultMavenProjectBuilder.java:479)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
 nProjectBuilder.java:200)
 at
 org.apache.maven.DefaultMaven.getProject(DefaultMaven.java
 :553)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
 at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
 ... 11 more
 Caused by:
 org.apache.maven.project.ProjectBuildingException : POM
 'org.apache.ge
 ronimo.samples:samples' not found in repository: Unable to download the
 artifact
  from any repository

   org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
  for project org.apache.geronimo.samples:samples
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
 sitory(DefaultMavenProjectBuilder.java:573)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
 efaultMavenProjectBuilder.java:1257)
 ... 18 more
 Caused by:
 org.apache.maven.artifact.resolver.ArtifactNotFoundException
 : Unable
 to download the artifact from any repository

   org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2 )

 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
 faultArtifactResolver.java:197)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
 faultArtifactResolver.java :73)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
 sitory(DefaultMavenProjectBuilder.java:526)
 ... 19 more
 Caused by:
 org.apache.maven.wagon.ResourceDoesNotExistException :
 Unable to downl
 oad the artifact from any repository
 at
 org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
 aultWagonManager.java:324)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
 (De
 faultArtifactResolver.java:185)
 ... 21 more
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Thu Nov 01 07:02:01 EDT 2007
 [INFO] Final Memory: 1M/4M
 [INFO]
 

Re: Building sample project - maven error

2007-11-01 Thread Jarek Gawor
That looks to me like your firewall is still kicking in (or you have
some other communication problems). Turn it off and keep it off until
maven is done building the code.

Jarek

On 11/1/07, PeterAU2 [EMAIL PROTECTED] wrote:

 I'm on a Windows box, so I had to go and download and install svn from
 http://subversion.tigris.org/
 I turned off my firewall so svn could get through, and also I'm guessing so
 Maven can get through.
 I got the same error, though, shown below.
 What should I try next?
 Peter

 -
 C:\course\EJB\SamplesFromGeronimo\mytimemvn clean install site
 [INFO] Scanning for projects...
 [INFO] snapshot org.apache.geronimo.samples:samples:2.1-SNAPSHOT: checking
 for updates from apache-snapshots
 [WARNING] repository metadata for: 'snapshot
 org.apache.geronimo.samples:samples:2.1-SNAPSHOT' could not be retrieved
 from repository: apache-snapshots due to a
 n error: Error transferring file
 [INFO] Repository 'apache-snapshots' will be blacklisted
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 GroupId: org.apache.geronimo.samples
 ArtifactId: samples
 Version: 2.1-SNAPSHOT

 Reason: Unable to download the artifact from any repository

   org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)


 [INFO]
 
 [INFO] Trace
 org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
 org.apache.geronimo.samples:samples for project: null:mytime:pom:null for
 project null:myt
 ime:pom:null
 


 Jarek Gawor-2 wrote:
 
  Please checkout the source code for this sample from svn. The zip file
  attached in wiki is outdated.
 
  Jarek
 
  On 10/31/07, PeterAU2 [EMAIL PROTECTED] wrote:
 
  Hi. Newbie simple question.
 
  I'm trying to build the simple project from
  http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html
 
  I've downloaded the file
  http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.data/mytime_.zip
  and unzipped it.
 
  I've installed Maven 2.0, and can check it with mvn -version
  Maven version: 2.0.7
  Java version: 1.5.0_04
  OS name: windows xp version: 5.1 arch: x86
 
  When I try to build the source, using mvn clean install site
  I get a raft of errors, starting with:
 
  [INFO] Scanning for projects...
  Downloading:
  http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/samples/samples/2.0-SNAPSHOT/samples-2.0-SNAPSHOT.pom
  [INFO]
  
  [ERROR] FATAL ERROR
  [INFO]
  
  [INFO] Failed to resolve artifact.
 
  GroupId: org.apache.geronimo.samples
  ArtifactId: samples
  Version: 2.0-SNAPSHOT
 
  Reason: Unable to download the artifact from any repository
 
org.apache.geronimo.samples:samples:pom:2.0-SNAPSHOT
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
 
 
  [INFO]
  
  [INFO] Trace
  org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
  org.apache.geronimo.samples:samples for project:
  null:calculator-stateless-pojo:pom:null f
  or project null:calculator-stateless-pojo:pom:null
 
 
  If I try just browsing to the URL:
  http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/samples/samples/2.0-SNAPSHOT/samples-2.0-SNAPSHOT.pom
  I get a 404.
 
  Am I doing something blatantly wrong?
 
  Thanks for your help
 
  Peter
  --
  View this message in context:
  http://www.nabble.com/Building-sample-project---maven-error-tf4729095s134.html#a13522401
  Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Building-sample-project---maven-error-tf4729095s134.html#a13523987
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




MyFaces 1.1.5 and Geronimo 2.0.2

2007-11-01 Thread Jochen Zink
Hello all,

I try to deploy a JSF-Webapplication which depends on myfaces 1.1.5. This 
Application runs successfully under Tomcat 6.

Know, I want deploy this application under Geronimo 2.0.2. With exactly the 
same WAR file, nothing is happen. No Error Messages and no HTML Page is shown 
in the browser, if I call the URL from the Webapplication. Just a empty page, 
containing no HTML appears.

I expect, that this could be, that Geronimo has myfaces1.2 Libs loaded.

After this, I added 
dep:hidden-classes
dep:filterorg.apache.myfaces/dep:filter
/dep:hidden-classes
to the deploymentdescriptor of the Webapp.

And know I get the following Error Message, after calling the WebApplication 
URL:

Some Messages looks like this:

An error occurred at line: 114 in the jsp file: /template.jsp
The method setHeight(String) in the type HtmlGraphicImageTagBase is not 
applicable for the arguments (JspValueExpression)
111:h:graphicImage 
value=pics/spacer.gif width=0 height=20 /
112:h:outputText /
113:h:graphicImage 
value=pics/spacer.gif width=0 height=20 /
114:h:graphicImage 
value=pics/spacer.gif width=0 height=20 /
115: 
116:h:outputText /
117:h:outputText /


And an Exception which looks like:
javax.servlet.ServletException: java.lang.InstantiationException: Can't load 
class org.apache.jsp.template_jsp in classloader: [EMAIL PROTECTED]
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

root cause

javax.faces.FacesException: java.lang.InstantiationException: Can't load class 
org.apache.jsp.template_jsp in classloader: [EMAIL PROTECTED]

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)

org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)

org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)

org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)



Has anyone an idea, what I must do, to use myfaces 1.1.5 with geronimo 2.0.2?
We're not able to switch to myfaces 1.2!

Thanks!
Regards
Jochen


___
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00



Re: Newbee -- unable to build the sample application

2007-11-01 Thread Matthew Simmons
Gentlemen,

That did it.  Just for my own education, why did I need to update via
Subversion?  I have talked to people who ran it without doing so.  Did I
screw up the POM file or something (that was the only thing updated)?

Thanks Jarek and Viet.
Matt

On 11/1/07, Jarek Gawor [EMAIL PROTECTED] wrote:

 Do svn up and try again.

 Jarek

 On 11/1/07, Matthew Simmons [EMAIL PROTECTED] wrote:
  Viet,
 
  Thanks for the response.
 
  Yes, I've tried to run 'mvn install' with the other samples and I get
 the
  same outcome.  I am posting the stack trace below.
 
  Matt
 
  C:\Geronimo\Samples\calculator\jaxws-calculator-warmvn
  install
  [INFO] Scanning for projects...
  [INFO]
  
  [ERROR] FATAL ERROR
  [INFO]
  
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: null:jaxws-calculator:pom:null
 
  Reason: Cannot find parent:
  org.apache.geronimo.samples:samples for project: nul
  l:jaxws-calculator:pom:null for project null:jaxws-calculator:pom:null
 
 
  [INFO]
  
  [INFO] Trace
  org.apache.maven.reactor.MavenExecutionException: Cannot
  find parent: org.apache
  .geronimo.samples:samples for project: null:jaxws-calculator:pom:null
 for
  projec
  t null:jaxws-calculator:pom:null
  at
  org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
  at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
  at org.apache.maven.DefaultMaven.execute
  (DefaultMaven.java:125)
  at
  org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke
  (Unknown Source)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
  :315)
  at
  org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at org.codehaus.classworlds.Launcher.main(
  Launcher.java:375)
  Caused by:
  org.apache.maven.project.ProjectBuildingException: Cannot
  find parent
  : org.apache.geronimo.samples:samples for project:
  null:jaxws-calculator:pom:nul
  l for project null:jaxws-calculator:pom:null
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
  efaultMavenProjectBuilder.java:1261)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
  efaultMavenProjectBuilder.java :1278)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
  aultMavenProjectBuilder.java:747)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
  leInternal( DefaultMavenProjectBuilder.java:479)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
  nProjectBuilder.java:200)
  at
  org.apache.maven.DefaultMaven.getProject(DefaultMaven.java
  :553)
  at
  org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
  at
  org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
  ... 11 more
  Caused by:
  org.apache.maven.project.ProjectBuildingException : POM
  'org.apache.ge
  ronimo.samples:samples' not found in repository: Unable to download the
  artifact
   from any repository
 
org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2)
   for project org.apache.geronimo.samples:samples
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
  sitory(DefaultMavenProjectBuilder.java:573)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
  efaultMavenProjectBuilder.java:1257)
  ... 18 more
  Caused by:
  org.apache.maven.artifact.resolver.ArtifactNotFoundException
  : Unable
  to download the artifact from any repository
 
org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2 )
 
  at
  org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
  faultArtifactResolver.java:197)
  at
  org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
  faultArtifactResolver.java :73)
  at
  org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
  sitory(DefaultMavenProjectBuilder.java:526)
  ... 19 more
  Caused by:
  org.apache.maven.wagon.ResourceDoesNotExistException :
  Unable to downl
  oad the artifact from any repository
  at
  

Re: MyFaces 1.1.5 and Geronimo 2.0.2

2007-11-01 Thread David Jencks
Paul may have more info, but my understanding is that for javaee  
compliance we need to, by default, support myfaces 1.2 and ignore any  
attempt to use earlier/other jsf implementations.


You might be able to disable this support by turning off the myfaces  
and myfaces-deployer modules in config.xml by adding a load=false  
attribute.  I can't promise this will work but it might be worth a try.


thanks
david jencks

On Nov 1, 2007, at 8:57 AM, Jochen Zink wrote:


Hello all,

I try to deploy a JSF-Webapplication which depends on myfaces  
1.1.5. This Application runs successfully under Tomcat 6.


Know, I want deploy this application under Geronimo 2.0.2. With  
exactly the same WAR file, nothing is happen. No Error Messages and  
no HTML Page is shown in the browser, if I call the URL from the  
Webapplication. Just a empty page, containing no HTML appears.


I expect, that this could be, that Geronimo has myfaces1.2 Libs  
loaded.


After this, I added
dep:hidden-classes
dep:filterorg.apache.myfaces/dep:filter
/dep:hidden-classes
to the deploymentdescriptor of the Webapp.

And know I get the following Error Message, after calling the  
WebApplication URL:


Some Messages looks like this:

An error occurred at line: 114 in the jsp file: /template.jsp
The method setHeight(String) in the type HtmlGraphicImageTagBase is  
not applicable for the arguments (JspValueExpression)
111: 		h:graphicImage value=pics/spacer.gif width=0  
height=20 /

112:h:outputText /
113: 		h:graphicImage value=pics/spacer.gif width=0  
height=20 /
114: 		h:graphicImage value=pics/spacer.gif width=0  
height=20 /

115:
116:h:outputText /
117:h:outputText /


And an Exception which looks like:
javax.servlet.ServletException: java.lang.InstantiationException:  
Can't load class org.apache.jsp.template_jsp in classloader:  
[EMAIL PROTECTED]

javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter 
(ExtensionsFilter.java:147)


root cause

javax.faces.FacesException: java.lang.InstantiationException: Can't  
load class org.apache.jsp.template_jsp in classloader:  
[EMAIL PROTECTED]
	 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch 
(ServletExternalContextImpl.java:425)
	 
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.di 
spatch(JspTilesViewHandlerImpl.java:236)
	 
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.re 
nderView(JspTilesViewHandlerImpl.java:222)
	org.apache.myfaces.lifecycle.RenderResponseExecutor.execute 
(RenderResponseExecutor.java:41)
	org.apache.myfaces.lifecycle.LifecycleImpl.render 
(LifecycleImpl.java:132)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter 
(ExtensionsFilter.java:147)




Has anyone an idea, what I must do, to use myfaces 1.1.5 with  
geronimo 2.0.2?

We're not able to switch to myfaces 1.2!

Thanks!
Regards
Jochen


__ 
_

Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/? 
mc=00






Re: Cannot access the geronimo server?

2007-11-01 Thread MShah

What do I modify in the  server-log4j.properties file to get more information
in the log file?  Could anyone please let me know, as I would like to debug
this further?

Thanks,
Manisha

djencks wrote:
 
 
 On Oct 30, 2007, at 4:26 PM, MShah wrote:
 

 I have a new install of Geronimo and looks like the server did  
 start up based
 on the messages in the console:

 Booting Geronimo Kernel (in Java 1.5.0_13)...
 Startup completed in 0.000s seconds
 Geronimo Application Server started

 
 The 0.000s seconds suggests that less than the full server started.   
 what did you do?
 
 Starting using java -Djava.endorsed.dirs=lib/endorsed -javaagent:bin/ 
 jpa.jar -jar bin/server.jar --long usually takes somewhere around  
 20-30 sec on my laptop.
 
 there are logs under var/log.  Depending on which geronimo you are  
 using you might need to modify server-log4j.properties in order to  
 get any useful info.
 
 thanks
 david jencks
 However I cannot access it using localhost:8080/console.  Is there are
 geronimo access log that I can possibly look at to debug this.  Any  
 inputs
 will be much appreciated as I am fairly new to this.

 Thanks,
 Manisha
 -- 
 View this message in context: http://www.nabble.com/Cannot-access- 
 the-geronimo-server--tf4721941s134.html#a13499946
 Sent from the Apache Geronimo - Users mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Cannot-access-the-geronimo-server--tf4721941s134.html#a13534507
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Problems deploying exploded webapp

2007-11-01 Thread Anil Arora
 

I am trying to deploy my exploded webapp application but I'm running
into class not found issues.

 

Error: Unable to distribute interlace:

org.apache.geronimo.common.DeploymentException: Failed to load

servlet class com.interlacesystems.system.ISStartupServlet

 

Failed to load servlet class

com.interlacesystems.system.ISStartupServlet

 

com.interlacesystems.system.ISStartupServlet in classloader

default/interlace/1193941770453/war

 

On the server side...this looks like

 

13:04:47,734 ERROR [Deployer] Deployment failed due to

org.apache.geronimo.common.DeploymentException: Failed to load servlet
class com

.interlacesystems.system.ISStartupServlet

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWeb

Services(JAXWSServiceBuilder.java:169)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ

ices(JAXWSServiceBuilder.java:110)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices

(JAXWSServiceBuilder.java:92)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder$$FastClassByCGL

IB$$5b2252ff.invoke(generated)

 

 

This class should be loaded via the sharedlib.  I changed the config.xml
to include the following...

 

module name=org.apache.geronimo.configs/sharedlib/2.0.2/car

gbean name=SharedLib

attribute
name=classesDirs${interlace.home},${interlace.home}/internal/interlac
e/bundles,${interlace.home}/interlace/bundles/attribute

attribute
name=libDirs${interlace.home}/internal/lib,${interlace.home}/lib/att
ribute

/gbean

/module

 

I even tried hard coding the absolute path, so I don't think it's
related to the system property.

I debugged this using my ide and I see that the jar files are added to
multiparentClassloader.  Just doesn't see to pick it up.

Do I need to add a reference or dependency in my Geronimo-web.xml?  This
is what it looks like now.

 

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;

context-root/interlace/context-root

/web-app

 

Anil



Re: Newbee -- unable to build the sample application

2007-11-01 Thread Viet Nguyen
Matt,

For the samples, you probably do not want to change the POMs. You
probably changed the pom's parent's module ids so it couldn't find it.
This was primarily why I asked if you have tried it out on other
samples because I was afraid that you did not have a clean copy of the
sample itself.

Regards,
Viet Nguyen

On Nov 1, 2007 1:43 PM, Matthew Simmons [EMAIL PROTECTED] wrote:
 Gentlemen,

 That did it.  Just for my own education, why did I need to update via
 Subversion?  I have talked to people who ran it without doing so.  Did I
 screw up the POM file or something (that was the only thing updated)?

 Thanks Jarek and Viet.
 Matt



 On 11/1/07, Jarek Gawor [EMAIL PROTECTED] wrote:
  Do svn up and try again.
 
  Jarek
 
  On 11/1/07, Matthew Simmons [EMAIL PROTECTED] wrote:
   Viet,
  
   Thanks for the response.
  
   Yes, I've tried to run 'mvn install' with the other samples and I get
 the
   same outcome.  I am posting the stack trace below.
  
   Matt
  
   C:\Geronimo\Samples\calculator\jaxws-calculator-warmvn
   install
   [INFO] Scanning for projects...
   [INFO]
   
   [ERROR] FATAL ERROR
   [INFO]
   
   [INFO] Error building POM (may not be this project's POM).
  
  
   Project ID: null:jaxws-calculator:pom:null
  
   Reason: Cannot find parent:
   org.apache.geronimo.samples:samples for project: nul
   l:jaxws-calculator:pom:null for project null:jaxws-calculator:pom:null
  
  
   [INFO]
   
   [INFO] Trace
   org.apache.maven.reactor.MavenExecutionException: Cannot
   find parent: org.apache
   .geronimo.samples:samples for project: null:jaxws-calculator:pom:null
 for
   projec
   t null:jaxws-calculator:pom:null
   at
   org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
   at
   org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
   at org.apache.maven.DefaultMaven.execute
   (DefaultMaven.java:125)
   at
   org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke
   (Unknown Source)
   at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
   Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
   org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java
   :315)
   at
   org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
   org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  
   at org.codehaus.classworlds.Launcher.main(
   Launcher.java:375)
   Caused by:
   org.apache.maven.project.ProjectBuildingException: Cannot
   find parent
   : org.apache.geronimo.samples:samples for project:
   null:jaxws-calculator:pom:nul
   l for project null:jaxws-calculator:pom:null
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java :1261)
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java :1278)
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal (Def
   aultMavenProjectBuilder.java:747)
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
   leInternal( DefaultMavenProjectBuilder.java:479)
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
   nProjectBuilder.java:200)
   at
   org.apache.maven.DefaultMaven.getProject(DefaultMaven.java
   :553)
   at
   org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
   at
   org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
   ... 11 more
   Caused by:
   org.apache.maven.project.ProjectBuildingException : POM
   'org.apache.ge
   ronimo.samples:samples' not found in repository: Unable to download the
   artifact
from any repository
  
 org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
  
   from the specified remote repositories:
 central (http://repo1.maven.org/maven2 )
for project org.apache.geronimo.samples:samples
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
   sitory(DefaultMavenProjectBuilder.java:573)
   at
   org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java:1257)
   ... 18 more
   Caused by:
   org.apache.maven.artifact.resolver.ArtifactNotFoundException
   : Unable
   to download the artifact from any repository
  
 org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
  
   from the specified remote repositories:
 central ( http://repo1.maven.org/maven2 )
  
   at
   

Re: Newbee -- unable to build the sample application

2007-11-01 Thread Jarek Gawor
We are cleaning up our samples and I removed the repository entry from
the pom file which caused that problem for you. I put that back in
yesterday and that's why you had to do svn up.

Jarek

On 11/1/07, Matthew Simmons [EMAIL PROTECTED] wrote:
 Gentlemen,

 That did it.  Just for my own education, why did I need to update via
 Subversion?  I have talked to people who ran it without doing so.  Did I
 screw up the POM file or something (that was the only thing updated)?

 Thanks Jarek and Viet.
 Matt


 On 11/1/07, Jarek Gawor [EMAIL PROTECTED] wrote:
  Do svn up and try again.
 
  Jarek
 
  On 11/1/07, Matthew Simmons [EMAIL PROTECTED] wrote:
   Viet,
  
   Thanks for the response.
  
   Yes, I've tried to run 'mvn install' with the other samples and I get
 the
   same outcome.  I am posting the stack trace below.
  
   Matt
  
   C:\Geronimo\Samples\calculator\jaxws-calculator-warmvn
   install
   [INFO] Scanning for projects...
   [INFO]
  
 
   [ERROR] FATAL ERROR
   [INFO]
  
 
   [INFO] Error building POM (may not be this project's POM).
  
  
   Project ID: null:jaxws-calculator:pom:null
  
   Reason: Cannot find parent:
   org.apache.geronimo.samples:samples for project: nul
   l:jaxws-calculator:pom:null for project null:jaxws-calculator:pom:null
  
  
   [INFO]
  
 
   [INFO] Trace
   org.apache.maven.reactor.MavenExecutionException:
 Cannot
   find parent: org.apache
   .geronimo.samples:samples for project: null:jaxws-calculator:pom:null
 for
   projec
   t null:jaxws-calculator:pom:null
   at
  
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
   at
  
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
   at org.apache.maven.DefaultMaven.execute
   (DefaultMaven.java:125)
   at
   org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke
   (Unknown Source)
   at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
   Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
   org.codehaus.classworlds.Launcher.launchEnhanced
 (Launcher.java
   :315)
   at
  
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  
   at org.codehaus.classworlds.Launcher.main(
   Launcher.java:375)
   Caused by:
   org.apache.maven.project.ProjectBuildingException:
 Cannot
   find parent
   : org.apache.geronimo.samples:samples for project:
   null:jaxws-calculator:pom:nul
   l for project null:jaxws-calculator:pom:null
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java :1261)
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java :1278)
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal
 (Def
   aultMavenProjectBuilder.java:747)
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
   leInternal( DefaultMavenProjectBuilder.java:479)
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
   nProjectBuilder.java:200)
   at
  
 org.apache.maven.DefaultMaven.getProject(DefaultMaven.java
   :553)
   at
  
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
   at
  
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
   ... 11 more
   Caused by:
   org.apache.maven.project.ProjectBuildingException : POM
   'org.apache.ge
   ronimo.samples:samples' not found in repository: Unable to download the
   artifact
from any repository
  
 org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
  
   from the specified remote repositories:
 central (http://repo1.maven.org/maven2 )
for project org.apache.geronimo.samples:samples
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
   sitory(DefaultMavenProjectBuilder.java:573)
   at
  
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
   efaultMavenProjectBuilder.java:1257)
   ... 18 more
   Caused by:
  
 org.apache.maven.artifact.resolver.ArtifactNotFoundException
   : Unable
   to download the artifact from any repository
  
 org.apache.geronimo.samples:samples:pom:2.1-SNAPSHOT
  
   from the specified remote repositories:
 central ( http://repo1.maven.org/maven2 )
  
   at
  
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
   faultArtifactResolver.java:197)
   at
  
 

Re: Cannot access the geronimo server?

2007-11-01 Thread MShah

Also I cannot start geronimo from the command line.  I get the following
error:


C:\geronimo6_5-2_0_1\binjava -Djava.endorsed.dirs=lib/endorsed
-javaagent:bin/j
pa.jar -jar bin/server.jar
Unrecognized option: -javaagent:bin/jpa.jar
Could not create the Java virtual machine.


Any tips on resolving this will be appreciated.  I made the changes to the
server log properties file, but there is still no information in the log
file when I start up the server using geronimo.bat file.

Thanks,
Manisha



djencks wrote:
 
 
 On Nov 1, 2007, at 11:21 AM, MShah wrote:
 

 What do I modify in the  server-log4j.properties file to get more  
 information
 in the log file?  Could anyone please let me know, as I would like  
 to debug
 this further?
 
 I think these lines are key, but I haven't figured out how the  
 logging levels they specify interrelate:
 
 #I think any log messages below INFO are ignored
 log4j.rootLogger=INFO, CONSOLE, FILE
 
 #I think messages that make it through root logger but are at least  
 this level get into this file
 log4j.appender.FILE.Threshold=TRACE
 
 hope this helps
 david jencks
 

 Thanks,
 Manisha

 djencks wrote:


 On Oct 30, 2007, at 4:26 PM, MShah wrote:


 I have a new install of Geronimo and looks like the server did
 start up based
 on the messages in the console:

 Booting Geronimo Kernel (in Java 1.5.0_13)...
 Startup completed in 0.000s seconds
 Geronimo Application Server started


 The 0.000s seconds suggests that less than the full server started.
 what did you do?

 Starting using java -Djava.endorsed.dirs=lib/endorsed -javaagent:bin/
 jpa.jar -jar bin/server.jar --long usually takes somewhere around
 20-30 sec on my laptop.

 there are logs under var/log.  Depending on which geronimo you are
 using you might need to modify server-log4j.properties in order to
 get any useful info.

 thanks
 david jencks
 However I cannot access it using localhost:8080/console.  Is  
 there are
 geronimo access log that I can possibly look at to debug this.  Any
 inputs
 will be much appreciated as I am fairly new to this.

 Thanks,
 Manisha
 -- 
 View this message in context: http://www.nabble.com/Cannot-access-
 the-geronimo-server--tf4721941s134.html#a13499946
 Sent from the Apache Geronimo - Users mailing list archive at
 Nabble.com.





 -- 
 View this message in context: http://www.nabble.com/Cannot-access- 
 the-geronimo-server--tf4721941s134.html#a13534507
 Sent from the Apache Geronimo - Users mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Cannot-access-the-geronimo-server--tf4721941s134.html#a13536005
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Cannot access the geronimo server?

2007-11-01 Thread Jarek Gawor
Just a thought, how does your var/config/config.xml file look like?
Maybe somehow it got corrupted and is pretty much empty or has a few
modules listed?

Jarek

On 11/1/07, MShah [EMAIL PROTECTED] wrote:

 What do I modify in the  server-log4j.properties file to get more information
 in the log file?  Could anyone please let me know, as I would like to debug
 this further?

 Thanks,
 Manisha

 djencks wrote:
 
 
  On Oct 30, 2007, at 4:26 PM, MShah wrote:
 
 
  I have a new install of Geronimo and looks like the server did
  start up based
  on the messages in the console:
 
  Booting Geronimo Kernel (in Java 1.5.0_13)...
  Startup completed in 0.000s seconds
  Geronimo Application Server started
 
 
  The 0.000s seconds suggests that less than the full server started.
  what did you do?
 
  Starting using java -Djava.endorsed.dirs=lib/endorsed -javaagent:bin/
  jpa.jar -jar bin/server.jar --long usually takes somewhere around
  20-30 sec on my laptop.
 
  there are logs under var/log.  Depending on which geronimo you are
  using you might need to modify server-log4j.properties in order to
  get any useful info.
 
  thanks
  david jencks
  However I cannot access it using localhost:8080/console.  Is there are
  geronimo access log that I can possibly look at to debug this.  Any
  inputs
  will be much appreciated as I am fairly new to this.
 
  Thanks,
  Manisha
  --
  View this message in context: http://www.nabble.com/Cannot-access-
  the-geronimo-server--tf4721941s134.html#a13499946
  Sent from the Apache Geronimo - Users mailing list archive at
  Nabble.com.
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Cannot-access-the-geronimo-server--tf4721941s134.html#a13534507
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




Re: Cannot access the geronimo server?

2007-11-01 Thread David Jencks


On Nov 1, 2007, at 11:21 AM, MShah wrote:



What do I modify in the  server-log4j.properties file to get more  
information
in the log file?  Could anyone please let me know, as I would like  
to debug

this further?


I think these lines are key, but I haven't figured out how the  
logging levels they specify interrelate:


#I think any log messages below INFO are ignored
log4j.rootLogger=INFO, CONSOLE, FILE

#I think messages that make it through root logger but are at least  
this level get into this file

log4j.appender.FILE.Threshold=TRACE

hope this helps
david jencks



Thanks,
Manisha

djencks wrote:



On Oct 30, 2007, at 4:26 PM, MShah wrote:



I have a new install of Geronimo and looks like the server did
start up based
on the messages in the console:

Booting Geronimo Kernel (in Java 1.5.0_13)...
Startup completed in 0.000s seconds
Geronimo Application Server started



The 0.000s seconds suggests that less than the full server started.
what did you do?

Starting using java -Djava.endorsed.dirs=lib/endorsed -javaagent:bin/
jpa.jar -jar bin/server.jar --long usually takes somewhere around
20-30 sec on my laptop.

there are logs under var/log.  Depending on which geronimo you are
using you might need to modify server-log4j.properties in order to
get any useful info.

thanks
david jencks
However I cannot access it using localhost:8080/console.  Is  
there are

geronimo access log that I can possibly look at to debug this.  Any
inputs
will be much appreciated as I am fairly new to this.

Thanks,
Manisha
--
View this message in context: http://www.nabble.com/Cannot-access-
the-geronimo-server--tf4721941s134.html#a13499946
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.







--
View this message in context: http://www.nabble.com/Cannot-access- 
the-geronimo-server--tf4721941s134.html#a13534507
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






SOLVED: Re: Building sample project - maven error

2007-11-01 Thread PeterAU2

Yes, that was it. Thanks for your help.
Peter


Jarek Gawor-2 wrote:
 
 That looks to me like your firewall is still kicking in (or you have
 some other communication problems). Turn it off and keep it off until
 maven is done building the code.
 
 Jarek
 
 On 11/1/07, PeterAU2 [EMAIL PROTECTED] wrote:

 I'm on a Windows box, so I had to go and download and install svn from
 http://subversion.tigris.org/
 I turned off my firewall so svn could get through, and also I'm guessing
 so
 Maven can get through.
 I got the same error, though, shown below.
 What should I try next?
 Peter

 -
 C:\course\EJB\SamplesFromGeronimo\mytimemvn clean install site
 [INFO] Scanning for projects...
 [INFO] snapshot org.apache.geronimo.samples:samples:2.1-SNAPSHOT:
 checking
 for updates from apache-snapshots
 [WARNING] repository metadata for: 'snapshot

 
 snip
 
 

-- 
View this message in context: 
http://www.nabble.com/Building-sample-project---maven-error-tf4729095s134.html#a13536210
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Cannot access the geronimo server?

2007-11-01 Thread MShah

That was it.  There is a blank config file.

Thanks Jarek.



Jarek Gawor-2 wrote:
 
 Just a thought, how does your var/config/config.xml file look like?
 Maybe somehow it got corrupted and is pretty much empty or has a few
 modules listed?
 
 Jarek
 
 On 11/1/07, MShah [EMAIL PROTECTED] wrote:

 What do I modify in the  server-log4j.properties file to get more
 information
 in the log file?  Could anyone please let me know, as I would like to
 debug
 this further?

 Thanks,
 Manisha

 djencks wrote:
 
 
  On Oct 30, 2007, at 4:26 PM, MShah wrote:
 
 
  I have a new install of Geronimo and looks like the server did
  start up based
  on the messages in the console:
 
  Booting Geronimo Kernel (in Java 1.5.0_13)...
  Startup completed in 0.000s seconds
  Geronimo Application Server started
 
 
  The 0.000s seconds suggests that less than the full server started.
  what did you do?
 
  Starting using java -Djava.endorsed.dirs=lib/endorsed -javaagent:bin/
  jpa.jar -jar bin/server.jar --long usually takes somewhere around
  20-30 sec on my laptop.
 
  there are logs under var/log.  Depending on which geronimo you are
  using you might need to modify server-log4j.properties in order to
  get any useful info.
 
  thanks
  david jencks
  However I cannot access it using localhost:8080/console.  Is there are
  geronimo access log that I can possibly look at to debug this.  Any
  inputs
  will be much appreciated as I am fairly new to this.
 
  Thanks,
  Manisha
  --
  View this message in context: http://www.nabble.com/Cannot-access-
  the-geronimo-server--tf4721941s134.html#a13499946
  Sent from the Apache Geronimo - Users mailing list archive at
  Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Cannot-access-the-geronimo-server--tf4721941s134.html#a13534507
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Cannot-access-the-geronimo-server--tf4721941s134.html#a13536227
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



RE: Problems deploying exploded webapp

2007-11-01 Thread Anil Arora
Ok...I figured this out...

 

Changed my geronimo-web.xml file to include a dependency...

 

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;

xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.1;

xmlns:naming=http://geronimo.apache.org/xml/ns/naming-1.1;

 

sys:environment

sys:dependencies

sys:dependency

sys:groupIdorg.apache.geronimo.configs/sys:groupId

sys:artifactIdsharedlib/sys:artifactId

sys:version2.0.2/sys:version

sys:typecar/sys:type

/sys:dependency

   /sys:dependencies

/sys:environment

context-root/interlace/context-root

/web-app

 

 



From: Anil Arora [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 01, 2007 1:13 PM
To: user@geronimo.apache.org
Subject: Problems deploying exploded webapp

 

 

I am trying to deploy my exploded webapp application but I'm running
into class not found issues.

 

Error: Unable to distribute interlace:

org.apache.geronimo.common.DeploymentException: Failed to load

servlet class com.interlacesystems.system.ISStartupServlet

 

Failed to load servlet class

com.interlacesystems.system.ISStartupServlet

 

com.interlacesystems.system.ISStartupServlet in classloader

default/interlace/1193941770453/war

 

On the server side...this looks like

 

13:04:47,734 ERROR [Deployer] Deployment failed due to

org.apache.geronimo.common.DeploymentException: Failed to load servlet
class com

.interlacesystems.system.ISStartupServlet

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWeb

Services(JAXWSServiceBuilder.java:169)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ

ices(JAXWSServiceBuilder.java:110)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices

(JAXWSServiceBuilder.java:92)

at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder$$FastClassByCGL

IB$$5b2252ff.invoke(generated)

 

 

This class should be loaded via the sharedlib.  I changed the config.xml
to include the following...

 

module name=org.apache.geronimo.configs/sharedlib/2.0.2/car

gbean name=SharedLib

attribute
name=classesDirs${interlace.home},${interlace.home}/internal/interlac
e/bundles,${interlace.home}/interlace/bundles/attribute

attribute
name=libDirs${interlace.home}/internal/lib,${interlace.home}/lib/att
ribute

/gbean

/module

 

I even tried hard coding the absolute path, so I don't think it's
related to the system property.

I debugged this using my ide and I see that the jar files are added to
multiparentClassloader.  Just doesn't see to pick it up.

Do I need to add a reference or dependency in my Geronimo-web.xml?  This
is what it looks like now.

 

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;

context-root/interlace/context-root

/web-app

 

Anil



Re: MyFaces 1.1.5 and Geronimo 2.0.2

2007-11-01 Thread Kevan Miller
On 11/1/07, David Jencks [EMAIL PROTECTED] wrote:

 Paul may have more info, but my understanding is that for javaee
 compliance we need to, by default, support myfaces 1.2 and ignore any
 attempt to use earlier/other jsf implementations.

 You might be able to disable this support by turning off the myfaces
 and myfaces-deployer modules in config.xml by adding a load=false
 attribute.  I can't promise this will work but it might be worth a try.


Good chance that will work. Alternatively, if you only require simple web
container support (e.g. Tomcat), you can use the minimal server. Our minimal
servers don't contain myfaces/myfaces-deployer.

--kevan


GBean classloader and dependencies

2007-11-01 Thread Anil Arora
I have an issue now.  I added some libraries using the sharedlib gbean.


However, one of my classes that is in one of these libraries has a
dependency of the jasper-jdt compiler in tomcat.  I know that this is a
module which I can reference, but I'm not sure how.  

Do I put a dependency tag in the gbean definition?   I tried this and
this didn't seem to work.

 

Thanks,

Anil

 

 

 

Anil Arora

Interlace Systems

1900 S. Norfolk St.  Suite 325

San Mateo, CA 94403-1511

W: (650) 574-1422 x110

F: (650) 574-1423