xwork-plugin doesn't find package

While trying to develop a PLugin with velocity input and output my the Plugin always generates this error:

2012-09-07 12:38:04,301 ERROR [pool-8-thread-3] [confluence.plugin.descriptor.XWorkModuleDescriptor] getPackages Could not add package: {PackageConfig Name:examples namespace: abstract:false parents:[{PackageConfig Name:default namespace: abstract:false parents:[]}]} because: com.opensymphony.xwork.config.ConfigurationException: Action class [com.atlassian.example.ExampleAction] not found, skipping action [hello]
    with nested exception 
java.lang.ClassNotFoundException: com.atlassian.example.ExampleAction
 -- url: /IDSInsight/rest/plugins/1.0/ | userName: confluence | referer: https://smucx076.muc.allianz:4443/IDSInsight/plugins/servlet/upm
com.opensymphony.xwork.config.ConfigurationException: Action class [com.atlassian.example.ExampleAction] not found, skipping action [hello]
    with nested exception

Whats the reason for this?

2 answers

0 vote
David Simpson Community Champion Sep 06, 2012

Difficult to say without you sharing code.

Make sure that you use atlas-create-jira-plugin-module to generate the stubs for your modules -- it reduces the number of typos that you'll produce.

I'm developing for confluence, but that shouldn't be the Problem, I think...

here's my atalssian-plugin.xml

<atlassian-plugin key="confluence-peoplesearch-test"
                  name="Confluence Peoplesearch Test" plugins-version="2">
        <description>A PLugin for testing Peolplesearch with Velocity Input and Output</description>
        <vendor name="Atlassian" url="http://www.atlassian.com" />
    <!-- Registers the macro in a plugin module. -->
<xwork name="My Example Action" key="example-action">
        <description>Shows a simple "Hello, World!" Action</description>
        <package name="examples" extends="default">
            <default-interceptor-ref name="validatingStack" />

            <action name="hello" class="com.atlassian.example.ExampleAction">
                <result name="success" type="velocity">/templates/livesearchaction.vm</result>

It says, that it can't find com.atlassian.example.ExampleAction...

But why?

It gives me a UnknownHostException when I try to run the command atlas-create-confluence-plugin-module! This is independent from the module-type I choose..

Here's the error:

[INFO] Sending event to Google Analytics: AMPS:confluence - Create Plugin Module
 - confluence:Web Section
Enter Plugin Module Name [My Web Section]: 31 [AnalyticsThread-1] ERROR com.dmur
ph.tracking.JGoogleAnalyticsTracker - Error making tracking request
java.net.UnknownHostException: www.google-analytics.com
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
        at com.dmurph.tracking.JGoogleAnalyticsTracker.dispatchRequest(JGoogleAn
        at com.dmurph.tracking.JGoogleAnalyticsTracker.access$100(JGoogleAnalyti
        at com.dmurph.tracking.JGoogleAnalyticsTracker$1.run(JGoogleAnalyticsTra

btw. I can't choose webWork or XWork...

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

187 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot