What''s can I do?

I have built wildfire(version 3.1.1) in my Eclipse (version 3.2.1) successfully according to the guide from it2000.But now I have new trouble.When I tried to run or debug wildfire in Eclipse through the mainclass org.jivesoftware.wildfire.launcher.Launcher, the follwing message appeared in the wildfire windows : Unable to access jarfile F:\zdq\third_party\lib\startup.jar.( F:\zdq\third_party is the directory where I extracted the wildfire source code.) It’'s obviously that the parameters setting in Eclipse(version 3.2.1) is very defferent from what mentioned in the manual(http://wiki.jivesoftware.org/display/WILDFIRE/BuildWildfirewith+Eclipse).What can I do now.Thanks a lot for your help.

Hey richard_zhu,

Try using the ServerStarter class instead. That is the one I use from inside my IDE (intellij). The only parameter you will need to pass is wildfireHome.

Regards,

– Gato

Message was edited by: dombiak_gaston

Hi Gato,

right, a lot did change and something was not really needed, so I did update the Wiki document for 3.1.0 but I didn’'t find this thread any more last night.

LG

Hi Gato,

Your suggestion is maybe useful but can you show me the right steps to pass the parameter wildfireHome in Eclipse? I have tried many times and failed every time.The error messages always indicated the location error or main thread error.

.

Thanks.

Sunny.

Hi Gato,

I added the wildfireHome parameter in environment of Eclipse.Then I modified the function locateWildfire as following:

private void locateWildfire()

if (wildfireHome == null) {

String homeProperty = System.getProperty(“wildfireHome”);

if(homeProperty==null)

homeProperty = System.getenv(“wildfireHome”);

When I tried to run,it failed again.Please explain it for me.

Thaknks a million!

Sunny

=================================================================

java.util.MissingResourceException: Can’'t find bundle for base name wildfire_i18n, locale en

at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)

at java.util.ResourceBundle.getBundleImpl(Unknown Source)

at java.util.ResourceBundle.getBundle(Unknown Source)

at org.jivesoftware.util.LocaleUtils.getLocalizedString(LocaleUtils.java:387)

at org.jivesoftware.wildfire.XMPPServer.start(XMPPServer.java:392)

at org.jivesoftware.wildfire.XMPPServer.(XMPPServer.java:147)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.wildfire.starter.ServerStarter.start(ServerStarter.java:93)

at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)

Error starting admin console: Multiple exception

Hi Sunny,

did you re-read the Wiki document? I did update it should work without problems or the need to change Wildfire code.

LG

Hi LG,

I followed ur instructions and resolved this problem!

Thanks a million!

Sunny

Thanks to LG and Gato.Your instructions are very useful. I changed my jdk 1.6 into 1.5.0_6 and set parameters according to the new manual.At least,the sever began to work in spite of some error information.I will try my best the find the root cause and understand the sever better.

Do you want to post the error information here? So one may (or may not) be able to point you to the right direction.

Of course I am very glad to get more instruction.The following are the prompt:

java.lang.NullPointerException

at org.jivesoftware.admin.AdminConsole.getAppName(AdminConsole.java:119)

at org.jivesoftware.wildfire.handler.IQVersionHandler.(XMPPServer.java:147)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.wildfire.starter.ServerStarter.start(ServerStarter.java:93)

at org.jivesoftware.wildfire.starter.ServerStarter.main(ServerStarter.java:49)

Wildfire 3.1.1

Admin console listening at:

http://richard001:9090

https://richard001:9091

Hi,

so you may want to add a breakpoint using Eclipse in XMPPServer.java:469 as this seems to load a plugin with a problem with i18n strings. Then use the debug mode and inspect which is causing the problem.

If you have little experience with breakpoints and the debug mode in general you could also insert in XMPPServer.java:469 a println() line like:

private void loadModule(String module) {
          System.err.println(module);
        try {

I wonder which locale you are using, one could take a look at the i18n files for lines with “foobar=” - so the value is missing and probably null.

LG

Thanks.I set a beakpoint in XMPPServer.java:469 as you said and then located the line where the error took place as following:

public class AdminConsole {

private static Element generatedModel;

public static synchronized String getAppName() {

Element appName = (Element)generatedModel.selectSingleNode("//adminconsole/global/appname");

if (appName != null) {

String pluginName = appName.attributeValue(“plugin”);

return getAdminText(appName.getText(), pluginName);

}

else {

return null;

}

}

When the module org.jivesoftware.wildfire.handler.IQVersionHandler is loaded, AdminConsole.generatedModel is NULL…