Runtime "WSO2 WSAS" is invalid. Missing classpath entry \serverRootDirectory\lib

moor's picture
Hi All. I have trouble with defining server runtime environment WSO2WSAS in eclipse: Runtime "WSO2 WSAS" is invalid. Missing classpath entry \serverRootDirectory\lib. Adn I can't change \serverRootDirectory\lib (attaches). Does anybody knows what preference I could missing?
AttachmentSize
WSO2WSAS.jpg89.96 KB
WSO2WSAS2.jpg97.17 KB
charitha's picture

Hi, Did you point to a valid

Hi, Did you point to a valid WSO2 WSAS directory in Preferences-->WSAS Preferences-->WSAS Runtime in Eclipse ? regards Charitha
moor's picture

Yes, of course. I've got

Yes, of course. I've got message, that WSAS runtime was loaded successfully. But in Window-Preferences-Server-Runtime environments I see missing classpath entry for WSO2WSAS runtime environment
sellarti's picture

Am seeing the exact same

Am seeing the exact same problem with Ganymede on Ubuntu Hardy. Looks like a reference within the plugin description has been hard-coded. The following worked around it for me: sudo ln -s /opt/wso2wsas-2.3 /serverRootDirectory
dheeraj3y2k's picture

I'm getting the exact same problem

I'm getting the exact same problem. How to resolve this. Does it have anything to do with the java version. Because the java version installed in my machine is Java 1.6. How did you resolve this problem Thank u in advance, Dheeraj
thijsbrentjens's picture

change wsas.serverdef in org.wso2.wsf.ide.server.wsas-2.2.jar

Hi, I just got a solution that worked for me (am using WSAS2.2). Maybe you could try this as well. Apparently, the value serverRootDirectory is set in a file wsas.serverdef in the jar org.wso2.wsf.ide.server.wsas-2.2.jar, which is part of the Eclipse plugin. There is a property named serverRootDirectory in that file, that should point to your WSO2WSAS-home. Replace that value in the properties in wsas.serverdef , for example like this: To get to the file: unzip the jar eclipse\plugins\org.wso2.wsf.ide.server.wsas-2.2.jar somewhere (temp), edit the file and zip it again. Put it in eclipse\plugins\ again, replacing the older one. I restarted Eclipse. NOTE: remove the Server Runtime in Eclipse using Window > Preferences and from Server > Runtime Environments remove the WSO2 WSAS runtime and add it again. Now it should be reloaded. Create the Dynamic web project and select the new runtime. It should be okay now. HTH, Thijs