Yet another invalid plugin exception. [WorldGuard]

Discussion in 'Plugin Development' started by amkeyte, Jan 23, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    I'm hoping this is an easy one.
    The goal is to make some simple edits to WorldGuard to add a new region flag.

    I am using Netbeans so I'm guessing that there's a problem with the setup. Perhaps the library settings are goofed up? You may notice that half way down there is a mention of BlockVector not defined. I have added WorldEdit, Permissions, and Bukkit to my library as JARs which clears all reference errors in Netbeans, as well as allowing for a completed compile.

    I have gotten the exact same error using my edited source as well as just locally compiled source taken from SK's site. I am using the latest verson of Bukkit, WorldEdit, Permissions, and WorldGuard as of this writing. I don't believe that this version of WorldGuard is the problem, since the compiled download works fine. Beyond that, according to my IDE the BlockVector class is alive and well, exactly where it's supposed to be. This only happens when compile the code on my machine.

    Anyone else using Netbeans that might be able to point me in the right direction? I have been using Netbeans for a good while for PHP, but I'm new to Java.

    2011-01-23 18:06:03 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-23 18:06:03 [INFO] Loading properties
    2011-01-23 18:06:03 [INFO] Starting Minecraft server on *:25565
    2011-01-23 18:06:03 [WARNING] The server will make no attempt to authenticate us
    ernames. Beware.
    2011-01-23 18:06:03 [WARNING] While this makes the game possible to play without
     internet access, it also opens up the ability for hackers to connect with any u
    sername they choose.
    2011-01-23 18:06:03 [WARNING] To change this, set "online-mode" to "true" in the
     server.settings file.
    2011-01-23 18:06:03 [INFO] Preparing level "world"
    2011-01-23 18:06:03 [INFO] Preparing start region
    Preparing spawn area: 12%
    Preparing spawn area: 40%
    Preparing spawn area: 56%
    Preparing spawn area: 81%
    Preparing spawn area: 97%
    2011-01-23 18:06:08 [INFO] [General] version [1.9] (Yakuza) loaded
    2011-01-23 18:06:08 [INFO] [Permissions] version [1.6] (Handler) loaded
    2011-01-23 18:06:08 [INFO] [WarpGate] version [1.4] (Polarized) loaded
    2011-01-23 18:06:08 [INFO] WorldEdit 2.14.2 loaded.
    2011-01-23 18:06:08 [INFO] WorldEdit: Permissions plugin detected! Using Permiss
    ions plugin for permissions.
    Jan 23, 2011 6:06:08 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\WorldGuard.jar in plugins: null
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at net.minecraft.server.MinecraftServer.e(
            at net.minecraft.server.MinecraftServer.c(
            at net.minecraft.server.MinecraftServer.d(
    Caused by: java.lang.reflect.InvocationTargetException
            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)
            ... 8 more
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldedit/BlockVector
            at com.sk89q.worldguard.bukkit.WorldGuardPlugin.<init>(
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.BlockVector
            at$ Source)
            at Method)
            at Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 14 more
    BorderGuard version 2.0 is enabled!
    GuestBook Ultimate version 1.12 Herp|Derp is enabled!
    GuestBook: Trying to load GuestBook and settings...done.
    GuestBook Ultimate version 1.12 Herp|Derp is enabled!
    Loaded HotSwap version 3 by Zenexer.
    2011-01-23 18:06:08 [INFO] [Interesting Places] Loaded
    2011-01-23 18:06:08 [INFO] [Noon] (based on code by Feverdream) loaded.
    2011-01-23 18:06:08 [INFO] [rTriggers] Loaded: Version 0.3_3
    2011-01-23 18:06:08 [INFO] [WarpGate] iConomy is not loaded. Turning iConomy sup
    port off.
    2011-01-23 18:06:08 [INFO] Done! For help, type "help" or "?"
    Thanks in advance

    I have determined that the problem is likely with the classpath in the manifest (Netbeans isn't adding it) so the plugin isn't able to call packages from WorldEdit. BlockVector is simply the first one in the list that WorldGuard is looking for and cannot find. Still trying to fix, however.

    Fixed. Finally got classpath up in the manifest and system checks good.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 6, 2016
Thread Status:
Not open for further replies.

Share This Page