kamiya sei

Greenhorn
+ Follow
since Dec 12, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kamiya sei

HI , i have application use JavaEE when I deploy , in GlassFish Server 3.1.2 (netbean) announcemtn "SEVERE: Exception while deploying the app [Radiocabs]
SEVERE: java.lang.NullPointerException
"
How to resolve this
thank you
I use primeface to create gui in jsf, when I run it doesn't display althought I added a library the primaface


<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>

<h:form>
<p:inputText/>
</h:form>
</h:body>
</html>

specially, when I click the link xmlns:p="http://primefaces.org/ui" it announcement "The requested URL /ui was not found on this server."

???
11 years ago
JSF
EJB
HI .
I'm studying EJB when I create a file session bean normally and in create interface I choosed "Remote"
It announcement below :


There is no suitable project available into which Remote interface could be stored.An open Ant-based Java Class Library project is required

So What can I do to create EJB completely

K. Tsang wrote:What does the server log say?



I read it in GlassFish Server 3.1.2
SEVERE: Module type not recognized for module C:\Users\Vostro\Desktop\EJBModule1\build\classes
SEVERE: There is no installed container capable of handling this application classes
11 years ago
HI All.
an error occurred when I deploy my EJB file , I don't know what happened even though GlassFish Server has started in services

" Starting GlassFish Server 3.1.2
GlassFish Server 3.1.2 is running.
In-place deployment at C:\Users\Vostro\Desktop\EJBModule1\build\classes
Initializing...
deploy?DEFAULT=C:\Users\Vostro\Desktop\EJBModule1\build\classes&name=EJBModule1&force=true failed on GlassFish Server 3.1.2
Error occurred during deployment: There is no installed container capable of handling this application classes. Please see server.log for more details.
C:\Users\Vostro\Desktop\EJBModule1\nbproject\build-impl.xml:907: The module has not been deployed.
See the server log for details. "


what can I do continue ?
Thank so much.
11 years ago

Paul Clapham wrote:And what did you find in the server log when you looked there?



yes, in GlassFish Server display
SEVERE: Exception while deploying the app [EJBModule] : Archive [EJBModule] was deployed as a Java EE archive while it does not contain any valid Java EE components. Please check the packaging of the archive.
Hi all .
I have recently sended my question , maybe it risk ,so I send again
My EJB file (I am using netbean EJB Module) which is deployed it announcement
" The module has not been deployed.
See the server log for details."

Although, I attached "GlassFish Server " in library . My question how to improve it .

thanks.
HI
I have a xml file "sample.xml"

- <Employee-detail>
- <Employee name="Aalok">
<address>Mumbai</address>
</Employee>
- <issued-items>
<item label="USHA" type="FAN" code="1001" />
<item label="KINGSTON" type="PEN" code="1002" />
</issued-items>
</Employee-detail>

and a ReadAttributes.java file I had just quoted from this site,

Document doc = new Builder().build(new File(file));

Nodes getXML = XQueryUtil.xquery(doc, "*");

for (int i = 0; i < getXML.size(); i++) {

Node getAll = getXML.get(i);


System.out.println(getAll.query("*/@*").get(i).getValue());

when I run, it display 'Aalok ' of attribute value 'Employee'. If I want to display all attribute value from xml file such as 'lable, type , code 'value how to do that ??
Hi everyone !

Now, I'm learning the Jquery lesson , but I encountered a few problems while working with it

specific, this is my code called jquerydemo.jsp and demo_test.txt file , when I click <button>Get External Content</button> it will display the content in demo_test.txt file , but it don't display content. . however if I replace $("#div1").load("demo_test.txt") by alert("Hello world!") it display "hello world ", please show me !how to resolve this code

g tsuji wrote:

Nodes students = XQueryUtil.xquery(doc, "//class/student/name[class[@name='B59B']]");

but it display <name><mark>and <grade> >


That is unlikely the outcomes of it, so not even sure why you said so.

how to just get '<name>'?





thank you.
that is what I need
HI all !

I have a file called student.xml

<center name="Softech Aptech">
- <class name="B59B">
- <student>
<name>Tom</name>
<mark>9.5</mark>
<grade>A</grade>
</student>
</class>
- <class name="B560">
- <student>
<name>Mary</name>
<mark>9.5</mark>
<grade>A</grade>
</student>
</class>
</center>



in this file , I want to get 'name' in element student Who have attribute '<class name=B59B>' .So, I use XQueryUtil to call it


Nodes students = XQueryUtil.xquery(doc, "//class/student/name[class[@name='B59B']]");

but it display <name><mark>and <grade> >

can you tell me how to just get '<name>'?


thanks.
Hi all .

I have a small application called class "XPath&XQuery".

and here is my code. Because it was too long so I just quoted part of the code, so there are questions I will add later

public static void Parse() {

Document doc = new Builder().build(new File("books.xml"));

Nodes students=XQueryUtil.xquery(doc, "@*");

for (int i = 0; i < students.size(); i++) {
Node book = students.get(i);

String name = book.getValue();

System.out.println("book name is " + name);
}

-----------------------------------
public static void main(String[] args) {
Parse();
}

When I run it . 'attribute node' doesn't display??
DOM

Ulf Dittmer wrote:Have you ever printed out the actual value of "node.getNodeName()"? You assume what it is, but it's better to ensure that it actually is what you think it is.

By the way, there's no point in quoting a previous message if you're the next one to reply - it is assumed that that's what you're referring to.




Ok. I will check my code again . Maybe, I have mistake in this code. Thanks you !
DOM

Ulf Dittmer wrote:But you haven't actually examined its value?



I don't understand what you mean.

So, I want to show data in xml file using DOM, how to repair this code ??? Please !
DOM
HI , it's get first node in xml file. If find node equals("name"), display textcontent.