Bug 99680 - Plugin fails to parse a jazn-data.xml of a 10.1.2 oc4j
Plugin fails to parse a jazn-data.xml of a 10.1.2 oc4j
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: OC4J
5.x
PC Linux
: P3 (vote)
: TBD
Assigned To: Michal Mocnak
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-02 13:27 UTC by irockel
Modified: 2007-04-03 15:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
system-jazn-data.xml (6.22 KB, text/xml)
2007-04-02 13:29 UTC, irockel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description irockel 2007-04-02 13:27:38 UTC
In my ongoing effort of setting up a oc4j-container with a 10.1.2 oc4j in 
netbeans I now have this problem:

INFORMATIONAL *********** Exception occurred ************ at 1:56 PM on Apr 2, 
2007
java.lang.NullPointerException
[catch] at 
org.netbeans.modules.j2ee.oc4j.util.OC4JPluginUtils.isUserActivated(OC4JPluginUtils.java:219)
        at 
org.netbeans.modules.j2ee.oc4j.ui.wizards.AddServerPropertiesPanel.isValid(AddServerPropertiesPanel.java:53)
        at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:629)
        at 
org.netbeans.modules.j2ee.deployment.impl.ui.wizard.AddServerInstanceWizard.updateState(AddServerInstanceWizard.java:72)
        at 
org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:804)
        at org.openide.WizardDescriptor.access$1000(WizardDescriptor.java:76)
        at 
org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:1635)
        at 
org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1167)
        at org.openide.WizardDescriptor.access$1100(WizardDescriptor.java:76)
        at 
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1653)
        at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
...

the plugin seems to be unable to find the user in it (xpath-query string 
wrong?).

Btw. I had to rename "jazn-data.xml" to "system-jazn-data.xml" as the plugin 
looks for this name.
Comment 1 irockel 2007-04-02 13:29:59 UTC
Created attachment 40255 [details]
system-jazn-data.xml
Comment 2 Petr Blaha 2007-04-02 13:52:11 UTC
Hi reporter, thanks for your help. Does it mean that system-jazn-data.xml file
was missing on your OC4J installation? If yes, the fix would be easy since when
the system-jazn-data.xml isn't located in installation we can use jazn-data.xml
instead. However, I'm curious why this file is missing in your config.
Comment 3 irockel 2007-04-03 11:07:46 UTC
no, the bug is about the oc4j-plugin failing to find the user-data in the 
jazn-data.xml. I renamed it.
Comment 4 Petr Blaha 2007-04-03 13:22:40 UTC
I guess that issue would be that in attached file missing oc4j-administrators
role. Try to add this role in your file:
 <role>
                                <name>oc4j-administrators</name>
                                <display-name>OC4J Admin Role</display-name>
                                <description>Administrative role for
OC4J</description>
                                <guid>56903CE08B6611DBBFE67D586EEB733F</guid>
                                <members>
                                        <member>
                                                <type>user</type>
                                                <name>admin</name>
                                        </member>
                                </members>
                        </role>

and the server registration should work. 
Comment 5 Petr Blaha 2007-04-03 13:28:24 UTC
Michale, fix would be merge users in oc4j-administrators and administrators group.
Comment 6 irockel 2007-04-03 15:09:32 UTC
I added this change and retestet, now the plugin seems to find my user "admin" 
but the exception still occurs and if I enter the admin password and click 
on "initialize" and popup comes up asking for an "oc4jadmin" password (I don't 
have a user with this name) and a lot more NullPointerExceptions with the 
stack above come up.
Comment 7 Michal Mocnak 2007-04-03 15:13:33 UTC
It's due to you don't have oracle's default configuration. Your server is
customized. I'll implement same changes to avoid these exceptions.
Comment 8 Petr Blaha 2007-04-03 15:13:52 UTC
Thanks for your help. It seems that plugin assumes that oc4jadmin is created in
server by default but this isn't valid for your configuration where you use
admin instead of oc4jadmin.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo