"cross context" and SUN ONE Application Server 8
Hi All,
I was running an application in tomcat which had "cross-context" set to true. I tried to deploy it under SAS but it doesn't work, when it requests a resource from a different context it is not found. When I go directly to that context it gives me the resource.
Can anyone tell me what I should do to enable "crosscontext" (I had to do that to solve this problem in tomcat
Kind regards,
Marco Laponder
In your web app's sun-web.xml, add this property:
<sun-web-app>
<property name="crossContextAllowed" value="true"/>
</sun-web-app>
Similar Messages
-
Classloader and Sun One Application Server 8
Hello.
The problem is that it is impossible to load the digester at application level. Instead of it the digester at application server (Sun One Application Server 8) level is loaded. How can I change the situation?
Thanks.This is happening because generally before a class loader loads a class it lets the parent class loader to load the class.
In Sun One App Server, only web apps can alter this behaviour. Set the delegate attibute of the class-loader element in sun-web.xml to false. This allows the web app class loader to load the class and only if the web app class loader fails to load the parent class loader is consulted. -
I am beginner to sun one studio and sun one application server
How can i access a cmp from a jsp page.
in sun one application server.
thanx in advancewhere do you get the weblogic plugin from ?
i am intrested in doing the same thing
thanx
prem
"Ivan" <[email protected]> wrote in message
news:[email protected]..
>
Dear all,
My boss require me to use Sun One Studio 4 update 1 to do the development,but
I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
>
I've already installed the weblogic plug-in in the Sun One Studio.
During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
So I think the deployment will fail.
Is there any others tutorial or e-book that can help me to familiar withthe deployment
process?
Many Thanks for all of you.
Ivan -
What is their difference betwwen Sun ONE Application Server and J2EE serv
Sun ONE Application Server is Sun implementation of J2EE server.
But it seems even no Sun ONE Application Server, use J2EE SDK command
j2ee -verbose
we still can launch an Application Server that support EJB, JSP....
what is their difference betwwen Sun ONE Application Server and J2EE server provided by J2EE SDK ?
Thanks,Sun ONE generally refers to the Sun ONE Application Server version 7.x. This is a J2EE 1.3 compliant application server from Sun. Sun also released a Reference Implementation version (RI) as a requirement of the J2ee 1.3 spec. This is the J2EE server you are refering too. The Sun ONE Application Server 7 is a more robust production ready App Server.
Going forward, Sun combined the 2 seperate groups to include just 1 release. The J2EE 1.4 Reference Implementation is the Sun Java System Application Server Platform Edition version 8. SJS AS 8 PE is both free and production ready. Other version will include High Availability, Managing and Monitoring features.
-Jeff -
Creating a connection pool using Oracle 10g, Sun ONE Application Serve 8.1
Has any one succesfully configured Oracle 10g to work with Sun ONE Application Server 8.1 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.
I haven't done it myself on that particular service pack, but I don't see why it should be any different than configuring a connection pool on other vanilla win2k/other OSes.
Would you please try and let this forum know?
thanks. -
Creating a connection pool using SQL Server 2000, Sun ONE Application Serve
Has any one succesfully configured SQL Server 2000 to work with Sun ONE Application Server 7 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.
The problem I am having is that, when I ping the data souce name, there is a connection error.
I have set the data source name and other details as follows:
Under JDBC, I have set the parameters for the connection pool as follows:
Data Source Name: com.microsoft.jdbc.sqlserver.SQLServerDriver
Database Name: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Test
User: test
Password: test
In the JVM settings page, I have set the prefix class path as follows for the location of the Microsoft JDBC
drivers that I downloaded as follows:
c:\microsoft\drivers/lib/msbase.jar
c:\microsoft\drivers/lib/msutil.jar
c:\microsoft\drivers/lib/mssqlserver.jar
Under JVM Options, there is a strange setting which I don't understand: perhaps this is the cause of the
connction error?
-Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
Please help????I'm in a similar boat...
Trying to setup AS7 JDBC and followed the instructions on the link you provided and get the following exception. I kept the case the same, thinking 'setpassword" was incorrect, so I tried changing the property to "Password", but get the same exception but it points to "setPassword" instead.
SEVERE: RAR5041:Cannot get jdbc connection
com.sun.enterprise.repository.J2EEResourceException
java.lang.NoSuchMethodException: setpassword
at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:243)
at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:94)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:241)
at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
at com.rvi.database.jdbcConnection.getConnection(jdbcConnection.java:93)
at com.webapp.database.ArticlesDAO.selectByYear(ArticlesDAO.java:102)
at com.webapp.actions.ArticleAction.list(ArticleAction.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598) -
Problem with mail connector example included in Sun ONE application server
Hi,
I am trying to deploy the sample application "mail connector" provided with the Sun One Application Server 8. the application has a MDB which polls for new messages for a user on the mail server. This application deploys successfully, but while connecting to the fastmail IMAP server, it gives the following exception :
ERROR when attempting to open this mailbox: [email protected]
Error in allocating a connection. Cause: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information javax.resource.spi.ResourceAllocationException: Error in allocating a connection. Cause: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:283) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:193) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122) at samples.connectors.mailconnector.ra.outbound.JavaMailConnectionFactoryImpl.createConnection(Unknown Source) at samples.connectors.mailconnector.servlet.MailBrowserServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55) Caused by: com.sun.enterprise.resource.PoolingException: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information at com.sun.enterprise.resource.NoTxConnectorAllocator.createResource(NoTxConnectorAllocator.java:89) at com.sun.enterprise.resource.IASNonSharedResourcePool.createResourceAndAddToPool(IASNonSharedResourcePool.java:1111) at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:488) at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:166) at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:312) at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:250) at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:211) at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:172) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:245) ... 34 more
Review the values you entered and try again.
Just wanted to know, whetehr someone out there had tried deploying and running this sample application?
the changes that i made to the ejb-jar.xml file are as follows:
servername : fastmail.fm
username : "my username "
password : "my password"
folder :Inbox
protocol :imap
Please let me know the probable reasons it is not able to connect to the mail server.Did you exhaust the pool-size for the DB; i.e., max-pool-size=32? Can you get a Connection?
-
Sun One Application Server 8.2
I was wondering if anybody used Creator 2 with Sun One Application Server 8.2?????????
I did create a war file from the project that I build and tried to deployed it with Application Server 8.2. The deployment was successful, but when I am tried to submit the form that I created, I got errors such as:
com.sun.rave.web.ui.appbase.ApplicationException: #{addApplicationPage.saveLink_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:302)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
and in the log file also :
Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
... 45 more
Caused by: java.lang.ClassCastException
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
Any suggestions ??????
ThanksAre you using 8.2 Platform Edition or Standard Edition?
BTW, I know that there is an issue with SE using 8.1 if you use getPathTranslated() in your app. -
Help on Java Message Service on using Sun ONE Application Server 7.0
I am new to Sun ONE Application Server 7.0. I am failed to compile the JMS sample code. I got following error message when I was compiling the ReadOrder.java and SentOrder.java.
package javax.jms doesn't exist
package javax.xml.messaging doesn't exist
package javax.servlet doesn't exist
The javac -version returns "1.4.0_02" which is required for this sample code.
Can someone let me know where is wrong? ThanksI'm not sure what the two java source files you refer to come from (maybe the samples shipped with AS7?). But you can find the referred packages here:
javax.jms -> <AS_HOME>/imq/lib/jms.jar
javax.xml.messaging -> this package is included in the Java Web Services Developers Pack 1.2 (http://java.sun.com/webservices/webservicespack.html)
javax.servlet -> this package is also included in the J2EE SDK (j2ee.jar): http://java.sun.com/j2ee/download.html
So you can go to the two links, download the packages, install them, and add the appropriate jars to your classpath and all should be well.
Daniel. -
Issues in deploying files on sun one application server 8.2.
Hi,
We have developed a project using java, JSP & Struts Framework. The database used is oracle 9.i. We have created a single war file as it is a small application. Initially we had deployed this project on Tomcat Apachee server and now we have migrated Sun One application server 8.2.
During the deployment process we checked the "Verify" option. This option throws up certain errors for unknown reasons / resaons which we are not able to figure out. How ever if we do not check the "Verify" option the project gets deployed and runs sucessfully on the server.
Here is an extract of the Log file:
FAILED TESTS :
Test Name : tests.web.WebArchiveClassesLoadable
Test Assertion : All classes in this Web Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2 for further information.
Test Description : For [ careers.war ]
classes [ ] referenced by [ ] are not found
Please either bundle the above mentioned classes in the application or use optional packaging support for them.
Can some one throw some light onto this issue.
Thanks
Sanjay Subramanyam
Mobile: 98671-84285
email: [email protected]can you run standalone verifier and let us know what results it produces? to run standalone verifier:
.../bin/verifier <path to your war file>
If it still produces those empty [] in the resukts, then please file a bug.
-- Sahoo -
Beginner on sun one application server & jsp
hi.. i'm susan. i'm new to sun one application server 7 and jsp..
i am confused at the programming part.. as i have books on jsp which all talk abt jsp and tomcat..
is there any sources on sun one application server when dealin with jsp?
pls help me out..
thanks a lot..
susan:(Hi,
Refer the Sun ONE Application Server 7 Developer's Guide to Web Applications at http://docs.sun.com/source/816-7150-10/contents.html for details.
If you are using Sun ONE Studio 5 to create web application, the following tutorial might help you
http://docs.sun.com/source/817-2320/index.html
-Amol -
Sun One Studio 5 Update 1 + Sun One Application Server 8
I haven't been able to setup Sun One Studio 5 to work with Sun One Application Server 8. I already tried with the plugin for netbeans 3.6, but it fails on dependencies. The plugin and dependencies can not be found on the update center.
I'd appreciate if anyone can tell me how to setup the studio to work with the AS succesfullyStudio 5 does not support Sun Java System App Server 8 (and most likely never will).
Try the NB3.6/AS8 bundle: http://java.sun.com/j2ee/1.4/download.html#nb
I'm not sure I understand what you mean by dependencies.
-Alexis -
Synchronizatin in sun one application server 8.1
Hi,
i am having an synchronization issue in sun one application server 8.1. the operating system is solaris 10. when the date in the system is changes to some future date in the coming year ie 2009 and after the date change , the deployment is done , then server instance is not synchronized ie the new files or the changes to the configuration file are not reflected to the server instance.
y is this happening
can any one help me in this regard?
Thanks and Regards
Sachin K. ShettyAnd just to make an unfounded guess: do you have to specify the debug port or the request port there? If it's the former, it'll stand in its own way.
-
Deploy the BC4J JSP Applications to Sun ONE Application Server 7.0
Hi
I am new for the Jdeveloper 9.0.3, I felt that the OC4J is quite useful, but I am not sure if it can be deployed on Sun ONE application server 7.0 (Our team are using Sun ONE Application server 7.0 as our J2EE AS). If it can, please tell me the deploy procedures, Thanks in advance!
RegardsI'm not sure if we've tried it under 7.0, although we did under 6.5 a short while back. If you write a BC4J based J2EE application, it should be able to be deployed across Application Servers (TSS just added Sun One 7 to their cluster)
You can take a look at the 6.5 procedures for now, and just do the same as migrating from 6.5 to 7.0.
http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_iplanet.html
Rob -
Sun One Application Server 6.1
Is Sun One Application Server 6.1 still supported by Sun ?
More generally, where can I find a up-to-date list of the Sun supported products?
Thank you in advance.
Regards,
Ludovictry disabling this line within magnus.conf
Init fn="load-modules" shlib="C:/Sun/WebServer6.1/bin/https/bin/j2eeplugin.dll" shlib_flags="(global|now)"
also comment out these lines within obj.conf.
<Object name="j2ee">
ObjectType fn="force-type" type="text/html"
Service fn="service-j2ee" method=""
</Object>
and restart the server to see if this helps
if not, you might have to edit the log level to fine within the magnus.conf file and restart the server and try it again. at least this time, you will get more detailed information as to what is going on.
Maybe you are looking for
-
[JS][CS3] Zoom frame to window
Hi All. I need to iterate through image/text frames while doing other formatting stuff, but I want the selected frame to fit to screen. I have found bits on other threads: myFrame1.select(); myDoc1.layoutWindows[0].zoomPercentage = 200; will enlarge
-
Help using FileMakerPro 12 with OS 10.6 and file sharing
This topic is posted here because it deals mostly with file sharing and OS 10.6. A business wants one (and only one) computer on the network to have several FMP data files on employees, and then have five computers with FMP client software open and m
-
Tracing execution and standard Forte message filters
Hello, During the process of tuning an application, or just of making it work, it is useful to trace the flow of processing. There are two ways of doing it : 1) add your own trace instructions (calls to the LogMgr) at the appropriate places, 2) use t
-
Best approach to impliment "rate table"
My application needs to initialize several "rate tables" (think tax rate tables, etc.) from property and/or xml files and then perform LOTS of lookups into these tables. None of the collections seems to provide quite the right functionality. A Map is
-
100's of GB of space on Startup Drive have dissappeared
Ok this is bizarre. When I purchased my MacPro, I formatted one drive to be strictly startup/boot drive and it also contains my applications. My home folder is on another drive. My startup/boot/applications drive is more than 300 GB. I've been using