Results 1 to 8 of 8

Thread: Cannot start VMWare VFabric tc server 2.5,2.6 in STS 2.8

  1. #1
    Join Date
    Oct 2011
    Posts
    5

    Question Cannot start VMWare VFabric tc server 2.5,2.6 in STS 2.8

    Hi,

    I have read about Insight and would like to run our web app through it. In other forum threads it was recommended to go to STS 2.8 and use the VFabric tc server. However, I can't seem to get the server to start.

    I installed the 2.8 version of STS. I have the VFabric 2.5 development server as one of the available servers. In a brand new workspace, I added a server through the server tab in the STS UI but haven't been unable to start it. Every time I try to start it up the server fails with this error:

    java.lang.ClassNotFoundException: com.springsource.insight.collection.tcserver.reque st.HttpRequestOperationCollectionValve

    I have the following lines in my context.xml and yet it still cannot seem to fine the valve class:

    <Valve className="com.springsource.insight.collection.tcs erver.request.HttpRequestOperationCollectionValve" />
    <Loader loaderClass="com.springsource.insight.collection.t cserver.ltw.TomcatWeavingInsightClassLoader"/>
    <Listener className="com.springsource.insight.collection.tcs erver.lifecycle.ApplicationLifecycleCollectionList ener"/>

    The context.xml file is in my "Servers\VMware vFabric tc Server Developer Edition v2.6-config" directory of my workspace. Its also in my "vfabric-tc-server-developer-2.6.1.RELEASE/conf" directory as well.

    I feel like there must be something straight forward that I am missing or not doing or haven't done correctly.

    Is there a tutorial or installation guide or "Getting Started" guide that might help? Do I need to publish the web application to the server first? This seems counter intuitive since the server hasn't started.


    Thanks

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

    Default

    Hi!

    I don't know exactly what is going wrong in your case, but are you using the STS 2.8.0 download packages that also ship tc Server developer edition 2.6.1? If so, the tc Server instance should get configured automatically for you and should also allow you to use Insight right away without any additional or manual configuration. Did you try that?

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

  3. #3
    Join Date
    Oct 2011
    Posts
    5

    Default

    Thanks for answering. I re-installed sts 2.8.0 and was able to get farther using the VMware vFabric tc Server Developer Edition v2.6. I got passed the Class Not Found exception. The problem I have now is I am get aspectJ/AOP weaver option and prolog errors.

    Even though I have: <weaver options="-XnoInline -Xlint:ignore -Xset:weaveJavaPackages=true,weaveJavaxPackages=tru e"> in my aop.xml file and -javaagent:C:/anotherTry/lib/aspectjweaver.jar in my JRE VM arguments. I still get this error when trying to fire up the server: [StandardClassLoader@625dcec6] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified

    And this also shows up in tc Server console: [TomcatWeavingInsightClassLoader@77954f89] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified

    I have been searching the forums and other places, but haven't found a clue as to what this is about.

    Plus there is this weird prolog error stacktrace:
    SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    .
    .
    .
    .
    Nov 20, 2011 10:41:45 PM org.apache.catalina.startup.TldConfig tldScanWebXml
    WARNING: Failed to process TLD with path [http://jakarta.apache.org/taglibs/page-1.0] and URI [/WEB-INF/lib/taglibs-page.jar]

    Have found anything about what might be causing this. I can start this same project in a straight TomCat 6.0 server in STS. Any advice would be appreciated. Is there another forum where this might be a more appropriate post?

  4. #4
    Join Date
    May 2009
    Location
    Vancouver
    Posts
    274

    Default

    Hi,

    Are you sure your aop.xml file is being picked up by the classloader that is reporting the message? Perhaps add -verbose to the weaver options set to confirm? Multiple uses of -Xset would explain it (as they overwrite each other), but you appear to be just using one, so that can't be it. If -verbose works and you see other aop.xml files referenced, can you check if they contain -Xset options?

    cheers,
    Andy

  5. #5
    Join Date
    Oct 2011
    Posts
    5

    Default

    Thanks for the help. I did turn on verbose and saw some interesting information. I didn't have duplicate Xset definition. The server actually started up. I could go to http://localhost:8080 and get the Spring Welcome screen without my probject being loaded. I tried adding my project to the server start up by modifying the server.xml by adding a context docBase to the <Host> section:
    <Host appBase="webapps" autoDeploy="true" deployOnStartup="true" deployXML="true" name="localhost" unpackWARs="true">
    <Valve className="org.apache.catalina.valves.AccessLogVal ve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/>
    <Context docBase="C:/Workspace/myproject/webapps" path="/myproject" debug="0" reloadable="false">
    <Transaction factory="bitronix.tm.BitronixUserTransactionObject Factory" />
    </Context>
    </Host>

    in the webapps area of the work space there is a myproject.war file. This is how I have deployed my project to my tomcat server.

    I did this and the server would still fire up but when I tried to bring up my project in a browser I kept getting the "...resource not found...". So I went to the Server Tab in the Spring Perspective and right clicked on server. I clicked the "Publish" entry and that messed something up.

    Because now when I would try to start up the server I would get this error again: SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.

    I seem to be going around and around. And if I just wait long enough it will behave differently. Is publish the wrong thing to do? Is there a different way to deploy than the way I did with Tomcat and putting a context in the server.xml?
    .

  6. #6
    Join Date
    Oct 2011
    Posts
    5

    Default Another question

    I am also seeing this error in the console:

    SEVERE: com/springsource/insight/plugin/tomcat/jsp/JspCompilerOperationCollectionAspect
    java.lang.RuntimeException: Problem processing attributes in com.springsource.insight.plugin.tomcat.jsp.JspComp ilerOperationCollectionAspect

    Anyone see this one?

  7. #7
    Join Date
    Jul 2010
    Posts
    28

    Default

    Hi,Martin,springsource tc server and VMware vFabric tc Server are the same product?
    I see multiple settings in "new server wizard".I google springsource tc server vs VMware vFabric TM tc Server,but no results.
    Could you tell difference between them.

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

    Default

    Hi!

    SpringSource tc Server is the old name of the tc Server offering from SpringSource. Meanwhile it got integrated into the VMware vFabric product family and is therefore now called VMware vFabric tc Server.

    STS contains server adaptors for different versions of tc Server, therefore you will find the adapters for old versions of tc Server under the SpringSource category (up to version 2.1) and the server adaptors for the latest versions under the VMware category (from version 2.5 on).

    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
  •