Import EJB to Java Studio Creator 2?
Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance.
Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance.
Similar Messages
-
Help needed with Sun Java Studio Creator and EJB in a Portlet Project
Hi
I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
Then i started going ahead step by step:
1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.Hi,
There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
https://feedbackprograms.sun.com/login.html
In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
# Deploying Portlets
# Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
# Problem with Pluto when trying to deploy a portlet
# Request: JSR-168 Portlet Project without JSF
We kindly request you to post your further queries related to EA in the above mentioned forum.
Cheers
Giri -
Can java studio creator import MIME?
HI , i have 2 question
1.> i am tring to make a page that stream music .wma usually in normal html
<object id="mediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
type = "application/x-oleobject">
<param name="autostart" value="true">
<param name="showcontrols" value="true">
<param name="filename" value="here ... music...name">
<param name="ShowStatusBar" value="true">
<embed type="application/x-mplayer2"pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="question.wma" autostart="0" showcontrols="1" showstatusbar="1">
</embed> </object>
in java studio creator can i use that ? on the place to put music name can i gain control so i can put what ever name i want depend on user?
2.> I make a class use File myFile = new File ("C:\\Music"); last time it's work but now it said source cannot be found? how do i fix that?
thank you for adviseHere comes your help;-) Or at least I hope so;-)
The problem is, that you really want components in order to be able to change parameters etc from your application.
http://blogs.sun.com/roller/page/marcoscorner#my_adventure_in_component_land
Have fun;-)
-- Marco -
Problems with the resources boundles in java studio creator 2
I try to migrate a proyect from sun java studio creator 2 early access to sun java studio creator 2 but I have a problem, the resource bundle work in creator 2 early access but doesn� work in creator 2, somebody have the same problem?
and, the most important somebody could fix the problem?
Note. sorry I�m learning englishIf I choose for SJSC2 to create JSF applications then
one, or better THE, reason is the (drag and drop)
Design editor functionality.
Using resource bundles is a MUST. So if this means I
cannot use the Design Editor in combination with
resource bundles, then I will use something else...
I think there should be a statement issued by the
SJSC2 team about this bug and what the timescale for
a decent solution wll be.
Regards,
Marcel
BTW: overall SJSC2 seems to be a good alternative to
develop an open source JSF application in a competing
timeframe.I agree. This bug is even more exacerbated by the fact that the error message is entered in the design form and generally clutters more room than was originally intented for the text. Not having i18n is a show stopper right now. Creator2 will have to fully support i18n before we can start using it. -
Hi,
I have to maintain a webapp created with Java Studio Creator. Several pages import the following taglib : "xmlns:ui="http://www.sun.com/web/ui" and beans use classes from com.sun.rave.web.ui.* packages.
Where can I find APIs about those components and classes?
Regards.
PS : my IDE is Eclipse....Check the Woodstock project at dev.java.net. I think that it is the same.
-
Using Servlets in java studio creator
Hello, anyone can tell me how can i use a servlet in java studio creator, due the file is in .java i dont know how to use it, here is an example i want to add to my proyect:
and other question is how can i make to work?
* Sean C. Sullivan
* June 2003
* URL: http://www.seansullivan.com/
package pdfservlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
// import the iText packages
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
* a servlet that will generate a PDF document
* and send the document to the client via the
* ServletOutputStream
* @author Sean C. Sullivan
public class PDFServlet extends HttpServlet
public PDFServlet()
super();
* we implement doGet so that this servlet will process all
* HTTP GET requests
* @param req HTTP request object
* @param resp HTTP response object
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws javax.servlet.ServletException, java.io.IOException
DocumentException ex = null;
ByteArrayOutputStream baosPDF = null;
try
baosPDF = generatePDFDocumentBytes(req, this.getServletContext());
StringBuffer sbFilename = new StringBuffer();
sbFilename.append("filename_");
sbFilename.append(System.currentTimeMillis());
sbFilename.append(".pdf");
// Note:
// It is important to set the HTTP response headers
// before writing data to the servlet's OutputStream
// Read the HTTP 1.1 specification for full details
// about the Cache-Control header
resp.setHeader("Cache-Control", "max-age=30");
resp.setContentType("application/pdf");
// The Content-disposition header is explained
// in RFC 2183
// http://www.ietf.org/rfc/rfc2183.txt
// The Content-disposition value will be in one of
// two forms:
// 1) inline; filename=foobar.pdf
// 2) attachment; filename=foobar.pdf
// In this servlet, we use "inline"
StringBuffer sbContentDispValue = new StringBuffer();
sbContentDispValue.append("inline");
sbContentDispValue.append("; filename=");
sbContentDispValue.append(sbFilename);
resp.setHeader(
"Content-disposition",
sbContentDispValue.toString());
resp.setContentLength(baosPDF.size());
ServletOutputStream sos;
sos = resp.getOutputStream();
baosPDF.writeTo(sos);
sos.flush();
catch (DocumentException dex)
resp.setContentType("text/html");
PrintWriter writer = resp.getWriter();
writer.println(
this.getClass().getName()
+ " caught an exception: "
+ dex.getClass().getName()
+ "<br>");
writer.println("<pre>");
dex.printStackTrace(writer);
writer.println("</pre>");
finally
if (baosPDF != null)
baosPDF.reset();
* @param req must be non-null
* @return a non-null output stream. The output stream contains
* the bytes for the PDF document
* @throws DocumentException
protected ByteArrayOutputStream generatePDFDocumentBytes(
final HttpServletRequest req,
final ServletContext ctx)
throws DocumentException
Document doc = new Document();
ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
PdfWriter docWriter = null;
try
docWriter = PdfWriter.getInstance(doc, baosPDF);
doc.addAuthor(this.getClass().getName());
doc.addCreationDate();
doc.addProducer();
doc.addCreator(this.getClass().getName());
doc.addTitle("This is a title.");
doc.addKeywords("pdf, itext, Java, open source, http");
doc.setPageSize(PageSize.LETTER);
HeaderFooter footer = new HeaderFooter(
new Phrase("This is a footer."),
false);
doc.setFooter(footer);
doc.open();
doc.add(new Paragraph(
"This document was created by a class named: "
+ this.getClass().getName()));
doc.add(new Paragraph(
"This document was created on "
+ new java.util.Date()));
String strServerInfo = ctx.getServerInfo();
if (strServerInfo != null)
doc.add(new Paragraph(
"Servlet engine: " + strServerInfo));
doc.add(new Paragraph(
"This is a multi-page document."));
doc.add( makeGeneralRequestDetailsElement(req) );
doc.newPage();
doc.add( makeHTTPHeaderInfoElement(req) );
doc.newPage();
doc.add( makeHTTPParameterInfoElement(req) );
catch (DocumentException dex)
baosPDF.reset();
throw dex;
finally
if (doc != null)
doc.close();
if (docWriter != null)
docWriter.close();
if (baosPDF.size() < 1)
throw new DocumentException(
"document has "
+ baosPDF.size()
+ " bytes");
return baosPDF;
* @param req HTTP request object
* @return an iText Element object
protected Element makeHTTPHeaderInfoElement(final HttpServletRequest req)
Map mapHeaders = new java.util.TreeMap();
Enumeration enumHeaderNames = req.getHeaderNames();
while (enumHeaderNames.hasMoreElements())
String strHeaderName = (String) enumHeaderNames.nextElement();
String strHeaderValue = req.getHeader(strHeaderName);
if (strHeaderValue == null)
strHeaderValue = "";
mapHeaders.put(strHeaderName, strHeaderValue);
Table tab = makeTableFromMap(
"HTTP header name",
"HTTP header value",
mapHeaders);
return (Element) tab;
* @param req HTTP request object
* @return an iText Element object
protected Element makeGeneralRequestDetailsElement(
final HttpServletRequest req)
Map mapRequestDetails = new TreeMap();
mapRequestDetails.put("Scheme", req.getScheme());
mapRequestDetails.put("HTTP method", req.getMethod());
mapRequestDetails.put("AuthType", req.getAuthType());
mapRequestDetails.put("QueryString", req.getQueryString());
mapRequestDetails.put("ContextPath", req.getContextPath());
mapRequestDetails.put("Request URI", req.getRequestURI());
mapRequestDetails.put("Protocol", req.getProtocol());
mapRequestDetails.put("Remote address", req.getRemoteAddr());
mapRequestDetails.put("Remote host", req.getRemoteHost());
mapRequestDetails.put("Server name", req.getServerName());
mapRequestDetails.put("Server port", "" + req.getServerPort());
mapRequestDetails.put("Preferred locale", req.getLocale().toString());
Table tab = null;
tab = makeTableFromMap(
"Request info",
"Value",
mapRequestDetails);
return (Element) tab;
* @param req HTTP request object
* @return an iText Element object
protected Element makeHTTPParameterInfoElement(
final HttpServletRequest req)
Map mapParameters = null;
mapParameters = new java.util.TreeMap(req.getParameterMap());
Table tab = null;
tab = makeTableFromMap(
"HTTP parameter name",
"HTTP parameter value",
mapParameters);
return (Element) tab;
* @param firstColumnTitle
* @param secondColumnTitle
* @param m map containing the data for column 1 and column 2
* @return an iText Table
private static Table makeTableFromMap(
final String firstColumnTitle,
final String secondColumnTitle,
final java.util.Map m)
Table tab = null;
try
tab = new Table(2 /* columns */);
catch (BadElementException ex)
throw new RuntimeException(ex);
tab.setBorderWidth(1.0f);
tab.setPadding(5);
tab.setSpacing(5);
tab.addCell(new Cell(firstColumnTitle));
tab.addCell(new Cell(secondColumnTitle));
tab.endHeaders();
if (m.keySet().size() == 0)
Cell c = new Cell("none");
c.setColspan(tab.columns());
tab.addCell(c);
else
Iterator iter = m.keySet().iterator();
while (iter.hasNext())
String strName = (String) iter.next();
Object value = m.get(strName);
String strValue = null;
if (value == null)
strValue = "";
else if (value instanceof String[])
String[] aValues = (String[]) value;
strValue = aValues[0];
else
strValue = value.toString();
tab.addCell(new Cell(strName));
tab.addCell(new Cell(strValue));
return tab;
}Hi, i've done all described in the posts, but i
don't know how to call the servlet, using the web
browser, and more, how can i call the servlet frrom
a button action? or hyperlink?
nks for the helpOk, I am not sure what you are trying to do. For these events you can
use the SessionBean. What do you want the servlet to do that the session bean can't?
I use the sessionbean because I don't know how to receive or respond to xmlhttpreq messages directly in my sessionbean. If you just need the standard http req/resp it doesn't seem like a servlet is needed. -
Is Java Studio Creator only for very little projects?
Hi
I'm developing a large program with about 100-pages. I found terrible to navigate by ApplicationOutline, Property Binding and Page Navigation.
1. ApplicationOutline should show subfolder structure hierarchically
2. Property Binding should open the page of the binding element, and hierarchical property should be alphabetically sorted
3. Graphical Page Navigation is just a game. I need only a tree view with add/delete management
of navigation-rule
Thanks
Nicola Grippaldi"Sun Java Studio Creator 2, Early Access
Please be aware of the following issues:
* There are a number of known issues with the Refactoring feature.
Before using it:
- Make a backup of your project
- Read the full Release Notes referenced below
* Avoid using subfolders for your web pages.
* You might have deployment problems, such as:
- OutOfMemory exceptions
- Theme switching not taking effect
- Some other deployment failure
If you do have these deployment problems, then:
1) Undeploy.
2) Stop the Application Server.
2) Clean the build.
3) Start the Application Server and redeploy.
* Projects created in Creator 1.0 can be imported, but you cannot
use the new components on the imported pages. We are investigating
creating a conversion utility to the new page structure.
The Sun Java Studio Creator 2 Installation and Release Notes provides
information on installing and uninstalling the product and describes
known bugs and issues. The document is located at:
http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/reference/docs/Installation_ReleaseNotes-ea.html
Thank you for evaluating our Early Access release."
This is the content of the README.html.
Creator is only a preview and you should not try to use it with large web sites. The tool has so many bugs and performance lacks, many features seem not to be tested by Sun that it would be a waste of time. -
Problem with Java Studio Creator and Tomcat Server
Hi Gays ,
I have problem:
here is the error from tomcat 5
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,
but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)
i can't show value ( as text) from datasoruce ( is in SessionBean1)
(Category-.>Subcat->Items->details( url from items table[items.jsp])
this is a working url "/faces/testpage.jsp?auk_id=31 "
( working with sun apps server , but not on Tomcat 5)
below prerender method in details.java and fragment of details.jsp
public void prerender() {
try {
String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());
System.out.println("wartosc auk_id " + idauk);
if (idauk != null) {
getSessionBean1().getDetailsRowSet().setObject(1,idauk);
getSessionBean1().getDetailsDataProvider().refresh();
details.jsp
xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{testpage.page1}" id="page1">
<ui:html binding="#{testpage.html1}" id="html1">
<ui:head binding="#{testpage.head1}" id="head1">
<ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{testpage.form1}" id="form1">
<ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?
Thanks in advance for helping me to resolve the night problem :)Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
But i think it is not a elegant solution in page source i habe noused-code.
Have Any another Ideas. HELP PEOPLE !!!!
Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
greetings -
Web Service + Complex Type + Java Studio Creator
Hy all!!
I am using Ubuntu 7.04 + Java Studio Creator 2 and i'm trying to use a webservice.
This webservice uses a Complex Type and was made in PHP.
I guarantee that this webservice is working with complex type because i've tested using a PHP client.
I have already worked with others webservices in Java Studio Creator using simple types!
So I went to Add Web Service, put the wsdl link, Get Web Service Information and then Test Method that uses Complex Type.
Then I gave a input value and when I submit i got this error:
InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) Runtime exception; nested exception is:
[failed to localize] nestedDeserializationError([failed to localize] xmlreader.unexpectedState(END, START: nome))
com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300) webservice.Grs_PortType_Stub.buscarCompleto(Grs_PortType_Stub.java:122) webservice.grs.grsClient.buscarCompleto(grsClient.java:36) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595)
[failed to localize] nestedDeserializationError([failed to localize] xmlreader.unexpectedState(END, START: nome))
com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:233) com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155) webservice.Grs_buscarCompleto_ResponseStruct2_SOAPSerializer.doDeserialize(Grs_buscarCompleto_ResponseStruct2_SOAPSerializer.java:43) com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:192) com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155) webservice.Grs_PortType_Stub._deserialize_buscarCompleto(Grs_PortType_Stub.java:186) webservice.Grs_PortType_Stub._readFirstBodyElement(Grs_PortType_Stub.java:160) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215) webservice.Grs_PortType_Stub.buscarCompleto(Grs_PortType_Stub.java:122) webservice.grs.grsClient.buscarCompleto(grsClient.java:36) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595)
Any help would be appreciated!
Thanks a lot!
Mario MolHave you seen this?
http://developers.sun.com/jscreator/reference/techart/2/create_consume_web_services.html
Also have you tried the latest and coolest IDE Netbeans 6?
It includes all the features of Creator plus lots more.
Thanks
K -
How to do internationalization with Sun Java Studio Creator?
Hi everybody,
the Sun Java Studio Creator seems to be a great peace of software ;-) Currently I'm trying to design some forms for a hello-world-test-project. My question now is: how can I realize internationalization with property-bundles? I already managed it to create my own bundles, I set up a few locales (de, en, fr) and put in some "SayHello" Variables. But how can I associate my locale-variables in the .propertie-files with the value- or text-attributes of the UI-Components using the form designer?well... it's not working!
I created some locale-properties. Put a
<f:loadBundle basename="mypackage.mainlocales" var="messages"/>directly under the "<f:view>"-Tag as it is descriped in the manual.
But when I write something like
<ui:label binding="#{sites$main$mainmenu.label1}" id="label1" style="position: absolute; left: 312px; top: 168px" text="#{messages.test}"/>The designer crashes with an error-message:
javax.faces.el.PropertyNotFoundException: Error testing property 'test' in bean of type null
at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getType(UIComponentPropertyResolver.java:298)
at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getType(DataProviderPropertyResolver.java:264)
at com.sun.jsfcl.data.ResultSetPropertyResolver.getType(ResultSetPropertyResolver.java:141)
at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getType(DesignTimePropertyResolver.java:169)
at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:350)
at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHolderDesignTimeRenderer.java:59)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)Nevertheless - when I deploy my application, the locales are processed correctly.
What am I doing wrong? -
How to change the source level in java Studio creator
Hi,
I am using Sun Java Studio Creator 2 Update 1 IDE, in this IDE how to change the source level to 1.5 for an existing project.
Thanks in advance,
Rajesh.Hi!
Unfortunately Sun Java Studio Creator 2 Update 1 doesn't support 1.5 source level. But You can try to download NetBeans IDE (from http://www.netbeans.org) and there with Visual Web project You will find the same functionality as for Creator. And 1.5 source level is supported by NetBeans.
Thanks,
Roman. -
Reminder: Java Studio Creator training available
Java Studio Creator training is coming to Burlington MA, San Francisco, and Atlanta. The instructors are industry experts Paul Anderson and Gail Anderson, authors of the Java Studio Creator Field Guide, Second Edition. For more informaiton, see http://developers.sun.com/prodtech/javatools/jscreator/learning/training/index.html.
Did anyone get a chance to checkout this course. I am curious to find out what people thougth
- Joelle -
Hi, i'm trying to use annotation in my code, but the compiler show following error message:
(try -source 1.5 to enable annotations)
my jdk defaullt is jdk 1.5
help.Java Studio Creator 2U1 does not support JDK1.5 constructs such as annotattions. But next version would.
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator -
Errors with Test Web Service in Java Studio Creator...
Hi...
I'm a newbie with web services. I've installed Java Studio Creator in my Win XP Pro environment and I've been following the tutorials on how to add a web service to my projects, etc...
In any case, I've followed the steps to ensure that my Deployment Server and my Built-In Database Server are active, yet whenever I try to test any of the pre-packaged, built-in web services, I always get the following type of error:
InvocationTargetException
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
null
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
HTTP Status-Code 404: Not Found - /OrderService; nested exception is: HTTP Status-Code 404: Not Found - /OrderService
webservice.orderws.OrderService_Stub.getCustomers(OrderService_Stub.java:327)
webservice.orderws.orderws.OrderWSClient.getCustomers(OrderWSClient.java:50)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
HTTP Status-Code 404: Not Found - /OrderService
com.sun.xml.rpc.client.http.HttpClientTransport.checkResponseCode(HttpClientTransport.java:302)
com.sun.xml.rpc.client.http.HttpClientTransport.connectForResponse(HttpClientTransport.java:252)
com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:88)
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:92)
webservice.orderws.OrderService_Stub.getCustomers(OrderService_Stub.java:311)
webservice.orderws.orderws.OrderWSClient.getCustomers(OrderWSClient.java:50)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
Can anybody give me a clue as to what I've missed? I was under the impression that Java Studio Creator had everything it needed to be able to successfully test these web services. What it looks like to me, is that the actual web service package is not deployed to the development environment. I have no idea where I would find those, if they were not pre-packaged with the software. Any assistance would be greatly appreciated.
Thanks,
BrettAre you to see the WSDL using the URL on a browser?
Check for proxy settings configured in the IDE.
http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/technical/webservices/proxies.html
-Sakthi -
How To Increase heap size in Java Studio Creator 2
Hi,
I'd like to know how I can increase the heap size in Java Studio Creator 2.
I already tried editing creator.conf, but it doesn't seem to work...
Can anybody help me?
thanks.In the servers window of creator, right-click 'Deployment Server' and choose 'View Admin Console'. A new web page comes up with the web interface to the Sun Application Server 8. Type your username and password that you configured during installation. I think default username is admin and default password either admin or adminadmin. After you're in, click 'Application Server' link in the left window, then click 'JVM Settings' tab, then click 'JVM Options' tab. Add new JVM option -Xms512m to start the server with 512MB. Find the -Xmx option and edit it to something larger, provided you have enough memory on your system.
Maybe you are looking for
-
Hi, I have I Phone 5, I brought this in last year september 2013, its not connected this network, i have done all setting changes, reset all the setting but its not able to connect this network
-
Can someone direct me on how to upgrade my G5 iMac 2009 to OS Yosemite?
UPgrade
-
hi friends, we have the order creation screen in webui. i have seen and found that the item details where we enter product and quantity belongs to a component and the header overviewset, where you see SAVE button, cancel button new, copy etc button b
-
I downloaded a new itunes card for $25.00 but it did not register
I downloaded a new itunes card for $25.00 but it did not register help!
-
Resetting the Noise Margin after Upgrade to 21CN
Hello, A few weeks ago I requested the Noise Margin resetting when I was on ADSL Max - which worked a treat However, since then I've been upgraded to 21CN (see below) and the Noise Margin has jumped back up to an average of about 9db. The line has