Results 1 to 2 of 2

Thread: STS 3.0.0 installer and Maven problem on startup

  1. #1
    Join Date
    Aug 2012
    Posts
    7

    Default STS 3.0.0 installer and Maven problem on startup

    I'm using STS 3.0.0 (build 201208091018) on Windows 7 and using IBM's J9 JDK that comes with WebSphere 7.0.

    When installing I'm pointing to the WebSphere's JDK but it tells me that it's 32-bit, not 64-bit/ When I use java -version it says:-

    Code:
    IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows Vista amd64-64 jvmwa6460-20080816_22093 (JIT enabled, AOT enabled)

    which suggests that it is 64-bit. Anyway, the install seems successful except no icons are added to quicklaunch, the desktop or the start menu. Starting STS from the STS.exe icon in Windows Explorer gets me into STS but there is an immediate error:-

    Code:
    Could not lookup required component
    com.google.inject.ProvisionException: Guice provision errors:
    
    1) Error in custom provider, java.lang.TypeNotPresentException: Type javax.enterprise.inject.Typed not present
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.sonatype.plexus.components.cipher.PlexusCipher
      while locating org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.sonatype.plexus.components.sec.dispatcher.SecDispatcher annotated with @com.google.inject.name.Named(value=maven)
      while locating org.apache.maven.settings.crypto.DefaultSettingsDecrypter
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.settings.crypto.SettingsDecrypter
      while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.repository.RepositorySystem
      while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.execution.MavenExecutionRequestPopulator
    
    1 error
          role: org.apache.maven.execution.MavenExecutionRequestPopulator
      roleHint:

    Is STS just not compatible with IBM's 64-bit J9 JDK?

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    Quote Originally Posted by mekondelta View Post
    When installing I'm pointing to the WebSphere's JDK but it tells me that it's 32-bit, not 64-bit/ When I use java -version it says:-

    Code:
    IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows Vista amd64-64 jvmwa6460-20080816_22093 (JIT enabled, AOT enabled)

    which suggests that it is 64-bit. Anyway, the install seems successful except no icons are added to quicklaunch, the desktop or the start menu.
    It could be that the installer is not able to identify this JVM as a 64bit JVM. But it looks indeed like a 64bit JVM. You should be good to go with this.

    Quote Originally Posted by mekondelta View Post
    Starting STS from the STS.exe icon in Windows Explorer gets me into STS but there is an immediate error:-

    Code:
    Could not lookup required component
    com.google.inject.ProvisionException: Guice provision errors:
    
    1) Error in custom provider, java.lang.TypeNotPresentException: Type javax.enterprise.inject.Typed not present
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.sonatype.plexus.components.cipher.PlexusCipher
      while locating org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.sonatype.plexus.components.sec.dispatcher.SecDispatcher annotated with @com.google.inject.name.Named(value=maven)
      while locating org.apache.maven.settings.crypto.DefaultSettingsDecrypter
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.settings.crypto.SettingsDecrypter
      while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.repository.RepositorySystem
      while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
      at ClassRealm[plexus.core, parent: null]
      at ClassRealm[plexus.core, parent: null]
      while locating org.apache.maven.execution.MavenExecutionRequestPopulator
    
    1 error
          role: org.apache.maven.execution.MavenExecutionRequestPopulator
      roleHint:

    Is STS just not compatible with IBM's 64-bit J9 JDK?
    We don't test STS with the J9 VM, so its possible that there are incompatibilities, but there should be none. The error message is related to the Maven Integration for Eclipse that we are using, so maybe those guys know more about this?

    Maybe this is related to this issue here:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=338252

    Does Maven run correctly from the command line using the J9 VM for your project?
    Btw: did you observe a similar problem on STS 2.9.x or haven't you used that?

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •